Recent content by marcey t

  1. M

    Problems with calling a variable in a php session?

    I am new to sessions and I have written a few php programs and want to make a session I have declared Session_start() at the begining then declares $_session="yes" if ($pword == $ROW[4]) $_session['login']="yes"; else die ("<p>In correct password!</p>". "<p> Please go back and <a...
  2. M

    Need Help in PHP to get the correct output?

    Here is the code $telephonelist = fopen("recordsdirectory.txt","a+"); if (filesize ("recordsdirectory.txt")<=0) { echo "empty"; exit (0); } // read .txt file to the array $list = file("recordsdirectory.txt"); foreach($list as $newlist) for ($i=0; $i<count($newlist); ++$i)...
  3. M

    Need Help in PHP to get the correct output?

    Here is the code $telephonelist = fopen("recordsdirectory.txt","a+"); if (filesize ("recordsdirectory.txt")<=0) { echo "empty"; exit (0); } // read .txt file to the array $list = file("recordsdirectory.txt"); foreach($list as $newlist) for ($i=0; $i<count($newlist); ++$i)...
  4. M

    Nee help with php code?

    $telephonelist = fopen("recordsdirectory.txt","a+"); if (filesize ("recordsdirectory.txt")<=0) { echo "empty"; exit (0); } $contents = fread($telephonelist, filesize("recordsdirectory.txt")); $newlistArray = explode(",",$contents); foreach ($newlistArray as $telephonelist)...
  5. M

    Help with php code! Trying to get this code to print and just get "array" back?

    Trying to get this array to print the data from the .txt file but all I get in output is "array" $telephonelist = fopen("recordsdirectory.txt","a+"); if (filesize ("recordsdirectory.txt")<=0) { echo "empty"; exit (0); } $contents = fread($telephonelist, filesize("recordsdirectory.txt"))...
  6. M

    Having so many problems understanding php?

    Trying to understand php and having a hard time. Looking for help to understand what I am doing wrong with a program I'm not looking for someone to do it for me. I want to know what I am doing wrong so really just looking for someone to talk it through with me. $telephonelist =...
  7. M

    I am running a php program this is the error messageWarning:

    file(recordsdirectory.txt) [function.file]: fail? I need to create a program that creates a telephone directory then read the program and print it using the explode function I can not get it to read then write it I get this Warning: file(recordsdirectory.txt) [function.file]: failed to open...
Back
Top