|  | <!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>Running PHP Scripts Remotely</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("Tasks\nRunning Files and Applications\nRunning PHP Scripts Remotely"); | 
|  | addAvenueInfo("Tasks","running_php_scripts_locally.htm","running_php_web_pages.htm"); | 
|  |  | 
|  | } | 
|  |  | 
|  | document.write("<p style=\"text-align:left\"> "); | 
|  | AddMasterBreadcrumbs("ide_help.htm", "", ">", "Home", "pdt_table_of_contents.htm"); | 
|  | document.write("<a href=\"tasks.htm\">Tasks<\/a> > <a href=\"running_files_and_applications.htm\">Running Files and Applications<\/a> > Running PHP Scripts Remotely<\/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 style="color: #00709e;">Running PHP Scripts Remotely | 
|  | </h1> | 
|  | <p> </p> | 
|  | <p>This procedure describes how to run files in your workspace using your | 
|  | server's debugger. | 
|  | Use this function if you want to test the execution of the file in 'real | 
|  | time' on the production server. This is especially relevant if your server | 
|  | has loaded extensions.</p> | 
|  | <div> | 
|  | <p class="Note">Note:</p> | 
|  | <p class="NoteText">Your server must be running the XDebug in order for remote debugging  capabilities to function.<br> | 
|  | </p> | 
|  | </div> | 
|  | <table cellspacing="0" width="100%"> | 
|  | <col style="width: 7.093%;"> | 
|  | <col style="width: 92.907%;"> | 
|  | <tr 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 | 
|  | style="font-weight: bold;"> </p></td> | 
|  | </tr> | 
|  | <tr valign="top"> | 
|  | <td style="width: 7.093%; padding-right: 10px; padding-left: 10px;"><p | 
|  | style="font-size: 6pt;"><img src="ref_icon.png" alt="Instructions on how to complete a procedure" title="Instructions on how to complete a procedure" style="border: none;" width="28" height="33" border="0"></p></td> | 
|  | <td style="width: 92.907%; padding-right: 10px; padding-left: 10px;"><p | 
|  | style="font-weight: bold;">To remotely run a PHP Script:</p> | 
|  | <ol type="1"> | 
|  | <li class="p" style="margin-left: -20px;"><p>Click the arrow | 
|  | next to the Run button <img src="run_icon.png" alt="run_icon.png" style="border: none;" width="33" height="28" border="0"> | 
|  | on the toolbar and select Run Configurations -or- go to <span | 
|  | style="font-weight: bold;"><b>Run | Run Configurations</b></span>.<br> | 
|  | A Run dialog will open.</p></li> | 
|  | <li class="p" style="margin-left: -20px;"><p>Double-click the | 
|  | PHP Script option to create a new run configuration.</p></li> | 
|  | </ol> | 
|  |  | 
|  | <p class="FIgureCaption"><img src="run_phpscript_remote_configuration_pdt.png" alt="New Debug Configuration" title="New Debug Configuration" style="border: none;" width="585" height="325" border="0"></p> | 
|  | <ol start="3" type="1"> | 
|  | <li class="p" style="margin-left: -20px;"><p>Enter a name for | 
|  | the new configuration.</p></li> | 
|  | <li class="p" style="margin-left: -20px;"><p>Select the PHP | 
|  | Web Server option under the Debugger Location category.</p></li> | 
|  | <li class="p" style="margin-left: -20px;"><p>Select your server | 
|  | from the list.<br> | 
|  | If you have not yet configured your server, click the underlined | 
|  | 'PHP Servers' shortcut. The Servers preferences page will | 
|  | open. Configure your server by following the instructions | 
|  | on '<a href="php_servers.htm#Adding_servers">adding a new | 
|  | server</a>' under the PHP Servers Preferences page.<br> | 
|  | For more information on configuring the communication between | 
|  | PDT | 
|  | and your remote server, see <a href="troubleshooting_remote_debugging.htm">Setting | 
|  | Up Remote Debugging</a>.</p></li> | 
|  | <li class="p" style="margin-left: -20px;"><p>Under the PHP | 
|  | File category, click Browse and select your file.</p></li> | 
|  | <li class="p" style="margin-left: -20px;"><p>If necessary, | 
|  | you can add arguments in the PHP Script Arguments tab to simulate | 
|  | command line inputs.</p></li> | 
|  | <li class="p" style="margin-left: -20px;"><p>Click Apply and | 
|  | then Run.</p></li> | 
|  | </ol></td> | 
|  | </tr> | 
|  | <tr valign="top"> | 
|  | <td colspan="2" style="width: 100%; padding-right: 10px; padding-left: 10px;"><p>Your | 
|  | script will be run and displayed in a browser.</p></td> | 
|  |  | 
|  | </tr> | 
|  | </table> | 
|  | <div> | 
|  | <p class="Note">Note:</p> | 
|  | <p class="NoteText">If the file contains 'include' or 'require' calls to | 
|  | files which are not contained within the project, you must <a href="adding_elements_to_a_project_s_include_path.htm">add | 
|  | them to the project's Include Path</a> in order to simulate your production | 
|  | environment.<br> | 
|  | In addition, if a file defined with an absolute path to a server location | 
|  | (See '<a href="include_paths.htm">Include Paths</a>' for more on absolute | 
|  | file locations) is called, a Path Mapping dialog will appear. See <a href="path_mapping.htm">Path | 
|  | Mapping</a> for more information.</p> | 
|  | </div> | 
|  | <table cellspacing="0" width="100%"> | 
|  | <col style="width: 7.093%;"> | 
|  | <col style="width: 92.907%;"> | 
|  | <tr 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 valign="top"> | 
|  | <td style="width: 7.093%; padding-right: 10px; | 
|  | padding-left: 10px;"><p | 
|  | style="font-size: 6pt;"><img src="link_icon.png" alt="link_icon.png" style="border: none;" width="32" height="40" border="0"> </p></td> | 
|  | <td style="width: 92.907%; | 
|  | padding-right: 10px; padding-left: 10px;"><p | 
|  | style="font-weight: bold;">Related Links:</p> | 
|  | <p style="font-weight: normal;"><a href="running.htm" style="font-weight: normal;">Running</a></p> | 
|  | <p><a href="running_files_and_applications.htm">Running | 
|  | Files and Applications</a></p> | 
|  | <p><a href="running_php_scripts_locally.htm">Running | 
|  | PHP Scripts Locally</a></p> | 
|  | <p><a href="running_php_web_pages.htm">Running | 
|  | PHP Web Pages</a></p> | 
|  | <p><a href="debugging.htm">Using | 
|  | the Debugger</a></p> | 
|  | <p><a href="troubleshooting_remote_debugging.htm">Setting | 
|  | Up Remote Debugging</a></p></td> | 
|  | </tr> | 
|  | <tr 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> |