![]() |
PHP Coding HELP!!!
i'm kind of new to php coding and need some help working on my team's page.
I'd like to know some websites where i can find coding help. I'm also looking for someone that I could contact to ask specific questions. What i need help in specifically is, I'm working on profiles and i'd like to just create a template profile page, and then instead of using that page to make the profiles just include the profiles for each person from a text file. This way i only have one page that through the links will turn into many pages. I'm not sure if i'm helping describe my problem or just confusiong people. If anyone can help it will be appreciated. |
Re: PHP Coding HELP!!!
http://www.php.net has everything on php in there... just search their documentation and function library on their website... Or if you need a script that is not on there:
http://www.programmersheaven.com/ http://www.sourceforge.net/ http://www.pscode.com/ just search through their code there. |
Re: PHP Coding HELP!!!
I recognize that i wasn't really clear on what i want to do so here it is. I'd like to use one page and then be able to include a specific include file through the link like this:
(http://delphielite.com/profiles.php?show=fbosak) this way all i need is to create one completely formated page and then have it include a text file for each team member that has all the profile information. I hope that this is possible |
Re: PHP Coding HELP!!!
Quote:
see if this helps : PHP Code:
to see somthing you just type : index.php?name=FRANK |
Re: PHP Coding HELP!!!
Be careful that you don't allow people to show any file on your system. Be sure to restrict it to a particular secure directory. I've heard of horror stories where the mechanism to include files allowed people to view password files and other system files.
|
Re: PHP Coding HELP!!!
Quote:
If so is there a way to do it in another form such as a text document or web site. |
Re: PHP Coding HELP!!!
Quote:
that's right ... this is for my-sql databases .... the other ones ... i'm not sure so i won't say anything ... |
Re: PHP Coding HELP!!!
Try this:
profile.php PHP Code:
Code:
bob///this is the first line of the profile<br>this is the second.<br>etc...profile.php?name=bob |
Re: PHP Coding HELP!!!
Quote:
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. |
Re: PHP Coding HELP!!!
Quote:
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:
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 |
| All times are GMT -5. The time now is 15:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi