thepip3r Posted February 12, 2007 Share Posted February 12, 2007 I'm developing some simple web tools on my site that I'm just in the process of standing up. My development server is Windows Server 2003 running PHP 5.0.? and all of my tools work great so far. I uploaded them to my webserver and some of my stuff is messed up; my banner is all skewed somehow, blah, blah, etc. The thing that perplexed me the most is on my number system converter. On my dev server, it works great. when you try to input any number into either field on my web server, it gives back the error in the title. it doesn't make sense to me because i get those errors when when i forget to include my predefined functions file but str_split() is a PHP inherent function and i checked the manual and it says nothing about having any dependencies and has been supported for some time (since like PHP 3. something i think). I also checked my php.ini file on my dev server to see if i had some special string extension loaded that might give me some extra availability but no: this is the enabled extensions portion of my php.ini: ;extension=php_mbstring.dll ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_dba.dll ;extension=php_dbase.dll ;extension=php_exif.dll ;extension=php_fdf.dll ;extension=php_filepro.dll extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_ifx.dll ;extension=php_imap.dll ;extension=php_interbase.dll extension=php_ldap.dll ;extension=php_mcrypt.dll ;extension=php_mhash.dll ;extension=php_mime_magic.dll ;extension=php_ming.dll ;extension=php_mssql.dll ;extension=php_msql.dll extension=php_mysql.dll ;extension=php_oci8.dll ;extension=php_openssl.dll ;extension=php_oracle.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_sockets.dll ;extension=php_sqlite.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll ;extension=php_pspell.dll ...as you can see, all i have is mysql, ldap, and gd loaded. Does anyone have any idea as to why i'd be getting an undefined function call to a PHP inherent function if there's nothing to "enable" in PHP?? ** - I am not sure what PHP ver my hosting service is running. Link to comment https://forums.phpfreaks.com/topic/38129-call-to-undefined-function-str_split/ Share on other sites More sharing options...
btherl Posted February 12, 2007 Share Posted February 12, 2007 str_split() was only added in php5. Your host is probably running version 4. You might want to use split() or preg_split() instead. Link to comment https://forums.phpfreaks.com/topic/38129-call-to-undefined-function-str_split/#findComment-182563 Share on other sites More sharing options...
thepip3r Posted February 12, 2007 Author Share Posted February 12, 2007 crap it does say (PHP5) right there at the top of the function. Thanx for the help bth and sorry for the post; i did scour that damn thing and never saw it. Link to comment https://forums.phpfreaks.com/topic/38129-call-to-undefined-function-str_split/#findComment-182567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.