السلام عليكم
لدي مشكلة في كود php يقوم بعمل صورة من ارقام - تستخدم عند تسجيل عضو جديد في الموقع لل Spam
ولاكن المشكلة ان الصورة لا تظهر على الموقع ولا يظهر اي خلل فهل من مساعد؟؟
هذا هو الكود
كود:function MakeImage($rand) { $width = 100; $height = 25; $image = imagecreate($width, $height); $bgColor = imagecolorallocate ($image, 255, 255, 255); $textColor = imagecolorallocate ($image, 255, 0, 0); // Add Random noise for ($i = 0; $i < 10; $i++) { $rx1 = rand(0,$width); $rx2 = rand(0,$width); $ry1 = rand(0,$height); $ry2 = rand(0,$height); $rcVal = rand(0,255); $rc1 = imagecolorallocate($image, rand(0,255), rand(0,255), rand(100,255)); imageline ($image, $rx1, $ry1, $rx2, $ry2, $rc1); } // $font = imageloadfont('http://localhost/image/test.fon'); imagestring($image, 5, 30, 10, $rand, $textColor); @header('(anti-spam-content-type:) image/png'); //applications/member/s.png imagepng($image,"images/s.png"); imagedestroy($image); }
وهكذا يطلب الدالة
كود:MakeImage(rand(10000000,99999999);
أهل من مجيب؟؟
وشكرا


رد مع اقتباس
