johnmark Posted January 24, 2007 Share Posted January 24, 2007 I'm just a Noobie at the whole php thing, well web in general. I've been having a problem with my php script or firefox's security, either or, this is what's been happening. Everything works fine in IE, I tell my friend about the site, and he says that firefox just downloads the php file instead of displaying the page. I am stumped, me being a noob doesn't help at all. I tried searching it but I haven't found this yet, It's most likely something really simple that I'm just to noobie to know about. Thanks for your Help. Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/ Share on other sites More sharing options...
redbullmarky Posted January 24, 2007 Share Posted January 24, 2007 if he's actually getting the PHP file (with the actual code in it as written) then it'll be a server/setup issue, not specifically his browser.occasionally (though extremely rare) it can appear that this is happening, though the actual contents of the original file wont be found in the file itself if opened... Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168427 Share on other sites More sharing options...
johnmark Posted January 24, 2007 Author Share Posted January 24, 2007 Yes, he is getting the actual code. I downloaded firefox and I got the same thing. Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168428 Share on other sites More sharing options...
dgiberson Posted January 24, 2007 Share Posted January 24, 2007 is the extension of the file .php .... depending on the server/browser used, sometimes the code will function properly in another file extension ie. .html Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168431 Share on other sites More sharing options...
craygo Posted January 24, 2007 Share Posted January 24, 2007 post your code for the page. Looks like there may be some header info in the page that is makeing the script plain text.Ray Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168433 Share on other sites More sharing options...
johnmark Posted January 24, 2007 Author Share Posted January 24, 2007 I just started php so this is going to be the worst code you've ever seen.It works with IE[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="keywords" content="Sun City Missions, On The Path, Short-Term Mission, Mission Trip, Mexico, Alaska, Hawaii, Scotland, Spain, Germany, Africa"><title>On The Path</title><link rel="stylesheet" title="default" href="/styles_1_.css" media="all" type="text/css"><script language="javascript" type="text/javascript" src="/script.js"></script></head><body bgcolor="#EEEEEE" text="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"><div align="center"><div id="talb"> [/code] Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168438 Share on other sites More sharing options...
dgiberson Posted January 24, 2007 Share Posted January 24, 2007 I don't see any php code there.... just a javascript includePS. get rid of these lines:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168442 Share on other sites More sharing options...
trq Posted January 24, 2007 Share Posted January 24, 2007 yeah, sorry to say it but that is just plain xhtml, no php there. Don't follow dgiberson's advice, including the doctype is a good habbit to get into.Is there any more to this page? Quote Link to comment https://forums.phpfreaks.com/topic/35572-firefox-downloads-php/#findComment-168474 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.