Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    mentor come here boy *whistles*

  2. #12
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    *Gets frizbe and throws*

  3. #13
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    lol hes offline we will have to wait

  4. #14
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    Ok your all super spaming and being stupid "? I have looked through other files but I cant seem to find a way of doing it if you dont know then dont answer dont just start spamming.


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  5. #15
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Sorry

    Umm

    If the news goes to news.txt and that updates, shouldnt show_news.php point to news.txt

  6. #16
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    yes but cutenews is very different it contains lots of templates and other files so its not clear where it is "/


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  7. #17
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    there must be some connector somewhere but where mmm...

  8. #18
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by splintercell!
    Ok do you know how to remove info from a flat file and display it on a webpage (like cutenews).
    Ok, so you mean link editing a line in a flat file, or displaying the data from the flat file?

    for dispay most important things is the
    file();
    command, wich splits the lines and turns them in to an array.

    Say to get flat file bob.txt

    $arrayvariable = file("bob.txt");

    Then split the varible down again

    depedning on what your useing a seportaors (cute news use's |/\| i usealy use || thogh

    foreach($arrayvariable as $Key => $Val)
    {
    //explode that data into a array
    $info[$Key] = explode(",", $Val);

    }

    now the $info varible contains both arrays, wich you can output via a loop

    for($num = 0; $num<sizeof($arrayvariable) + 1; $num++)
    {
    echo $info[$num][0];

    }

    This would dispaly the the first entry of everu line, since its changing the arry var while looping threw them all.

    to show second bit $info[$num][1];

    etc etc etc

    if you follow?

    the flat file struture in the exsample would be

    user1||stuff||morestuff||
    user2||stuff2||morestuff2|

    etc etc

  9. #19
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    *gives mentor a gold star* Thanks Helped me alot none of the php sites seems to have it, Ive done it in mySQL before but I wanted to use a flat file to see how it works Thanks.!


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •