Category::PHP
Development
PostgreSQL: Create Recordset & Display | |||||
| Post Date: | Jan 25, 2010 | Posted By: | Admin | Category: | PHP |
|---|---|---|---|---|---|
Creating a recordset and displaying data from a PostgreSQL table using PHP; | |||||
PHP CLI: Virtual Box Startup Script | |||||
| Post Date: | Nov 11, 2009 | Posted By: | Admin | Category: | PHP |
Administrators are often called upon to write scripts to accomplish tasks. I've been playing a lot with php cli scripting lately and had a need to create a script to startup a VirtualBox VM from the command line. Here's what it looks like; | |||||
PHP CLI: Simple Process Control In Linux With PCNTL_EXEC | |||||
| Post Date: | May 15, 2009 | Posted By: | Admin | Category: | PHP |
I've been working on a project using php executed from the command line. The project downloads files via FTP from several sources, renames the files and tosses the files into a new directory structure. I never thought I'd find a legitmate reason to create a "file scrounger". Throughout development I've been executing the script from the command line to test and debug. Happily building the app step by step. Once it was complete I thought I'd just be able to execute it from a cron job on my Linux box and be done with it. Boy, was I wrong!!! | |||||
PHP: Word Popularity/Density Script | |||||
| Post Date: | Dec 10, 2008 | Posted By: | Admin | Category: | PHP |
I found this at Bit Repository. Decided to add it here for posterity. Function: | |||||
PHP: Display Column (Field) Names In MySQL Database Table | |||||
| Post Date: | Jul 14, 2008 | Posted By: | Admin | Category: | PHP |
On occassion we need to get the column names in a table. The following code snippet shows how to connect to the database and display all the column names in the database table. | |||||
PHP: Send 404 Error Header | |||||
| Post Date: | Jun 06, 2008 | Posted By: | Admin | Category: | PHP |
To return the proper header information in a file used as a 404 error page, enter the following line at the beginning of the document (Yes, before <!DOCTYPE> and <html> tags); | |||||
Force File Download | |||||
| Post Date: | Apr 07, 2008 | Posted By: | Admin | Category: | PHP |
Ever need to have a visitor download a file? You could just put it into a link like Download. But what if you want to have the user download an image? That can get a little dicey. The user's browser settings can get in the way, opening the image in another browser window or a local image viewer. Hence the need to create a script to provide a clean download mechanism. The following script offers this ability for various file types; | |||||
Simple Math Challenge/Response In PHP | |||||
| Post Date: | Apr 02, 2008 | Posted By: | Admin | Category: | PHP |
I needed a captcha type thing for a website I was building. So off to the 'net I went to research available scripts. Everything I read, that appeared objective, indicated that captcha is a weak way to protect pages. Further, one of the articles suggested using math as a challenge/response scheme. Mathematics is the universal language, right? After working with several captcha scripts and not being successful at making them work within the environment I was trying to implement, I generated the following; | |||||
| ( Page 1 of 1 ) ( Records: 1 - 8 of 8 ) |
