| |
Rating
Thread /
Thread Starter
|
Last Post  |
Replies |
Views |
|
by functional
I posted a snippet on my blog which gives you an array of US states and countries in PHP, I thought I'd share it here too.
$states_abv_string = 'AL, AK, AZ, AR, CA, CO, CT, DE, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA,...
|
|
0 |
905 |
|
by Debjani
You should see the following:
$q = strtolower( $_GET );
if (!$q) return;
$dbhost = "localhost"; // Database Host
$dbuser = ""; // User
$dbpass = ""; // Password
$dbname = ""; // Name of Database
|
|
0 |
449 |
|
by billyconnite
Hey all,
For those of you who use phpBB and the common seo mod (phpbb-seo.com), you may have noticed that many links in non-prosilver and non-subsilver templates are broken due to the virtual topic folders.
This mod will save you editing your template files to correct those broken links.
You'll...
|
|
0 |
1,308 |
|
by billyconnite
Hey all,
Found a nice snippet here: here. It parses the server variable HTTP_ACCEPT_LANGUAGE and grabs the preferred language of the browser client. This can be very useful when targeting certain languages/countries.
If you use an advertising service that pays only for views from a certain...
|
|
0 |
1,298 |
|
by wayneh
Hi all
I am very new to PHP. I am working on with PHPshop and have about finished it. I am struggling with a button that will delete the product table and recreate it in mysql. I have found this code from within the forum and was hoping that some one could help me code this to work with a button....
|
|
2 |
736 |
|
by admin
I just posted a GID Community blog entitled: Get the date / time difference with PHP.
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
26-Oct-2010 09:51
by blue
|
5 |
35,031 |
|
by MisterChucker
This script prints out a table similar to what you would see if you ran an explain query using the MySQL command-line interface (minus the borders). Simply set the defined constants to match your database and run the script in your browser. You can change the column widths in the $widths array on...
|
|
0 |
3,397 |
|
by MisterChucker
<?php
/*
* This script demonstrates the mathematics of resizing an image to a different
* width and height without stretching or squeezing the original image. If the
* source image has a different aspect ratio than the destination image, the
* source image will be cropped.
*
* Consider a...
|
|
0 |
4,533 |
|
by Vahid
Hi,
Recommend us script is one of the effective viral marketing tools. It is highly "recommended" to have recommend us page on your website and let visitors to refer others to your website.
Here is the recommend us script I have created. You just need to replace the YourURL with your own domain...
|
|
1 |
2,443 |
|
by rockyford1000
how to fix this issue
Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
|
|
0 |
1,292 |
|
by Richardknox
Hello,
I am slowly learning to use PHP for the website that I am putting together. So, please understand that I am a newbee to PHP, and MySql.
I am also creating this script from other bits and pieces from other scripts, so that might be part of my problem.
What I am attempting to accomplish...
|
|
3 |
2,995 |
|
by admin
I just posted a GID Community blog entitled: Blended Colours by Opacity, a PHP Function.
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
25-Mar-2007 18:53
by admin
|
0 |
1,972 |
|
by JdS
<?php
/**
NAME : convert_from_bytes()
VERSION : 1.0
AUTHOR : J de Silva
DESCRIPTION : returns FLOAT value; handles converting
bytes to values in units between
'bits' and 'gigabytes'.
TYPE : function
|
11-Jan-2007 05:12
by admin
|
4 |
20,231 |
|
by Elmseeker
// Name: rpass
// Version: 1.0
// Author: Elmseeker
// Description: Generates a random 6-5 character password.
// Type: Function
function rpass()
{
$min=6; // minimum length of password
$max=15; // maximum length of password
$pwd=""; //to store generated password
|
|
5 |
7,278 |
|
by admin
I just posted a GID Community blog entitled: PHP function to ping Google Sitemaps.
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
|
1 |
5,588 |
|
by crystalattice
Found this as part of the very useful The Grand Fandango PHP package. The package also includes What's New, What's Updated, and Navigation scripts. The Navigation script is especially nice since it's dynamic based on the folders you have on your web server. It's also GPLed.
This "breadcrumbs"...
|
|
0 |
7,177 |
|
by JdS
I just posted a GID Community blog entitled: Setting the "no_adsense_for_me" cookie.
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
27-May-2005 04:17
by JdS
|
0 |
2,741 |
|
by JdS
I just posted a GID Community blog entitled: AdSense ad_client id dynamically.
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
27-May-2005 04:10
by JdS
|
0 |
2,733 |
|
by JdS
I just posted a GID Community blog entitled: BBCode - the quote] tag.
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
05-May-2005 06:05
by JdS
|
0 |
2,794 |
|
by JdS
Usage:
string calc_due_date( string date, string interval, int add string return_date_format] )
returns false on error.
<?php
/**
* @name calc_due_date()
* @created February 21, 2003
|
30-Jul-2004 06:00
by JdS
|
1 |
9,265 |