NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<!--

<?php
/*

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//EN SON KOYULAN EN ÜSTE ÇIKAR.........
//EN BAŞA KOYULAN EN ALTTA KALIR.......
imagefilledarc($resim,250,250,500,500,70,110,$renk1,IMG_ARC_PIE);
90 180 270 360

header("content-type: image/jpeg");
$en=500;
$boy=500;
$resim=imagecreate($en,$boy);
$renk1=imagecolorallocate($resim,100, 120, 50);
$renk2=imagecolorallocate($resim,255,255,255);
$renk3=imagecolorallocate($resim,45,55,65);
$renk4=imagecolorallocate($resim,200,21,45);
imagefilledellipse($resim,250,250,400,400,$renk2);
imagestring($resim,7,200,150,"UMUT KILINC",$renk4);
imagettftext($resim,30,0,100,250,$renk3,"JOKERMAN.TTF","UMUT KILINÇ");
imagejpeg($resim);
imagedestroy($resim);
//çift şekilde yazı


header("content-type: image/png");
$en=500;
$boy=500;
$resim=imagecreate($en,$boy);
$renk1=imagecolorallocate($resim,200,2,2);
$renk2=imagecolorallocate($resim,50,550,2);
$a=500;
for($i=500;$i>=0;$i-=25)
{


if($i%50==0)
$elips=imagefilledellipse($resim,250,250,$i,$a,$renk1);
else
$kare=imagefilledellipse($resim,250,250,$i,$a,$renk2);
$a-=25;
}
imagepng($resim);
imagedestroy($resim);
//iç içe elpis


$dizim = Array ();
for($i = 0 ; $i<=9 ; $i++)
{
$dizim[$i] = rand(1,100);

}
// öyle

$kaynak=$_FILES["dosya"]["tmp_name"];
$hedef=$_FILES["dosya"]["name"];
@copy($kaynak,$hedef);

setcookie("sifre",$sifre , time() + (60));// tanımla
$_COOKIE["sifre"]; çıktı al işlem yap

-----------------------------------------------------------------------------
//dizi ile get post
// boxların namesine hobi[]
$deger1=$_POST["txt1"];
$deger2=$_POST["txt2"];
$deger3=$_POST["radio"];
$deger4=$_POST["hobi"];
if($deger3==NULL)
echo "";
else
{
echo $deger1." ".$deger2."<br>";
echo "cinsiyetiniz:".$deger3."<br>";
for($i=0;$i<count($deger4);$i++)
echo $deger4[$i]."<br>";
-----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// aalkan iç içe kare
<?php
header("Content-type: image/png");
$resim = imagecreate(1000,1000);
$kirmizi= imagecolorallocate( $resim, 255,0,0 );
$beyaz = imagecolorallocate( $resim, 255,255,255 );
$a=0; for($x=10,$y=1000;$x<500;$x+=25,$y-=25)
{
$a++;
if($a %2 == 0) $color=$beyaz;
else $color=$kirmizi; imagefilledrectangle($resim,$x,$x,$y,$y,$color);
}
imagepng ($resim);
imagedestroy($resim);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<form id="kontrol" name="gitmedenbak" method="post" action="">
Güvenlik Kodu :
<input type="text" name="kodgir" />
(küçük karakter ile giriniz)
<img src="kod.php">
<input type="submit" name="go" value="kontrol" />
</form>

<?php
error_reporting(0);
session_start();
if(isset($_POST["go"]))
{
$girilen=$_POST["kodgir"];

if($girilen==$_SESSION["kod"])
{echo "tebrikler kod doğru";}
else
{echo "girilen güvenlik kodu hatalıdır";}
}
echo "<br>gelen kod :".$_SESSION["kod"]."<br>";
?>

</body>
</html>
// index .php

<?php
session_start();
header("Content-type: image/png");
$tuval = imagecreate(125,45);
$tuvalrenk = imagecolorallocate($tuval,255,0,0);
$beyaz=imagecolorallocate($tuval,255,255,255);
$renk1=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$renk2=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$renk3=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$kodum=substr(md5(rand(1,1000)),5,5);
$_SESSION["kod"]=$kodum;
imagettftext($tuval,rand(10,14),rand(0,30),rand(0,72),rand(25,40),$beyaz,"ALGER.TTF",$kodum);

// boyut,derece,x,y,renk,tip,metin
//imagestring($tuval,6,70,75,$kodum,$beyaz);
imageline($tuval,rand(0,125),rand(0,45),rand(0,125),rand(0,45),$renk1);
imageline($tuval,rand(0,125),rand(0,45),rand(0,125),rand(0,45),$renk2);
imageline($tuval,rand(0,125),rand(0,45),rand(0,125),rand(0,45),$renk3);
imagepng($tuval);
imagedestroy($tuval);
?>
//kod.php
// güvenlik kodu

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

$resim="resim.jpg";
$boyut=getimagesize($resim);
$oran=$boyut[1]/$boyut[0];
$maxen=200;
$maxboy=200;
if($oran>=1)
{
$en=$maxen;
$boy=$maxboy*$oran;

}
else
{
$en=$maxen*$oran;
$boy=$maxboy;
}
header("Content-type: image/jpeg");
$kaynak=imagecreatefromjpeg($resim);
$hedef=imagecreatetruecolor($en,$boy);
imagecopyresampled($hedef, $kaynak, 0, 0, 0, 0, $en, $boy, $boyut[0], $boyut[1]);
imagejpeg($hedef);

//en boy


**************************************************************************************
header("Content-type: image/jpeg");
$resim=imagecreatetruecolor(500,500);
$renk1=imagecolorallocate($resim,255,215,0);
$renk2=imagecolorallocate($resim,255,255,0);
$renk3=imagecolorallocate($resim,0,0,255);
$renk4=imagecolorallocate($resim,0,100,0);
$renk5=imagecolorallocate($resim,255,255,255);

imagefilledellipse($resim,250,250,500,500,$renk2);

for($i=0;$i<10;$i++)
{
$renk=imagecolorallocate($resim,rand(0,255),rand(0,255),rand(0,255));
imagettftext($resim,rand(10,50),rand(1,360),rand(100,500),rand(100,500),$renk,"ALGER.TTF","atp-12a");
}
imagejpeg($resim);
imagedestroy($resim);
// yazi for







<?php
header("Content-type: image/jpeg");
$resim=imagecreatetruecolor(500,500);
$renk1=imagecolorallocate($resim,255,215,0);
$renk2=imagecolorallocate($resim,255,2550);
$renk3=imagecolorallocate($resim,0,0,255);
$renk4=imagecolorallocate($resim,0,100,0);
$renk5=imagecolorallocate($resim,255,255,255);

imagefilledellipse($resim,250,250,500,500,$renk2);
imagefilledellipse($resim,250,250,400,400,$renk3);
imagefilledellipse($resim,250,250,100,100,$renk2);

imagefilledarc($resim,250,250,500,500,340,20,$renk4,IMG_ARC_PIE);
imagefilledarc($resim,250,250,500,500,250,290,$renk4,IMG_ARC_PIE);
imagefilledarc($resim,250,250,500,500,70,110,$renk4,IMG_ARC_PIE);
imagefilledarc($resim,250,250,500,500,160,200,$renk4,IMG_ARC_PIE);
imageline($resim,250,0,250,500,$renk5);
imageline($resim,0,250,500,250,$renk5);

imagestring($resim,7,30,200,"selam",$renk4);

imagettftext($resim,rand(10,50),rand(1,360),rand(0,500),rand(0,500),
$renk5,"ALGER.TTF","BURASI KADIKÖY");

imagejpeg ($resim);
imagedestroy($resim);
?>
// burası kadıköy


////////// METİN İLE İLGİLİ ///////////
header("Content-type:image/png");
$tuval= imagecreate(500,500);
$tuvalrenk=imagecolorallocate($tuval,255,0,0);
$renk=imagecolorallocate($tuval,0,255,0);
for($i=0;$i<=360;$i+=30)
{
$renk=imagecolorallocate($tuval,255,255,255);
imagefttext($tuval,10,$i,250,250,$renk,"arial.ttf","OSMAN KARADENİZ - HANY TYPER");
}
imagepng($tuval);
imagedestroy($tuval);

/*
header("Content-type:image/png");
$tuval= imagecreate(500,500);
$tuvalrenk=imagecolorallocate($tuval,255,0,0);

$renkelips=imagecolorallocate($tuval,0,255,0);

$elips=imagefilledellipse($tuval,250,250,500,500,$renkelips);
$renk = array();
for($i=0;$i<=10;$i++)
{
$renk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
imagestring($tuval,5,rand(100,400),rand(100,400),"ATP12-A O.K",$renk);
}

imagepng($tuval);
imagedestroy($tuval);
*/
////////////////////////////////////////////////////////////////////////////////////




header("Content-type:image/png");
$tuval = imagecreate(500,500);
$renk= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$renk2= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$a=0;
for($i=500;$i>=250;$i-=25)
{
if($i%50==0)
{$dortgen = imagefilledrectangle($tuval,$a,$a,$i,$i,$renk);}

else
$dortgen = imagefilledrectangle($tuval,$a,$a,$i,$i,$renk2);
$a+=25;
}

imagepng($tuval);
imagedestroy($tuval);
// İÇ İÇE KARE iso



header("Content-type:image/png");
$resim=imagecreate(400,100);
imagecolorallocate( $resim, 255,255,255);
$renk=imagecolorallocate( $resim, 0,0,0);
for($x=50;$x<231;$x+=60)
imageellipse($resim,$x,50,80,80,$renk);
imagepng($resim);
imagedestroy($resim);
//ellipseqqee


$arkadas=array("Ahmet","Mehmet","Selim","Mahmut","Ali");
for($i=0;$i<count($arkadas);$i++)
echo $arkadas[$i]." ";
// 5 arkadaş dizi ile çağır

$simdi=mktime(0,0,0,31,12,2014);
$once=mktime(0,0,0,4,2,1);
$zaman=$simdi-$once;
echo $zaman;
//1 yıl 2 ay 4 gün önce


$D_dizisi = array(79,62,35,47,12,72);
rsort($D_dizisi);
for($i=0;$i<count($D_dizisi);$i++)
echo $D_dizisi[$i]." ";
// büyükten küçüğe diziyi sıraladı



header("Content-type:image/png");
$resim=imagecreatetruecolor(400,400);
$yesil=imagecolorallocate($resim,0,255,0);
$kirmizi=imagecolorallocate($resim,255,0,0);
imagefill($resim,0,0,$yesil);
for($i=1;$i<=25;$i++)
imagefilledrectangle($resim,$i*8,$i*8,$i*10,$i*10,$kirmizi);
imagepng($resim);
imagedestroy($resim);
// minecraft gibi şekil



header("Content-type: image/png");
$resim = imagecreate(1000,1000);
$kirmizi= imagecolorallocate( $resim, 255,0,0 );
$beyaz = imagecolorallocate( $resim, 255,255,255 );
$a=0; for($x=10,$y=1000;$x<500;$x+=25,$y-=25)
{
$a++;
if($a %2 == 0) $color=$beyaz;
else $color=$kirmizi; imagefilledrectangle($resim,$x,$x,$y,$y,$color);
}
imagepng ($resim);
imagedestroy($resim);
// İÇ İÇE KARE


ÇALIŞMA 1) [rastgele renkli ve konumlu metin]
header("Content-type:image/png");
$tuval= imagecreate(500,500);
$tuvalrenk=imagecolorallocate($tuval,255,0,0);

$renkelips=imagecolorallocate($tuval,0,255,0);

$elips=imagefilledellipse($tuval,250,250,500,500,$renkelips);
$renk = array();
for($i=0;$i<=10;$i++)
{
$renk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
imagestring($tuval,5,rand(100,400),rand(100,400),"ATP12-A O.K",$renk);
}

imagepng($tuval);
imagedestroy($tuval);



**************************************************************************************


ÇALIŞMA 2) [ iç içe nesneler ve yay ve çizgi ile örnek uygulama ]
header("Content-type:image/png");

$tuval = imagecreate(500,500);
$renk= imagecolorallocate($tuval,255,255,255);
$renktuval=imagefill($tuval,0,0,$renk);

$red=imagecolorallocate($tuval,255,0,0);
$green=imagecolorallocate($tuval,0,255,0);
$blue=imagecolorallocate($tuval,0,0,255);

$elips1=imagefilledellipse($tuval,250,250,500,500,$red);
$elips2=imagefilledellipse($tuval,250,250,465,465,$blue);
$elips2=imagefilledellipse($tuval,250,250,120,120,$red);
$pasta1=imagefilledarc($tuval,250,250,500,500,340,20,$green,IMG_ARC_PIE);
$pasta2=imagefilledarc($tuval,250,250,500,500,70,110,$green,IMG_ARC_PIE);
$pasta3=imagefilledarc($tuval,250,250,500,500,160,200,$green,IMG_ARC_PIE);
$pasta4=imagefilledarc($tuval,250,250,500,500,250,290,$green,IMG_ARC_PIE);
$cizgi1=imageline($tuval,0,250,500,250,$red);
$cizgi1=imageline($tuval,250,0,250,500,$red);

imagepng($tuval);
imagedestroy($tuval);

**************************************************************************************


ÇALIŞMA 3) [çizgi dolu daire]

header("Content-type: image/png");
$tuval=imagecreatetruecolor(600,600);
$renk1=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$renk2=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));

$yuvarlak=imagefilledellipse($tuval,300,300,600,600,$renk1);

imageline($tuval,88,88,512,512,$renk2);
imageline($tuval,512,88,88,512,$renk2);
imageline($tuval,300,0,300,600,$renk2);
imageline($tuval,0,300,600,300,$renk2);
imagepng($tuval);
imagedestroy($tuval);

**************************************************************************************

ÇALIŞMA 4) [Nesneler ile çöp adam çizimi]
header("Content-type: image/png");
$tuval=imagecreatetruecolor(600,600);

$kafarenk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255)); // kafa
$gozrenk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255)); // goz
$agizrenk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255)); // agiz
$burunrenk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255)); // burun


$kafa=imagefilledellipse($tuval,300,80,150,150,$kafarenk);

$goz=imagefilledellipse($tuval,300,50,10,10,$gozrenk);
$goz2=imagefilledellipse($tuval,350,50,10,10,$gozrenk);
$agiz=imagefilledellipse($tuval,300,50,70,70,$agizrenk);
$burun=imagefilledellipse($tuval,300,50,70,70,$burunrenk);


//$body=imagefilledrectangle($renk1,);


imagepng($tuval);
imagedestroy($tuval);


**************************************************************************************

ÇALIŞMA 5) [PATİ ÇALIŞMASI]
elips ve

header("Content-type: image/png");

$tuval = imagecreatetruecolor(500,500);
$renk1= imagecolorallocate($tuval,0,0,0); //kafa
$renk2= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));//kafa
$renk3= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));//gozler

$elips1= imagefilledellipse($tuval,120,150,70,80,$renk2); // y1
$elips2= imagefilledellipse($tuval,300,90,70,80,$renk2); // y2
$elips3= imagefilledellipse($tuval,390,150,70,80,$renk2); // y3
$elips4= imagefilledellipse($tuval,200,90,70,80,$renk2); // y4

$elips5= imagefilledellipse($tuval,250,240,150,150,$renk3); // y5
// x , y , w , h

imagepng($tuval);
imagedestroy($tuval);





header("Content-type:image/png");
$tuval = imagecreate(500,500);
$renk1= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));

$renk2= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));//kafa
$renk3= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));//gozler
$renk4= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));//burun
$renk5= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));//agız


$elips1= imagefilledellipse($tuval,250,250,500,500,$renk2); // kafa
$elips2= imagefilledellipse($tuval,150,150,100,100,$renk3); // goz1
$elips3= imagefilledellipse($tuval,350,150,100,100,$renk3); // goz2
$elips4= imagefilledellipse($tuval,250,200,50,100,$renk4); // burun
$elips5= imagefilledellipse($tuval,250,330,200,80,$renk5); // agız
$elips6 = imagefilledellipse($tuval,)
// x , y , w , h

imagepng($tuval);
imagedestroy($tuval);

BAKAN SURAT
*/


/*
header("Content-type:image/png");
$tuval = imagecreate(500,500);
$renk= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$renk2= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$red= imagecolorallocate($tuval,255,0,0);

$i=500;
for($a=500;$a>=0;$a-=25)
{
if($a%50==0)
// merkez noktaları
$elips=imagefilledellipse($tuval,250,250,$a,$i,$renk2);
// tuvalx tuval y , width height
else
$elips2=imagefilledellipse($tuval,250,250,$a,$i,$renk);
$i-=25;

// iç içe yuvarlak
}


imagepng($tuval);
imagedestroy($tuval);
renkli iç içe daire
*/

/*
header("Content-type:image/png");
$tuval = imagecreate(500,500);
$renk= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$renk2= imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
$a=0;
for($i=500;$i>=250;$i-=25)
{
if($i%50==0)
{$dortgen = imagefilledrectangle($tuval,$a,$a,$i,$i,$renk);}

else
$dortgen = imagefilledrectangle($tuval,$a,$a,$i,$i,$renk2);
$a+=25;
}

imagepng($tuval);
imagedestroy($tuval);

renkli iç içe kare
*/


/*
header("Content-type: image/png");
$resim = imagecreatetruecolor (250,250);
$renk=imagecolorallocate( $resim, 0,206,209);
imagefill ( $resim,0,0,$renk);
imagepng($resim);
imagedestroy($resim);

MAVİ RENKLİ 250,250lik bir resim oluşturduk.
*/

/*
header("Content-type: image/png");
$tuval = imagecreatetruecolor (250,250);
imagepng($tuval);
imagedestroy($tuval);

siyah arkaplanlı 250,250lik bir resim oluşturduk.
*/

/*
header("Content-Type : image/png");
$tuval = imagecreate(250,250);
imagepng($tuval);
imagedestroy($tuval);

renk olmadığı için imagecreatetruecolor komutu ile default
yani siyah arkaplanlı fotoğraf oluşturabiliriz.
*/

/*/
header("Content-type:image/png");
$tuval= imagecreate(500,500);
$tuvalrenk=imagecolorallocate($tuval,255,0,0);
$renk=imagecolorallocate($tuval,0,255,0);
for($i=0;$i<=360;$i+=30)
{
$renk=imagecolorallocate($tuval,255,255,255);
imagefttext($tuval,10,$i,250,250,$renk,"arial.ttf","OSMAN KARADENİZ - HANY TYPER");
}
imagepng($tuval);
imagedestroy($tuval);

/*
header("Content-type:image/png");
$tuval= imagecreate(500,500);
$tuvalrenk=imagecolorallocate($tuval,255,0,0);

$renkelips=imagecolorallocate($tuval,0,255,0);

$elips=imagefilledellipse($tuval,250,250,500,500,$renkelips);
$renk = array();
for($i=0;$i<=10;$i++)
{
$renk=imagecolorallocate($tuval,rand(0,255),rand(0,255),rand(0,255));
imagestring($tuval,5,rand(100,400),rand(100,400),"ATP12-A O.K",$renk);
}

imagepng($tuval);
imagedestroy($tuval);
*/



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
************************************************************************************************************************************************************

error_reporting(0);
$metin=$_POST["kutu1"];
$degisecek=$_POST["kutu2"];
$yeni=$_POST["kutu3"];
$sonuc=preg_replace("/$degisecek/",$yeni,$metin);
echo $sonuc;

************************************************************************************************************************************************************
error_reporting(0);
$metin=$_POST["umut"];
$ifade="/^[0-7][0-9]|[S8][0-1][ ]w{3}[ ]d{4}/ ";
if(preg_match($yazi,$metin))
echo"eşleşti";
else
echo "eşleşme yok";

************************************************************************************************************************************************************
-->
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.