1981mateo Posted March 4, 2008 Share Posted March 4, 2008 Hi Im having a problem with php, I create a test page using the <?php phpinfo(); ?> function and it comes up a blank page or "Unable to connect" page. http://localhost returns a it works page but when i refresh the page it comes up with a "Unable to connect" page. "[warn] php module is already loaded skipping [warn] php module is already loaded skipping" Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/ Share on other sites More sharing options...
unsider Posted March 4, 2008 Share Posted March 4, 2008 That's the only bit of code, right? There are no includes, etc...? That's an unsual error, if that's your only bit of code, I have no idea why it's displaying that error. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482555 Share on other sites More sharing options...
1981mateo Posted March 4, 2008 Author Share Posted March 4, 2008 I did a fresh installof apche2.2 and php5, and didnt modify the default settings that http://16bytes.com/How_to_install_PHP5_Apache_2_2_and_MySQL_5_on_Windows.html said to do and It works fine with http://localhost everytime but http://localhost/phptest.php comes up: 400 Bad Request Your browser sent a request that this server could not understand. Im using the apache cgi install which is probably why i dont get the "[warn] php module is already loaded skipping [warn] php module is already loaded skipping" anymore. and <?php phpinfo(); ?> is the only code. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482562 Share on other sites More sharing options...
unsider Posted March 4, 2008 Share Posted March 4, 2008 Hmm, just curious, is it just so you know for the future what's enabled, or is it to check something specific right now? And maybe one of the other more advanced members here can help because I don't know. Sorry. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482566 Share on other sites More sharing options...
1981mateo Posted March 4, 2008 Author Share Posted March 4, 2008 Hmm, just curious, is it just so you know for the future what's enabled, or is it to check something specific right now? What are you talking about?, I'm having a problem using php. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482571 Share on other sites More sharing options...
unsider Posted March 4, 2008 Share Posted March 4, 2008 When I use phpinfo(); I use it to test if certain libraries are enabled, and other settings, etc.. for my hosted server. I know you're havng problems, but I'm curious why you need to test out phpinfo();? If you haven't already, try testing some other code. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482573 Share on other sites More sharing options...
jandrews3 Posted March 4, 2008 Share Posted March 4, 2008 mateo ... unsider is giving up his free time trying to help you. Copying his reply and then mocking him is not the way to build friends on these sites. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482574 Share on other sites More sharing options...
1981mateo Posted March 4, 2008 Author Share Posted March 4, 2008 I wasn't mocking him and if i came off that way im sorry, i just didnt understand what he was talking about. I'm using the phpinfo script to check if php is working on my computer. I'm also using <?php print ("this is a test"); ?> and the same thing happens, a page with "400 Bad Request Your browser sent a request that this server could not understand." I didn't know phpinfo could be used like that, since I'm a new user I just want to get it installed and properly running. sorry again for any misunderstandings. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482583 Share on other sites More sharing options...
Stooney Posted March 4, 2008 Share Posted March 4, 2008 Another idea is if you're not quite familiar with setting up a server and installing apache/php/mysql/etc you could use xampp. It's not recommended for running live servers (from what I've heard) but it works fine for developing environments. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482586 Share on other sites More sharing options...
unsider Posted March 4, 2008 Share Posted March 4, 2008 It's cool, I didn't take it as offensive in any manner I'm surprised thorpe, or any of the admins haven't shown up yet. They've probably seen errors like this before. If ultimately you can't get localhost to work, I suppose your only other options are to get some free/buy server space, and test it all out there. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482588 Share on other sites More sharing options...
1981mateo Posted March 4, 2008 Author Share Posted March 4, 2008 xampp looks interesting thanks, if all else fails I'll try it. Quote Link to comment https://forums.phpfreaks.com/topic/94207-beginner-php-trouble/#findComment-482591 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.