PHP Persistent Connections Causing MySQL Load
PHP persistent connections cause a high load on your MySQL database. For small Web applications, the load is not substantial. For busy websites, the load can cause timeout errors and memory issues on...
View ArticleHow to Code PHP & MySQL to Choose the State
A drop-down box provides programmers with a convenient way to allow readers to choose a state. The drop-down box standardizes data, so all state entries from the user are the same. You use the PHP...
View ArticleHow to Make an XML Playlist Using PHP
The PHP language has internal XML functions you use to set up a playlist formatted in XML tags. You loop through each of your song titles and print the playlist to an XML document. You can use this...
View ArticleHow to Do a Live Search With PHP and MySQL
The PHP and MySQL languages integrate together, so you can create dynamic Web pages on your website. The MySQL database contains the data, and you use the PHP language to send queries to the database....
View ArticleHow to Query Spreadsheets With PHP
The PHP language lets you open a spreadsheet and display the results to your users. You use this function when you have an internal spreadsheet that contains data you want to use to calculate and...
View ArticleHow to Add & Subtract Integers in Different Columns in MySQL
The MySQL database engine includes functions that allow you to add and subtract different columns in a database table. MySQL uses the plus sign and negative sign to add and subtract integers in a list...
View ArticleHow to Set Up DSN to MySQL on GoDaddy
On your website hosted with GoDaddy you have many different options for managing a database, including installing DSN on your MySQL database. Once installed, GoDaddy's system sets every thing up for...
View ArticleHow to Convert Excel to CSV in PHP
PHP includes functions for opening an Excel file, parsing the data and writing the data to a comma-separated value file. A CSV file permits you to transfer data between two different applications such...
View ArticleHow to Use an API XML Feed in PHP
Reading feeds lets you import data from blogs and website feeds and display them in your PHP websites. RSS feeders are set up in XML, so each feed is set up with a standard layout. You must first open...
View ArticlePHP Fatal Error: Cannot Use String Offset As an Array
An offset error in PHP is a fatal error that occurs when you incorrectly try to use an index value for an array on a string variable. When this error occurs, execution of your PHP program halts and...
View ArticleHow to Call an External PHP File Form with HTML
The "action" attribute for the HTML "<form>" tag is used to call an external PHP file. The method attribute of the "<form>" tag is used to specify whether you are going to use PHP "$_POST"...
View ArticleHow to Convert a PHP String to Date
When working with programming languages, it is common to need to convert an item from one data type to another. There is often a need to convert something a user has provided into a usable type—such as...
View ArticleHow to Find the Number of PHP Array Rows
When working with arrays in any programing language, you need to ensure that you know how many rows you have in the array before you attempt to process the array. If you attempt to process or work with...
View ArticleHow to Make a PHP Mailing List
PHP is a versatile language that can handle most server tasks for any website. Mailing lists are a popular component of web activity, and PHP can manage them with ease. Since PHP is automatically...
View ArticleHow to Read a DOC File Using PHP
PHP programmers are often seeking ways to extend the functionality of this language outside its comfort zone. PHP is mostly used on Linux operating systems, but the visitors of PHP websites are usually...
View ArticleHow to Change a Font Type With PHP
Fonts on websites, like all other text characteristics, are manipulated using HTML. The font type, as well as its font family, color and size, are standard aspects that are changed often. Sometimes, it...
View ArticleHow to Format Phone Numbers in PHP
Most web development applications save a 10-digit number in the database without any dashes or parentheses. Hypertext preprocessor (PHP) is a web scripting language that allows the developer to create...
View ArticleHow to Execute a PHP File in Linux
PHP is often thought of as a Web developer's language, with the files being executed by a Web server. However, it can also be used as a shell scripting language to create scripts that are executed on a...
View ArticleHow To Change MySQL Root Password
The MySQL database application has an administrator account called "root." This user has complete administrative control over all aspects of the database. This user also should have a very secure...
View ArticleHow to Create an MP3 Player in PHP
MP3 audio files can be easily embedded into your website using some simple PHP and HTML scripting. One way to create an MP3 player on your website would be to embed the MP3 file directly, however this...
View Article