Jump to content

arlabbafi

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by arlabbafi

  1. what is that ? :-\
  2. hello how can i convert sql server database to mysql ?
  3. <? $s = new SWFShape(); $fp = fopen('php-big.jpg','r'); $jpg = new SWFBitmap($fp); $w = $jpg->getWidth(); $h = $jpg->getHeight(); $f = $s->addFill($jpg); $f->moveTo(-$w/2, -$h/2); $s->setRightFill($f); $s->movePenTo(-$w/2, -$h/2); $s->drawLine($w, 0); $s->drawLine(0, $h); $s->drawLine(-$w, 0); $s->drawLine(0, -$h); $p = new SWFSprite(); $i = $p->add($s); for($step=0; $step<360; $step+=2) { $p->nextFrame(); $i->rotate(-2); } $m = new SWFMovie(); $i = $m->add($p); $i->moveTo(230,120); $m->setRate(100); $m->setDimension($w*1.8, $h*1.; header('Content-type: application/x-shockwave-flash'); $m->output(); ?>
  4. how?
  5. You can use any TrueType Font that includes a Unicode mapping table. Fonts such as Wingdings will not work. <? $im = ImageCreate(600,7150); $white = ImageColorAllocate($im,255,255,255); $black = ImageColorAllocate($im,0,0,0); $dir = opendir('/usr/share/fonts/truetype'); $y=30; while($file = readdir($dir)) { if(substr($file,strrpos($file,'.'))=='.ttf') { ImageString($im,5,5,$y-20,substr($file,0,-4),$black); ImageTTFText($im,30,0,100,$y,$black, substr($file,0,-4),"ABCdéf123"); $y+=40; } } Header('Content-Type: image/png'); ImagePNG($im); ?>
  6. i use this code function LoadImageCURL($save_to) { $ch = curl_init($this->source); $fp = fopen($save_to, "wb"); // set URL and other appropriate options $options = array(CURLOPT_FILE => $fp, CURLOPT_HEADER => 0, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_TIMEOUT => 60); // 1 minute timeout (should be enough) curl_setopt_array($ch, $options); $save = curl_exec($ch); curl_close($ch); fclose($fp); return $save; } appear this error:Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\get_image\class.get.image.php on line 111 Why ???
  7. how can I download whole photos from a website with php
  8. oh yes thanks
  9. hi i want simple examples that show usage xml in php
  10. how can i check that one user how much download from my website?
  11. hello ! how can I build executable file from php ??? with bamcompiler or etc
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.