Confirm clients without reloading a login page.

PHP, PHP Scripts, Software Development, Tips, Tutorials
This class can be used to authenticate users without reloading a login page. It can generate the HTML with Javascript that uses the jQuery library to present a login form that is submitted using an AJAX request for verifying the user password. The class uses a separate database access class to perform a database query to the users database in order to verify whether the user and password are correct. Download Script
Read More

Alter and save a passage of content in a Html page

PHP, PHP Scripts, Software Development, Techniques, Tips, Tutorials, Web Design & Programming
This class might be utilized to alter and save a passage of content in a Html page. It copartners the vital Javascript occasion taking care of code to transform a given passage in a Html page into editable content when the client clicks on it. The point when the client completes the process of altering the produced Javascript submit the passage content to the Web server utilizing Ajax demand so it might be safeguarded. Download Script
Read More

List data in a table that can be edited with AJAX

PHP, PHP Scripts, Software Development, Tips, Tutorials, Web Design & Programming
This class could be utilized to record information in a Html table that could be altered utilizing Ajax. It backs record page scrolling, segment sorting, and set up altering of information cells utilizing structure fields to adjust the qualities and Ajax demands to safeguard the updated qualities to the server. Download Script
Read More

Show month datebooks browseable utilizing Ajax

PHP, PHP Scripts, Techniques, Tutorials, Web Design & Programming
This class might be utilized to presentation month timetables browseable utilizing Ajax. It can create Html and Javascript to presentation a month timetable with connections to peruse the months utilizing Ajax to stay away from page reloading. The class can make given days be shown as connections to occasion pages. The skimming may be limited to given dates. The months and week day names are customizable. The presentation items may be tweaked utilizing CSS. Download Script
Read More

WordPress Plugin Development Guideline

Tutorials, WordPress
General Use comments everywhere. Any new developers should be able to know what the code is doing pretty quickly. Stay Current. Adhere to the latest version of WordPress standards and APIs. Use best practices as detailed at http://codex.wordpress.org/Writing_a_Plugin Test site with define('WP_DEBUG', true); added to wp-config.php to view errors.   File Structure The following folders should exist to support the main plugin file: /js - all javascript /css - all style sheets /img - all images /inc - all PHP include files The root should contain at least: the plugin file (my-plugin.php) uninstall.php - all code to remove plugin and database entries   Plugin Coding Standards Use common PHP coding standards (see php.net). Use common WordPress coding standards (see codex.wordpress.org). Follow rules for quotes, indentation, spacing, etc. at http://codex.wordpress.org/WordPress_Coding_Standards Follow…
Read More

10 Easy Steps For WordPress MU Installation

PHP, Techniques, Tutorials, WordPress
10 simple steps for installation WPMU are: 1 Download WPMU from http://mu.wordpress.org/download/ and unpack it. 2 If you want your WPMU installation in a subdirectory then rename the “wordpress-mu” folder to whatever you want. Upload the entire folder to your server. If you want your installation directly on the root then don’t worry about the folder. Simply upload all of the files inside (not the directory itself) to your server. 3 Create a MySQL database for WordPress MU on your web server, as well as a MySQL user who has all privileges for accessing and modifying it. 4 Navigate to index.php at your domain and you will be presented with the install script: http://example.com/index.php { Root Installation } http://example.com/subdirectory/index.php { Subdirectory Installation } 5 Delete your .htaccess file and change…
Read More

Offline Access to Google and other OAuth based API – PHP OAuth API – Part 2

PHP, Techniques, Tips, Tutorials, Web Design & Programming
Retrieving Access Tokens from a MySQL database The database_oauth_client_class is just a generic SQL database storage class. It really does not execute SQL queries because that depends on the type of database you want to store your tokens. A more specialized sub-class is necessary to execute the SQL queries to a specific type of database. This package also comes with another sub-class named mysqli_oauth_client_class that is specialized in executing the SQL queries to a MySQL database using the mysqli extension. If you use a different type of database, you can use this sub-class as model to execute SQL queries using the appropriate PHP extension. Lets see how you can make this work in practice to make the tokens be stored and retrieved in a MySQL database. The first thing you…
Read More

Offline Access to Google and other OAuth based API – PHP OAuth API – Part 1

PHP, Techniques, Tips, Tutorials, Web Design & Programming
Some applications require access to APIs on behalf of the user even when the user is not present, i.e. offline access. OAuth is a protocol that allows applications to obtain a token to access an API when the user is not present but when the tokens expire they need to be renewed. Some APIs like Google and Box.net support automatic renewal of expired tokens. Using OAuth Tokens to Access APIs Without the User Presence OAuth is a protocol that was thought to grant external applications the permission to call Web site API functions on behalf of an user. It can be used for instance to get details of the user account like his name or even email address, manipulate personal user information like for instance uploading user pictures, execute tasks…
Read More

10 Steps to properly do PHP Bug Tracking and Fixing as Fast as possible – Part 4

PHP, Techniques, Tips, Tutorials
9. Monitor the PHP Error Log File to Quickly Fix Serious Bugs 10. Fix Your Bugs but Never Edit Code on the Production Server 9. Monitor the PHP Error Log File to Quickly Fix Serious Bugs Error logs are useful to discover bugs that may be causing PHP errors but you cannot spend all day looking at your PHP error log files. It would be better if you could be notified when a PHP error occurs. That is the purpose of the Log Watcher class. It can monitor a log file and send an email message to you when new lines that are added to the log file. You can use it for instance from a script started periodically by cron, lets say every 5 minutes, and make it track…
Read More