Hello:
I have a need to run a PHP script on a Windows machine from the command line. The script runs silently, and has no output at all, but is retrieving data from a MySQL database, reading data in from flat files, building a URL and calling the URL with the header("Location: $url"); function.
Variables must be passed in the $url, so it looks like this: http://www.somehost.com/dir/page.php?var1=$var1&var2=$var2&var3=$var3
I had a feeling that the header function wasn't working properly, so I created a simple script on the remote server to create a small text file if it gets called.
I can run the script on the server (Unix), from the command line, and it works just fine, but calling it remotely from a client to host in a DOS window is not working with the header() function.
What's strange about this, is that is has worked in the past, and all of a sudden, has stopped functioning. So, does anyone have any ideas what I need to do to be able to call a php script from the command line in Windows, that in turn, calls a php script on a remote host to perform some other actions?
Thanks,
David