- Thursday, July 22, 2010, 9:22
- PHP
By using array_push(),we can add more elements into an array at the end,and also we can check the number of elements in array by using "count" function.
Full story
- Thursday, July 22, 2010, 9:15
- PHP
Using array_rand() function we can collect one or more elements from an array in php Otherwise, it returns an array of keys for the random entries.
Full story
- Thursday, July 22, 2010, 5:19
- PHP
Here’s some simple info displaying your IP address, browser info, and
the address that referred you to the page:
Full story
- Tuesday, July 20, 2010, 13:00
- PHP
upload_form.php
{code codetype=php}
< html>
< head>
< meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
< title>Uploading multiple images
< /head>
< body>
< form action="upload.php" method="post" enctype="multipart/form-data">
Upload these files:
< input name="images[]" type="file" />
< input type="submit" value="Upload Files" />
Full story
- Monday, July 19, 2010, 7:20
- PHP
We can get the IP address of any visitor by using PHP. The following code will give the ip address of visitor.
Full story
- Friday, July 2, 2010, 5:38
- PHP
1 st create html form to input the file to upload.The form need an enctype tag which specifies how form-data should be encoded before sending it to the server.Here we use "multipart/form-data" .That is no characters are encoded. This value is required when you are using forms that have a file upload control.
Full story
- Tuesday, June 29, 2010, 18:23
- PHP
A cookie is used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, we are going to create and retrieve cookie values.
Full story
- Saturday, June 26, 2010, 9:42
- PHP
This simple mail form used PHP mail() function to send emails.The complete source code is given below
Full story
- Saturday, June 26, 2010, 7:24
- PHP
I have been working to create crowler friendly rss feed for our website. I think it is very easy to build . But when i started coding it i got so many problems with xml and special charcters. I tried program for replacing special characters. But it wont work. Finally i used utf8_encode. It worked
Full story
- Tuesday, June 22, 2010, 4:34
- PHP
Prerequisites
Apache webserver
Mysql
Installation
Goto the directory
use this command to unpack the file
tar -xvf php-5.x.x.tar.gz
cd php-5.x.x
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
Full story