12-06-2008, 01:41 PM
|
#24 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
Quote:
Originally Posted by ciprianmp
That error came up on a php 4.3.11 server. Afterwards, I saw that server doesn't accept remote access for file(), file_exists(), is_file() or filesize() functions (allow_url_fopen is "On" though)
It had sometihng to do with the format of the class call:
PHP Code:
$pAvatar = new TalkPHP_Gravatar();
echo $pAvatar -> setEmail('example@example.com')
-> setSize(80)
-> setRating(GRAVATAR_RATING_PG)
-> getAvatar();
threw the error on that server, while there is no error anymore after changing it to:
PHP Code:
$pAvatar = new TalkPHP_Gravatar();
$pAvatar->setEmail('example@example.com');
$pAvatar->setSize(80);
$pAvatar->setRating(GRAVATARS_RATING_PG);
echo $pAvatar->getAvatar();
As you can see, it works fine now on Latest Developing version - phpMyChat-Plus (4.3.11 server)
PS: does anyone know what could be the disabled setting which makes file, file_exists, filesize and is_file not to work with remote files? They work just fine with local files though...
|
After thinking it over again I remember why the error comes up, it was because PHP4 didn't support method chaining.
Quote:
Originally Posted by Wildhoney
I made some minor changes to this script as it's so popular. Could you please report any bugs in this thread. Thank you!
|
Good stuff Adam :)
__________________
|
|
|