deepinlife Posted July 12, 2009 Share Posted July 12, 2009 guys this piece of code is not working , why ? <html> <head> <title>PHP Test</title> </head> <body> <?php // Show all information, defaults to INFO_ALL phpinfo(); // Show just the module information. // phpinfo( yields identical results. phpinfo(INFO_MODULES); ?> </body> </html> it display nothing i use lamp Quote Link to comment Share on other sites More sharing options...
acadia Posted July 12, 2009 Share Posted July 12, 2009 I have just tested it and it works fine for me. Are you sure everything is turned on? IE Apache Acadia Quote Link to comment Share on other sites More sharing options...
deepinlife Posted July 12, 2009 Author Share Posted July 12, 2009 well i donno when i invoke localhost , it displays It works! what else should i try and also when i try this code it display <html> <head> <title>PHP Test</title> </head> <body> <?php echo ("<p>hello</p>"); ?> </body> </html> it display hello "); ?> so i think it process the echo function , but it done something wrong , isn't it ? Quote Link to comment Share on other sites More sharing options...
trq Posted July 12, 2009 Share Posted July 12, 2009 Try a page with just the following in it. <?php phpinfo(); ?> Quote Link to comment Share on other sites More sharing options...
deepinlife Posted July 12, 2009 Author Share Posted July 12, 2009 Try a page with just the following in it. <?php phpinfo(); ?> nothing is displayed i donno know if that has any thing about this error but i found that there is no process httpd running Quote Link to comment Share on other sites More sharing options...
deepinlife Posted July 12, 2009 Author Share Posted July 12, 2009 guys thx all it is solved , this package was missing , libapache2-mod-php5 Quote Link to comment 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.