LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-19-2008, 05:26 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
can't view the .php web pages


When I download some web pages they get saved as .php web pages.
But after going offline I am unable to view these. I rt click and say view with firefox, but it says:
you have chosen to open index.php which is a php script
what should firefox do with this file
open wih firefox
save to disk

If I say open then it opens the same window again.

Obviously the php support needs to be there. I found out php and php module both are installed in my laptop.
What should I do to enable viewing of these pages ?
thanks in advance
nishith
 
Old 04-19-2008, 08:32 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
How did you save them?

File->save page as ?

Rename the .php file to .html and see if it works
 
Old 04-19-2008, 03:24 PM   #3
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
*.php VS *.html

Firefox is supposed to display html and xml files, but not script files. Based on the filename extension *.php files are not what Firefox does support.

It would be nice if Firefox would check if a local php file maybe had html contents, or maybe html contents with embedded php code, but I guess this would also have some unwanted side effects.

Right now you have to change the extension from *.php to *.html.

Dillo does open *.php files immediately - if it's a real PHP script, then it is displayed as a text file.

KDE Programs Naming Convention

Last edited by marquardl; 05-01-2008 at 04:00 AM.
 
Old 04-19-2008, 09:18 PM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
for me , when I click on save page as on a .php file, firefox automatically makes it into index.php.htm ...
 
Old 04-20-2008, 06:46 AM   #5
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Quote:
Rename the .php file to .html and see if it works
and
Quote:
Right now you have to change the extension from *.php to *.html.
I figured that out later...but thought there would be some other way !

Quote:
for me , when I click on save page as on a .php file, firefox automatically makes it into index.php.htm ...
did you do any extra settings for that ?
It is not so in my case !

nishith
 
Old 04-20-2008, 02:39 PM   #6
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
umm no . did you try on some other sites, like , save this page itself?
 
Old 04-21-2008, 05:00 AM   #7
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Quote:
saving this page itself
well it got saved as .html file.
I can't open any link from firefox if the link points to a .asp page.
It opens a dialog asking what application should it use to open the link....or should it just save it to disk ???!?!
I think there is something I haven't done right
any help would be welcome

nishith
 
Old 04-21-2008, 06:03 AM   #8
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
are you sure ... did you try out some actual working asp page ? like orkut.com etc. ?
 
Old 04-23-2008, 12:57 AM   #9
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
absoulutely sure.
I go to a demat account which has various links. When I hover over the link it says it will open a .asp page.
But clicking on it just opens a file open dialog box in my laptop which has fedora.

any hints on fixing this ?
nishith
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to view html source of web pages sonrisaben Linux - Newbie 4 08-29-2006 07:43 PM
How can I view php pages in Konqueror? yoshitec Mandriva 2 09-11-2004 12:03 PM
can't view php pages allan_y Linux - Software 2 07-23-2004 11:48 PM
[PHP] How do I view PHP pages?? vbp6us Linux - General 4 04-16-2003 06:29 PM
View Apache web pages r4merlin Linux - Newbie 10 02-17-2003 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration