Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

December 13, 2009

Google Search Form Using PHP

This trick how to make google search form using PHP.  This trick will facilitate visitors of your site in searching when are in your site directly. It so simple of code.

December 04, 2009

Where is PHP.ini Location???

PHP.ini is the configuration file of PHP server.
Do you know where the existence of the php.ini, and maybe there is more than one of php.ini. It might be caused by you've installed previous the php server. Directory of php.ini also different as in Xampp, Appserv and other php packages server.

November 29, 2009

Create the Light Upload Form

Create the Light Upload Form. The following trick is very useful of you who want to add file upload form facility on the site.

November 27, 2009

Create a Tree Menu

A tree menu or an tree view is a graphical user interface element (widget) that presents a hierarchical view of information. Each item (often called a branch or a node) can have a number of subitems. This is often visualized by indentation in a list.

November 21, 2009

nl2br script PHP Funcion

nl2br script PHP Funcion is a script to receive variable string in POST method not GET method. nl2br script PHP Funcion will return the value of string accordance with real form.

nl2br script PHP Funcion. This was my experience when learning PHP to insert data that is sent from the client by using visual basic, but when I see the results in a mess. extends to the side that ignores Enter characters

October 05, 2009

This PHP function is used to copy the files.

This PHP function copy () is used to copy the files

Example:

<? php
$ from_path = "c: / myfolder / file.txt";
$ to_path = "d: / myfolder / file.txt";
copy ($ from_path, $ to_path); / / copy the files from the initial path to the destination path
?>

readir () is PHP function is used to read the contents of a directory.

readir () is PHP function is used to read the contents of a directory.

Example:

<? php
/ / This script is used to display the contents of c: /
if ($ handle = opendir ( "c :/")) (
while (false! == ($ file = readdir ($ handle))) (
echo $ file. "<br>";
)
closedir ($ handle);
)
?>

October 02, 2009

SQL Programming Random Message

SQL Programming Random Message

when we see a message on an application that will change when the refresh, then we think how to use it

SQL provides convenience through

SELECT RAND ();

example:
SELECT * FROM table ORDER BY RAND ();
SELECT * FROM table ORDER BY RAND () LIMIT 3;
SELECT * FROM table WHERE conditions ORDER BY RAND () LIMIT 3;

Formatting Numbers in PHP Function number_format ()

Formatting Numbers in PHP Function number_format ()


number_format (n [, x [, y, z]);

type is a float or real, may also integer
x is the number of decimal digits behind the comma
y is the string as a decimal separator
z is the string as a separator groups per thousand

July 09, 2009

Guest counter using PHP

Guest counter using PHP is a script has many people posting, but here I just want to post in order I always remember about this script. he...he...

June 22, 2009

Post Data to Server with VB6

Post Data to Server with VB6

This is a simple coding which tell about process open internet to post data to server. here writer use PHP as the server program.
with any modification the programmer can add the database like MYSQL to their program.

Recent Comment

Grab This Widget