zang8027 Posted July 1, 2008 Share Posted July 1, 2008 I haven't used PHP in a few months and now I need it for a project. I am using xampp. For some reason, i can not get php to show up. I have a test.php page that has <?php print "Hello World" ?> and it still doesn't even show up. Any ideas why php would be like.. turned off? Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/ Share on other sites More sharing options...
AndyB Posted July 1, 2008 Share Posted July 1, 2008 and are you running that script from http://localhost ? Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578838 Share on other sites More sharing options...
interpim Posted July 1, 2008 Share Posted July 1, 2008 is your server started I shut mine down once and couldn't figure out why my scripts weren't running for about 20 minutes until I realized I had stopped the server the day before. Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578843 Share on other sites More sharing options...
MasterACE14 Posted July 1, 2008 Share Posted July 1, 2008 try: <?php echo phpinfo(); ?> if nothing comes up, then I would assume your server/webhost doesn't have PHP compatibility. Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578857 Share on other sites More sharing options...
dannyb785 Posted July 1, 2008 Share Posted July 1, 2008 you need to end statements with a semicolon. And I think echo is better for printing. No particular reason, I just like it. Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578859 Share on other sites More sharing options...
MasterACE14 Posted July 1, 2008 Share Posted July 1, 2008 you need to end statements with a semicolon. And I think echo is better for printing. No particular reason, I just like it. yeah, can't miss the semi colons, however, if PHP is on his server/webhost then it should of displayed a parse error atleast. Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578860 Share on other sites More sharing options...
aeonsky Posted July 1, 2008 Share Posted July 1, 2008 I assume if nothing shows up, then PHP is there, might have error reporting turned off... Because if PHP was turned off, that line would have shown up. Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578871 Share on other sites More sharing options...
MasterACE14 Posted July 1, 2008 Share Posted July 1, 2008 I assume if nothing shows up, then PHP is there, might have error reporting turned off... Because if PHP was turned off, that line would have shown up. ah yes, very true. Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-578873 Share on other sites More sharing options...
tomd79 Posted July 1, 2008 Share Posted July 1, 2008 - the very first time I used php I had the dev file locally.. and ran it through FireFox,, took me a little while to actually twig i needed it running on apache.. which for me meant a remote host.. certainly isn't obvious to someone completely new to php Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-579119 Share on other sites More sharing options...
revraz Posted July 1, 2008 Share Posted July 1, 2008 If it's the last line of code, you don't need a semi colon, and since his code only had one line, it isn't required and would work fine. you need to end statements with a semicolon. And I think echo is better for printing. No particular reason, I just like it. Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-579121 Share on other sites More sharing options...
zang8027 Posted July 1, 2008 Author Share Posted July 1, 2008 Haha you would not believe it, I had it in my htdocs folder but i wasn't testing it on localhost... thanks guys well we can tell that I dont remember anything from PHP class Quote Link to comment https://forums.phpfreaks.com/topic/112714-solved-php-not-even-working/#findComment-579151 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.