I want to run some scripts I downloaded. It says to run from command line. but I cant seem to be able to find where or how to start the php command line.
I have Wampserver 2.0
Apache 2.2.8 PHP 5.2.5 Mysql 5.0.51a
How do I runj a script named: import_data
Edited 1 time(s). Last edit at 04/18/2008 06:07PM by faustjr.
As of PHP 5, a new php-win.exe file is distributed. This is equal to the CLI version, except that php-win doesn't output anything and thus provides no console (no "dos box" appears on the screen). This behavior is similar to php-gtk. You should configure with --enable-cli-win32
but just like it says in the manual nothing happens when i click on it
I am running Wamp on windoiws server 2003 operating system. Wamp has allwas worked great on this computer and I have been testing 2 shopping carts Oscommerce and Megento with no problems
I just cant figure out how to get these command line scripts to work.
When you run a CLI script interactively, you normally go to the DOS box, aka Command Prompt window, and type in for example:
cd \my_script_folder php name_of_my_script.php
This assumes that you have added C:\wamp\bin\php\php5.2.5 to the PATH. It is best to add it to the System path in Control Panel - System - Advanced - Environment Variables - System Variables.
You can also run CLI scripts through the Scheduler. You need to create a user with enough rights who is in the Administrators group, and create a small .cmd script to run the above commands.