Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Pages Only Ask to Save the File

Status
Not open for further replies.
The most obvious, and easily overlooked problem is restarting apache, which needs to reload the configuration files.

An other common problem is not having the application type in your directory index. Look for DirectoryIndex index.html and make sure you add index.php.

Are you trying, and failing, on the phpinfo() step or on another step? If you can get the phpinfo() to work, then you know that php is being interpreted.


 
Thank you for your response.
I have restarted Apache, and I have added index.php to the directory index.

To test it, I just have a php file that contains this:
<?php
phpinfo();
?>

And it only brings up a save dialogue.
 
Hi

Maybe you configured it only for one virtual host then testing on another virtual host ? Just an idea.

What Content-type is sent with the PHP content your browser offers to save ? To see the Content-type HTTP header, use a tool :
[ul]
[li]Browser:
[ul]
[li]FireFox:
[ul]
[li]Live HTTP Headers[/li]
[li]FireBug[/li]
[li]Web Developer[/li]
[/ul]
[/li]
[li]Lynx[/li]
[li]Links[/li]
[li]W3M[/li]
[li]Explorer:
[ul]
[li]ieHTTPHeaders[/li]
[li]IEWatch[/li]
[/ul]
[/li]
[/ul]
[/li]
[li]tool:
[ul]
[li][tt]netcat[/tt][/li]
[li]PuTTY[/li]
[li][tt]telnet[/tt][/li]
[li][tt]Wget[/tt][/li]
[li][tt]cURL[/tt][/li]
[/ul]
[/li]
[/ul]

Feherke.
 
So I figured out it was something inside my .htaccess file. I dont remember what it was because I already deleted it then saved to test it.
I think it was AddHandler. Or Add... something.
Anyway, I deleted that line and everything worked now.
Thanks so much.
I also tried out those addons and I really like that web developer one, thanks.

But what are:
# Lynx
# Links
# W3M
 
Hi

blksith0 said:
But what are:
# Lynx
# Links
# W3M
Those are text-based web browsers. They are useful for :
[ul]
[li]emergency situations, when graphic environment is not functional[/li]
[li]automated tasks, as their output usually can be piped to other text processing tools[/li]
[li]extremely low bandwide networks, because they not load images, styles, scripts, Flash[/li]
[li]webmasters, to get a hint about their site's accessibility and search engine friendliness[/li]
[li]blind users, combined with screen reader software[/li]
[/ul]
Example screenshots :
[ul]
[li]Lynx visiting Tek-Tips, showing HTTP headers[/li]
[li]Links visiting Tek-Tips, showing HTTP headers[/li]
[li]W3M visiting Tek-Tips, showing HTTP headers[/li]
[/ul]


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top