Pages

Tuesday, February 21, 2012

MAKING USER ONLINE PAGE PHP


MAKING ONLINE DATABASE USER

Go to the PhpMyAdmin page:

1 After entering PhpMyAdmin, create a database with the name db_useronline.
2 Create a table with name UserOnline by the number of field 3.
3 Set the field:

Field Type Length / Values
time INT
ip Varchar 50
data Varchar 100


A USER ONLINE PAGE

User page onlie in use to see how many users are accessing your website at the time. Follow these steps:
1 Create a new PHP page.
2 Put the script under the tag
include("connection.php");
mysql_select_db ('db_useronline');
$exit = 300;
$time = time();
$timeout = $time-$exit;
$insert = mysql_query("INSERT INTO useronline VALUES
('$time','$REMOTE_ADDR','$PHP_SELF')");
if(!($insert)) {
echo "Error> ";
}
$delete = mysql_query("DELETE FROM useronline WHERE time<$timeout");
if(!($delete)) {
echo "Error > ";
}
$result= mysql_query("SELECT DISTINCT ip FROM useronline WHERE data='$PHP_SELF'");
if(!($result)) {
echo "Error > ";
}
$user = mysql_num_rows($result);
echo "

User Online".$user;?>

3 Save and name it as useronline.php
4 Show the browser to see the results.

Source from toscripts.com/subtutor/making-user-online-page.html

MAKING VISITORS INFO PAGE PHP

VISITORS INFO PAGE

Visitor information page page was created in order to find out some information about website visitors, such as IP are used, browser used, and the date and time a user to browse your website.

To make the visitor info page, follow these steps:

1 Create a new page with HTML, then save it as visitors_info.php.
2 Next create another new page with the PHP option, enter the following script:

$time = date("d F Y, h:iA");
$ip = $REMOTE_ADDR; 
$browser = $HTTP_USER_AGENT; 
$fp = fopen("visitors_info.html", "a"); 
fputs($fp,"
Address IP:$ip Time: $time
Browser: $browser

"); 
fclose($fp); 
?>


$ REMOTE_ADDR function is used to obtain the IP numbers of visitors, the function date () to take the time, while the function $ HTTP_USER_AGENT is used to obtain information on what browser you are using and its version of the browser.
visitors_info.html used to open the file open function (), then the information is already in use can be written in visitors_info.html function fputs (). File visitors_info.html closed using the function fclose ().

3. Save and name it as visitors_info.php.
4. Show to your browser to see results...

Source from  toscripts.com/subtutor/visitors-info-page.html

Sunday, February 19, 2012

Di Jual TV & Play Station 2

Jual TV SHARP 29" bekas, tabung flat, remote (ori dan tidak ori).
Buka harga Rp. 1.200.000 nett.
---------------------------------------------------------

Jual TV TOSHIBA 21" bekas, tabung flat, remote (ori).
Terjual
---------------------------------------------------------

Jual PLAY STATION 2 Fat 9001, adaptor, memori card 2 buah @ 8mb, stik getar 1 buah, dvd game
Terjual
----------------------------------------------------------
*Call  0838 9785 284
*Semua kondisi barang liat di lokasi kalo mau lebih jelas
*Info Alamat bagi yg mau liat barangnya di daerah "Meruya Selatan"
*Kalau mau liat barangnya mohon di call atau sms dulu sebelumnya
*Semua barang COD hanya DKI jakarta, Luar kota ongkir + packing tanggung sendiri

Friday, June 3, 2011

Garden, Ornamental Ponds and Trees

The existence of an ornamental pond in a park make a cool atmosphere in residences, especially with the sun that stung, just hot air that was felt around the yard. With the ornamental pond that has been filled with water in it, making the air around a courtyard with a cool breeze from the plant or tree.