Quote:
|
Originally Posted by FRANK(WGH)
This script is just what i'm looking for. I do have one more question though.
Is there a way, that i can in the one line of text that i must contain all the information in, that i can tell it to include a file with the profile. This solution works if all i want to say is conatianed it one line but i need multiple lines and some tables. Take a look at this example:
http://www.delphielite.com/modules/profiles/example.php
i'd like this to be able to be shown on the page.
|
so basically you want to be able to have seperate files for different people?
make a directory on your server as a subdirectory of whereever your profile.php is. call it profiles. chmod it to read/write for the user (i dont know the code)
change the example code to somethign like this:
the code says the file is "profiles.txt"
make it
PHP Code:
$filename = "profiles/" . $name . ".txt";
there are two ways to make your file. you can make them html, in which case you can just read in the whole file and print it out (get rid of the split by line statement)
the second way is to keep the split statement and have the file be like a flat database so you would have one line for name, grade, filepath to picture, etc.
then, just read it in with the example code you have, split it in to an array and print it out.
any questions, cdawzrd
at gmail {do.t} com