Hi frikikip, I can run the script by removing the first line '#!/usr/bin/php -q'
Sorry to say that i'm not very familiar with linux system, one question, without the first line, this script is still consider as shell script?
Now i use two files to execute my script, one is the php script file and the other one is the script to call "php -q yourfilename.php".
Its fine for me...i think is the php configuration problem..i'm not the server admin, so i cant do anything on it.. thanks to all for the help...THANKS!!