Page 1 of 2

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

Posted: Mon Oct 30, 2006 9:14 am
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

Posted: Mon Oct 30, 2006 9:18 am
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?

Posted: Mon Oct 30, 2006 9:21 am
by Luke
:? Huh? Image

Posted: Mon Oct 30, 2006 9:54 am
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.

Posted: Mon Oct 30, 2006 3:09 pm
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

:?:

Posted: Mon Oct 30, 2006 3:25 pm
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.

Posted: Mon Oct 30, 2006 4:02 pm
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:

Posted: Mon Oct 30, 2006 6:32 pm
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?

Posted: Tue Oct 31, 2006 8:01 am
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

Posted: Tue Oct 31, 2006 12:08 pm
by RobertGonzalez
The browser shouldn't do anything to the file. It is in the server, and shouldn't require a header.

Posted: Thu Nov 02, 2006 6:58 pm
by visonardo
Image


8O 8O 8O

Posted: Thu Nov 02, 2006 7:14 pm
by RobertGonzalez
Fix the errors the page is talking about and I bet that download bit goes away.

Posted: Thu Nov 02, 2006 9:18 pm
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.

:?

Posted: Fri Nov 03, 2006 10:11 am
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.

Posted: Sat Nov 18, 2006 3:36 pm
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