Moderator: moderators
dazbobaby wrote:Sadly my provider doesn't support curl. (something to do with security)
Any volunteers to host my sig for me please?
Or any free hosts that support the requirements for the sig?
SparkyRih wrote:dazbobaby wrote:Sadly my provider doesn't support curl. (something to do with security)
Any volunteers to host my sig for me please?
Or any free hosts that support the requirements for the sig?
Built your own server at home like me no restrictions at all!
//If the user is playing a music file...
playing:
$imageList = array("music1.png","music2.png","music3.png","music4.png");
$image = imagecreatefrompng($imageList[rand(1,count($imageList))-1]);
//$image = imagecreatefrompng("itunes_sig.png");
//Get the cover art
//Timestamp
//Different Timezones supported: http://phptutorial.info/?timezones
date_default_timezone_set('Europe/London');
$time = "My local time: ".date("l: M: H:i");
//If user is offline, or the last file has finished playing...
nothing:
$image = imagecreatefrompng("original.png");
$color = imagecolorallocate($image, 255, 255, 255);
$font = getcwd()."/Capture it.ttf";
$fontSize = 14;
//text location
$x = 5;
$y = 25;
$fontRotation = 0;
$str = "Your IP Address is $_SERVER[REMOTE_ADDR]";
//$str = "Your browser is $_SERVER[HTTP_USER_AGENT]";
imagettftext($image, $fontSize, $fontRotation, $x, $y, $color, $font, $str);
//Time location
imagettftext($image, 14, 0, 5, 195, imagecolorallocate($image, 255, 255, 255), getcwd()."/Capture it.ttf", $time);
header("Content-type: image/png");
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Fri, 19 Jan 1994 05:00:00 GMT");
header("Pragma: no-cache");
imagepng($image);
imagedestroy($image);
exit();
Return to Mods, Apps and Clients
Users browsing this forum: No registered users and 2 guests