shell - Windows equivalent to #!/usr/bin/php -
i trying execute php file sos-berlin jobscheduler. os windows 7. following documentation
http://www.sos-berlin.com/mediawiki/index.php/how_to_execute_a_php_script_with_js
#!/usr/bin/php <?php echo "hello"; ?> but when executed script getting error
'#!' not recognized internal or external command, operable program or batch file. i came understand #!/usr/bin/php linux command. should give here equivalent batch command. googled, didn't find useful result. please 1 me...
thanks in advance.
- go desktop.
- right click computer shortcut in desktop.
- click properties.
- you should see section of control panel - control panel\system , security\system.
- click advanced system settings on left menu.
- click enviornment variables towards bottom of window.
- select path in user variables list.
- append php path (c:\myfolder\php) path variable, separated existing string semi colon.
- click ok
- open "cmd"
- type path, press enter
- make sure see php folder among list.
that should work.
Comments
Post a Comment