Guest groog Posted March 13, 2006 Share Posted March 13, 2006 How do I get my words to show? <html><head></head><body><?php $txt="Hello World"; echo $txt; ?></body></html> i'm pretty sure I did it right. How do I get PHP to show on my site. I tested it and all I got was a blank page. Link to comment Share on other sites More sharing options...
real_illusions Posted March 13, 2006 Share Posted March 13, 2006 to view php coded pages, you need to put them on a server that supports php.are you just viewing them on your computer or are you uploading them somewhere?the code you got there is right, so i'm guessing your viewing the page on your computer. php is server side scripting, so you need a server for it to work. Link to comment Share on other sites More sharing options...
scott100 Posted March 13, 2006 Share Posted March 13, 2006 Just to follow on from what real_illusions said, you can view php files on your pc by installing the apache web server and configuring it to process .php files.Have a look here: http://www.w3schools.com/php/php_install.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now