View Single Post
Old 01-28-2013, 01:08 AM   PM User | #1
iman
New Coder

 
Join Date: Jan 2013
Posts: 12
Thanks: 10
Thanked 0 Times in 0 Posts
iman is an unknown quantity at this point
Alternative code for Y! status

I've just moved to new server and got this error due to webmaster has disabled this function(because of security reasons):

PHP Code:
Warningfile_get_contents() [function.file-get-contents]:
URL file-access is disabled in the server configuration in /home/public_html/files/ym/status.php on line 3 
Here is the content of status.php:
PHP Code:
<?php
if(!empty($_GET['id']) || !empty($_GET['img']) ) {
$status file_get_contents("http://mail.opi.yahoo.com/online?u=".$_GET['id']."&m=a&t=1");
$file './icon/'.$status.'/'.$_GET['img'].'.gif';
if(
is_file($file)) {
header("Content-type: image/gif");
readfile($file);
}
}
?>
Does any one can help me out to change this function or create new code to do so?

-------
More information:

I put this code into index.html to call status.php

PHP Code:
<a href="ymsgr:sendim?yahooID"><div id="product" style="background:url(ym/status.php?id=yahooID&amp;img=sup1) 0 0 no-repeat;"
I appreciate sharing your knowledge

P.S.
I've attached entire of /ym folder

Last edited by iman; 01-30-2013 at 12:50 AM..
iman is offline   Reply With Quote