WordPress PHP Shell and File Browser Plugins

PHP Shell 2.4 for WordPress

We've all suffered it. At some point in a developer's career there will be a day when everything goes tits-up, a site comes crashing down and the site owner isn't around to give FTP access or full server access. Sometimes, all we need is command line access 99 times out of a hundred, I won't even work on a site if the site owner doesn't provide server access but, occasionally, better judgement, years of experience and wisdom hoist their wares and take a family road-trip to some unreachable place. Take today, for example, I was troubleshooting a website for a friend. Nice easy job that I … [Read more...]

HowTo: Browser and OS Detection with PHP

A very quick PHP script for detecting browser/device and OS agent strings from the HTTP User Agent variable. This is not 100% reliable because surfers and bots sometimes hide or falsify the user agent string so please use with caution. Browser and OS Detection Script This script detects whether the OS/Device is Linux, MacOS, iPad, iPhone, Droid, Unix, Windows or anything else (caught in Unknown). It also detects whether the browser is Chrome, Firefox, Opera or Internet Explorer. The user agent string is stored in the variable $agent. The operating system or device is stored in the … [Read more...]

Really Simple PHP Counter

A few days ago I needed to find a simple way to count the number of times a web page loaded. A script in the page had a variable that triggered an event to occur every so many page loads. I needed to use a counter to trigger the event the variable controlled. This little 93 Byte counter code is what I came up with: <?php file_put_contents('count.txt','1\n',FILE_APPEND); $count = count(file('count.txt')); ?> The first time the counter script runs it creates a file called count.txt then writes a number "1" and a carriage return into the first line of the file. From then onwards, every … [Read more...]

Free PHP Random Rotation Script

Random HTML Rotation with PHP Scripts

This is a little PHP script I wrote to rotate ads, text snippets, images, web pages, links and anything else rotatable. In fact, I have two instances of it running in JournalXtra - one to display random ads in the sidebar and another to display random links in the sidebar. I've found it so incredibly useful that I thought I'd better write about it and share it. Random PHP HTML Rotation Affectionately called Randy, the PHP script performs a simple task: it reads an external file, picks a few random lines from it and serves them to a web browser. It is intended to be used to randomly display … [Read more...]

Vanishing WordPress Posts!!!

smashed computer graphic

I had a shock today. In fact, I was terrified, livid and exasperated by what happened to me today: I lost a very long Wordpress article that I have been working on for several months; or, at least, I thought I had lost it. I made a few edits and added some new details to the 140 Mafia Guide, saved it and viewed it to see that the article displayed as I wanted. Only, it wasn't there to be seen. The comments were still visible but the article was, well, gone! I felt sick. I've spent ages working on The Guide, adding internal links and changing the layout to make it more user friendly. I wanted … [Read more...]

Using PHP to Send Data Between Webpages

php

Every now and again we web designers need to pass user input between pages. It could be a username or affiliate code that needs adding into a set of links; it could be details of a contact form that need passing over to a confirmation page before being sent to a database or email server; or it could be any other bit of information that a site visitor enters into one form that must be reproduced or used somewhere within another page or set of pages. Luckily, for those of us who haven't studied PHP, the recipe for passing information between pages contains few ingredients and is easy to follow … [Read more...]

All original content on these pages is fingerprinted and certified by Digiprove
Loading

Invite Friends to ‘JournalXtra’

Supercharge your web design skills with JournalXtra

Buy me lunch!

I'm a cheap date. Where else can you buy lunch for a couple of dollars?

I accept Bitcoin too!

Categories

Dynamik Website Builder
WPMU DEV - The WordPress Experts
StudioPress Theme of the Month