Need help with error-Interface 'SeekableIterator' not found
Moderator: General Moderators
Need help with error-Interface 'SeekableIterator' not found
I have been working locally on incorporating this class below for quite sometime...
http://blog.kungf.eu/archived/colour-gradient-php-class
Works beautifully locally with xampp..php ver5
I upload it all to my server and I keep getting an error Fatal error: Interface 'SeekableIterator' not found in gradient.class.php
I have looked at my servers php.ini but I cant see any difference in compared to my local one...maybe I am over looking something...but is there any thing that maybe has to be enabled that I might not have on my server...I am clueless...
http://blog.kungf.eu/archived/colour-gradient-php-class
Works beautifully locally with xampp..php ver5
I upload it all to my server and I keep getting an error Fatal error: Interface 'SeekableIterator' not found in gradient.class.php
I have looked at my servers php.ini but I cant see any difference in compared to my local one...maybe I am over looking something...but is there any thing that maybe has to be enabled that I might not have on my server...I am clueless...
Re: Need help with error-Interface 'SeekableIterator' not found
You running PHP 4 on that server?
Re: Need help with error-Interface 'SeekableIterator' not found
nope running 5...Have no idea what the problem is
Re: Need help with error-Interface 'SeekableIterator' not found
What version? 5.0.x?
Re: Need help with error-Interface 'SeekableIterator' not found
PHP Version 5.2.6
Re: Need help with error-Interface 'SeekableIterator' not found
I suppose that the SPL could be disabled.
On that server, what does
(to be run on the command line/terminal) produce?
On that server, what does
Code: Select all
php --re splRe: Need help with error-Interface 'SeekableIterator' not found
All I got was instructions on how to use that command...I am on Unix if that matters
Re: Need help with error-Interface 'SeekableIterator' not found
Okay, kinda vague. What instructions?
Re: Need help with error-Interface 'SeekableIterator' not found
[---- ~]$ php --re spl
Usage: php [options] [-f] <file> [args...]
php [options] -r <code> [args...]
php [options] [-- args...]
-a Run interactively
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>.
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-r <code> Run PHP <code> without using script tags <?..?>
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
args... Arguments passed to script. Use -- args when first argument
starts with - or script is read from stdin
Re: Need help with error-Interface 'SeekableIterator' not found
So you know I checked my local php ver and it is PHP Version 5.2.9 think that the slight difference in ver could be causing that?
Sever ver=PHP Version 5.2.6
Local ver=PHP Version 5.2.9
Sever ver=PHP Version 5.2.6
Local ver=PHP Version 5.2.9
Re: Need help with error-Interface 'SeekableIterator' not found
I don't think so.
How about `php -m`?
How about `php -m`?
Re: Need help with error-Interface 'SeekableIterator' not found
php -m
provided
provided
Code: Select all
ctype mysql openssl overload pcre posix session standard tokenizer xml zlib [Zend Modules] [/quote]
Re: Need help with error-Interface 'SeekableIterator' not found
Wow, that's really, really minimal.
Your PHP was compiled without support for SPL. In fact, without support for a whole lot of things.
Complain to whoever manages the server and tell them that they crippled PHP.
Your PHP was compiled without support for SPL. In fact, without support for a whole lot of things.
Complain to whoever manages the server and tell them that they crippled PHP.
Re: Need help with error-Interface 'SeekableIterator' not found
Is there anything that I can do on my side?
Or is their problem completely?
Or is their problem completely?
Re: Need help with error-Interface 'SeekableIterator' not found
Theirs. You can't do anything with something if there's nothing.
Along with SPL I'd suggest bcmath, calendar, date, dom, filter, ftp, hash, iconv, json, reflection, simplexml, and sockets.
It looks like somebody tried to "lockdown" or "secure" the PHP installation. Problems is, PHP is a lot like Java: it's so powerful because there are so many extensions. Take away those extensions and you're left with a lot that you can't do.
Along with SPL I'd suggest bcmath, calendar, date, dom, filter, ftp, hash, iconv, json, reflection, simplexml, and sockets.
It looks like somebody tried to "lockdown" or "secure" the PHP installation. Problems is, PHP is a lot like Java: it's so powerful because there are so many extensions. Take away those extensions and you're left with a lot that you can't do.