Jump to content

leeharvey09

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

leeharvey09's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. function search_password(){ $file = "username_passwords_record.txt"; $record_rows = file($file); //file — Reads entire file into an array foreach ($record_rows as $value) { $explode_values = explode(",",$value); echo $explode_values[0] . $explode_values[1] . $explode_values[2] . $explode_values[3]. $explode_values[4] . "<br/>"; } } search_password(); i have a text file to store some records with Fields: Ip,date,email,username,encrypted password test values in text file : username_passwords_record.txt 127.0.0.1,08.03.10,no-reply@google.com,Google Analytics,MjJvbWxramhpZ24yOGRiZWZhYzg5 127.0.0.1,08.03.10,store-news@amazon.com,Amazon store,MjVvbmhtaWdqa2wzMGNmZGJlYTI5 127.0.0.1,06.03.10,niketown@yahoo.com,kill hill,MzdsbWluZ29qaGs2M2NhZGJlZjYz 127.0.0.1,08.03.10,simon@robertlane.com.au,Simon Hutton ,NDZrbGdtaGppbm82NWRmYWNlYjUy 127.0.0.1,08.03.10,used-support@carsales.com.au,carsales,NDNpa2xubW9namg1NGFiZmRjZTY2 i wanna be able to scan and compare any of these fields, with the value the user has entered, to check if they match... any help would be great thanks Lee Harvey
  2. does keeping your code wrapped in private functions make your code more secure when live online eg. <?php private function formInputs(){ $name = $_POST['sendNamehiddenField']; $email = strtolower($_POST['sendEmailhiddenField']); $message = $_POST['sendMessagehiddenField']; $screensize = $_POST['screenSizeHiddenField']; } ?> rather than just keeping the code like this [code=php:0] <?php $name = $_POST['sendNamehiddenField']; $email = strtolower($_POST['sendEmailhiddenField']); $message = $_POST['sendMessagehiddenField']; $screensize = $_POST['screenSizeHiddenField']; ?> are there any real dangers even when i don't want to return a value any help would be great cheers Lee Harvey [/code]
  3. i have a small script that writes input to a text file, i want each new record to be added to a newline, so its easy to read, like this, tom hanks popboy@yahoo.com I have seen news stories about implants which will help the jim jones lharvey09@mail.com Jaycee Dugard kept a journal during 18 years of captivity tim dog peterpan@mail.com Former President Bill Clinton had two stents placed in one mark brown markbrown@yahoo.com Thursday. Chief cardiologist Allan Schwartz with New York but my script produces this in the text file. $name = $_POST['sendNamehiddenField']; $email = strtolower($_POST['sendEmailhiddenField']); $message = $_POST['sendMessagehiddenField']; $feedBackRecords = array($name,$email,$message); $spaceImplode = implode(" ",$feedBackRecords); $file = "feedBackData.txt"; file_put_contents($file,$spaceImplode,FILE_APPEND); tom hanks popboy@yahoo.com I have seen news stories about implants which will help the blind see.jim jones lharvey09@mail.com Jaycee Dugard kept a journal during 18 years of captivitytim dog peterpan@mail.com Former President Bill Clinton had two stents placed in one of his coronary arteries onmark brown markbrown@yahoo.com Thursday. Chief cardiologist Allan Schwartz with New York Presbyterian Hospital says any help will be great thanks cheers Lee Harvey[/size][/size]
  4. to start with some thing simple... i want to be able to record the time and date in a txt file using php ... the moment the browser is closed...so the next time the page is opened its will tell you the last time you visited... i could do this using javascript <script language="javascript" src="phpjavascriptDemo.js"></script> <body onunload="writeDatetoFile()" > ...but does not allow you to write values to text files... any help would be great.. cheers
×
×
  • 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.