Improvement for opening files from commandline |
|
I totally support this feature request.
We use a tool to generate translation tables for different languages. Sometimes it is important to jump to the excact line in the PHP-source file. Our tool lets us start PHPEd with the PHP-file opened, but there is no way to set a line-number in the command line to start PHPEd. > Examples/Suggestions
Also it would be nice, if PHPEd would only open a file once. |
||||||||||||||
_________________ GK |
Site Admin
|
Tharit, does it mean that you're using shell verbs or something like that in your front-end application?
it is supposed to work as you requested. If it doesn't, please create a testcase and submit to support.
I'll check, but first I need to make sure I got it right how you run phped and make it loading the files. |
||||||||||||||||
_________________ The PHP IDE team |
Veteran
|
May I ask what the URL looks like for opening up a file from a webpage? We're looking at doing something like this (except in our scenario we're hoping to show all the templates involved in a page at the footer of the page).
|
||||||||||||
|
Site Admin
|
web server itself is not supposed to do this. You need either FTP, or SFTP, or WEBDAV services running on your server. |
||||||||||||||
_________________ The PHP IDE team |
Bringing light to the dark ;-) |
|
Hi there,
I'm a work mate of Tharit that created that click-in-website-open-in-PHPEd script. It's in no way perfect but works. Since our portal consists mostly of small controller-template parts rendered hierarchically into bigger templates it's only logical you want to know which class/template file is responsible for each these parts. So starting pages with a debug parameter, each 'box' in this page will be rendered clickable and in the upcoming popup there's the php-link to open the corresponding file in PHPEd or the editor of your choice. Example just for Windows Systems: create whatever.reg and fill it with something like: --------------------------------------------------------------------------- REGEDIT4 [HKEY_CLASSES_ROOT\phped_protocol] @="URL:phpedProtocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\phped_protocol\shell] [HKEY_CLASSES_ROOT\phped_protocol\shell\open] [HKEY_CLASSES_ROOT\phped_protocol\shell\open\command] @="\"C:\\phped_protocol.bat\" \"%1\"" --------------------------------------------------------------------------- Instead of phped_protocol.bat you can use any other scripts. Now you are able to push anything to the script using phped_protocol://anyParameterYouWantTo in your favorite browser. We are using this to call PHPEd per CLI like C:\Programme\nusphere\phped\phped.exe %modifiedFilename% If you do this twice, PHPEd opens the file in 2 different tabs. ------ 2----------- When you encounter an error in the page, it would be perfect to jump to the 'Notice/Warning: ... in file XXX ... on line 1567 ... ' directly. That's why something like /path/to/nusphere/phped.binary /own/path/prefix/XXX@1567 would be so cool for us. Thanks in advance for your help We're all loving your piece of software, guys, by the way, very well done! Stefan |
||||||||||||
|
|
what is the "jump to line number" phped commandline parameter? "phped -l305 filename.php" and phped "filename.php:305" does not working. |
||||||||||||||||
|
|
phped.exe "file.php" --line=30
|
||||||||||||
|
Improvement for opening files from commandline |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by