*SOLVED* .php files won't show in browsers
Posted 20 February 2006 - 11:39 AM
I've created test files (with plain text, HTML code, and PHP code) with .php extensions, and all of them suffer the same problem, whether I access them from my hard drive (C:/), localhost or my IP. Any ideas what the problem could be?
Posted 20 February 2006 - 11:50 AM
If you haven't set up a web server or if you browse to the file like file:///c:/file.php, your operating system will want to know what to do with the file ("open", "save as" etc), as the php is not being processed by the interpreter. That's quite normal.
Posted 20 February 2006 - 07:13 PM
- Apache (the server)
- PHP (the interpretor, the program that parses your php scripts)
- MySQL (optional, if you dont want to use a database).
You can install these manually which is straight forward you can install a package called WAMP or XAMPP both are free.
Posted 21 February 2006 - 09:03 AM
Posted 21 February 2006 - 07:09 PM
and what if you try only [a href=\"http://localhost/index.php?\" target=\"_blank\"]http://localhost/index.php?[/a]? without the port ... also, I think localhost is port 80 (well, at least for me)
Posted 22 February 2006 - 05:23 AM
Error in CGI Application The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Also, I don't have any MIME types set up on the server for .php.
Posted 10 March 2006 - 02:03 PM
[a href=\"http://126.96.36.199/One80%20Wiki/index.php\" target=\"_blank\"]Example Page[/a]
For me, it just shows up as the source code. Does anybody else experience this and/or is there way for me to fix it?
Posted 10 March 2006 - 03:13 PM
AddType application/x-httpd-php .php
How you setup Apache to parse php files as a Apache module (which I recommend) or a ScriptAlias (CGI)
Posted 11 March 2006 - 07:47 AM
Then, in a step I should've done way earlier, I followed the link in your sig to Installing PHP and Apache. The problem is now fixed. (whacks head)
Thanks for everybody who tried to help. :-)
Posted 11 March 2006 - 08:03 AM
I can't stop you from doing something silly, but at least I can help you do it right.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users