Notes
Notes - notes.io |
<?php error_reporting(0); ?>
<form action="?" method="POST">
<pre>Söz Dizisi: <input type="text" name="ifade" value="<?php echo $_POST["ifade"];?>" size="40"/></pre>
<pre>Metin: <textarea cols="30" rows="5" name="aranan"><?php echo $_POST["aranan"];?></textarea></pre>
<input type="reset" name="Temizle"/><input type="submit" name="Gönder"/>
</form>
<?php
if (!empty($_POST["aranan"]) and !empty($_POST["ifade"])) {
echo "@preg_match('$_POST[ifade]', '$_POST[aranan]')"."<br>";
if (@preg_match($_POST["ifade"], $_POST["aranan"])) {
echo "Eşleşme Sağlandı.";
}
else {
echo "Eşleşme Sağlanamadı.";
}
}
?>
<?php
session_start();
?>
<p> </p>
<?php
if (isset($_SESSION['ad']))
{
echo "Hoş geldiniz ";
echo $_SESSION['ad']." ";
echo $_SESSION['soyad'];
echo
'<form id="form1" name="form1" method="post" action="oturum2.php">
<input type="submit" name="button" id="button" value="Çıkış" /><br/>
</form>';
//session_destroy();
}
else
{
echo '
<form id="form1" name="form1" method="post" action="oturum1.php">
<input type="text" name="ad" id="ad" /> <br/>
<input type="text" name="soyad" id="soyad" /><br/>
<input type="submit" name="button" id="button" value="Gönder" /><br/>
</form>
';
if (isset($_POST['ad']))
{
$_SESSION['ad']=$_POST['ad'];
$_SESSION['soyad']=$_POST['soyad'];
}
if (isset($_SESSION['ad'])) {
header("Location:oturum1.php");
}
}
?>
<?php
echo "cikis yapildi";
session_destroy();
?>
<?php
/*
$sayilar = $_POST['sayilar'];
function faktoriyel_ileri($sayi)
{
$sonuc = 1;
for ($i= 1; $i < $sayi+1 ; $i++) {
$sonuc=$sonuc*$i;
}
return $sonuc;
}
function faktoriyel_geri($sayi)
{
$sonuc = 1;
for ($i= $sayi; $i > 0 ; $i--) {
$sonuc=$sonuc*$sayi;
}
return $sonuc;
}
echo "Faktriyel İleri=".faktoriyel_ileri($sayilar)."<br/>";
echo "Faktriyel Geri=".faktoriyel_geri($sayilar);
*/
$zaman = getdate();
print_r($zaman);
echo "Zaman=".$zaman["hours"].":".$zaman["minutes"].":".$zaman["seconds"];
echo "<br>";
echo "Tarih=".$zaman["mday"].":".$zaman["mon"].":".$zaman["year"];
?>
<table border="1">
<form method="post" enctype="multipart/form-data" name="form1" id="form1">
<tr><td>Resim Başlığı: </td><td><input type="text" name="baslik" id="baslik"></td></tr>
<tr><td>Yorumunuz:</td><td> <textarea name="yorum" id="yorum" cols="45" rows="5"></textarea></td></tr>
<tr><td>Resim Dosyası: </td><td><input type="file" name="dosya" id="dosya">
<tr><td colspan="2" align="center"><input type="reset" name="button2" id="button2" value="Sıfırla">
<input type="submit" name="button" id="button" value="Gönder"></td></tr>
</form>
</table>
<?php
echo"Resim Başlığı:".$_POST['baslik']."<br>";
echo "Yorumunuz:".$_POST['yorum'].'<br>';
echo "Resim Dosyası:"."<br>";
@copy($_FILES["dosya"]["tmp_name"], $_FILES["dosya"]["name"]);
?>
<img src="<?php echo $_FILES["dosya"]["name"]; ?>">
|
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: hello@notes.io
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team