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

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

Q. How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX like operating system over ssh / telnet session? A. Setting up mysql password is one of the essential tasks. root user is MySQL admin account. Please note that Linux / UNIX login root account for your operating system and MySQL root … Read more

A class can allow non-member functions and other classes to access its own private data, by making them as friends. This part of C++ tutorial essentially gives two important points. Once a non-member function is declared as a friend, it can access the private data of the class similarly when a class is declared as … Read more

i have studied c++ for my exam today and i will explain how can you compile c/c++ in linux also there were some error that i want mention. 1.install eclipse (not necessary for compiling) probably you can find it from your package manager if there isn’t use this link: http://www.eclipse.org for pardus open pisi search … 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