Jump to content

minimad

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

minimad's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry for the late reply. Placed your code before the fread line and it's worked. Thanks for your help!
  2. hi, the log on process compiles of 3 files: dataprocess.php, secure.php, user.log - the form integrated in with index.php when secure.php loads it opens the log file to see if a valid user name is found. it also erases the log and display the content. The reason the code wipes the log clear is so no one (including the original visitor) can access the page again without re-logging on. If someones goes directly to secure.php without signing in the code will read an empty log and display an error to the visitor. It is not this error in the script I am trying to get rid off, but the one above it (shown in attachment) Thanks for looking! [attachment deleted by admin]
  3. hi, thanks for the prompt reply. Line 7 on secure.php: $contents = fread($log, filesize($filename)); The script I am using is from tropical solutions: http://scripts.tropicalpcsolutions.com/html/php-script/secure-login-php-script.html Thanks for the link - just trying to get my head around it now.
  4. Hi, I have found a log on script (just php) for my website which works well. The script generates a message to a user who should browse to the secure page without logging in, although this appears before it which is not required: Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/account/public_html/website/secure.php on line 7 I guess this is generated by the server and not the script itself. Is there any way I can disable this? Thanks for looking.
  5. Hi, just discovered the site whilst looking for some help with a php error. Come from a support background, so very much a steep learning curve. I thought if it's worth learning a language, PHP is worth it. Got some basic html knowledge, so guess i can tie the two together. Just about to post for some help. Great forum by the way.
×
×
  • 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.