How to preview my php file with firefox in bluefish? - php

I have installed bluefish-2.2.7 in win7,my firefox is installed "C:\Program Files (x86)\Mozilla Firefox\firefox.exe".
I think that my firefox command was set properly.
When to click the button "preview in browser" ,it ran across the message.

I'd think you'll need a web server to view PhP files in your browser, you can easily install a local webserver like WAMP if you're unsing Windows

go to edit > preferences > output parser
create a new one call it whatever you want make sure to write in the command section the following.
php '%f' && firefox 'localhost/%n'
you can watch my video on youtube
https://www.youtube.com/watch?v=gwtzqtPB9Yw

Related

How to launch PHP on Atom?

While changing file from .html to .php extension it shows me message that there is no PHP interpreter found at php. And it is not about script support it is should launch on the browser. Clicking the "the set PHP" button it shows me the ide-php package. And I see no way how to set the Path.
Atom settings.PHP settings
you cant run php without a server, you need to install XAMPP (in case of windows you could use WAMP or in case of mac you could use MAMP).
you can download XAMPP from the link below:
https://www.apachefriends.org/download.html

netbeans 8 does not refer to the actual PHP file path, when running a PHP file

I have installed php, mysql and nginx properly.
I am able to run the PHP pages from Eclipse, i.e Eclipse opens up chrome, and pages are displayed correctly.
I imported my existing PHP project into Netbeans.
When I try to run any of the php pages, netbeans opens up chrome, but the web address is always the same, and not the real path of the PHP file.
Why netbeans refers to the same location, instead of trying to run the file from its real path? how can I fix it?
Thanks,
Qwerty
I found the solution.
The green "play" button in Netbeans does not run the current file, but runs the PROJECT! This caused eclipse to run the project path instead of the current file location!
Therefore, in order to run the current file click on "Run -> Run File" (Shift +F6), and then it works.
Just make sure that the project path is set properly in "Run->Set Project Configuration -> Customize", and then set the project URL to:
http://localhost/
That`s it!
Thanks,
Qwerty

Local PHP file won't open in Firefox

When I right click my local PHP file and select "open with Firefox" Firefox gets the focus for a second, but then the file opens in Dreamweaver instead. The same happens when I drag the file onto Firefox, or enter the URL ("file:///...") manually, or expressly select Firefox as the default application for PHP files. How can I get Firefox to show the file?
Firefox is not capable of handling PHP files, therefore it delegates their handling to a program that can do so (in your case, this is Dreamweaver).
PHP files should be served by a web server to the client (Firefox), which will display you the rendered content (probably HTML). PHP files are rendered by the PHP interpreter and then they are served using the HTTP protocol to a client as a web resource. So actually, you never open a PHP file with a browser, you just consume the HTTP resource that corresponds to the rendered output of that file.
Firefox can show .html-files. You have to install a webserver (xampp) to interprete .php-files. When xampp is installed, start xampp-control-panel, open your browser and (in case ur file is "test.php" in "c:\xampp\htdocs\test.php") and type http://localhost/test.php.
But first, right-click any php-file->Open with...->choose program, then select Firefox in the list.
You must install a local web server like xamp, wamp or easyphp.
Then you locate your files in that's www directory and see your file in browser with path:
localhost/myphp.php
Have a good time.
I have this solution to open a php on linux :
php -S localhost:8000
and open a firefox and go to the page :
http://localhost:8000/index.php
It works well for me.
The quickest way is to rename localhost/yourfile.php onto localhost/yourfile.html. (Tested on loop's Ubuntu 16.04 LTS)
You should deactivate adblock for localhost (or your domain), it should runs.
ABP icon -> click on deactivate on localhost -> F5

New php user--trying to open .php file in test environment

Using mac OS, installed MAMP. Everything seems to be running fine. Created a PHP file in the htdocs folder, tried to open it with Firefox but won't recognize PHP file. Asks me which program I want to use to open the file, when I choose firefox, blank screen comes up.
Open it by typing in your browser localhost/path/to/your/file.php and MAMP (assuming everything is in fact working) will then parse the file and return the output from the request.
For Mac & MAMP, the path in the address bar should be:
http://localhost:8888/folder_name/your_page_name.php
Also, this will help you configure MAMP appropriately
http://sawmac.com/mamp/
inspite of all bad configuration of mamp,opening file with firefox must show something written over it,so please show code u wrote there as said by Dan and DarkXphenomenon

How to configure FlashDevelop to debug in web browser?

I'm following directions to set up a debugging in FlashDevelop in web browser. I'm getting confused on 'Configure your project' step. It says:
Open the Project properties and change the "Test Movie" option to
"Open Document...". Click on the button which should appear,
and enter bin/index.html (path to html page, relative to project root)
in the prompt.
What is the bin/index.html file? Is it where my SWF is loaded? I currently have a SWF that loads from a PHP page. So I pointed it to my PHP project's index.php page build project. After build I get a generic Windows message that Windows cannot open the file with that extension.
Is it possible for me to debug my SWF from my PHP page which loads it?
I don't have experience directly with what you're talking about, but I guess you have to point to a PHP file which is running in a webserver. Otherwise it can't be interpreted and run.
If you are running locally, you can use xampp, put your things in htdocs, and use localhost url to reference the file: http://localhost/projectname/index.php

Categories