Browser preview doesn't work with *.php files

Bug #1090908 reported by Szigeti Ádám
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Scratch
Opinion
Wishlist
Unassigned

Bug Description

As the summary says: The browser preview extension can't show me the output of my PHP files - even if the file doesn't contains PHP scripts, just pure HTML and/or JavaScript, and/or CSS. But it works when I rename the file extension to *.html - but in this case, I lose the ability to use PHP scripts in my files (which is pretty important for me).
You should make a localhost support for this extension, it could be awesome - because in this stage, it's pretty and it's good to have, but useless for me.

Related branches

Changed in scratch:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Medium
milestone: none → 1.2
Changed in scratch:
milestone: 2.0 → 2.1
Revision history for this message
swizzle (el-ferreira-deactivatedaccount) wrote :

I agree i miss this feature from PSPad.

Changed in scratch:
milestone: 2.0.1 → 2.1
Changed in scratch:
importance: Medium → Wishlist
Cody Garver (codygarver)
Changed in scratch:
milestone: isis-beta1 → isis-beta2
Cody Garver (codygarver)
Changed in scratch:
milestone: freya-beta2 → 3.0
Damian Czaja (trojan295)
Changed in scratch:
assignee: nobody → Damian Czaja (trojan295)
Revision history for this message
Damian Czaja (trojan295) wrote :

I have a solution, but it needs the php interpreter installed on localhost. It uses the built-it php development server to run php scripts. Don't know, if it's an acceptable solution, but you could try it out and see how it's working. As I said, it needs the php5-cli package.

The sources are in the branch related to this bug.

Damian Czaja (trojan295)
Changed in scratch:
status: Confirmed → In Progress
Revision history for this message
Damian Czaja (trojan295) wrote :

I was trying to add some php interpreter support, but the solution required launching a development server, which is a bigger thing. We can add that *.php files could also be previewed, but making them be interpreted will be hard.

Changed in scratch:
status: In Progress → Opinion
assignee: Damian Czaja (trojan295) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.