hi all,
problems on rh8 the box was build with the standard php-4.2.2 from the redhat rpms. without the cli. i need the cli so i deleted the rpm ( rpm -e php...) install and build php-4.3.0 from source. now i get from /usr/local/bin/php -v PHP 4.3.0 (cli) (built: Apr 5 2003 06:38:17) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies with the cli included... the problem starts here. i have a php application develped on another machine - freebsd one - that uses cron to run some php scripts. the php on both machines is the same build - same options, same versions, same source - but when i run a simple test script on the rh8 machine i get this: simple test script: #!/usr/local/bin/php -q <? $db = mysql_connect("localhost", "user", "pass"); mysql_select_db("database",$db); $result = mysql_query("SELECT * FROM table",$db); printf("l1: %s\n", mysql_result($result,0,"content")); ?> #################################################### output: # ./LL.php ./LL.php: line 2: ?: No such file or directory ./LL.php: line 3: syntax error near unexpected token `(' ../LL.php: line 3: ` $db = mysql_connect("localhost", "user", "pass");' ok. so i got the most recent source from php.net php-4.3.3 and rebuld php. now from phpinfo() i get that the version is 4.3.3 but from /usr/local/bin/php -v i still get 4.3.0 and the scripts are still not working.... i realize that the /usr/local/php is a shell script that passes the php script through sed and then on to the system - why would i get file not found on the RH8 machine.. it's very important for me to solve this by tonight.... thanks...