Click here to Skip to main content
15,886,137 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 

24 Jan 2007 by Tomas Petricek
Phalanger is a PHP language compiler for the .NET Framework which introduces PHP as a first-class .NET citizen.
15 Jan 2024 by Member 4206974
FormGen, a JavaScript Form Generator
31 Oct 2014 by Christoph Buenger
Describes PHP application development with the free Scavix Web Development Framework (Scavix-WDF).
22 Dec 2016 by Ozesh Thapa
Converting Docx To Html to Docx
22 Feb 2009 by Clayton Rumley
An easy-to-use class that allows us to create PHP classes whose methods are automatically exposed in client-side JavaScript.
31 Oct 2007 by Bill Seddon
Shows how a .NET based WebDAV server can be created by combining two Open Source projects. The example implementation returns files from a file system, but you can extend it to return resources from any repository.
3 Jun 2013 by rgubarenko
jsRazor is unbeatably powerful and stupidly simple client-side rendering approach that consists of ONLY TWO functions. Tiny javascript library entirely eliminates the need for server-page rendering, in the same time giving your apps unmatched simplicity and flexibility.
17 Sep 2008 by Mohammad Dayyan
Generates Persian Calendar
27 Aug 2009 by Elmue
Demo of 6 completely different webservices also with SOAP
28 Mar 2013 by Sebastiaan Meijerink
A PHP MVC modal that mimics C# like Controllers.
29 Nov 2017 by Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
5 Jul 2021 by gggustafson
This article provides the code necessary to implement a website login mechanism without using third-party software.
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
24 Jan 2019 by Daniele Fontani
Sample Wordpress plugin that receives messages from slack and creates wordpress post
26 Jan 2013 by pepethepepe
Access realtime Linux Web server statistics right away from Windows Store App
21 Oct 2009 by csrss
Introduction to Remote Administration and Monitoring Systems
23 Jan 2011 by Sergey Alexandrovich Kryukov
ASP is not a language. All right, ASP and NET is server-side technology, and all use HTML.Nevertheless, the question makes sense, even though it looks like comparison of apples and oranges.Strict answer is: no way! If you look at the page from the the client side or HTML source code, you...
22 Jun 2014 by Wonde Tadesse
Here are lists of Open Source CMS. Open Source Content Management Systems[^]
23 May 2018 by Andreas Schoenle
How to use CrashRptEx, to avoid some of the pitfalls of crash reporting in MFC apps or if you want the ability to continue your application after a crash
6 Dec 2009 by Emilio Garavaglia
May be you'll not like my answer but ... there is no answer for such a question.Programming style is somewhat personal. There can be guidelines in use in companies, communities etc. but -as far my experience is(30 yers of programming)- they are always more or less violated by their own...
12 Apr 2011 by Nish Nishant
>> It means this page has been stored in Questions/180316 directory with the name How-to-manage-html-.aspx.
9 Dec 2022 by Daniele Fontani
Implement a private Wordpress reposiotory using Angular and PHP slim framework as backend
8 Aug 2019 by Michael Chourdakis
Live update your Windows project with full or differential updates
26 May 2009 by ambatisreedhar
An article on how to install Drupal in a step by step manner
7 Feb 2012 by Sergey Alexandrovich Kryukov
There are two problems here.You get your "To" header from $_POST["visitormail"], which is the e-mail address typed by your visitor in the form and processed by your PHP code without any validation.First, how do you know that was a valid and existing address? If this address is wrong, no...
5 Jul 2013 by Maximilien
You have to look at the application "domain" you are interested in pursuing your career.You want to do some mobile applications, then learning Objective-C might be fun and useful.You want to do some "scientific" (or high performance) applications, then learning C++ could be a good...
10 Sep 2014 by CPallini
Roughly speaking, in many OOP languages the static qualifier is used for class methods, that is methods you may call without having a instance of the class (technically they are similar to C functions, that is methods without the hidden this parameter).However, if you really want to know...
19 Jun 2015 by Emiliano Musso
Geolocalize a device and store coordinates on webserver
8 Oct 2015 by Anele 'Mashy' Mbanga
A look at a flexible Java MySQL CRUD PHP script generator
6 Apr 2011 by dan!sh
There is no rule as such. It is merely out of needs or desire to learn. Sometimes, it is your job that forces you to learn new languages sometimes you want to learn new things.If you want to learn new technologies, get a book and start learning. Although be patient. It takes time to learn...
27 Jul 2011 by DominicZA
public string CalculateKundali(string name){ string[] s = new string[] { "_name_, will meet the girl of your dreams this week", "_name_, your health is important, eat healthy this week", "_name_, his week expect good luck", "Beware _name_, don't...
23 Sep 2011 by Sergey Alexandrovich Kryukov
I think there was a book titled "How to stop programming dating sites in PHP and start dating" or something like that. Sorry, cannot find a reference… :-)—SA
17 Oct 2011 by uspatel
Why not!Ajax is independent.and Can be used with other technologies also like php,jsp.I think you are not talking about ajaxtoolkit.Ajaxtoolkit is specially designed for ASP.NET.
15 Dec 2011 by OriginalGriff
How do I put this, without actually being rude....No.If you want a complete application written to your specification, you have two choices:1) Write it yourself.2) Pay someone to write it.The first option is easy - get started and do it.The second option is harder. Try...
25 Apr 2012 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
12 Mar 2013 by Espen Harlinn
Have a look at: Wrapping C++ Classes in a PHP Extension[^]Best regardsEspen Harlinn
18 Sep 2013 by bhavik1st
Demonstrates Google Cloud's experimental support for PHP
22 Sep 2022 by Member 4206974
CrossData is a PHP object for creating an HTML table or a PHP array, crossing two fields of a table from a PDO accessed database.
1 Feb 2014 by tonywilk
Example server and client using different protocols over a Websocket (php/js)
7 Sep 2017 by Latika surse
How to use SASS in Drupal ?
5 Apr 2015 by Anele 'Mashy' Mbanga
Demonstrates creation of apps using JQM.Show, a RAD JQuery Mobile Development Platform: A second installment of the article
10 Jun 2016 by caoym
A lightweight, easy-to-use and jax-rs-like PHP library for building RESTful Web Services
11 Sep 2018 by Peter Leow
Learn to handle form in PHP
14 Aug 2019 by essentialSQL
In this blog post, you will learn about stored procedures
1 Apr 2011 by Sergey Alexandrovich Kryukov
This is funny. Years ago a representative of http://www.youtube.com/[^] asked CodeProject a question:"My problem is when people embed Youtube video in there sites the users cannot redirect it directly to youtube.com and that is what I don't like. Is there any way to add an option "Watch on...
6 Apr 2011 by Sergey Alexandrovich Kryukov
In exact same way as people of any other culture.English is the base though. It is not a problem; probably it is one of the easiest language on the planet to learn; I can tell you this as I am not a native English speaker as well. Right now I counted just 5-6 minor errors in your English...
26 Apr 2011 by OriginalGriff
There is an overview here[^]If you want more, then try here[^]
9 May 2011 by OriginalGriff
How many people do you think have access to the web server? It's more than you think...Where on the server did you put the file?What are the access permissions on the file? On the Folder?Never store passwords in clear: it is always a security risk.There is some info (c# code, but the...
1 Sep 2011 by david.ribeiro
How to consume reports created on BIRT via PHP
17 Oct 2011 by Manfred Rudolf Bihy
Ajax was there way before the advent of ASP.net so the answer is "yes" one can use Ajax without ASP.net.You can write HTML utilizing Ajax from scratch only using JavaScript, but there are some JavaScript frameworks out there that make the task so much easier:jQuery[^]PrototypeJs...
11 Dec 2011 by Sergey Alexandrovich Kryukov
PHP itself works only on server side and does not know anything about client system except information sent to the server side by a client side in some HTTP request. That said, using JavaScript to gather required information of the current client environment like window size is unavoidable.I...
19 Dec 2011 by Uday P.Singh
Yes, it is possible, Have a look at this article:Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]hope it helps :)
30 Dec 2011 by Sergey Alexandrovich Kryukov
Gujarati is popular enough to be supported by most modern systems by default. I never installed anything special, but I just checked up: I have it on my Windows XP and Windows 7 systems.So, all you need it to write the text and save it in UTF-8. You should always prescribe this Unicode UTF...
21 Feb 2012 by OriginalGriff
Because.Th...
17 Apr 2012 by Chris Maunder
jQuery is a javascript library, PHP is a back-end scripting language. You're asking the wrong question.
22 Apr 2012 by Prasad_Kulkarni
Please refer following threads:Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]Using PHP/MySQL with Google Maps[^]
5 Jun 2012 by Sergey Alexandrovich Kryukov
Here is the code sample I made: ...
5 Jun 2012 by thatraja
Check this blog post.NET Code Conversion - Convert your code[^]
16 Oct 2012 by Zoltán Zörgő
Quote:...problem in where i can take all airlines informations...Here they are: http://openflights.org/data.html[^]
4 Jan 2013 by Vyacheslav Voronenko
Compact One Time Password Generator (RFC6238) written in javascript
9 Jan 2013 by Hasham Ahmad
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');if (!$link) { die('Could not connect: ' . mysql_error());}echo 'Connected successfully';mysql_close($link);
1 Oct 2013 by Sergey Alexandrovich Kryukov
You did not show where the exception with the message "Object reference not set to an instance of an object" is thrown. Not to worry. This is one of the very easiest cases to detect and fix. It simply means that some member/variable of some reference type is dereferenced by using and of its...
11 Nov 2013 by Sergey Alexandrovich Kryukov
This is just my own opinion (and anything else would make no sense, because "importance" is a purely social term, any "objective" answer is impossible):There are many weak or lazy programmers, and workers in general, who don't want to learn much, and do not understand that if you want to get...
8 Dec 2013 by Sergey Alexandrovich Kryukov
Perhaps you don't quite understand the role of PHP or any other server-side technology. It's designed to deliver any content, not specifically HTML or something in particular.First of all, most often you have static CSS and add it exactly in the same was as in static HTML, which has nothing...
9 Jan 2014 by CorvinusSoftware
A fairly complete PHP example demonstrating how to use the jQuery 'sortable' method with a single DB Update
5 Feb 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question. Probably what you need is the CSS @media feature. Please read about it:http://www.w3.org/TR/CSS2/media.html[^],http://www.w3schools.com/css/css_mediatypes.asp[^].By using the @media rules, you can select different styles (or some of the styles) for...
23 May 2014 by Lộc Nguyễn
An example of log-in system with Facebook API v.4
30 May 2014 by HardikPatel.SE
Try following code :CheckboxList: Happy Friday //this seems to work $theFrm = ($_POST ["myCheckboxForm"]); ?> getSelectedChbox($theFrm); //**compiler says this...
18 Jun 2014 by Syed M Hussain
Yet another PHP MVC Framework
14 Sep 2014 by Sunil Pandita
The article details out how to build an angularJS application which loads the pages on demand thus reducing the overall data transfer.
14 Feb 2015 by BD Star
Create-Read-Update-Delete(CRUD) operation by MySQLi procedural way in the PHP
16 Mar 2015 by Sander Rossel
The (long awaited) fourth in a series on web development.
14 Dec 2015 by OriginalGriff
An SQL INSERT query doesn't look like that. It looks likeINSERT INTO MyTable (NameOfMyColumn1, NameOfMyColum2) VALUES (ValueForMyColumn1, ValueForMyColumn2)
13 Jan 2016 by Richard MacCutchan
$data=mysqli_query($mysqli,...
20 Jan 2017 by Junian Triajianto
Using the power of Livestreamer and FFmpeg, twitch stream can be recorded every time a user goes online.
7 Jun 2017 by Peter_in_2780
The "unexpected end of file" error usually means you have a php block unterminated. The parser reads off the end of the file searching for block termination, usually }. In your case, the } right before your second
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.
26 Mar 2018 by Jochen Arndt
Lookup what the PHP functions are doing and find the corresponding C# methods: PHP: md5 - Manual[^]: Calculate the md5 hash of a string: use the System.Security.Cryptography.MD5 class PHP: pack - Manual[^]: With "H*" it is like the Text.Encoding.ASCII.GetBytes() method PHP: base64_encode -...
6 Feb 2019 by Wastedtalent
This is because you're not hashing the same thing, in PHP you're turning it into a string with implode. For example, if you also turn it into a string in c# you get the same result as in php: using System; using System.Security.Cryptography; using System.Text; public class Program { public...
25 Feb 2019 by hjgode
LED candle light with timer
29 May 2023 by André Marcos (Advisor), William Caetano Cardenas
Prototyping a Web System to Schedule Patients in Local Medical Clinics Oriented by Test Driven Development Guidelines Supported by PHP, PHPUnit and Symfony Framework Technologies
17 Mar 2024 by Andre Oosthuizen
As I am all about PHP, I found this interesting to play around with, be forewarned though that there are WAY more to the below code than what is given, you have to insert certain security measures, you need to know how to start a session to grab...
28 Apr 2008 by Stephanie Rodriguez
The Standard PHP Library provides support for advanced OOP concepts in PHP. This sample chapter introduces SPL features such as indexers and iterators, the observer/reporter pattern, array overloading, and more.
21 Mar 2009 by phparray
Using PHP-SOAP to access the world's fastest server web service and plot each trip using the Google maps API
30 Jun 2009 by EliottA
umm try the official php website[^] which includes all the documentation as well. Check out the CodeProject forum Guidelines[^]The original soapbox 1.0 is back![^]
26 Jan 2010 by AspDotNetDev
Make one? Search Code Project to see if there is an article on this subject? Search Google to see if you can find some code? What is your question? You're going to have to be a little more specific.At the highest level, you can keep an array of operators and combine them with randomly chosen...
9 Apr 2010 by Media2r
Hi DD,assuming your web server (presumablu some flavour of IIS) supports PHP, there are a number of ways to go about this. Let's start from the top:First, PHP support needs to be added to your IIS. For IIS6, look here[^], and for IIS7, look here[^], here[^], and here[^].Now that your...
31 Aug 2010 by Dalek Dave
Friends,I am new here and this is my first question: I hope your experts will help me.I am running a PHP website, but when I post something in Arabic then the site does not support Arabic, it supports only English.My tables, database everything is fine UFT8 Unicode added but still my...
4 Oct 2010 by Laurence Moroney-MSFT
How to install Drupal on Windows with IIS
20 Jan 2011 by Nish Nishant
Wikipedia has a fairly comprehensive list here:http://en.wikipedia.org/wiki/Lists_of_ethnic_groups[^]
9 Mar 2011 by Sergey Alexandrovich Kryukov
I agree with Yusuf.As your probably did not advanced your progress to much so far, I recommend you get yourself fully aware of the problems of the self-modifying code, see this: http://en.wikipedia.org/wiki/Self-modifying_code#Disadvantages[^].At the same time, your idea is easy to...
21 Mar 2011 by Eduard Keilholz
Hey!I think you're question is how to upload large files and assume you use ASP.NET? If so, this[^] will be a great resource for you...Else I think you need to update your question to make it more clear to us what you mean..
10 Apr 2011 by OriginalGriff
Normally, spaces in a URL are a Bad Thing: you should do HTML encoding and decoding before you construct the URL completely. Look at what Google and so forth do: an ampersand is translated to "%26", a hash to "%23" and so forth. There are a range of characters your user could type or which could...
22 Apr 2011 by Tom Deketelaere
To rename already existing files:In windows explorer go to tools - folder options - view There look for the 'Hide extensions for known file types' checkbox and uncheck it.Then you can simply rename them in the explorer and change the extension.When saving a new file change the 'save...
22 Apr 2011 by Sergey Alexandrovich Kryukov
No way.If you read about asymmetric encryption and think about it, you will understand, that if such method existed it would defeat the purpose if ciphering or digital signature.All this is based on the idea of one-way function, see http://en.wikipedia.org/wiki/One-way_function[^]. The...
28 Apr 2011 by walterhevedeich
cry1978 wrote:what software fix all website errors automatically?None that I know of. It there was, many programmers will probably lose their job.cry1978 wrote:or tell you how to exactly fix the error?As I said, no software that does such exist, or at least, none that I know of. The error...
15 May 2011 by Sergey Alexandrovich Kryukov
This is not what PHP does, if you use it for Web development. PHP is a server-side technology. It works with the Web server on the side of the server machine and delivers content (generally generated on the fly) to the client side, where the browser is. In client-server paradigm, the server is...
23 May 2011 by Sergey Alexandrovich Kryukov
Best source is the original: http://php.net[^], for example, start here: http://php.net/manual/en/index.php[^]—SA
5 Jul 2011 by Christian Graus
der is not an english word. PHP runs on the server and can perhaps check on the server end. HTML, which PHP generates, cannot interact with a webcam.