Need help with error-Interface 'SeekableIterator' not found

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

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...
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

You running PHP 4 on that server?
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

nope running 5...Have no idea what the problem is
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

What version? 5.0.x?
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

PHP Version 5.2.6
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

I suppose that the SPL could be disabled.

On that server, what does

Code: Select all

php --re spl
(to be run on the command line/terminal) produce?
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

All I got was instructions on how to use that command...I am on Unix if that matters
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

Okay, kinda vague. What instructions?
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

[---- ~]$ 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
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

I don't think so.

How about `php -m`?
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

php -m
provided

Code: Select all

ctype
mysql
openssl
overload
pcre
posix
session
standard
tokenizer
xml
zlib

[Zend Modules]
[/quote]
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

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.
Sideclef
Forum Newbie
Posts: 10
Joined: Tue Sep 16, 2008 1:38 pm

Re: Need help with error-Interface 'SeekableIterator' not found

Post by Sideclef »

Is there anything that I can do on my side?
Or is their problem completely?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help with error-Interface 'SeekableIterator' not found

Post by requinix »

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.
Post Reply