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.

  1. go desktop.
  2. right click computer shortcut in desktop.
  3. click properties.
  4. you should see section of control panel - control panel\system , security\system.
  5. click advanced system settings on left menu.
  6. click enviornment variables towards bottom of window.
  7. select path in user variables list.
  8. append php path (c:\myfolder\php) path variable, separated existing string semi colon.
  9. click ok
  10. open "cmd"
  11. type path, press enter
  12. make sure see php folder among list.

that should work.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -