NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PHP Manual function search


Joined: 03 Jun 2008
Posts: 76
Location: Bavaria, Germany
Reply with quote
i wanted to lookup a function on php.net directly from within PhpED so i could read the comments too.
So i came up with this...check it out:

Code:

<?php
    /* $Id$ */

    $fctname = rtrim(file_get_contents('php://stdin'));
    exec('E:\www\Mozill~1\firefox.exe http://de3.php.net/manual-lookup.php?pattern='.$fctname);
?>


here are my settings:



as you can see, you just have to place the cursor on a php function in your code and then run the script. It will open up Firefox, start php.net and searches for the marked function.

it´s pretty simple, but hopefully someone can use it...


PS. Of course you have to change the path for FF to fit your needs. Or you can use IE if you want.
PPS. You might want to change URL too, cause this one goes to a german mirror.


greets
View user's profileFind all posts by bitseekerSend private message
tried....


Joined: 02 Sep 2008
Posts: 24
Reply with quote
Hi there, I created the script and entered the settings, but can only find the script if I go to the scripts menu, if I execute the script, firefox doesnt seem to do anything... are there any settings I missed?
View user's profileFind all posts by fireSend private message


Joined: 03 Jun 2008
Posts: 76
Location: Bavaria, Germany
Reply with quote
I just checked the script with newest PhpED build and it works fine. Did you change the path according to your settings?
Once in php script
Code:
E:\www\Mozill~1\firefox.exe
(note the DOS Syntax for path longer that 8 characters with ~)

and once in command line parameter.

Quote:
but can only find the script if I go to the scripts menu

Unfortunatly PhpED doesn´t support Shortcuts for integration scripts (as far as i know), so you have to use either the Tools menu or the tab menu (right click).

hth
View user's profileFind all posts by bitseekerSend private message


Joined: 27 Apr 2007
Posts: 72
Reply with quote
Quote:
but can only find the script if I go to the scripts menu
Unfortunatly PhpED doesn´t support Shortcuts for integration scripts (as far as i know), so you have to use either the Tools menu or the tab menu (right click).


It does support it. See first line integration settings window - item setting.


Last edited by sirjarda on Tue Aug 25, 2009 6:56 pm; edited 1 time in total
View user's profileFind all posts by sirjardaSend private message


Joined: 03 Jun 2008
Posts: 76
Location: Bavaria, Germany
Reply with quote
ups, totally missed this! thx sirjarda

...used Strg+H as keyboard shortcut
View user's profileFind all posts by bitseekerSend private message
PHP Manual function search
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic