Najt Posted November 29, 2010 Share Posted November 29, 2010 Hello, I have PHP Version 5.2.14, and Apache 2.2 and W7 64b - but if I make this simple php code - it wont show anything. <?php echo “Welcome to PHP World!”; ?> but <?php phpinfo(); ?> works fine. and the phpMyAdmin works also fine. I cant even connect to MySQL, but how is it possible if phpAdmin can? :-( Quote Link to comment https://forums.phpfreaks.com/topic/220125-php-not-working/ Share on other sites More sharing options...
sloth456 Posted November 29, 2010 Share Posted November 29, 2010 Weird, the only thing that looks odd in your echo statement is your quote marks <?php echo “Welcome to PHP World!”; ?> shouldn't it look like <?php echo "Welcome to PHP World!"; ?> I'm not sure if this will make a difference, good luck. Quote Link to comment https://forums.phpfreaks.com/topic/220125-php-not-working/#findComment-1140854 Share on other sites More sharing options...
Najt Posted November 29, 2010 Author Share Posted November 29, 2010 still blank site :-( Quote Link to comment https://forums.phpfreaks.com/topic/220125-php-not-working/#findComment-1140859 Share on other sites More sharing options...
trq Posted November 29, 2010 Share Posted November 29, 2010 Post your current code. Your using the wrong quotes. Quote Link to comment https://forums.phpfreaks.com/topic/220125-php-not-working/#findComment-1140860 Share on other sites More sharing options...
Najt Posted November 29, 2010 Author Share Posted November 29, 2010 well, i guess that i found the mistake... I am such an idiot... i open the welcome.php directly on hdd to the webbrowser. so the php wont work, until I put the php file to the apache htdocs directory and access it from localhost... Quote Link to comment https://forums.phpfreaks.com/topic/220125-php-not-working/#findComment-1140864 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.