Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-09-23 19:25:11
- rherman
- Member
- Registered: 2005-03-04
- Posts: 19
how to create a file upload in php with txp
I am new to txp and php. I used to program in asp, asp.net, and java. I want to allow clients to upload images to a certain directory for temporary processing to be deleted in a few minutes. I don’t want to mess up my txp cms system. What’s the best way to do this in txp?
Rob
Offline
#2 2005-09-23 21:31:44
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: how to create a file upload in php with txp
Well, create a directory for them to do this and add a file upload script to it?
Textpattern only “sees” images you upload through it to the defined images folder, so if you don’t use it to upload them, it won’t monkey with them.
Offline
#3 2005-09-25 19:25:58
- rherman
- Member
- Registered: 2005-03-04
- Posts: 19
Re: how to create a file upload in php with txp
I am new to PHP as well. I know how to create forms and post info in asp and the other languages. I’m sure PHP is similar enough, but I was wondering where to put the PHP code. Inline in the txp forms and pages? Do I separate my PHP pages and integrate them into the forms? By call?
Thanks.
Rob
Offline
#4 2005-09-26 05:36:33
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: how to create a file upload in php with txp
It won’t work like that, at least not without a great of work with knowledge you may or may not have yet. Go to Hotscripts and find a good file uploader and install it to be used separately from Textpattern. If you don’t want to go that route, after something more complex or integrated, then hire someone to do it. No real solution would be cut and paste.
Offline
#5 2005-09-26 14:29:45
- igner
- Plugin Author
- Registered: 2004-06-03
- Posts: 337
Re: how to create a file upload in php with txp
this has been discussed before in this thread
That ought to give you enough of a jumping-off point.
And then my dog ate my badger, and the love was lost.
Offline
#6 2005-10-05 17:51:07
- rherman
- Member
- Registered: 2005-03-04
- Posts: 19
Re: how to create a file upload in php with txp
Thanks mary and igner. Igner, that’s exactly what I needed; however, I guess I was looking for a way to also delete the images from the temp directory so that I do not overload my space. I only need them for the client’s visit for previewing purposes. Thanks.
Rob
Offline
#7 2005-10-07 14:52:48
- rherman
- Member
- Registered: 2005-03-04
- Posts: 19
Re: how to create a file upload in php with txp
igner,
I’m usually better than this, but how and where do I place this script in TXP? In an article? In a form? Called from some other page how? Thanks.
Rob
Offline
#8 2005-10-07 18:14:51
- rherman
- Member
- Registered: 2005-03-04
- Posts: 19
Re: how to create a file upload in php with txp
Nevermind. I got it. Thanks.
Rob
Offline