executing PHP command line -> error msgs, what now? Help!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

executing PHP command line -> error msgs, what now? Help!

Postby xampp24 » 28. August 2006 13:15

Hi,

i have installed the XAMPP package on my WinXP machine. Everything works fine.

The problem is - i want to execute PHP scripts via command line (in this case, a cron job).

When i start the PHP interpreter at
\xampp\php\
i get the following error message:

popup window:
"unable to load component - The application has failed to start because php4ts.dll was not found."

and in the dos command window i read:

"unable to load dynamic library libpdf_php.dll - the speficied module could not be found"

How can i solve this problem?

Thx a lot!
xampp24
 
Posts: 1
Joined: 28. August 2006 12:45

Postby rwolverine » 31. August 2006 20:06

I am also interested in this, Any tips anyone?
rwolverine
 
Posts: 1
Joined: 31. August 2006 18:11

Postby Izzy » 01. September 2006 00:32

rwolverine wrote:I am also interested in this, Any tips anyone?


Does this give you any clues? This is php.exe for version 5.
Code: Select all
C:\xampp\php>php.exe --help
Usage: php [options] [-f] <file> [--] [args...]
       php [options] -r <code> [--] [args...]
       php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
       php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
       php [options] -- [args...]
       php [options] -a

  -a               Run interactively
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -r <code>        Run PHP <code> without using script tags <?..?>
  -B <begin_code>  Run PHP <begin_code> before processing input lines
  -R <code>        Run PHP <code> for every input line
  -F <file>        Parse and execute <file> for every input line
  -E <end_code>    Run PHP <end_code> after processing all input lines
  -H               Hide any passed arguments from external tools.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

  args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin


C:\xampp\php>

xampp/php/php4/php.exe won't work (gives errors/warnings) until you change from the default php5 to php4 using xampp/php-switch.bat
HTH
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 92 guests