This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sayfa=new Sayfala(); | |
$sayfa->link = ' <a href="index.php?sayfa=#page_num#" title="#name#">#name#</a> '; | |
$sayfa->toplam = 300; // Toplam Veri Sayısı | |
$sayfa->limit = 10; // Sayfa Başına Gösterilecek Veri | |
$sayfa->slimit = 3; // Sayfalama Limiti | |
$sayfa->sayfa = intval($_GET['sayfa']) ? $_GET['sayfa'] : '1';// Geçerli Sayfa | |
$sayfa->i_text = 'İleri'; | |
$sayfa->g_text = 'Geri'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function Zip($source, $destination) | |
{ | |
if (extension_loaded('zip') === true) | |
{ | |
if (file_exists($source) === true) | |
{ | |
$zip = new ZipArchive(); | |
if ($zip->open($destination, ZIPARCHIVE::CREATE) === true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$username='s4l1h'; | |
$email='[email protected]'; | |
$ad='Adı'; | |
$soyad=' Soyadı'; | |
// User sınıfı | |
class User extends ORM{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// sudo php install_phpunit.php | |
$komut=array(); | |
$komut[]="sudo pear upgrade"; | |
$komut[]="pear config-set auto_discover 1"; | |
$komut[]="pear install pear.phpunit.de/PHPUnit"; | |
foreach($komut as $k){ | |
echo passthru($k); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '/usr/lib/php'); | |
require_once 'PHPUnit/Autoload.php'; | |
class Test extends PHPUnit_Framework_TestCase | |
{ | |
public $dizi=array(); | |
public $ad = NULL; | |
public function test1() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change_me kendinize göre değiştirin | |
# phpstormu'da /home/CHANGEME/ dizinine atıp klasör ismini PhpStorm yapın | |
# bu dosyayıda masaüstünüzde PhpStorm.desktop diye kaydedin. | |
[Desktop Entry] | |
Categories=Network;WebBrowser; | |
Comment[en_US]=PhpStorm IDE | |
Comment=PhpStorm IDE | |
Exec=sh /home/CHANGEME/PhpStorm/bin/PhpStorm.sh | |
GenericName[en_US]=PHP IDE | |
GenericName=PHP IDE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/sh | |
echo "Download XAMPP" | |
wget http://downloads.sourceforge.net/project/xampp/BETAS/xampp-linux-1.7.7.tar.gz | |
echo "install ia32-libs" | |
sudo apt-get install ia32-libs | |
echo "Extrach XAMPP" | |
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt | |
echo "install python-gtk2-dev with xampp controller panel" | |
sudo apt-get install python-gtk2-dev | |
echo "Start LAMP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Comment=Start and Stop XAMPP | |
Name=XAMPP Control Panel | |
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py | |
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg | |
Encoding=UTF-8 | |
Terminal=false | |
Name[en_CA]=XAMPP Control Panel | |
Comment[en_CA]=Start and Stop XAMPP | |
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('max_execution_time', 0); | |
set_time_limit(0); | |
header('Content-type: text/html; charset=utf-8'); | |
// php çalıştırılma çekli | |
if (PHP_SAPI !== 'cli') { | |
echo "Bu Uygulama Sadece Konsoldan Çalışır"; | |
exit; | |
} | |
// Zaman |
OlderNewer