...

View Full Version : Browser wanting to download....



SDP2006
09-09-2003, 05:16 PM
Having a problem. In the head of my page, i have a simple line of php code


<?php
include('/includes/include.php');
?>

When I access the page from my computer at home, everything is fine (except for the parse error, which I am working out).

I access it from school, it pops up a download dialog box (see attached image)

Anyone know what the prob is??
The include file just checks for a cookie, and if the cookie is present, it redirects the browser to a different location.

Thanks
BTW, the images colors are not accurate. It saved like that when I saved as gif.

Spookster
09-09-2003, 06:00 PM
PHP is not browser or platform dependent. So whether you visit the page at home or at school or at your friends house makes no difference. Only pure client side code is outputted to the browser.

What file is it trying to download?

SDP2006
09-09-2003, 06:19 PM
That is what is puzzling me. PHP has absolutely nothing to do with the browser. Right after I posted, It quit doing it. Thanks. If I have any further trouble, it will reply to this thread

Thanks

Spookster
09-09-2003, 09:07 PM
Glad I could help. My aura alone usually fixes things.


And I am sure the problems you were having have nothing to do with the fact that you are from SC. :D

SDP2006
09-09-2003, 09:08 PM
:)


<?php

$name = "Spookster";

if ($name == $name)
{
echo "You are a nut!";
}
else
{
echo "Your not so nutty!";
}

?>

mordred
09-09-2003, 09:21 PM
Originally posted by SDP2006
if ($name == $name)


No wonder PHP refused to work properly if the code in your include file looked like this. :D

SCNR, but the self-irony of your post was too tempting...

SDP2006
09-10-2003, 01:57 AM
Mordred,

you're words are too harsh

:p



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum