Al Stiles Posted October 16, 2007 Report Share Posted October 16, 2007 I will start by saying that I am a relative novice at the business of webservers. I have used Apache 2.2 with good success and have created two files. The first is an .HTML file that creates a form and the second file is a .PHP file that handles the form and returns a message to the sender. I have tested it on the Apache and it works as expected. I just downloaded Uniform Server 3.5 and after jumping through numerous hoops, many I crafted myself, I was able to get to the admin panel. I attempted to run the two previously mentioned files and met with the same behavior that I first encountered when running them on the Apache server early in my learning to program in PHP. The form displays properly and submits. However, instead of the expected reply from the form handler, I have the actual code of the form handler file displayed. I am sure that this is happening because the form isn't going to Uniform Server but to the w:// drive and pulling the PHP file and displaying the contents. Just to be sure, I entered http://localhost and received an error message that said that the page could not be displayed. I then typed in http://localhost/register.htm and received the same error message. It seems to me that I am not getting the path right. I am attaching one of the two files, the .HTML form, to this entry and will follow it up with the .PHP file. These files are, by the way, resident on the root of the w:// drive I have gone through this forum and noted that the "can't get to the localhost page" seems to be a common issue, but none of the solutions seemed to fit. What can I do to fix this issue? As promised, the .PHP fileregister.htmhandle_form.php Quote Link to comment Share on other sites More sharing options...
Ric Posted October 17, 2007 Report Share Posted October 17, 2007 I downloaded the two files, ran them on a clean install of UniServer; they worked as expected. I assume the two files have been put in the root folder www located: *\Uniform Server\udrive\www Entering the following into your browser: http://localhost/register.htm ---Displays the form page http://localhost/handle_form.php ---Displays the processed form (should not display code) You say the files are in “w://” this looks as if you have placed the files in the wrong folder! Run UniServer; look at drive w if the two files are there, move them to folder www Note 1: W:\www is the same folder as *\Uniform Server\udrive\www Note 2: When you run a default installation of Uniform server and type http://localhost/ into your browser the test image “The Uniform Server” is displayed and the browser tab will display “Uniform Server 3.5-Apollo” confirming the server is working correctly. If you have say index.htm or index.html in folder www then you need to type http://localhost/index.php to see the test image. All the bestRic Quote Link to comment Share on other sites More sharing options...
Al Stiles Posted October 17, 2007 Author Report Share Posted October 17, 2007 Thanks Ric. As I said, I believed that I didn't have the right path and that was it. I moved the files from the w://drive to the www folder on the d;// drive and everything worked as expected. Al 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.