local host is only running html scripts.. Why?
Posted by: aadil (175.107.232.---)
Date: March 15, 2012 07:57PM

If i write a script under the html head, it is running on to a browser..

but on writing a simple php script of "hello world," it is not displaying anything on the web page..

also, the http:// is not being displayed on the link, instead file:///C:/wamp/www/Examples/HelloWorld.php, a link like above is being displayed in the link section of the browser..
a

can anyone guide me abt the problem?

Options: ReplyQuote
Re: local host is only running html scripts.. Why?
Posted by: stevenmartin99 (Moderator)
Date: March 15, 2012 08:07PM

you must open the pages in the browser, you cannot just double click php files.

you need to go to the browser and type in

http:/ /localhost/Examples/HelloWorld.php

you can also goto http:/ /localhost , then click on your project and then on your file

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: local host is only running html scripts.. Why?
Posted by: aadil (175.107.232.---)
Date: March 15, 2012 08:24PM

even then it is not displaying the "Hello World" on the page... sad smiley

Options: ReplyQuote
Re: local host is only running html scripts.. Why?
Posted by: stevenmartin99 (Moderator)
Date: March 15, 2012 09:12PM

well whats it displaying?

can you paste your code?

how did you make your php file?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.