LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Bluefish editor related: to view php files in firefox (https://www.linuxquestions.org/questions/linux-software-2/bluefish-editor-related-to-view-php-files-in-firefox-913257/)

pahunrepublic 11-12-2011 10:13 PM

Bluefish editor related: to view php files in firefox
 
Hi everyone?
I'm using bluefish editor. I'd like to run my coded php files in browser (firefox). I mean
-I open *.php file in bluefish editor.
-I press 'view in browser button' .
-I am able to render php file in browser run in localhost.

I use Ubuntu 11.10, I have LAMP installed, My php files are in /home/janos/workspace.
I already found out that I have to enter an external command in Bluefish for the browser or something like that. Preferences > Edit preferences # External commands # Firefox.
What command should I put there? Anyone any idea? Or if that's not the way to view php files than HOW?

Thanx in advance

RockDoctor 11-13-2011 08:01 AM

In order to enable interpreting of the php files by your browser, they need to be located in the DocumentRoot. On my home webserver (Fedora 10), that location is /var/www.html. I've set the group ownership of that directory to my normal, non-root user, and have a symlink in my home directory to /var/www/html.

pahunrepublic 11-13-2011 09:45 AM

Quote:

Originally Posted by RockDoctor (Post 4522834)
In order to enable interpreting of the php files by your browser, they need to be located in the DocumentRoot. On my home webserver (Fedora 10), that location is /var/www.html. I've set the group ownership of that directory to my normal, non-root user, and have a symlink in my home directory to /var/www/html.

I changed the document root to what is above. There is an option that you can change the document root directory, editing some configuration Apache file in etc/apache2/sites-enabled/ (ubuntu 11). From that time on you can put and run all your *.php files from that directory.But what is the command line that I should put in Bluefish > Prefrences? any idea?

RockDoctor 11-13-2011 11:44 AM

Haven't used Bluefish in a few years now (haven't had any web pages to create), but I believe the only thing you have to tell Bluefish is the command to load your preferred browser; something like firefox or firefox %s


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