Jump to content

kristen252

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kristen252's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This is the text in the file: |2009-03-16 14:46:20|208.101.115.25|One-time: 50|Monthly: 500| I only want to import from "One-time" to the end of "500". Thanks for the help!
  2. I am very new to php, but I am trying to use the following code to import data from a txt file that is saved on my server: <?php $filename="totals.txt"; $handle=fopen($filename,"r"); $contents=fread ($handle,filesize($filename)); echo($contents); ?> The problem is that code imports the whole file- is there any way to import only part of the file? Say the last part of the first line? The txt file is generated by a form on my website and the form is automatically placing the persons ip address and I don't want that to show on our site. Or maybe I'm just going about this the wrong way and there is a form you can use in php to allow the visitor to your site to post to a certain page on your site? Any help or direction you could provide would be appreciated! As I mentioned, I'm very new at this, but I would like to learn!
×
×
  • 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.