Need help...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
supdudes
Forum Newbie
Posts: 2
Joined: Mon Oct 13, 2003 7:37 pm

Need help...

Post by supdudes »

Hi. Since I don't know how to make my own php scripts yet, is there a script I can download that I can put on my site that can works like the one Subprofile.com has that tracks who (AIM users) has viewed my page?

Thanks.
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Searh the PHP Developers Network:
http://use.devnetwork.net

Check evilwalrus: http://evilwalrus.com/
supdudes
Forum Newbie
Posts: 2
Joined: Mon Oct 13, 2003 7:37 pm

Post by supdudes »

I was searching the net for scripts and found this:

Code: Select all

<?

/*
 * This script is copyright PHPGarage.com (On Line Construction Inc.). It may be used,
 * changed, and distributed freely as long as this message and/or some type of recognition
 * is given to PHPGarage.com or On Line Construction Inc.
 * 
 * http://www.phpgarage.com
 * http://www.onlineconstructioninc.com
 *  
*/

$CurrentDate = date("m-d-Y h:ia");
$TextFile = "aimtracker.html";
$Body = "$_REQUEST&#1111;name] ($CurrentDate) -> $_REQUEST&#1111;url]<br>";
$Body .= file_get_contents($TextFile);

if ($FP = fopen($TextFile, "w"))&#123;
  fwrite($FP, $Body);
  fclose($FP);
&#125;
header("Location: $_REQUEST&#1111;url]");
?>

...but sadly, it only tracks AIM screennames who doesn't have spaces in them. Is there anyway to fix this?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Code: Select all

I am JAM (10-14-2003 04:06am) -> www.example.com<br>
I see this. What is your output/error msg?
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

i suggest you search THIS FORUM for advice on good php books


buy one of them

use that and php.net to teach your self some basic php

you have no familliarity with it, so simply giving advice on how to fix it might not be helpful, and re-writing the script.....


that's something that will turn you into a script kiddie ... you'll expect people to do it in the future, so no one will now.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

http://www.catb.org/~esr/faqs/smart-questions.html


readng that, then going and teaching yourself some php and trying a little on your own would be a good way to get into php. seeking a correction is a good way to turn yourself into a script kiddie
Post Reply