Related Content
Recreating Spotify Wrapped In PHP
I quite like the end of the year report from Spotify that they call "Wrapped". This is a little application in which they tell you what your favorite artist was and what sort of genres you listened to the most during the year.
Should A Constructor Throw An Exception?
Let's say you had a class that you wanted to use, but there was some sort of error in creating the object. This might be that the wrong parameters were passed, or the third party service (eg. a database) wasn't available at the time of creation.
PHP Question: Variable Reference
Question
What does the following code print out?
function arrayPrint($array)
{
echo implode(' ', $array);
}
$arrayA = [1, 2, 3];
$arrayB = $arrayA;
$arrayB[1] = 0;
arrayPrint($arrayA);
Creating An Authentication System With PHP and MariaDB
Using frameworks to handle the authentication of your PHP application is perfectly fine to do, and normally encouraged. They abstract away all of the complexity of managing users and sessions that need to work in order to allow your application to function.
Creating Sparklines In PHP
A sparkline is a very small line graph that is intended to convey some simple information, usually in terms of a numeric value over time. They tend to lack axes or other labels and are added to information readouts in order to expand on numbers in order to give them more context.
PHP:CSI - Improving Bad PHP Logging Code
I read The Daily WTF every now and then and one story about bad logging code in PHP stood out to me. The post looked at some PHP code that was created to log a string to a file, but would have progressively slowed down the application every time a log was generated.
Comments
Hi, Thanks for this helpful code.
I would like to ask about the code in viewing the files in that root directory.
Thanks,
Submitted by Anonymous on Tue, 03/08/2011 - 07:51
PermalinkSubmitted by nitish on Fri, 12/26/2014 - 12:05
PermalinkSubmitted by philipnorton42 on Fri, 12/26/2014 - 12:09
PermalinkSubmitted by sonali on Thu, 02/26/2015 - 10:52
PermalinkSubmitted by philipnorton42 on Thu, 02/26/2015 - 10:57
PermalinkSubmitted by sandip on Fri, 04/10/2015 - 12:05
PermalinkSubmitted by philipnorton42 on Fri, 04/10/2015 - 12:39
PermalinkSubmitted by snehal on Wed, 04/05/2017 - 13:01
PermalinkGreat tutorial, thanks, there is also another great FTP PHP script, that you can use to upload and manage files on server with any hosting account from Hostgator or Bluehost or PlotHost, this PHP Script is available on Github and SorceForge by searching for SabroCMS.
Submitted by Alex on Thu, 06/30/2022 - 10:49
PermalinkAdd new comment