PHP

PHP is the successor to PERL as my defacto web scripting language. It's main appeal is that it is very popular and can run on any platform or server. Facebook and wordpress runs on PHP. PHP works well with MySQL and Apache and together they are called LAMP. It also works with SQLite, XML and many others.

PHP5 & now 7 supports OOP.

Here at anoneh, popular PHP powered CMS Drupal and frameworks such as CakePHP are covered.

preg_match_all regex and output | 4 Sep 2020
openssl_encrypt and decrypt | 11 Aug 2020
PHPMailer with Office365 | 1 May 2020
Decoding JSON | 24 Oct 2018
Displaying european chars and encoding JSON | 22 Oct 2018
Guzzle | 27 Sep 2018
Installing composer | 27 Sep 2018
Switch CASE | 14 Sep 2018
Upgrade from php v5.5.9 to v5.6.3 | 30 Apr 2018
CURL and PHP | 25 October 2017
Store images in MySQL as BLOB and show in PHP as filename.jpg | 30 May 2017
PHP mysqli_num_rows() mysql select empty counting | 20 May 2017
Making PHP mail() work with Sendmail/Postfix | 20 April 2017
Basic DB connect, update and insert to MySQL. Updated for PHP7 | Updated 11 August 2020
LAMP finetuning | 24 March 2017
Validation of forms against SQL injection or XSS attacks | 07 Feb 2017
Exporting to excel | 22 Nov 2016
Form for uploading files using PHP5 | 6 January 2016
PHP Notice: Undefined index/variable isset | 8 July 2015
Preventing password in the clear with PHP | 3 June 2015
PHP substr string | 2 May 2015
PHP and SQLite | 24 April 2015
Fine tuning Apache PHP MySQL LAMP config | 3 September 2014
Setting up Postfix on Ubuntu | 1 September 2014
Rotating banner using PHP array shuffle or array_rand | 26 March 2014
Using data from other websites | 05 January 2014
Basic PHP Sessions | 25 July 2013
string replacer using XML array | 31 March 2013
Countdown date in PHP using MKTIME | 19 October 2012
Dates in PHP and MySQL | 18 October 2012
Simplest way to add timestamp with PHP MYSQL | 10 October 2012
addslashes for input to mysql | 10 October 2012
Sample SQL query select and join | 23 August 2012
Upgrading your PHP to latest version | 24 May 2012
PIWIK stats install on Ubuntu | 02 May 2012
Randomizer | 22 March 2012
Install LAMP to Ubuntu | 10 March 2012
Regular expression replace : REGEX | 7 July 2011
Explode or split string and display array | 31 January 2011
Installing Apache and PHP under windows | 5 January 2011
DateTime class and weeknumber using the date() function | 21 October 2013
Implode, file_get_contents and substact string | 06 October 2010
array string replacer | 03 June 2010
$_SERVER['PHP_SELF'] vs $_SERVER['REQUEST_URI'] | 4 April 2010
Execute Linux commands in PHP | 04 February 2010
Cron for PHP with quiet option | 18 November 2009
PHP Operators | 11 November 2009
Search in string | 6 November 2009
Making PHP4 depreciate work on PHP5 (register globals and sessions) | 1 November 2009
PHP Redirect | 30 October 2009
Uploader using move_uploaded_file | 25 October 2009
Security page using session | 25 October 2009
LDAP connect using V3 protocol | 25 October 2015
Countdown | 21 October 2009
mysql_query customizing | 08 June 2009
PHP oddities | 29 April 2009
Creating and Writting files in PHP | 16 April 2009
Looping in array, count and add comma | 13 April 2009
Search a MySQL database and return paged results with PHP | 11 April 2009
String Replacer | 01 April 2009
XML to Arrays in PHP5 | 13 March 2009
Displaying Arrays | 26 April 2009
Arrays in PHP | 13 March 2009
Pass form variables(get post) to another page and superglobals | 13 March 2009
Sending Variables from AS3 to PHP | 13 March 2009
Simple PHP feedback mailer form | 13 March 2009
Implementing a Simple Class in PHP | 13 March 2009
PHP config - php.ini | 13 March 2009

 

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css