LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   can't view the .php web pages (https://www.linuxquestions.org/questions/fedora-35/cant-view-the-php-web-pages-636403/)

nkd 04-19-2008 05:26 AM

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

duryodhan 04-19-2008 08:32 AM

How did you save them?

File->save page as ?

Rename the .php file to .html and see if it works

marquardl 04-19-2008 03:24 PM

*.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

duryodhan 04-19-2008 09:18 PM

for me , when I click on save page as on a .php file, firefox automatically makes it into index.php.htm ...

nkd 04-20-2008 06:46 AM

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

duryodhan 04-20-2008 02:39 PM

umm no . did you try on some other sites, like , save this page itself?

nkd 04-21-2008 05:00 AM

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

duryodhan 04-21-2008 06:03 AM

are you sure ... did you try out some actual working asp page ? like orkut.com etc. ?

nkd 04-23-2008 12:57 AM

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


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