Hey People, Im trying to install php on a server that ive recentally been asked to do some things with.
Its a redhat 8.0 box, ive tried intalling php via the rpms which works with apache fine. But when im tryin to use php on the command line (wanting to write some scripts) a simple script like this ==================== #!/usr/bin/php <?php echo " test "; ?> ==================== outputs this ==================== Content-type: text/html X-Powered-By: PHP/4.3.9 ==================== For some weird reason its not outputting anything, even do i try to use the print command in php. I cant figure out why its doing this, so i tried to install php via souces but i am now getting the following error ======================= In file included from /root/php-4.3.9/Zend/zend_execute_globals.h:27, from /root/php-4.3.9/Zend/zend_globals.h:34, from /root/php-4.3.9/Zend/zend_list.h:25, from /root/php-4.3.9/Zend/zend_API.h:26, from /root/php-4.3.9/main/php.h:38, from /root/php-4.3.9/ext/ctype/ctype.c:23: /root/php-4.3.9/Zend/zend_operators.h: In function `is_numeric_string': /root/php-4.3.9/Zend/zend_operators.h:78: `ERANGE' undeclared (first use in this function) /root/php-4.3.9/Zend/zend_operators.h:78: (Each undeclared identifier is reported only once /root/php-4.3.9/Zend/zend_operators.h:78: for each function it appears in.) make: *** [ext/ctype/ctype.lo] Error 1 ======================== Ive searched high and low on the internet for this error but nothing :(, ive even asked in #php channels but no one seems to know what it is.. Hopefully someone here can shead some light on this error Thanks Guys and Gals Steve