jacs808 Posted January 2, 2007 Share Posted January 2, 2007 Hi, my webhost insists that the server i'm using is PHP enabled, but none of my scripts are working. Is there a way I can confirm the status of PHP on the webserver? I'm not new to html and scripts so i don't think the problem is on my side. Anyone know of an online 'tool' that can do a check on the server. Your help will be hugely appreciated! Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/32604-how-do-i-check-if-server-is-php-enabled/ Share on other sites More sharing options...
ober Posted January 2, 2007 Share Posted January 2, 2007 Create a blank php file with:[code]<?phpphpinfo();?>[/code]If it displays something, PHP is installed. Quote Link to comment https://forums.phpfreaks.com/topic/32604-how-do-i-check-if-server-is-php-enabled/#findComment-151644 Share on other sites More sharing options...
kenrbnsn Posted January 2, 2007 Share Posted January 2, 2007 Create a script with these lines in it:[code]<?phpphpinfo();?>[/code]Upload it to your server and access it via your browser. If you see pages of information, then PHP is active.Ken Quote Link to comment https://forums.phpfreaks.com/topic/32604-how-do-i-check-if-server-is-php-enabled/#findComment-151645 Share on other sites More sharing options...
jacs808 Posted January 2, 2007 Author Share Posted January 2, 2007 Thanks for your help, it confirmed that PHP is not working on the server. Much appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/32604-how-do-i-check-if-server-is-php-enabled/#findComment-151658 Share on other sites More sharing options...
kenrbnsn Posted January 2, 2007 Share Posted January 2, 2007 Did the file you created have a ".php" extension?Ken Quote Link to comment https://forums.phpfreaks.com/topic/32604-how-do-i-check-if-server-is-php-enabled/#findComment-151662 Share on other sites More sharing options...
jacs808 Posted January 2, 2007 Author Share Posted January 2, 2007 Yes, i pasted code into notepad then saved it as testphp.php (i selected 'all files' as file format, not text file). Then uploaded to server & tested exact url in browser. All i got was a blank page as response. Quote Link to comment https://forums.phpfreaks.com/topic/32604-how-do-i-check-if-server-is-php-enabled/#findComment-151667 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.