[56K WARN] offer to download the script file, why?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

[56K WARN] offer to download the script file, why?

Post by visonardo »

sometimes happened me that, i dont know if the server is full or what, but im using firefox. I dont understand why is it :?

well, of course that is all php script, but appear the little windows classic´s firefox to download (for example) "cookies_read.php" 8O
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Are you doing an alt + click on the link or something? It sounds like your just saving the page. Have you got any example links to the pages that do this?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

:? Huh? Image
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

I think you're PHP scripts aren't being parsed? You need an AddType directive in httpd.conf for Apache to recognize PHP filetypes. Check out http://www.roundridge.com/hs/apache-php-homesite05.php.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

for example, i paste the url in browser´s address bar and not do a click over a link, its independiently if i do click commounly or go to that directly in the address bar pasting the url. Its true, so creazy, but i dont know why, perhaps is something of apache as aaronhall told :?
aaronhall wrote:I think you're PHP scripts aren't being parsed?...
i dont believe that because just offer download the echos or result of php file and not the script, surely is something of my script, but sooo rare, because it happened in to differents servers. It happened when the script take more time that usually, like to say 1 of 50 times. But happen

:?:
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Hrrrmmm... if you're using Firefox, right click on the page after it loads and click "View Page Info" and post what it says next to "Type:". Also, if you can, post the script if it's not too long.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

aaronhall wrote:Hrrrmmm... if you're using Firefox, right click on the page after it loads and click "View Page Info" and post what it says next to "Type:". Also, if you can, post the script if it's not too long.
ok :wink:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

visonardo wrote:for example, i paste the url in browser´s address bar and not do a click over a link, its independiently if i do click commounly or go to that directly in the address bar pasting the url. Its true, so creazy, but i dont know why, perhaps is something of apache as aaronhall told :?
aaronhall wrote:I think you're PHP scripts aren't being parsed?...
i dont believe that because just offer download the echos or result of php file and not the script, surely is something of my script, but sooo rare, because it happened in to differents servers. It happened when the script take more time that usually, like to say 1 of 50 times. But happen

:?:
Two questions:
1) are other PHP pages actually parsing?
(To test, make a file called php_info.php and add this to it:)

Code: Select all

<?php phpinfo(); ?>
2) What do you see when you actually download the file?
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

the html code, but i guess that i happened (almost never) because i didnt sent any header before and like took many times firefox took that like a downloable file
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The browser shouldn't do anything to the file. It is in the server, and shouldn't require a header.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

Image


8O 8O 8O
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Fix the errors the page is talking about and I bet that download bit goes away.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

Everah wrote:Fix the errors the page is talking about and I bet that download bit goes away.
first had those errors, then fixed that and when tried to see this page again offer me download like showed in the pass post. Before take this picture i tried to see this page again and worked perfectly.

:?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

So is it fixed now? If it is not, post some of the code around the area that is throwing the error messages.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

for example now i want search some in phpbb official forum site and when i do click en submit firefox open the download´s windows offering download the file "search.php" :?

http://www.phpbb.com/phpBB/search.php
Post Reply