Create and Display files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bobby9101
Forum Commoner
Posts: 28
Joined: Thu Apr 27, 2006 1:18 pm

Create and Display files

Post by bobby9101 »

I would like to have the contents of MySQL row "haha" be all the files from directory "haha"
how is that possible?
Last edited by bobby9101 on Sun Jul 23, 2006 9:00 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You might need to give us a tiny bit more detail than what you've given so far. Like how you want it store in the record, what the table structure looks like, etc.. you know, the small stuff.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: MySQL + Folder Files???

Post by alex.barylski »

bobby9101 wrote:I would like to have the contents of MySQL row "haha" be all the files from directory "haha"
how is that possible?
AFAIK MySQL by default, at least the default table, are stored in files...I think it's myISAM...at least they are in the version I use on my test server...

tables are stored as files and records are stored inside those files...

I'm not sure what your asking though... :roll:
bobby9101
Forum Commoner
Posts: 28
Joined: Thu Apr 27, 2006 1:18 pm

Post by bobby9101 »

I rethought it... i dont even need mysql
here is what i would like
I have a form and I would liek to be able to enter a name into the form and then it create a file like name.php
and then i would liek a script to read alll the .php files in that folder
how do i do that?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

look into fopen() and opendir() or the SPL classes if you're running php 5.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

and glob() may be usefull too
Post Reply