I’ve updated gPHPEdit
Since the author doesn’t seem to respond to forum posts — even his own where he asked for suggestions — or emails, I decided to sit down and update gPHPEdit myself.
My updates include a full function rip from PHP 5.2.0’s manual. It has every single function from the manual, as well as a script to extract the function list from the plain text PHP manual. There’s also an update to add an “Execute” command in addition to check syntax. This makes it useful for developing CLI, or especially GTK applications with PHP.
The main limitation is that I don’t really know C, especially Gnome API, well enough to get auto-saving to work. The program’s existing save function is asynchronous, which means it’s no good for when you want to save before executing the script. I couldn’t pull off using the Gnome API’s synchronous save.
If someone wants to fill in the blank, I’d welcome any help. I’ve supplied a DIFF patch of my changes, and instructions on applying it are in the readme file.
The ideal way to pull it off would be if the file is not saved, save a temporary file to the actual file’s path rather than the temp folder — this will prevent include() links from breaking. The breaking of links is why I chose not to utilize the temp file save routine the syntax checker relies on.
For now, it just prompts you that you must save first if you try to execute without saving. Maybe you can help make the above suggestion a reality.
You can download my patch here. I don’t really have a section on the Web site for this to fit yet. When I do, I’ll add it there too. For now, get it at this post.
Edit: Just a note. I wrote this for myself, so it’s hard coded to use xfce4-terminal as the shell. If you don’t use xfce4-terminal, you will want to change the “xfce4-terminal -H -x” line to whatever suits you.












No comments
Jump to comment form | comments rss