| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| |
| |
| <meta name="generator" content="Adobe RoboHelp 8"> |
| <title>Creating Projects and Files</title> |
| <link rel="StyleSheet" href="default.css" type="text/css"> |
| <style type="text/css"> |
| <!-- |
| body { border-left-style:None; |
| border-right-style:None; |
| border-bottom-style:None; |
| background-color:Transparent; |
| border-top-style:None; } |
| --> |
| </style> |
| <style type="text/css"> |
| <!-- |
| body { border-left-style:None; |
| border-right-style:None; |
| border-bottom-style:None; |
| background-color:Transparent; |
| border-top-style:None; } |
| --> |
| </style> |
| <script type="text/javascript" language="JavaScript"> |
| //<![CDATA[ |
| function reDo() { |
| if (innerWidth != origWidth || innerHeight != origHeight) |
| location.reload(); |
| } |
| if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) { |
| origWidth = innerWidth; |
| origHeight = innerHeight; |
| onresize = reDo; |
| } |
| onerror = null; |
| //]]> |
| </script> |
| <style type="text/css"> |
| <!-- |
| div.WebHelpPopupMenu { position:absolute; |
| left:0px; |
| top:0px; |
| z-index:4; |
| visibility:hidden; } |
| p.WebHelpNavBar { text-align:right; } |
| --> |
| </style> |
| <script type="text/javascript" language="javascript1.2" src="whmsg.js"></script> |
| <script type="text/javascript" language="javascript" src="whver.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whutils.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whlang.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script> |
| <script type="text/javascript" language="javascript1.2">//<![CDATA[ |
| <!-- |
| if (window.gbWhTopic) |
| { |
| var strUrl = document.location.href; |
| var bc = 0; |
| var n = strUrl.toLowerCase().indexOf("bc-"); |
| if(n != -1) |
| { |
| document.location.href = strUrl.substring(0, n); |
| bc = strUrl.substring(n+3); |
| } |
| |
| if (window.setRelStartPage) |
| { |
| addTocInfo("Getting Started\nBasic Tutorials\nCreating Projects and Files"); |
| addAvenueInfo("Getting Started","basic_tutorial.htm","working_with_code_assist.htm"); |
| |
| } |
| |
| document.write("<p style=\"text-align:left\"> "); |
| AddMasterBreadcrumbs("ide_help.htm", "", ">", "Home", "pdt_table_of_contents.htm"); |
| document.write("<a href=\"getting_started.htm\">Getting Started<\/a> > <a href=\"basic_tutorial.htm\">Basic Tutorials<\/a> > Creating Projects and Files<\/p>"); |
| |
| |
| if (window.setRelStartPage) |
| { |
| setRelStartPage("ide_help.htm"); |
| |
| autoSync(0); |
| sendSyncInfo(); |
| sendAveInfoOut(); |
| } |
| |
| } |
| else |
| if (window.gbIE4) |
| document.location.reload(); |
| //--> |
| //]]></script> |
| </head> |
| |
| <body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5"><script type="text/javascript" language="javascript1.2">//<![CDATA[ |
| <!-- |
| if (window.writeIntopicBar) |
| writeIntopicBar(4); |
| //--> |
| //]]></script> |
| <div style="width: 100%; position: relative;" id="header"> |
| |
| |
| <p align="right"><a |
| title="Documentation Survey" href="http://spreadsheets.google.com/viewform?formkey=dC1scEswTjFia2tDQ3Y5TVJBbkNQcWc6MQ">Documentation |
| Survey</a> |
| | <a href="javascript:crlf="";h=location.href;t=document.title;e = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (e!=null) location="mailto:documentation@zend.com" + "?Subject= Feedback on PDT for page " + escape(t) + "&Body=" + escape(e).replace(/ /g, "+") + crlf + " "; void 0"><span |
| style="background-color: #ffffff;">Submit Documentation</span><span |
| style="background-color: #ffffff;"> Feedback</span></a><span |
| style="background-color: #ffffff;"></span><span style="background-color: #ffffff;"> |
| </span><span style="background-color: #ffffff;">| |
| </span><span |
| style="background-color: #ffffff;"><a title="View Latest Version and Get PDF Online" |
| href="http://www.zend.com/en/resources/zend-documentation/" |
| target="_blank">View Latest |
| Version and Get PDF Online</a></span></p> |
| </div> |
| |
| |
| <h1><a name="Contents" id="Contents"></a>Creating Projects and Files |
| </h1> |
| <p style="font-style: italic;" align="center">The purpose of this tutorial |
| is to guide you through the steps involved in creating PHP Projects and |
| files.</p> |
| <p class="Strong">Contents:</p> |
| <table cellspacing="0" width="100%"> |
| <col style="width: 50%;"> |
| <col style="width: 50%;"> |
| <tr valign="top"> |
| <td style="width: 50%; padding-right: 10px; padding-left: 10px;"><p><a |
| href="#Creating_PHP_Project">Creating a PHP Project</a></p></td> |
| <td style="width: 50%; padding-right: 10px; padding-left: 10px;"><p> </p></td> |
| </tr> |
| <tr valign="top"> |
| <td style="width: 50%; padding-right: 10px; padding-left: 10px;"><p><a |
| href="#Creating_PHP_File">Creating a PHP File</a></p></td> |
| <td style="width: 50%; padding-right: 10px; padding-left: 10px;"><p> </p></td> |
| </tr> |
| </table> |
| <h2><a name="Creating_PHP_Project" id="Creating_PHP_Project"></a>Creating |
| a PHP Project</h2> |
| <table cellspacing="0" width="100%"> |
| <col style="width: 8.067%;"> |
| <col style="width: 91.933%;"> |
| <tr valign="top"> |
| <td style="width: 8.067%; padding-right: 10px; padding-left: 10px;"><p |
| style="font-size: 6pt;"><img src="ref_icon.png" alt="ref_icon.png" style="border: none;" width="28" height="33" border="0"></p></td> |
| <td style="width: 91.933%; padding-right: 10px; padding-left: 10px;"><p |
| style="font-weight: bold;">To create a new PHP Project:</p> |
| <ol type="1"> |
| <li class="p" style="margin-left: -20px;"><p>Go to File Menu |
| and select <span style="font-weight: bold;"><b>New | PHP Project</b></span>.<br> |
| -Or- In PHP Explorer view, right-click and select <span style="font-weight: bold;"><b>New |
| | PHP Project</b></span>.</p></li> |
| <li class="p" style="margin-left: -20px;"><p>The New Project |
| wizard will open.<br> |
| Enter a name for your new project into the Project Name field.</p></li> |
| <li class="p" style="margin-left: -20px;"><p>Click <span style="font-weight: bold;"><b>Finish</b></span> |
| to complete the creation of your project.</p></li> |
| </ol></td> |
| </tr> |
| </table> |
| <p>The new project will be listed in PHP Explorer view.</p> |
| <p align="right"><a |
| href="#Contents">Back to top</a> </p> |
| <h2><a name="Creating_PHP_File" id="Creating_PHP_File"></a>Creating a PHP |
| File</h2> |
| <p>Creating a PHP file within PDT |
| will automatically add PHP tags to the script, and allow you to fully |
| utilize PDT |
| 's PHP functionality.</p> |
| <table cellspacing="0" width="100%"> |
| <col style="width: 8.067%;"> |
| <col style="width: 91.933%;"> |
| <tr valign="top"> |
| <td style="width: 8.067%; padding-right: 10px; padding-left: 10px;"><p |
| style="font-size: 6pt;"><img src="ref_icon.png" alt="ref_icon.png" style="border: none;" width="28" height="33" border="0"></p></td> |
| <td style="width: 91.933%; padding-right: 10px; padding-left: 10px;"><p |
| style="font-weight: bold;">To create a new PHP file within |
| a project:</p> |
| <ol type="1"> |
| <li class="p" style="margin-left: -20px;"><p>In PHP Explorer |
| view, right-click your project and select <span style="font-weight: bold;"><b>New |
| | PHP File</b></span> -or- select your project and go to <span |
| style="font-weight: bold;"><b>File Menu | New | PHP File</b></span>.</p></li> |
| <li class="p" style="margin-left: -20px;"><p>Enter the File |
| Name and click <span style="font-weight: bold;"><b>Finish</b></span>.<br> |
| An editor window will appear with the following basic PHP code:<br> |
| <img src="php_code.png" alt="php_code.png" style="border: none;" width="115" height="57" border="0"></p></li> |
| <li class="p" style="margin-left: -20px;"><p>Add your code |
| to the new file.</p></li> |
| <li class="p" style="margin-left: -20px;"><p>Save the file |
| by clicking the Save button <img src="save_icon.png" alt="save_icon.png" style="border: none;" width="25" height="26" border="0"> on the toolbar.</p></li> |
| <li class="p" style="margin-left: -20px;"><p>To complete your |
| project, create more PHP files by repeating steps 1-7.</p></li> |
| </ol></td> |
| </tr> |
| </table> |
| <p> </p> |
| |
| <p>Once you have created all your files, you can editand debug, |
| |
| them. After taking all the necessary steps in order to obtain a server, |
| you will be ready to deploy the project to the live server on which it |
| will be running.</p> |
| |
| <p align="right"><a |
| href="#Contents">Back to top</a> </p> |
| <table cellspacing="0" width="100%"> |
| <col style="width: 7.093%;"> |
| <col style="width: 92.907%;"> |
| <tr style="height: 16px;" valign="top"> |
| <td style="width: 7.093%; padding-right: 10px; |
| padding-left: 10px;"><p |
| style="font-size: 6pt;"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p> </p></td> |
| </tr> |
| <tr style="height: 35px;" valign="top"> |
| <td style="width: 7.093%; padding-right: 10px; |
| padding-left: 10px;"><p |
| style="font-size: 6pt;"><img src="link_icon.png" style="border: none;" alt="link_icon.png" width="32" height="40" border="0"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p><span |
| style="font-weight: bold;"><b>Related Links:</b></span><a href="basic_tutorial.htm"><br> |
| Basic Tutorials</a></p> |
| <p><a href="quick_start.htm">Quick Start</a></p> |
| <p><a href="file_creation.htm">Easy File Creation</a></p> |
| </td> |
| </tr> |
| <tr style="height: 19px;" valign="top"> |
| <td style="width: 7.093%; padding-right: 10px; |
| padding-left: 10px;"><p |
| style="font-size: 6pt;"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p> </p></td> |
| </tr> |
| </table> |
| <div style="width: 100%; position: relative;" id="footer"> |
| |
| <p style="text-decoration: underline; " |
| align="center">PHP Development |
| Tools</p> |
| |
| |
| </div> |
| <script type="text/javascript" language="javascript1.2">//<![CDATA[ |
| <!-- |
| if (window.writeIntopicBar) |
| writeIntopicBar(0); |
| |
| highlightSearch(); |
| //--> |
| //]]></script> |
| </body> |
| </html> |