CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 upload a file in a folder that visitor just created

Print topic Send  topic

Author Message
tolgacakir

Posts: 2
Posted: 02/07/2005, 1:16 PM

Hi
I want to my site give a number to my visitor automatically and create a folder named this same number and visitors can upload their pictures in this folder. So every visitors have different folder for their pictures.
This isn't a web photo gallery. i don't want to publish them. i want to print their photo and send them back.
please help me.
View profile  Send private message
Anothersledhead


Posts: 44
Posted: 02/07/2005, 7:07 PM

I am wondering why you want to create individual folders for your visitors. If you stamp all of the uploaded photos with the unique user id from your login action you can then upload all of the photos to the same folder and just query your database for all of the photo with the same user id. This would be the same as creating individual folders but allow for use of standard CCS functionality without the need for a lot of custom code.
View profile  Send private message
mrachow


Posts: 509
Posted: 02/07/2005, 11:45 PM

Your script must be allowed to create directories on your ftp site.
I have done something like that
Quote :
if (!file_exists("documents/".$userId)) {
mkdir("documents/".$userId, 0777);
}

_________________
Best regards,
Michael
View profile  Send private message
tolgacakir

Posts: 2
Posted: 02/14/2005, 10:45 AM

thanks Anothersledhead
i want to design an online photo printing service, but i don't know how i can build this kind of a web site. whould you please help me?
thank for your time
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.