Archive for the ‘PHP’ Category

array_push() function in php

php logo
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

array_rand() function in php

php logo
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

PHP code to show visitor’s informations

StatsIcon
Here’s some simple info displaying your IP address, browser info, and the address that referred you to the page: Full story

Upload image into database and retrieve directly from database

PHP-logo
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

How to get the IP address of the visitor with PHP?

code
We can get the IP address of any visitor by using PHP. The following code will give the ip address of visitor. Full story

PHP File upload

php logo
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

PHP Cookies

php cookie
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

Simple Mail From PHP

PHPmailer
This simple mail form used PHP mail() function to send emails.The complete source code is given below Full story

Creating XML-RSS Feed Using PHP MYSQL

rss
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

PHP Installation in linux

phologo
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
Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site