Click here to Skip to main content
15,884,836 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 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 Member 4206974
FormGen, a JavaScript Form Generator
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 Score

PHP 

29 Nov 2017 by Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
2 Sep 2015 by Peter Leow
Get your database to generate unique running IDs for your application
25 Jan 2016 by Garbel Nervadof
Convert HTML table data from a website into PHP array
7 Sep 2017 by Latika surse
How to use SASS in Drupal ?
10 Jun 2016 by caoym
A lightweight, easy-to-use and jax-rs-like PHP library for building RESTful Web Services
23 May 2014 by Lộc Nguyễn
An example of log-in system with Facebook API v.4
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.
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.
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.
10 Jan 2013 by Zamshed Farhan
APC is a very popular PHP extension to optimize PHP developments.
8 Jul 2014 by G4mm4R4y
This code guides you in making your own currency, and is very simple.
2 Feb 2015 by Chris_Yu
Why and When to Use the Adapter Pattern in PHP Development
2 Feb 2011 by M@dHatter
PHP Magic String Builder with Append Format.
30 Aug 2011 by Alexander Kouznetsov
A way to view, store and process logical expressions
21 Dec 2012 by Nathan Stiles
Calling CL programs on the IBM i on Power from PHP using DB2 stored procedures.
5 Feb 2013 by Zamshed Farhan
A simple class in PHP to calculate the weight of file
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)
13 May 2013 by RezaFarhadian
Write a router for PHP MVC Applications with $_SERVER['PHP_SELF']
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.
1 Feb 2015 by Veronica S. Zotali
The tip aims to demonstrate the usage of Ajax.BeginForm
17 Oct 2019 by VipinMittal18
How to enable debugging in Twig templates - Drupal 8
11 Jan 2022 by Member 4206974
A tip to get a data list on 2 (or more) columns.
3 Jul 2023 by Micah Ebohon
Consume SMS API from SMS provider in PHP app
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
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.
25 Mar 2011 by gxtiou
One Line of code to download youtube's flv file 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.
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.
19 Dec 2012 by Nitesh Kejriwal
A handy method to truncate words to a certain number of characters without breaking any word in between
28 Dec 2012 by Vyacheslav Voronenko
Provides brief advise on software customization possibility without need to create own modified AMI
25 Jan 2013 by simsam77
How to set up a SmartOS machine with Node.js and an AMP stack.
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.
7 Jun 2014 by about-dev.com
Forms in Symfony 2+ without Doctrine
29 Apr 2015 by AjithKp560_
FTP Client for Web server.
22 Aug 2015 by jerry_wangjh
In this article, we compared different HTTP libs in PHP, and how to use them
9 May 2017 by Visveswaraiah
Fetching articles from SOLR for RSS feed instead of querying in database
7 Feb 2011 by Fatih P.
Here is the one i wrote sometime ago/* ---------------------------------------------------------------------------- * Teknober.com - All rights reserved * ---------------------------------------------------------------------------- * File Name : TStringBuilder.php * Section ...
2 Jun 2011 by Andre' Gardiner
Censoring any word from a given list (array) to filter your web content(s).
3 Jul 2011 by vergil135
Code to detect browser name in PHP.
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.
9 Jul 2012 by SymfonyDriven
Editing tree structures is a common problem in web development
5 Nov 2012 by TrueCodePoet
Fixing mod_rewrite access to .htaccess files for Wordpress "Pretty Permalinks" and 404 errors.
30 Apr 2013 by Piotr Gałecki
A simple trick that can relieve the database during a brute-force attack.
21 Apr 2014 by Member 4206974
A function for works on event
20 Jun 2015 by Jesus Carroll
Some typical tips about the security in the use of a mobile device
5 Nov 2017 by Brady Kelly
How I got WordPress running on Heroku
27 Sep 2018 by Friedrich Rehren
This tip shows you how to validate Requests by Alexa according to the Amazon requirements.
12 Feb 2019 by Armand Molinski
How to debug PHP on Windows
25 Dec 2020 by aphpadmin
Create custom directory structure for migration files in your Laravel projects
31 Mar 2023 by Member 4206974
A PHP class that uses PDO for creating a table from JSON Objects
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.
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 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.
21 May 2018 by vnmatt
Using Responsive File Manager in ASP.NET MVC
1 Jun 2015 by Mostafa Asaduzzaman
How to access files within the application using DI
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#.
13 Sep 2011 by MaulikDusara
some credit card numbers for testing purposes.
9 Dec 2013 by Naga Vinodh Peddi
How to dynamically create file upload control and add text file data to SQL database
21 May 2014 by M@dHatter
A new way to handle globals in php without declaring global identifier.
27 Jul 2013 by Rogai Lorenzo
How to create a web panel for your application.
7 Jul 2014 by Michael Bergman
Using Windows Communication Foundation to build a simple web server
18 Jul 2012 by Ankur.Saxena17
Simple Client-Server socket program in PHP
19 Dec 2013 by Santiago Santos Cortizo
This pattern will allow you to forget 504 server error on huge operations.
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.
7 Sep 2016 by Mohd Shibli
In this tutorial, we will learn how to solve the PHP header() function problem.
22 Jan 2010 by fly904
You can wrap the functions into a class and use the default class life cycle to your advantage.
30 Apr 2012 by Pascal Ganaye
A set of functions to get slightly shorter unique Guids
8 Nov 2013 by Manujith Pallewatte
Showing PHP echo/print output in realtime in all browsers using flush() and ob_flush()
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...
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...
31 May 2012 by Jaiswar Vipin Kumar R.
How to access WAMP Server in LAN or WAN.
19 Jul 2012 by C Is Sharp
An overview of implementing MVC in PHP.
8 Oct 2014 by Peter Leow
The OO way to writing your database operation code in PHP
11 Jan 2013 by Zamshed Farhan
MathGuard is a security option for beginners, developed by PHP and jQuery
17 Sep 2014 by Right Handed Monkey
Tips for choosing between '==' (equals or loose comparison) and '===' (identical) operators in php.
6 May 2013 by Oso Oluwafemi Ebenezer
Generating an internet shortcut for your website from the server side
25 Aug 2013 by AjithKp560_
How to create a FTP manager application to connect your server to FTP server
9 Apr 2012 by Agon Avdimetaj
A simple file uploader written in PHP.
22 Feb 2014 by Lộc Nguyễn
A simple log-in system
6 May 2015 by Mostafa Asaduzzaman
Controller Scaffolding in Visual Studio 2015 RC MVC 6 Project
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 Feb 2017 by rohit7209
It is a very simple and effective utility build in jQuery & PHP to implement pagination on HTML table.
10 Jul 2012 by amitjha1611
This article is basically helpfull in handling Registry Key through PHP code.
26 Feb 2013 by Shine Jayakumar
A tip on how to find the geographical location of an IP address.
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.
7 Nov 2013 by Santiago Santos Cortizo
jTable adaptation to be used either with jQuery UI and Bootstrap dialogs
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...
23 Dec 2009 by koula7
Introduction...
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...
30 Oct 2013 by Monotosh Roy Mon
Developing web service using PHP within 10 minutes
21 Dec 2010 by mridul samadder
Redirecting to a page after login in PHP
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.
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 Jan 2013 by Zamshed Farhan
It’s a very common problem for those, using Oracle 11g in Windows 7 (64-bit) with PHP applications.
18 Dec 2009 by caprico.caprico
With this class we try to catch some keywords from google, yahoo and bing search engines.
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.
14 Apr 2010 by camaki
Next code demonstrates how to build a simple menu function with the current page high-lighted.index.phpPage - .inactive,...