Jump to content


Photo

File reading question


  • Please log in to reply
26 replies to this topic

#21 prattmic

prattmic
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 22 July 2006 - 06:35 PM

No they don't need to login.  Did you see my edit?

#22 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 22 July 2006 - 06:38 PM

Must of missed that, does the code now work when use file('phpsimplechoose_log.php'); instead of file('iplog.php');

#23 prattmic

prattmic
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 22 July 2006 - 06:39 PM

Yes it does, but how do I take away the line number and the IP in the line, since they will all have the same IP anyway.

#24 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 22 July 2006 - 06:43 PM

Change:
$log[] .= 'Line ' . ($i+1) . ':    ' . rtrim($ip[$i]);
to
$log[] .= str_replace($ipaddy . ': ', '', rtrim($ip[$i]));


#25 prattmic

prattmic
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 22 July 2006 - 06:44 PM

Thank you for all your help.  If you want to see the full script in action (but not done) it is at http://prattmic.home...implechoose.php

#26 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 22 July 2006 - 06:49 PM

Glad I could help. Sorry I went round in circles, and misunderstanding. If you get anymore problems please come back.

#27 prattmic

prattmic
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 22 July 2006 - 06:50 PM

No its my fault that I didn't explain good enough.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users