PHP Tutorials

141. Variables in PHP

By: Andi, Stig and Derick : 2008-11-21

Description: Variables in PHP are quite different from compiled languages such as C and Java. This is because their weakly typed nature, which in short means you don't need to declare variables before using them, you don't need to declare their type and, as a result, a variable can change the type of its value as much as you want.


142. .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

By: Emiley J. : 2008-10-26

Description: Is your website which was working without a flaw suddenly shows a 404 File not found for all the pages. If this is the case then double check your error logs in your server. If you are using a hosting provider then you can access the logs from your control panel. When you read the raw error logs you would see something like this. ".htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable"


143. History and origin of PHP

By: Wang Li : 2008-08-14

Description: Some time in 1994 when Rasmus Lerdorf put together a bunch of Perl scripts to track down who was looking at his resume. Little by little, people started to get interested in the scripts, and they were later released as a package "Personal Home Page" tools (the first meaning of PHP). In view of the interest, he wrote a scripting engine and incorporated another tool to parse input from HTML forms: FI, Form Interpreter, thus creating what was called variously PHP/FI or PHP2. This was done around mid 1995.


144. Getting Started with PHP

By: Wang Li : 2008-08-14

Description: For the first and most common form, you need three things: PHP itself, a web server and a web browser. You probably already have a web browser, and depending on your operating system setup, you may also have a web server (e.g. Apache on Linux and MacOS X; IIS on Windows). You may also rent webspace at a company. This way, you don't need to set up anything on your own, only write your PHP scripts, upload it to the server you rent, and see the results in your browser.