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.

Wednesday, June 1, 2011

Four Concept of Political Socialization

Political Socialization
Political Participation
Political Acceptance
Political Communication

Political socialization is a process of influence a person individual in the context of the introduction of the political system which then determines the properties and political perceptions and reactions to political phenomena.

Friday, May 27, 2011

Making Fiberglass Roof Sheets (flat surfaces)

Print a sheet of fiberglass roofing process is the same as making a wave fiber roof, the difference is only in print. When the wave roof using corrugated roof sheets as the print so it can use the plate, table glass or plywood. When you use the plywood should be given a plastic mat mica in stores fiberglass.

Mika commonly used for roofing sheets is called a film. Fiberglass roofing sheets can be made in many sizes also important is the base for the printing, can also use the floor as flat as long as its base.

Wednesday, May 25, 2011

Why Study International Accounting ?

From a student's perspective, the major reason for studying accounting is to develop competencies in collecting an processing data from economic ties and communicating the information, through reports, to decision makers. This leads us to an important noteworthy point.

Garden Theme

Garden theme may be emphasized on the design element such a form, texture and colour. Choices of plants are those unflowery yet having a beautiful leaf such as adiatum sp and marantha.

The beauty of garden does not hapen by the colourful flowers only. An integrated articulation may also brings such beauty of gardening a corner lawn that full attraction.