Firefox and PHP

Discuss the many weaknesses of browser security and ways to mitigate the threat

Firefox and PHP

Post by NeoAtHTS on Fri Apr 02, 2010 10:21 pm
([msg=37659]see Firefox and PHP[/msg])

I'm having problems opening my php files(stored locally) with Firefox 3.6.2.
Whenever I try to open a php file, firefox would just pop up the download dialog.
How do I resolve it? Please help! :!:
Run.
User avatar
NeoAtHTS
Experienced User
Experienced User
 
Posts: 58
Joined: Tue Apr 28, 2009 9:04 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by Goatboy on Fri Apr 02, 2010 10:47 pm
([msg=37660]see Re: Firefox and PHP[/msg])

Starting with the obvious:

Do you have the PHP interpreter installed?
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2807
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by NeoAtHTS on Sat Apr 03, 2010 1:37 am
([msg=37661]see Re: Firefox and PHP[/msg])

Yeah, I do.

Even if I haven't installed it, firefox should be able to display it as plain text right? But it doesn't. :shock:
Run.
User avatar
NeoAtHTS
Experienced User
Experienced User
 
Posts: 58
Joined: Tue Apr 28, 2009 9:04 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by Goatboy on Sat Apr 03, 2010 2:03 am
([msg=37662]see Re: Firefox and PHP[/msg])

Is this with Linux? Do you also have Apache installed? More details, please.
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2807
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by NeoAtHTS on Sat Apr 03, 2010 2:15 am
([msg=37663]see Re: Firefox and PHP[/msg])

It's a Mac. I'm using MAMP.
And I just figured, it works fine when apache is ON, the php files are perfectly parsed and I get the required output.

But when apache is OFF, it doesn't work. Whenever I try opening a PHP file, firefox simply pops up a download dialog. :?
Run.
User avatar
NeoAtHTS
Experienced User
Experienced User
 
Posts: 58
Joined: Tue Apr 28, 2009 9:04 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by Goatboy on Sat Apr 03, 2010 2:41 am
([msg=37664]see Re: Firefox and PHP[/msg])

That would make sense. I'm not too sure on the details, but I believe Apache has a lot to do with how files such as .php and .asp are parsed.
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2807
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by NeoAtHTS on Sat Apr 03, 2010 2:56 am
([msg=37665]see Re: Firefox and PHP[/msg])

That's not it.
I had no problems in opening php files(without apache) with previous versions of firefox, of course you could just see the code, but now I can't. Some bug I guess. :|
Run.
User avatar
NeoAtHTS
Experienced User
Experienced User
 
Posts: 58
Joined: Tue Apr 28, 2009 9:04 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by Goatboy on Sat Apr 03, 2010 3:42 am
([msg=37666]see Re: Firefox and PHP[/msg])

=\

Again, something to mention.

I know Firefox had intermittent problems with .php files. I was trying to register an account on another forum, and it kept trying to download the file. I downgraded to another version and it worked fine. Upgraded to the newest one a few weeks later, and it hasn't happened since.
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2807
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by NeoAtHTS on Sat Apr 03, 2010 5:46 am
([msg=37668]see Re: Firefox and PHP[/msg])

Yes, I get that problem too, but rarely.
And I read somewhere that it happens because of poor design on the server side. :?
Run.
User avatar
NeoAtHTS
Experienced User
Experienced User
 
Posts: 58
Joined: Tue Apr 28, 2009 9:04 pm
Blog: View Blog (0)


Re: Firefox and PHP

Post by insomaniacal on Sat Apr 03, 2010 7:59 am
([msg=37672]see Re: Firefox and PHP[/msg])

That's happened to me on HTS on rare occasion. I'd hit the reply button, and it'd ask me if I'd like to save the posting.php file.

Only happens rarely, and hasn't for a few weeks, but still.
It's not who votes that counts, it's who counts the votes
insomaniacal.blog.com
User avatar
insomaniacal
Addict
Addict
 
Posts: 1210
Joined: Sun May 24, 2009 10:21 am
Blog: View Blog (0)


Next

Return to Web

Who is online

Users browsing this forum: No registered users and 0 guests