Go to Post Our team has a forum..... chiefdelphi.com Ok I had to say it. - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 26-01-2005, 17:18
cdawzrd's Avatar
cdawzrd cdawzrd is offline
Vice-President of Caffine
AKA: Jonathan
#0619 (CA Robotics)
Team Role: Programmer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Charlottesville, Virginia
Posts: 63
cdawzrd will become famous soon enough
Send a message via AIM to cdawzrd
Re: PHP Coding HELP!!!

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
__________________
Cdawzrd
>> www.cdawzrd.com <<
>> www.carobotics.org <<
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speaking of PHP 5... Ryan M. IT / Communications 3 01-08-2004 16:46
openFIRST PHP 5 Compatibility Timothy D. Ginn FIRST-related Organizations 0 30-07-2004 13:45
PHP and Wiki Error Venkatesh Website Design/Showcase 2 24-07-2004 15:51
Coding / Style Standards for sharing C code Joe Johnson Programming 33 01-05-2004 15:15
What's better, PERL/cgi or PHP/my_sql? mikefrei Programming 10 27-05-2002 22:50


All times are GMT -5. The time now is 00:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi