Forum Moderators: coopster

Message Too Old, No Replies

some functions/commands not working in PHP

PHP,commands,version

         

NeilsPHP

11:35 pm on Jul 10, 2008 (gmt 0)

10+ Year Member



I am having a bit of wierd problem may be.
I am getting around well in php but some of commands/functions are not working.

1.getExtension
2.explode
3. @fsockopen
4.<?php echo $_SERVER['REMOTE_ADDR']; ?>

Plz advise if anything to do with php server I am dealing with.

Apache version 1.3.41 (Unix)
PHP version 5.2.5

eelixduppy

11:41 pm on Jul 10, 2008 (gmt 0)



explode should definitely be working.

There is no function getExtension that I know of, so you are going to have to look further into that. Could it be a user-defined function?

fsockopen should definitely be working

$_SERVER['REMOTE_ADDR'] should exist, too.

There is one exception, though, and that is if these specific functions are disabled in your php.ini file, which is possible (for fsockopen, maybe, not likely for explode). Are you getting any errors when you try to use these functions?

NeilsPHP

12:07 am on Jul 11, 2008 (gmt 0)

10+ Year Member



no errors,just page would not display anything..like the command does not exist.. i even tried get_extension_func but did not work either...i infact got this command from this forum somewhere but when i checked php documentation,did not find it..so tried other one..but no luck

NeilsPHP

12:14 am on Jul 11, 2008 (gmt 0)

10+ Year Member



you are infact right,getExtension was a local function..i got it working now..thanks for clue..but still no luck on others ..any idea ?

eelixduppy

12:15 am on Jul 11, 2008 (gmt 0)



>> not display anything

Sounds like a fatal error somewhere. Are you checking your error logs? Something in this script isn't working correctly.