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 Title

PHP 

17 Sep 2014 by Right Handed Monkey
Tips for choosing between '==' (equals or loose comparison) and '===' (identical) operators in php.
7 Jul 2014 by Michael Bergman
Using Windows Communication Foundation to build a simple web server
18 Oct 2011 by Nikunj_Bhatt
Image can also be shown without specifying its extension in HTML doc if it is on server
6 May 2013 by Oso Oluwafemi Ebenezer
Generating an internet shortcut for your website from the server side
5 Feb 2013 by Zamshed Farhan
A simple class in PHP to calculate the weight of file
1 Jun 2015 by Mostafa Asaduzzaman
How to access files within the application using DI
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.
15 Nov 2010 by marigoula
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.
2 Sep 2015 by Peter Leow
Get your database to generate unique running IDs for your application
21 Jun 2010 by Weberto.com
XMLHTTP solution for multiple XML Wow Armory requests
10 Jun 2016 by caoym
A lightweight, easy-to-use and jax-rs-like PHP library for building RESTful Web Services
23 Dec 2009 by koula7
Introduction...
22 Jan 2010 by fly904
You can wrap the functions into a class and use the default class life cycle to your advantage.
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...
16 Aug 2010 by Rockyonfire
I wrote the script using a basic class with the intention of simplifying the Cache proccess doing so allows new features to be added without having to deal with complex code.Because we have a identifyer which can be used to check if the "function" is functional or not we can now indicate the...
21 Dec 2012 by Nathan Stiles
Calling CL programs on the IBM i on Power from PHP using DB2 stored procedures.
18 Dec 2009 by caprico.caprico
With this class we try to catch some keywords from google, yahoo and bing search engines.
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...
2 Jun 2011 by Andre' Gardiner
Censoring any word from a given list (array) to filter your web content(s).
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.
22 Aug 2015 by jerry_wangjh
In this article, we compared different HTTP libs in PHP, and how to use them
2 Jul 2013 by Rony Sur
Sometimes it is required to display the number of page views of blog posts, discussions, or other pages. This is how to do it.
9 Jan 2019 by Tareq_Gamal
Control Anything from a web page using sockets and ports.
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)
31 Mar 2023 by Member 4206974
A PHP class that uses PDO for creating a table from JSON Objects
27 Jul 2013 by Rogai Lorenzo
How to create a web panel for your application.
22 Feb 2014 by Lộc Nguyễn
A simple log-in system
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.
30 Oct 2013 by Monotosh Roy Mon
Developing web service using PHP within 10 minutes
13 Jan 2013 by Zamshed Farhan
Helpful to develop photo gallery
28 Dec 2012 by Vyacheslav Voronenko
Provides brief advise on software customization possibility without need to create own modified AMI
6 Jun 2017 by Gabriel Larco
Debug PHP applications under IIS Express
12 Feb 2019 by Armand Molinski
How to debug PHP on Windows
16 Aug 2010 by ro-php-code
The second part of a set of explained design patterns
16 Aug 2010 by ro-php-code
The first part of a set of explained design patterns
14 Apr 2010 by camaki
Next code demonstrates how to build a simple menu function with the current page high-lighted.index.phpPage - .inactive,...
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...
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.
9 Dec 2013 by Naga Vinodh Peddi
How to dynamically create file upload control and add text file data to SQL database
9 Jul 2012 by SymfonyDriven
Editing tree structures is a common problem in web development
17 Oct 2019 by VipinMittal18
How to enable debugging in Twig templates - Drupal 8
26 Jan 2021 by NewPast
English Simple Past & Past Participle PHP Auto Generation and Syllable Count in English Word
26 Feb 2013 by Shine Jayakumar
A tip on how to find the geographical location of an IP address.
7 Jun 2014 by about-dev.com
Forms in Symfony 2+ without Doctrine
25 Aug 2013 by AjithKp560_
How to create a FTP manager application to connect your server to FTP server
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...
31 May 2012 by Jaiswar Vipin Kumar R.
How to access WAMP Server in LAN or WAN.
25 Dec 2020 by aphpadmin
Create custom directory structure for migration files in your Laravel projects
29 Nov 2017 by Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
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.
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#.
3 Jul 2023 by Micah Ebohon
Consume SMS API from SMS provider in PHP app
7 Sep 2016 by Mohd Shibli
In this tutorial, we will learn how to solve the PHP header() function problem.
1 Feb 2015 by Veronica S. Zotali
The tip aims to demonstrate the usage of Ajax.BeginForm
2 Feb 2011 by M@dHatter
PHP Magic String Builder with Append Format.
7 Feb 2011 by Fatih P.
Here is the one i wrote sometime ago/* ---------------------------------------------------------------------------- * Teknober.com - All rights reserved * ---------------------------------------------------------------------------- * File Name : TStringBuilder.php * Section ...
23 May 2014 by Lộc Nguyễn
An example of log-in system with Facebook API v.4
3 Feb 2017 by rohit7209
It is a very simple and effective utility build in jQuery & PHP to implement pagination on HTML table.
7 Nov 2013 by Santiago Santos Cortizo
jTable adaptation to be used either with jQuery UI and Bootstrap dialogs
20 Jun 2015 by Jesus Carroll
Some typical tips about the security in the use of a mobile device
14 Aug 2018 by W Balboos, GHB
How to open a desktop application from a browser
27 Sep 2019 by AzdevXXI
Introduction Login Google using PHP
2 Feb 2016 by Brahmaputra Mehta
Fastest and most primitive way to get started
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( ...
8 Jul 2014 by G4mm4R4y
This code guides you in making your own currency, and is very simple.
11 Jan 2013 by Zamshed Farhan
MathGuard is a security option for beginners, developed by PHP and jQuery
6 May 2015 by Mostafa Asaduzzaman
Controller Scaffolding in Visual Studio 2015 RC MVC 6 Project
19 Jul 2012 by C Is Sharp
An overview of implementing MVC in PHP.
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.
13 Mar 2015 by Mekki Ahmedi
I am just applying the principle of Defence in Depth
25 Mar 2011 by gxtiou
One Line of code to download youtube's flv file in php
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.
10 Jan 2013 by Zamshed Farhan
APC is a very popular PHP extension to optimize PHP developments.
2 Feb 2015 by Chris_Yu
Why and When to Use the Adapter Pattern in PHP Development
19 Dec 2013 by Santiago Santos Cortizo
This pattern will allow you to forget 504 server error on huge operations.
17 Jun 2013 by C Is Sharp
PHP and Accessing MS SQL Server in Unix/Linux.
3 Jul 2011 by vergil135
Code to detect browser name in PHP.
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.
21 May 2014 by M@dHatter
A new way to handle globals in php without declaring global identifier.
17 Oct 2013 by Emerald kwekowe
PHP multiple file uploader
9 Apr 2012 by Agon Avdimetaj
A simple file uploader written in PHP.
8 Jan 2013 by Zamshed Farhan
It’s a very common problem for those, using Oracle 11g in Windows 7 (64-bit) with PHP applications.
8 Oct 2014 by Peter Leow
The OO way to writing your database operation code in PHP
20 May 2023 by Mirzakhmet Syzdykov
Development process in few steps with the help of scripting software
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 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...
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.
8 Nov 2013 by Manujith Pallewatte
Showing PHP echo/print output in realtime in all browsers using flush() and ob_flush()
21 Dec 2010 by mridul samadder
Redirecting to a page after login in PHP
30 Apr 2013 by Piotr Gałecki
A simple trick that can relieve the database during a brute-force attack.
10 Jul 2012 by amitjha1611
This article is basically helpfull in handling Registry Key through PHP code.
9 May 2017 by Visveswaraiah
Fetching articles from SOLR for RSS feed instead of querying in database