Jump to content

MistyEyes

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

MistyEyes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That was a complete bust. 404 errors, and servers are gone. Any other suggestions?
  2. Let me go into more detail. When someone signs up to add a site to the toplist, I receive an email saying that they did so. I am still confused as to where to put this script, and how to get it to output where I can see the results. Like the 1st script that I posted ... It creates a log of the user's ip by having them hopefully click on the picture.
  3. Good morning all! darkfreaks: Thank you for posting that. This is going to be used for a toplist. There is a jerk that has been a royal pain and is posting non sites every day many times a day. All of the files for the toplist are in my cgi dir. So where will this go, where will I see the readout, and what do I call it ?? Thank you Thank you Thank you !!!
  4. remember ... php noob here..LOL... Is that a different kind of php script used to break the proxy to the real ip? (I have to learn this!) I will check back here later, as we are going to a 4th party. BBL and thank you all again!
  5. I almost forgot ... I wanted to ask .. maybe you know ... Is there a way to see past a user that comes to a site via proxy? To see the REAL ip, not the proxy's ip.
  6. YIPEEEEEEEEE! Now THAT last one made me feel 'tupid with a CAP "T" I had it semi working before with the correct permissions, and when I changed the files, I forgot to re-CHMOD the file. (and it actually logged my ip) I want to thank every one that helped me with this! You are all wonderful and you were VERY gentle with me! ha ha ha!
  7. This is nutz! I had that dir, with the txt file there. I changed the name from logs to log, and now I am getting yet another error Warning: fopen(/home/me/mysite/ip_logs/log.txt): failed to open stream: Permission denied in /home/me/mysite/PHONEYPIC.jpg/index.php on line 18 Line 18 is: $fh = fopen($logs, 'a') or die(" ");
  8. Sorry for the delayed reply, but lots of thunder and lightning causes my adsl to stop, then go then stop .... The error I now receive is: Warning: fopen(/me/mysite/ip_logs/logs.txt): failed to open stream: No such file or directory in /home/me/my site/picture.jpg/index.php on line 19 which is here - //here, we open the logfile for writing to. The 'a' means when we write // data to the text file, it will be appended to the end of the file $fh = fopen($logs, 'a') or die(" ");
  9. I changed it as you suggested, and received another error on another line. I am going to post the raw script so you can see actually what I am working with. <?php // Ip recorder, use in the format yoursite.com/picture.jpg/index.php //this picture variable defines which image to show the victim $picture = "http://mysite.com/w/w060529_2.jpg"; //this line just gets the visitor's ip address and stores it in the variable '$ip' $ip = $_SERVER['REMOTE_ADDR']; //this line tells the logger the name you want to use for the log file. // if the logfile doesn't already exist, it will be created automagically $logs = "logs.txt"; //here, we open the logfile for writing to. The 'a' means when we write // data to the text file, it will be appended to the end of the file $fh = fopen($logs, 'a') or die(" "); //here we put the ip address into a variable called 'string data' // the backslash-n starts a new line in the text file, to make it easier to read $stringData = "$ip \n"; //here we write to the text file what is in the stringdata variable fwrite($fh, $stringData); //now we close the file fclose($fh); //and finally we echo some html back to the user's browser so they see an image echo "<img src='$picture'>"; ?> thanks again!
  10. Hello, This is my 1st time here. I will say I know nothing about php! I know I have it on my server. What I am trying to do is log and ip of whom ever clicks on a certain picture. I am using a nice, simple script. I get an error when trying to write the log. Here is the part that is giving the error: //here, we open the logfile for writing to. The 'a' means when we write // data to the text file, it will be appended to the end of the file $fh = fopen($logs, 'a') or die(" "); And this is the error, which is on line 18: Warning: fopen(http://www.mysite.com/ip_log/logs.txt): failed to open stream: HTTP wrapper does not support writeable connections. in /home/me/mysite/picture.jpg/index.php on line 18 what do I need to do NOT to get that error? Thank you so much, in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.