Click to See Complete Forum and Search --> : Problem in command line mode....


theex
06-03-2003, 12:25 PM
Hello,

I have a problem running php in command line mode (CGI version).
I have a simple batch file like the following one :

Echo "START"
C:\PHP\php.exe -f d:\a.php
Echo "END"

And this is the php source.

<?
echo "I CAMPIONI DELL'EUROPA SIAMO NOI";
exit(0);
?>

If I run shell file a.bat, it prints only "START", and the scripts doesn't seem to go on.
If I delete the line where I run php file the batch file ends without problem, if I try to parse php file directly from the command line without using batch file, it doesn't end.

Where is the problem ?
Thanks in advance

Daniele

jerdo
06-04-2003, 12:23 PM
Try this:

<?php
echo "I CAMPIONI DELL'EUROPA SIAMO NOI";
?>

With the php right after the <?, if you haven't set to use short tags in your php.ini <? doesn't work.