Hello,
I design website for HCs on UK or US hotel.
I know PHP,mySQL,HTML and more.
I know how to do the DJSays Request Line Newsletter and Alert
If you want to hire me
PM Me
Thanks

Hello,
I design website for HCs on UK or US hotel.
I know PHP,mySQL,HTML and more.
I know how to do the DJSays Request Line Newsletter and Alert
If you want to hire me
PM Me
Thanks
Hey,
Any proof on you knowing MySQL and PHP?
- Dan
I need to know the code that tells you how many people r online and how to track their ip's
VR|46
Hey,
Users online
Create log.txt and CHMOD to 777PHP Code:<?
$remote = $_SERVER["REMOTE_ADDR"];
$file = "log.txt"
;
$timeoutsecs = 30;
$timestamp = time();
$timeout = ($timestamp-$timeoutsecs);
$fp = fopen("$file", "a+");
$write = $remote."||".$timestamp."n";
fwrite($fp, $write);
fclose($fp);
$online_array = array();
$file_array = file($file);
foreach($file_array as $newdata){
list($ip, $time) = explode("||", $newdata);
if($time >= $timeout){
array_push($online_array, $ip);
}
}
$online_array = array_unique($online_array);
$online = count($online_array);
if ($online == "1") {
echo "People Online: $online";
} else {
echo "People Online: $online";
}
?>
Taken off my site.
Display IP
- DanPHP Code:<?php
function getIP()
{
if (isset($_SERVER))
{
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
return $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
return $_SERVER['REMOTE_ADDR'];
}
} else {
if (isset($GLOBALS['HTTP_SERVER_VARS']['HTTP_X_FORWARDER_FOR']))
{
return $GLOBALS['HTTP_SERVER_VARS']['HTTP_X_FORWARDED_FOR'];
} else {
return $GLOBALS['HTTP_SERVER_VARS']['REMOTE_ADDR'];
}
}
}
?>
One prob I use freewebs it doesn't let you chmod or code php
VR|46
Hey,
Well you can't do it without PHP.
I suggest moving to a better PHP supported free host.
- Dan
Know any?
VR|46
To display the users IP address (SSI):
You could try searching Google for a users-online script:HTML Code:<!--#echo var="REMOTE_ADDR"-->
http://www.google.com/search?q=users+online
Originally Posted by Dakara
To display the users IP address (SSI):
You could try searching Google for a users-online script:HTML Code:<!--#echo var="REMOTE_ADDR"-->
http://www.google.com/search?q=users+online
Youneed php enabled josh .
That's not PHP?Originally Posted by sygon.net
Youneed php enabled josh .
Members who have read this thread: 0Want to hide these adverts? Register an account for free!