Help running php scripts locally and/or conversion to executable format
-
I have some xml files that contain quite a lot of data, several hundred, and I would like to be able to extract 3 or 4 named tags from each xml file in a directory. I have a script that can do this but I am a bit confused as to how to execute this. ideally it would be best to have a development environment or other method to convert the script into an exe, but just being able to run the script would be a good start! cheers!
-
I have some xml files that contain quite a lot of data, several hundred, and I would like to be able to extract 3 or 4 named tags from each xml file in a directory. I have a script that can do this but I am a bit confused as to how to execute this. ideally it would be best to have a development environment or other method to convert the script into an exe, but just being able to run the script would be a good start! cheers!
navigate to your local directory and at the prompt.... php script_name.php parameter1 parameter2 parameter3 ...and so on. the parameters are optional. To access the variables is like C, look up "php cli" for more info. This also means your php executable is in the path variable.
Chris J www.redash.org