Most Popular Scripts | PHP | Tutorials & Tips
Simple Active Users Counter
The service includes two code pages: the first one allows to register the last visit of users to the website, and the second one allows data registration and showing number of active/online visitors in a period of time defined by the webmaster. No databases are used, and data is saved to files within a user defined folder. The activity of users is recorded to individual files (one empty file per users). The name of each file is the IP address of the users, and the last modification time of the file is used as reference for last visit of the user. When counting the number of active users, Filesystem Functions are used to check the files: old files are deleted and newer ones are accounted as active users.
Reviews0
PriceFree
Views1334
How to install PHP 5.2 on Vista
posted byjp50inInstalling PHP
This is a guide that explains how to install and configure PHP 5.2 on Vista and IIS7.Following these easy steps you will be able to have PHP running on Vista 32 bits in 15 minutes.And keeping all the PHP files in the same directory.
Try now,you are very welcome.
Reviews0
PriceFree
Views2222
Introduction to PHP for beginner's
posted byQuadodoinIntroduction to PHP
This is a basic PHP tutorial available for everyone and anyone who wants to read it. It covers: Variables, Comments, Output, Strings, Operators, If...Else, Switch, Arrays, While Loop, For Loop, Foreach Loop, Do While Loop, Include and Require, PHP/HTML Forms and the POST and GET methods. HTML knowledge is not necessary, but HTML is included in some examples in the code, specifically the form part.
Reviews0
PriceFree
Views2042
PHP Includes
posted bylooninFile Manipulation
An introduction to the PHP include function and example an of how to use this to create a template base for your website.
Reviews0
PriceFree
Views836
PHP multiple photo thumbnail generator
posted byAnshargalinImage Manipulation
Built-in PHP library gd does not have ready-to-use function for photo(jpeg) thumbnail generation. Although there are many such examples on the net, they are usually not suitable for effective generating series of thumbnails (for ex. 240x240, 140x140, 80x80). This article provides php function thumbnail_generator and trivial image uploading script, which generates series of thumbnails.
Reviews0
PriceFree
Views2530
Simple Image Resize in GD
posted byByteMyCodeinImage Manipulation
Were going to be creating it in a function, so that we can re-use this wherever we need to. This particular function saves the thumbnail file to a directory on the server, you could actually skip saving the file and just print out the image itself if you would prefer to do that.
Reviews0
PriceFree
Views2373
Creating a file manager
posted byphptoys2inFile Manipulation
In this tutorial I will show you how to create a PHP application to display directory content (filename, file size, modification date) and navigate between them.
Reviews0
PriceFree
Views3133
PHP Script Tips - Understanding and Managing Cookies
posted bykarl_viinCookies & Sessions
A collection of 23 tips on understanding and managing cookies in PHP. Clear explanations and tutorial exercises are provided on setting and receiving cookies, creating and removing persistent cookies, specifying domain and path to restrict cookies, finding cookies in cookie files, cookie limitations:
How To Send and receive a Cookie to the Browser?
How To Set a Persistent Cookie?
How To Remove a Cookie?
How To Specify Domain and Path for a Cookie?
How Cookies Are Transported from Servers to Browsers?
How To View Cookie Header Lines?
Where Are the Persistent Cookies Stored on Your Computer?
How To View the Content of a Cookie File?
How Many Cookies Can You Set?
How Large Can a Single Cookie Be?
How Are Cookies Encoded During Transportation?
How Can Other Webmaster Steal Your Cookies?
......
Reviews0
PriceFree
Views2500
PHP Basics
posted bylooninIntroduction to PHP
A general introduction to PHP, what it is, some benefits it has, how to output text to your pages, setting variables and a little more.
Reviews0
PriceFree
Views2555
Prevent Hotlinking
posted bydtang4inMiscellaneous
100% fool-proof (as far as I can tell). Prevent hotlinking to files not supported by .htaccess. For instance, I use this method to prevent people from linking to *.SWF files stored on my server.
Reviews0
PriceFree
Views1932
PHP Basics: Introduction to Scalar Variables
posted byskyhawk133inIntroduction to PHP
Other tutorials here may focus on getting a specific task done, but at the core of any language is syntax that must be learned and understood if you are ever to progress in it. This is what I hope to explain to you about the PHP language.
Reviews0
PriceFree
Views2474
Serverize!
posted bybilgininInstalling PHP
Serverize! is the "insta-thought-up" name for a tutorial that will guide you step by step on turning your windows machine into a full blown server. Install Apache, PHP, MySQL, PhpMyAdmin and Perl.
Reviews0
PriceFree
Views2023
Admin user interface: adding and deleting users
posted bywebmasterinDatabase-Related
This is the second part of creating Web-based admin user interface. This tutorial covers adding and deleting users via Web form using a MySQL database.
Reviews0
PriceFree
Views7701
Interfacing With MS Access 97+
posted bysiddharthv79inDatabase-Related
Here, you will learn how to create an MS Access database and interface with it using PHP on Windows platform. Main topics include: Creating an Access database, Setting up an ODBC Connection, and Interfacing with database.
Reviews0
PriceFree
Views5294
Sending Email With PHP
posted bywebmasterinForm Processing
In this tutorial you will learn how to create a form mail system in PHP. Explains how to use form fields and redirection for (un)successful submissions.
Reviews0
PriceFree
Views4821
How to login to a website using cURL extension in PHP
posted byphpdevsamiinMiscellaneous
In this quick tutorial I am going to show you guys how to login to a website using cURL extension in PHP. Here is two different tutorials that will help you understand this tutorials. Please have a look at them before you proceed.
Reviews0
PriceFree
Views691
US State Drop Down List PHP Function
posted bysrblairinForm Processing
This is a simple function that returns state names and their abbreviations in an array. This is a very useful function that can save you loads of time when you have to make a us state drop down list for a form.
Reviews0
PriceFree
Views692
PHP MySQL & File Backup Script
posted bystambainFile Manipulation
This completely free script allows you to backup your complete server. It allows backing-up MySQL databases and files on your server. You can create backups, download them and delete them.
It also includes a Cron job script that will make your life easier. You can easily create Cron jobs using this part of the script with no trouble.
Free for both personal and for commercial use.
Reviews0
PriceFree
Views783
PHP and Forms
posted bypaxgamersinForm Processing
You probably have a CMS or at least a blog script running on your website and to add articles, among other things, you fill out a form. If you've ever wondered how that translated over to a blog being added to a database and how it's verified, then you will want to read this tutorial.
I'll go over the simple passing of data from form to adding it to the database and the different functions and variables that can be used.
Reviews0
PriceFree
Views1889
Image Resizing Class
posted byhimanshu080inImage Manipulation
This class can be used to resize images preserving the aspect ratio.It can open a JPEG, PNG or GIFimage and resize it in such way that neither the width nor the height exceed given size limits.The image is resized to preserve the original proportion between the width and height.The resized image is generated in the JPEG format overwriting the original image file.
Reviews0
PriceFree
Views1344