New Scripts | PHP | Tutorials & Tips
DSN and DSN-less connections
posted bybouvilloninDatabase-Related
DSN stands for 'Data Source Name'. It is an easy way to assign useful and easily rememberable names to data sources which may not be limited to databases alone. DSN-less connections don't require creation of system level DSNs for connecting to databases and provide an alternative to DSNs. This tutorial will show you how to connect to an Access database with a DSN and without a DSN.
Reviews0
PriceFree
Views1781
MySQL FAQs - PHP Connections and Query Execution
posted bykarl_viinDatabase-Related
A collection of 18 FAQs on connecting MySQL server with PHP scritps. Clear explanations and tutorial exercises are provided on MySQL server connection; providing port number, user account and password; selecting or creating database; running SQL statements; checking execution errors.
Reviews0
PriceFree
Views1769
Blocking access to the login page after three unsuccessful login attempts
posted bybouvilloninUser Authentication
Sometimes you need to add an extra protection to password-protected website. This article explains how access to the login page can be restricted after three unsuccessful login attempts. This schema uses visitors IP address to store log attempts in the database and block access to login feature for 30 minutes after third unsuccessful attempt.
Reviews0
PriceFree
Views3831
How to install and cofigure PHP 5 on Windows box
posted bybouvilloninInstalling PHP
It is assumed that you have already successfully setup IIS or installed Apache on your machine and configured it. This article explains the steps you need to follow to configure PHP and secure its correct operation.
Reviews0
PriceFree
Views1608
Upload files using a HTML form in PHP
posted byaweskadoninFile Manipulation
This script will help you for the baics of uploading images or files to your server using a HTML form and the PHP function copy. We haven't explained form validation or file checking - We'll go into further detail on that in future tutorials. To kick things off, you'll need a HTML form.
Reviews0
PriceFree
Views2160
PHP distance Calculation using Latitude and Longitude using GeoDataSource
posted bygeodatasourceinMiscellaneous
This routine calculates the distance between two points. It is being used to calculate the distance between two locations using GeoDataSource Products
Reviews0
PriceFree
Views1426
Explode -- Split a string by string
posted bymicrocybinIntroduction to PHP
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator. If limit is set, the returned array will contain a maximum of limit elements with the last element containing the rest of string.
Reviews0
PriceFree
Views1474
XML processing with PHP
This tutorial shows you with code examples how to process an XML datasource with PHP.
Reviews0
PriceFree
Views5795
View Source Code Page
posted byDrQuincyinMiscellaneous
This script generates a page akin to a browser's View Source option. The advantage of using this script is that you can customise the stlying to match your website user interface.
Reviews0
PriceFree
Views1561
PHP Script Tips - Understanding and Using Sessions
posted bykarl_viinCookies & Sessions
A collection of 19 tips on understanding and using sessions in PHP. Clear explanations and tutorial exercises are provided on starting and closing sessions, saving and retrieving values in sessions, deciding how session IDs to be transferred, deciding where to store session files, deciding when to expire session values, etc. Topics included in this collections:
What Is a Session?
How To Turn On the Session Support?
How To Save/Retrieve Values to the Current Session?
What Is a Session ID?
How To Retrieve the Session ID of the Current Session?
What Are the Options to Transfer Session IDs?
How Session IDs Are Transferred on Your Web Server?
How To Force the PHP Engine to Use Cookies to Transfer Session IDs?
Is It More Secure to Use Cookies to Transfer Session IDs?
Where Are the Session Values Stored?
What Set the Timeout Period on Session Values?
How To Remove Values Saved in the Current Session?
How To Tell If a Session Is New?
What Is session_register()?
Reviews0
PriceFree
Views3765
Crawl Your Site for PageRanks
posted bydtang4inWeb Fetching
This tutorial will teach how you to grab the Google PageRanks of every webpage on your domain.
Reviews0
PriceFree
Views2625
Crawl Your Site for Google PageRanks
posted bydtang4inWeb Fetching
This recursive function crawls a domain for Google PageRanks of every webpage on the site.
Reviews0
PriceFree
Views1906
PHP Script Tips - Working with Directoris and Files
posted bykarl_viinFile Manipulation
A collection of 8 tutorials on working with directories and files:
How To Create a Directory?
How To Remove an Empty Directory?
How To Remove a File?
How To Copy a File?
How To Dump the Contents of a Directory into an Array?
How To Read a Directory One Entry at a Time?
How To Get the Directory Name out of a File Path Name?
How To Break a File Path Name into Parts?
Reviews0
PriceFree
Views2349
PHP Script Tips - Working with MySQL Database
posted bykarl_viinDatabase-Related
A collection of 21 tips on working with MySQL database. Clear explanations and tutorial exercises are provided on connecting and selecting MySQL database, creating and dropping tables, inserting, updating, and deleting rows, selecting and looping through data rows, searching by key words, setting auto-increment IDs.
Reviews0
PriceFree
Views4007
Check Database Permissions
posted bytjthedjinDatabase-Related
If you are the root user then it will display all the databases on the server, but if your not the root user then it will show all the databases that your user has permissions for. It's a really fun to play around with and can be expanded in a variety of ways. It's explained in the comments.
Reviews0
PriceFree
Views1790
PHP Script Tips - Uploading Files to Web Servers
posted bykarl_viinFile Manipulation
A collection of 12 tips on uploading files with PHP pages. Clear explanations and tutorial exercises are provided on creating file upload HTML tags, setting encoding type on HTML forms, getting uploaded file information, storing uploaded file in database.
Reviews0
PriceFree
Views2434
PHP Script Tips - PHP Built-in Functions for Strings
posted bykarl_viinIntroduction to PHP
A collection of 19 tips on manipulating PHP strings. Clear answers are provided with tutorial exercises on string functions including strlen, trim, substr, chop, strpos, strcmp, split, etc
Reviews0
PriceFree
Views1298
PHP Script Tips - Understanding PHP Arrays and Their Basic Operations
posted bykarl_viinDevelopment
A collection of 11 tips on PHP array introduction. Clear answers are provided with tutorial exercises on declaring and creating arrays, assigning and retrieving array elements, identifying elements by keys and indexes, copying arrays:
What Is an Array in PHP?
How To Create an Array?
How To Test If a Variable Is an Array?
How To Retrieve Values out of an Array?
What Types of Data Can Be Used as Array Keys?
How Values in Arrays Are Indexed?
Can You Add Values to an Array without a Key?
Can You Copy an Array?
How to Loop through an Array?
How the Values Are Ordered in an Array?
How To Copy Array Values to a List of Variables?
Reviews0
PriceFree
Views1662
PHP Script Tips - Processing Web Forms
posted bykarl_viinForm Processing
A collection of 21 tips on process Web forms with PHP scripts. Clear explanations and tutorial exercises are provided on generating and processing Web forms, getting values out of $_REQUEST, processing multiple choices, removing slashes, adding multiple submit buttons, adding hidden values, processing original query string:
How To Retrieve the Submitted Form Data?
How To List All Values of Submitted Fields?
How To Retrieve Input Values for Checkboxes Properly?
How To Remove Slashes on Submitted Input Values?
How To Support Multiple Submit Buttons?
How To Support Hidden Form Fields?
How To Retrieve the Original Query String?
How To Protect Special Characters in Query String?
...
Reviews0
PriceFree
Views3450
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
Views2501