Click here to Skip to main content
15,892,161 members
Everything / Programming Languages / PHP

PHP

PHP

Great Reads

by Tomas Petricek
Phalanger is a PHP language compiler for the .NET Framework which introduces PHP as a first-class .NET citizen.
by Member 4206974
FormGen, a JavaScript Form Generator
by Christoph Buenger
Describes PHP application development with the free Scavix Web Development Framework (Scavix-WDF).
by Ozesh Thapa
Converting Docx To Html to Docx

Latest Articles

by Member 4206974
FormGen, a JavaScript Form Generator
by Dan Letecky
Weekly HTML5 event calendar with CSS themes, drag and drop support, date navigator. PHP and ASP.NET Core REST API backends.
by Jason Sultana
A look at some injection-style vulnerabilities
by Richard Chambers
Creating a simple VisionFive 2 RISC-V SBC web site using Apache2, PHP, and Postgres with the Mosquitto message broker and installing Golang, Java, and Rust.

All Articles

Sort by Updated

PHP 

7 Jun 2014 by about-dev.com
Forms in Symfony 2+ without Doctrine
13 Sep 2014 by Afzaal Ahmad Zeeshan
A slight comparison of ASP.NET upon other (web) programming languages in the market and a discussion of me and some other (web) programming language developers.
9 Apr 2012 by Agon Avdimetaj
A simple file uploader written in PHP.
23 Mar 2016 by Ahmet AYDIN
This post describes step by step how to run a Single Page Application template using ASP.NET Web API 2 and angularJS and how to use Web Application Project whose name is Dalyan.
25 Aug 2013 by AjithKp560_
How to create a FTP manager application to connect your server to FTP server
29 Apr 2015 by AjithKp560_
FTP Client for Web server.
30 Aug 2011 by Alexander Kouznetsov
A way to view, store and process logical expressions
10 Jul 2012 by amitjha1611
This article is basically helpfull in handling Registry Key through PHP code.
2 Jun 2011 by Andre' Gardiner
Censoring any word from a given list (array) to filter your web content(s).
28 Nov 2012 by Andrew Zan
This article is intended for people who are planning to develop sitemap for a site with large amount of pages.
18 Jul 2012 by Ankur.Saxena17
Simple Client-Server socket program in PHP
2 Oct 2011 by Anshul R
Prefix, Length, and Check Digit CriteriaHere is a table outlining the major credit cards that you might want to validate.CARD TYPE Prefix Length Check digit algorithmMASTERCARD 51-55 16 mod 10VISA 4 13, 16 mod 10AMEX 3437 15 mod 10Diners Club/Carte...
25 Dec 2020 by aphpadmin
Create custom directory structure for migration files in your Laravel projects
12 Feb 2019 by Armand Molinski
How to debug PHP on Windows
27 Sep 2019 by AzdevXXI
Introduction Login Google using PHP
5 Nov 2017 by Brady Kelly
How I got WordPress running on Heroku
2 Feb 2016 by Brahmaputra Mehta
Fastest and most primitive way to get started
19 Jul 2012 by C Is Sharp
An overview of implementing MVC in PHP.
17 Jun 2013 by C Is Sharp
PHP and Accessing MS SQL Server in Unix/Linux.
22 Jan 2010 by caguras
The pagination is a tool which help you to split large result sets over multiple pages.The only thing that you must to do is to follow the next pattern:paginationGetLimit();mysql query(variable $limit...
14 Apr 2010 by camaki
Next code demonstrates how to build a simple menu function with the current page high-lighted.index.phpPage - .inactive,...
10 Jun 2016 by caoym
A lightweight, easy-to-use and jax-rs-like PHP library for building RESTful Web Services
18 Dec 2009 by caprico.caprico
With this class we try to catch some keywords from google, yahoo and bing search engines.
5 Jan 2010 by caprico.caprico
This PHP function return the urn (Uniform Resource Name) formed from the content hash of a particular torrent file. The urn refering to the Base32 encoded hash of the file.function base32_encode ($hash){$outString = '';$compBits = '';$BASE32_TABLE = array( ...
2 Feb 2015 by Chris_Yu
Why and When to Use the Adapter Pattern in PHP Development
4 Oct 2011 by CodingLover
Tweets are one of the mostly used for status sharing these days. This tip highlights one of the easiest ways to display Tweets in PHP.
29 Nov 2017 by Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
7 Jun 2012 by Dhanushka Madushan lk
Upload a file using c# as client to a PHP server
25 Apr 2014 by doug433
This tip shows how PHP can be used to access a MySQL database to retrieve data for a scroll list. Here, I will discuss one that lists 12 rows at a time on a web page.
3 Jul 2011 by Dr.Walt Fair, PE
There are several reasons why you may not want to rely on PHP to detect the browser. Some of them are summarized here[^]. In my opinion, it depends on your purpose and your target.
1 Oct 2013 by Emerald kwekowe
Simple PHP code to display a calendar.
17 Oct 2013 by Emerald kwekowe
PHP multiple file uploader
7 Feb 2011 by Fatih P.
Here is the one i wrote sometime ago/* ---------------------------------------------------------------------------- * Teknober.com - All rights reserved * ---------------------------------------------------------------------------- * File Name : TStringBuilder.php * Section ...
22 Jan 2010 by fly904
You can wrap the functions into a class and use the default class life cycle to your advantage.
3 Feb 2010 by fly904
There is a bug with your regex.Say for example that you were refered to by google.uk/search?q=example&ie=utf-8, your code would return 'example'. If, however, you were refered to by google.uk/search?q=example, it would return 'oops'.The simple fix is to change the limitation variable from...
25 Jan 2010 by fly904
More validation can be applied when handling default values. I am not a fan of outputing anything directly from a class, I prefer to return the links as an array. It's easier to maintain. This way, when/if you change the styling; then it saves having to trawl through your classes.
27 Sep 2018 by Friedrich Rehren
This tip shows you how to validate Requests by Alexa according to the Amazon requirements.
27 Sep 2010 by Frozen Rain
There is a simple way to consume WCF from clients which do not support Microsoft's SOAP implementation. It is achieved by using REST to accept data and convert REST calls to SOAP calls with the PHP Framework.
8 Jul 2014 by G4mm4R4y
This code guides you in making your own currency, and is very simple.
6 Jun 2017 by Gabriel Larco
Debug PHP applications under IIS Express
25 Jan 2016 by Garbel Nervadof
Convert HTML table data from a website into PHP array
25 Mar 2011 by gxtiou
One Line of code to download youtube's flv file in php
11 Dec 2012 by Imran N
The following piece of code will calculate the last visited time of a Member/User and calulate the time difference with the current time.
31 May 2012 by Jaiswar Vipin Kumar R.
How to access WAMP Server in LAN or WAN.
1 Oct 2014 by James Dale
My Windows Sever 2003 reaches its end of life in 2015. I do not look forward to moving to Server 2012. Surely there has to be a better, portable, and cross platform solution that features zero install and fits on a USB stick.
23 Jan 2018 by James Johnes
Do you want to secure your nginx server? Do you want to prevent Google Chrome from name shaming your non-SSL domain? Well, here a perfect yet easy to follow guide to help you.
22 Aug 2015 by jerry_wangjh
In this article, we compared different HTTP libs in PHP, and how to use them
20 Jun 2015 by Jesus Carroll
Some typical tips about the security in the use of a mobile device
23 Dec 2009 by koula7
Introduction...
7 Sep 2017 by Latika surse
How to use SASS in Drupal ?
22 Feb 2014 by Lộc Nguyễn
A simple log-in system
23 May 2014 by Lộc Nguyễn
An example of log-in system with Facebook API v.4
7 Jan 2010 by M.Premraj
What is jQuery?jQuery is a Art, technology, development, coding and hobby.jQuery is a part of WEB 2.O. This is a modern and new technology which is implemented in the browser level. In this tech. all things are handling in div component, JavaScript and CSS.This is a one kind of open...
2 Feb 2011 by M@dHatter
PHP Magic String Builder with Append Format.
21 May 2014 by M@dHatter
A new way to handle globals in php without declaring global identifier.
6 Jun 2015 by Magyar András
Load videos automatically from selected Youtube channel with PHP and Youtube Data API v3
8 Nov 2013 by Manujith Pallewatte
Showing PHP echo/print output in realtime in all browsers using flush() and ob_flush()
15 Nov 2010 by marigoula
13 Sep 2011 by MaulikDusara
some credit card numbers for testing purposes.
13 Mar 2015 by Mekki Ahmedi
I am just applying the principle of Defence in Depth
14 Mar 2015 by Mekki Ahmedi
Still asking your users not to press the Browser’s Refresh Button?
21 Apr 2014 by Member 4206974
A function for works on event
11 Jan 2022 by Member 4206974
A tip to get a data list on 2 (or more) columns.
31 Mar 2023 by Member 4206974
A PHP class that uses PDO for creating a table from JSON Objects
3 Jul 2023 by Micah Ebohon
Consume SMS API from SMS provider in PHP app
7 Jul 2014 by Michael Bergman
Using Windows Communication Foundation to build a simple web server
11 May 2010 by Michael Safyan
If you've done a regular search for API reference documentation, most likely you've come across links to very old versions of the API (e.g. links to Java 1.4.2 instead of Java 5 or Java 6), or you've probably come across plenty of links that are completely unrelated to the actual search (getting...
20 May 2023 by Mirzakhmet Syzdykov
Development process in few steps with the help of scripting software
24 Nov 2011 by Mohammad Ali_7
Send and Recive Parameter with Android To Mysql PHP
7 Sep 2016 by Mohd Shibli
In this tutorial, we will learn how to solve the PHP header() function problem.
30 Oct 2013 by Monotosh Roy Mon
Developing web service using PHP within 10 minutes
6 May 2015 by Mostafa Asaduzzaman
Controller Scaffolding in Visual Studio 2015 RC MVC 6 Project
1 Jun 2015 by Mostafa Asaduzzaman
How to access files within the application using DI
21 Dec 2010 by mridul samadder
Redirecting to a page after login in PHP
9 Dec 2013 by Naga Vinodh Peddi
How to dynamically create file upload control and add text file data to SQL database
21 Dec 2012 by Nathan Stiles
Calling CL programs on the IBM i on Power from PHP using DB2 stored procedures.
26 Jan 2021 by NewPast
English Simple Past & Past Participle PHP Auto Generation and Syllable Count in English Word
18 Oct 2011 by Nikunj_Bhatt
Image can also be shown without specifying its extension in HTML doc if it is on server
19 Dec 2012 by Nitesh Kejriwal
A handy method to truncate words to a certain number of characters without breaking any word in between
11 Oct 2016 by Oliver Bleckmann
Simple but efficient way of logging errors over the internet using a PHP webservice/ REST and mail notification. Logging C#/ .NET errors over the web and with PHP and sending notification mail.
5 Jun 2013 by Oso Oluwafemi Ebenezer
How to convert numbers [-((1x10^64)-1) up to (1x10^64)-1] to their word equivalent (i.e. -123.45 becomes Negative One Hundred And Twenty Three Dot Four Five)
6 May 2013 by Oso Oluwafemi Ebenezer
Generating an internet shortcut for your website from the server side
30 Apr 2012 by Pascal Ganaye
A set of functions to get slightly shorter unique Guids
31 Aug 2015 by Peter Leow
This is a simple web application to illustrate visually the difference between Ajax and non-Ajax calls that take place all in a single web page.
8 Oct 2014 by Peter Leow
The OO way to writing your database operation code in PHP
2 Sep 2015 by Peter Leow
Get your database to generate unique running IDs for your application
30 Apr 2013 by Piotr Gałecki
A simple trick that can relieve the database during a brute-force attack.
5 Dec 2014 by Prabakaran T
Youtube API for PHP to feed a video list from a particular channel without Oauth, this API only needs a Channel ID and Channel name, no need to generate API key access and so on, simply it's fair enough.
8 Dec 2015 by Ray Radin
In PHP, there is the standard, documented code for returning HTTP response code. This is the undocumented, shorter alternative.
13 May 2013 by RezaFarhadian
Write a router for PHP MVC Applications with $_SERVER['PHP_SELF']
17 Jun 2015 by Ricardo R Carneiro
In this tip, I describe how to post/send data of a table (or list) of HTML for a LIST/ARRAY in C#.
17 Sep 2014 by Right Handed Monkey
Tips for choosing between '==' (equals or loose comparison) and '===' (identical) operators in php.
20 Nov 2014 by Right Handed Monkey
What are static bindings in PHP. When to use self:: versus static:: to access static methods and fields.
16 Aug 2010 by ro-php-code
The first part of a set of explained design patterns
16 Aug 2010 by ro-php-code
The second part of a set of explained design patterns
24 Jun 2019 by Robin Boswell
I wanted to convert a very simple site from ASP to PHP. The original ASP version had a Site.master. For the PHP version, I just wanted to have a simple pattern that mimicked this.
30 Mar 2010 by Rockyonfire
You should not define the object identifyer at the top of each page (because then you have to write out the same bit of code each time u want to access a object within a class.- (Insted Use a included class)Cachecache_class.phpExample Classclass Cache {function...