I modified the PATHEXT environment variable in Windows XP, from the " 'system' control panel applet->'Advanced' tab->'Environment Variables' button-> 'System variables' text area". I did the same with the file extension .php3 (I will use php3 exclusivelly for command line php scripts, I'm doing this because my text editor VIM 6.3 already has the correct syntax highlighting for .php3 files ). One of the things I like about perl and vbscripts, is the fact that I can name a file e.g. '' and just have to type 'test, without the .pl extension' on the windows command line and the command processor knows that it is a perl file and executes it using the perl command interpreter. NB: If you're editing your php files on multiple platforms (i.e. Windows and Linux), make sure you double check the files are saved in a Unix format. Using, say, WordPad on Windows. and BBEdit on the Mac.Īaahhh. in BBEdit check how the file is being saved! Mac? Unix? or Dos? Bingo.
#Watch om shanti om online 1080p mac#
So why dudn't it work? Well, like I said. on a Mac. but I also occasionally edit the files on my Windows portable (i.e. when I'm travelling and don't have my trusty Mac available). rwxr-xr-x 1 tim staff 242 Feb 24 17:23 test.phpĪnd you did, of course, remember to add the php command as the first line of your script, yeah? Of course. Was file access mode set for executable? Yup. However, it worked just fine when php was envoked on the command line: Running on MacOS (although this could happen on any *nix I suppose), I was unable to get the script to execute without specifically envoking php from the command line:
This posting is not a php-only problem, but hopefully will save someone a few hours of headaches.