Re: Reading from txt file



Sorry....the username is the first part of the line in the txt file:
user1, user2, user3, etc....
Those are just hypotetical and being used for testing purposes.
The login is a simple login using POST and the page receiving the POST
data is a page where images are displayed.
I was abble to just get the variable sent by the form and use that to
display the images since the images are named user1_1.jpg,
user1_2.jpg, etc....
But now I have to find a way to add a line like:
"Welcome to baby "familyname"'s page!"
The "familyname" is not the same as the username so I had the idea of
creating a simple txt file with :
username="familyname"
And then parsing the "familyname" out of the file.
The problem is that I was able to parse the username out of the txt
file but not the "familyname"...
How do I get that out of the txt file? Do I use file_get_contents?
I read about it but it didn't make sense since I don't want the whole
file in one single array....

Thanks,

FayeC

On 29 Nov 2005 10:29:23 -0800, "Sjoerd" <sjoerder@xxxxxxxxx> wrote:

>I don't know what $username is, so your explanation of what you want to
>do is not clear. Please describe your problem better.
>
>Furthermore, you can look into the file_get_contents function and the
>foreach construct. It will make your code more readable.
.



Relevant Pages

  • Re: How do I retrieve images dynamically based on the login username?
    ... FayeC wrote: ... users are provided with username and password by the admin). ... The users are supposed to login to a specific page where they can see 4 images. ...
    (comp.lang.php)
  • Re: how to create a gallery without using the EXIF function?
    ... >will have the same username as the user's login. ... >After login the user is taken to a page that will contain the 4 images ... >in the folder arranged in a table or div. ...
    (comp.lang.php)
  • Re: Login control and restricted member pages
    ... As you said the login dialog prompts each time the page loading a image, ... protected folder. ... When a page display some images file, ... NTFS permission limitation. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Problem handling Login control Authenticate event
    ... login process. ... required for login… they have a username, password, and another “location ... and when the extra input field is submitted ... for the users where this concatenation of the two input field ...
    (microsoft.public.dotnet.framework.aspnet)
  • eFiction <= 2.0 multiple vulnerabilities
    ... "Efiction is a software program that enables users to run automated original or fanfiction ... if magic_quotes_gpc off -> Login bypass: ... username: 'UNION SELECT 'd41d8cd98f00b204e9800998ecf8427e',penname,uid,userskin,level,email FROM fanfiction_authors where level=1/* ...
    (Bugtraq)