nedit - previw html/php in browser
| From: | Andu | Date: | Sat, 19 Jul 2003 22:47:31 +0000 |
| Subject: | nedit - previw html/php in browser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155920@lists.php.net to get a copy of this message | ||
For those using Nedit with php/html here's a macro which will open a browser window and previw your script (Linux):
file = $file_path $file_name
file = replace_in_string(file, "/path_to_your_server_root/htdocs/", "")
in_browser="mozilla -remote 'openURL(localhost/" file " ,new-window)'" " >& /dev/null &"
shell_command(in_browser ,"")
It implies you run Apache/php locally, obviously and you may need to adjust the server root path and/or mozilla location if not standard.
Regards, Andu Novac