mikensu Posted August 8, 2007 Share Posted August 8, 2007 Here is my code. I just need to know how to create it as a web page. I am new to PHP and need to use it. Please can I have the steps to create the application. I tried to read the instructions with the download. Thanks <?php echo "Hello World!"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/ Share on other sites More sharing options...
trq Posted August 8, 2007 Share Posted August 8, 2007 That is a complete script. All you need do is place it within a newtwork accessable directory of a php enabled web server. Do you have a web server installed? Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-318597 Share on other sites More sharing options...
MadTechie Posted August 8, 2007 Share Posted August 8, 2007 it might be an idea to get some free webspace which supports php or install WAMP5.. just a suggection ALSO if this is related to this post please click solved on that thread or post in their.... Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-318600 Share on other sites More sharing options...
mikensu Posted August 8, 2007 Author Share Posted August 8, 2007 I am not sure if I have a web server installed. I am new to php programming and internet programming in general. Did that web server come with the php I downloaded? Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-318689 Share on other sites More sharing options...
lemmin Posted August 8, 2007 Share Posted August 8, 2007 A web server does not come with the php download. Microsoft Internet Information Services is available on your windows cd, if it is already installed. To check if it is installed, go to Start>Settings>Control Panel>Administrative Tools and look for Internet Information Services. If it isn't there, go back to Control Panel and click on Addor Remove programs. Then click on Add/Remove Windows Components. You will find it listed there. You will probably need to have your windows cd in the drive to install it. Once it is installed, open internet explorer and type http://localhost/ into the address bar. The page that shows up should help walk you through setting up your server. To install php onto it, select the IIS when it asks you what server you are installing on. (I think it actually says IIS CGI, or something like that, I don't remember.) Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-318693 Share on other sites More sharing options...
mikensu Posted August 9, 2007 Author Share Posted August 9, 2007 I typed in http:\\localhost\ and the "Apache HTTP Server " came up. So I am assuming that is the server I need to publish or create php applications. Please what are the steps in using apache to create a php web page. I already downloaded php. Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-319456 Share on other sites More sharing options...
trq Posted August 9, 2007 Share Posted August 9, 2007 For starters, place this script (name it info.php) within your web root (usually a directory named htdocs). <?php phpinfo(); ?> Now go to http://localhost/info.php via a browser. If a bunch of information comes up about php, your good to go. From there, you might want to have a read of the book in my signiture. Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-319467 Share on other sites More sharing options...
rlindauer Posted August 9, 2007 Share Posted August 9, 2007 Save the file in your webroot that is defined in the apache config file. The webroot is probably here - C:/Program Files/Apache Group/Apache2/htdocs just save the file as index.php or whatever.php, as long as it has the php extension it will be parsed as php. Now, to make a proper web page you need proper html markup. edit: beaten above Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-319476 Share on other sites More sharing options...
mikensu Posted August 9, 2007 Author Share Posted August 9, 2007 I find the hotdocs folder @ C:\oracle\ora92\Apache\Apache\htdocs. Then I saved the file there. Went to a browser, typed the name of the file and nothing happened. Please help me troubleshoot. Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-319525 Share on other sites More sharing options...
trq Posted August 9, 2007 Share Posted August 9, 2007 Went to a browser, typed the name of the file and nothing happened. Did you type http://localhost/nameoffile.php or just nameoffile.php? Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-319801 Share on other sites More sharing options...
SirChick Posted August 10, 2007 Share Posted August 10, 2007 if you saved it as "helloworld.php" then this is where its found: http://localhost/helloworld.php This will work if u named it as cheese: http://localhost/cheese this wont work. reason why is there is no .php on the name of the file make sure you have put .php after the file name! its vital! Quote Link to comment https://forums.phpfreaks.com/topic/63924-create-first-application-help/#findComment-319815 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.