Nietzsche says "God is dead" God says "Nietzsche is dead "
Header image

PHP UPLOAD CLASS Properties You can choose type of file to be uploaded. For every type of file to be uploaded, you can choose biggest size of file which is allowed. Day, month and year choices are assigned as folder.( day/month/year or year/day depends on your wish.) Usage 1- Write type of file and the … Read more

if you are taking a warning such as; Notice: Use of undefined constant _HC_PKG_THEME – assumed ‘_HC_PKG_THEME’ in ~\phpcoin\config.php on line 141 Notice: Use of undefined constant DIR – assumed ‘DIR’ in ~\phpcoin\config.php on line 146 Notice: Use of undefined constant _HC_PKG_LANG – assumed ‘_HC_PKG_LANG’ in ~\phpcoin\config.php on line 153 find this in php.ini error_reporting … Read more

I needed a function to get  (learn) url with php. Here are the codes. <?php function curPageURL() { $pageURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { $pageURL .= $_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?> To use this function write … Read more

command: sudo apt-get install php5-gd Don’t forget to restart apache service apache2 restart Related posts installing apache php and mysql on Pardus (0) install php apache mysql phpmyadmin (3) Unlimited Subcategory with Adjacency List Model (8) Notice: Use of undefined constant/variable (0) mysql_insert_id (0)

I found two model two make to make category system with unlimited category one oft them is Tree traversal, and other is Adjacency list model. I will use adjacency list model  because it is more understandable than tree traversal. In tree traversal model , insterting and editing categories is unclear , also this model is … Read more

Codeigniter

Posted by ALonon in Php - (0 Comments)

While i was talking to mehmet ,he mentioned about php frameworks.  I heard somethings about them but not realy knew what they do. After some research i found codeigniter. Codeignter is an open source php framework. You can use it to make faster, easier web applications. Also it has rich php library. To understand how … Read more

mysql_insert_id() is a very usefull function.. what does it do ? it returns id generated from previous insert query. Could you give some example ? mysql_query(“insert into product (name) values(aflower)”); if you want to print id of “aflower” you can use mysql_insert_id echo mysql_insert_id(); !: to use mysql_insert_id your cloumn should be an auto_increment cloumn … Read more

On ubuntu and kubuntu systems you can install php5 apache2 mysql and phpmyadmin with this command sudo apt-get install apache2 php5 php5-mysql php5-gd mysql-server phpmyadmin To enable mod_rewrite run this: sudo ln -sfn /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ sudo /etc/init.d/apache2 restart Related posts Ubuntu install GD support for apache (0) mysql_insert_id (0) installing apache php and mysql on … Read more

Open console and write pisi update-repo sudo pisi it apache mysql-server mod_php sudo mysql_install_db sudo service mysql-server on sudo service apache on After you should restart your comptuter Test <?php echo “Hello World”; ?> save this as test.php and copy /var/www/localhost/htdocs/ write firefox http://localhost/test.php if you do eveything correct,  you will see hello world on … Read more

Difference between include and require: if you use include and there is not page that you include , you get a warning. Otherwise if you use require instead of include you will get a fatal error. for more information http://tr2.php.net/include/ http://tr2.php.net/require Related posts Unlimited Subcategory with Adjacency List Model (8) Ubuntu install GD support for … Read more