Tag: php | Tutorial Depot

The Best Way to Learn PHP

October 22, 2011 at 11:45 am Tags: | |

net.tutsplus.comAssignment #7a: Practice more, write your own easy apps like a simple CMS or a contact form including validations. I think it’s not good for the learning curve if you work with frameworks very quickly. You need learn how-to write code first. If you’re able to write your own apps, it’s much easier to understand the OOP concepts used in most bigger frameworks. Check also the PHP manual frequently, there are so many examples and comments you can learn from.

Source…

Let’s make the web faster – Google Code

August 25, 2011 at 7:01 am Tags: | | |

code.google.comGreat page from Google with to make your PHP site faster! You should follow these (basic) tips for sure. There is one funny (and true) suggestion: “Avoid writing naive setters and getters”. Will say that the basics of OOP or “polymorphism” is bad for your script’s performance? Makes sense that these setters and getters will slow down your script. I’m sure that there are several hard core developer will not agree with this ;)

Source…

Ubuntu run PHP 5.2 and 5.3 together

June 9, 2011 at 6:23 am Tags: | |

webpagedeveloper.meGreat tutorial! It works for 95% on my Ubuntu 11.04 machine, will say I needed to add a symbolic link for the jpeg/png libs (check http://pastebin.com/bh87r5Lw). I used php5.3 in cgi mode and for this example I needed to switch to the php apache module first. I replaced also “–with-jpeg ” width “–with-png-dir ” (this value doesn’t exists and the png lib was missing).

Source…

Managing Cron Jobs with PHP

April 7, 2011 at 8:17 pm Tags: | |

net.tutsplus.comGreat and detailed tutorial on how-to edit your crontab file within a php script. Sad enough is this solution not a solution to access the command line without using functions like shell_exec or exec. In my opinion it would be safer to create one php script with jobs that is executed by CRON.

Source…

How-to install eAccelerator?

January 30, 2011 at 10:54 am Tags: | | | |

I’m using eAccelerator on two servers now, for both I’m using DirectAdmin as control panel. One is based on Ubuntu and the other one is running on Cent-OS.

Download eAccelerator from their website and follow their instructions (you need root access to install eAccelerator and it’s required to install php5-dev tools first):

wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
tar xjvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
phpize
./configure --with-php-config=/usr/local/php5/bin/php-config
make

The “–with-php-config” setting is maybe not necessary, check your server for the right location.

It might be possible that you need to install the PHP dev tools first (yum install php-devel (Cent-OS or apt-get install php-dev) Read More…

Function Reference/wpdb Class

November 23, 2010 at 3:27 pm Tags: | | |

codex.wordpress.orgI think this part of the WordPress developer manual is the most important section. This page explains how-to get database data from single fields, rows, columns and complete results. They show you also how-to insert/update a table row from your WordPress database. It’s like short database manual for WordPress (the part you know from MySQL on php.net)

Source…

Page 1 of 212