summerjamn Posted October 25, 2007 Share Posted October 25, 2007 I'm trying to run a standalone web server for web site testing. OS is XP w/SP2. XAMPP appeared to install just fine. Will run phpinfo() and various other functions from localhost. I put my html and php files in a folder named website as a sub-folder of htdocs. All of my .html code works and goes from page to page just like it should. Problem is I have several links in the .html code to .php files to capture data from forms. None of the .php forms will display...nothing happens when I click the link to the form. Apparently they are not being found. I copied the .php files into htdocs and the result was the same....no form display. I might add, it all works (html & php forms) on my production web site. Suggestions please? Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/ Share on other sites More sharing options...
premiso Posted October 25, 2007 Share Posted October 25, 2007 Are you sure you started the xamp Apache server? Apache must be running. Also, what is the link that you have on the .html page to the .php page, perhaps that could be the issue. Make sure there are no infinite loops on the php page. Some code would be helpful, perhaps one .html file with one of the php files it is linked to, to make sure that is not the issue. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378139 Share on other sites More sharing options...
summerjamn Posted October 25, 2007 Author Share Posted October 25, 2007 Yes, I am certain Apache is running. I can run phpinfo() and several of the other things from the index.html page displayed when I type in localhost on my browser. Also, as I noted in my post, the php works just fine on my production ISS web site that I host. I think this is a matter of the files not being found, I'm at a loss and have read multiple forums, posted here on on the Apache friends forum... Thank you for your response. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378157 Share on other sites More sharing options...
premiso Posted October 25, 2007 Share Posted October 25, 2007 Ok, where is the html file and php file? Where are the links? IIS and Apache are two different servers and handle things differently. Some code will help you get an answer quicker. Your asking a blind man to hit a 100mph fastball, not gonna happen. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378163 Share on other sites More sharing options...
summerjamn Posted October 25, 2007 Author Share Posted October 25, 2007 All of my code is in a folder named "website" which is a subfolder of htdocs. The home page (index.html) is stored as \website\index.html and is an introductory page that links to a homepage named control.html stored as \website\control.html. All subsequent links/pages (html & php) are stored in a subfolder as \website\pages\..... Does this help? All of the .html page links work just fine. The php pages/forms do not execute. The production (test) web site works as designed. But the stanalone server I'm trying to setup for testing, the php will not work. I'm struggling here and will be glad to reveal the production site (in test) and how to get into it if that will help. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378238 Share on other sites More sharing options...
PHP_PhREEEk Posted October 25, 2007 Share Posted October 25, 2007 Check your logfiles (typically in {apache_install_folder}/logs Look through them and they will give you more clues to work with. If the logs are already huge, just delete them, access the page and do whatever isn't working, then review the logs. If you post the log entries here that deal with your problem, we can help decipher them. PhREEk Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378248 Share on other sites More sharing options...
DyslexicDog Posted October 25, 2007 Share Posted October 25, 2007 Most likely there's some kind of error in your code. The default setting is to NOT display error messages. You should change the php.ini to turn on error message display. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378252 Share on other sites More sharing options...
summerjamn Posted October 26, 2007 Author Share Posted October 26, 2007 All of the code works on an ISS as designed, albeit I'm using a differnet PHP installation on the productions wed server. I will check the logs as suggested 2 posts previous to this one, but it's seems that the php routines are not being found. Thanks to those who are responding, I appreciate your help and interest. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378740 Share on other sites More sharing options...
summerjamn Posted October 26, 2007 Author Share Posted October 26, 2007 In addion, error reoporting is on (E_ALL & ~E_NOTICE) Absolutely nothing happens on the pc running a standalone installation of XAMPP when I click the links to run php developed forms. HELP!!!! I'm pulling my hair out here. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378907 Share on other sites More sharing options...
summerjamn Posted October 26, 2007 Author Share Posted October 26, 2007 One more thing...nothing shows up in the Apache error log as someone suggested earlier in this thread. Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-378909 Share on other sites More sharing options...
PHP_PhREEEk Posted October 27, 2007 Share Posted October 27, 2007 It doesn't necessarily show up in the Apache error log. You need to examine the Apache access log as well... PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-379034 Share on other sites More sharing options...
wildteen88 Posted October 27, 2007 Share Posted October 27, 2007 Make sure your scripts are using the full PHP syntax, eg <?php ?> instead of <? ?>, or <?php echo 'blah'; ?> instead of <?='blah' ?> If your scripts are using short syntax then enable short_open_tags directive in the php.ini, also as a test does XAMPP's default scripts work when you go to http://localhost/ Quote Link to comment https://forums.phpfreaks.com/topic/74789-php-xampp/#findComment-379179 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.