Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Code showing in browser



Threaded Mode | Print  

 Code showing in browser, Php (1 Replies, Read 2008 times)
danfix
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hi all

Has anyone come across this problem.

';

print "$firstName" .  '
';
echo "$firstName" .  '
';
print gettype($firstName) . '

';
print $score . '
';
print gettype($score) . '

';
print $latitude . '

';
print gettype ($latitude) . '
';

print '

I installed the files in c:/Software/ammps.
Seems the php interpreter is not working.
Do i need to change somthing in the php.ini file?

Thanks
IP: --   

Code showing in browser
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Create a test.php file in Ampps/www folder with the following contents

PHP Code

<?php echo phpinfo(); ?>



Then access http://localhost/test.php

If this works, your PHP is working fine.

Edited by tidus : June 11, 2012, 6:53 am

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 19, 2024, 6:46 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.032