LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 01-13-2013, 01:52 PM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 115

Rep: Reputation: Disabled
Firefox start problem with php files


I am having a problem starting firefox when I click on an index.php file.
The tab at the top keeps repeating itself and will not stop. Repeating blank screens are shown.

Anyone, have an idea what is wrong and how to fix it.
 
Old 01-14-2013, 02:47 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
Is it a public website? Try with javascript switched off.
 
Old 01-14-2013, 10:15 AM   #3
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,957

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
If you left-click on a php file, I would expect it to open and show the text/script. If you right-click and select open with firefox, it should show the page. Not sure what you are trying to do? One would usually open the web browser (firefox) first and then go to the php file.
 
1 members found this post helpful.
Old 01-14-2013, 11:24 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by yancek View Post
One would usually open the web browser (firefox) first and then go to the php file.
PHP will be excuted within the web server or if you have installed the php cli. But if it opens a tab and tries to load and reload something then there is probably some javascript code in it. PHP does not open browser tabs or automatically reloads.
 
1 members found this post helpful.
Old 01-14-2013, 12:20 PM   #5
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 115

Original Poster
Rep: Reputation: Disabled
clicking on php file

Quote:
Originally Posted by yancek View Post
If you left-click on a php file, I would expect it to open and show the text/script. If you right-click and select open with firefox, it should show the page. Not sure what you are trying to do? One would usually open the web browser (firefox) first and then go to the php file.
I am clicking onthe index.php file in dolphin such files should be opened with firefox. Guess it is not a common problem. I can only make it open with localhost/phpBB3/index.php
if I try to open with the path /srv/www/htdocs/phpBB3/index.php it motor boats again.
Can't figure out what is the problem.
 
Old 01-14-2013, 03:21 PM   #6
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
You can open /srv/www/htdocs/phpBB3/index.php with a text editor as php is a script. If you open that with firefox it should display the text in the file or offer you to download a text file, not the web site represented by that.

Javascript instead is working in the browser. So if there is a redirect in the index.php by javascript this will try to lead you somewhere else but it can't as you are not calling it from the server but in "text mode"

So have you tried to open it with disabled javascript?
 
Old 01-14-2013, 06:02 PM   #7
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,957

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
Quote:
I am clicking onthe index.php file in dolphin such files should be opened with firefox
No, that is not expected behavior. When you do that in dolphin, you should see it open and show your code.

Quote:
I can only make it open with localhost/phpBB3/index.php
That's the way it should work.

Quote:
if I try to open with the path /srv/www/htdocs/phpBB3/index.php
If you prefix that with firefox, it will open the way I presume you want.

I don't know what the problem is with the repeating tab and blank screen but have you tried disabling javascript?
 
Old 01-15-2013, 07:41 AM   #8
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 115

Original Poster
Rep: Reputation: Disabled
disabling javascript

If you prefix that with firefox, it will open the way I presume you want.

I don't know what the problem is with the repeating tab and blank screen but have you tried disabling javascript?[/QUOTE]

No, how do I disable javascipt?
 
Old 01-15-2013, 09:16 AM   #9
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
in the browser, here is a howto for enabling it but you can figure out the contrary I guess
http://enable-javascript.com/
 
Old 01-15-2013, 10:01 AM   #10
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 115

Original Poster
Rep: Reputation: Disabled
disable java

Thanks I will try that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bluefish editor related: to view php files in firefox pahunrepublic Linux - Software 3 11-13-2011 11:44 AM
After moving PHP files to /var/www they no longer are seen as hosted php files scheidel21 Linux - Server 9 03-01-2010 07:16 AM
Firefox does not recognise php files and ask what to do with them eypros Linux - Server 6 08-09-2009 05:06 AM
Firefox <-> library problem: Browser does not start linder Linux - Distributions 4 09-26-2008 11:55 AM
Firefox won't read .php files Lagg Linux - Software 1 05-06-2005 12:40 AM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration