|
Posted by Jerry Stuckle on 05/05/06 14:14
HC wrote:
> One of the websites I work with has a form to fill in which includes an
> input to allow me to upload a file. I'm trying to write a PHP script to
> automate the process, but I can't figure out how to make PHP upload the
> file. I've been playing about with curl, but haven't had any luck.
>
> The issue is that the data I want to upload isn't actually in a file;
> it's sitting in a variable in a PHP script, and all the examples I've
> found seem to assume an existing file, which for various reasons I want
> to avoid.
>
> If anyone could point me in the right direction, I would really
> appreciate it!
>
> HC
HC,
I'm not clear what you mean wit "input to allow me to upload a file".
Are you saying you have a field where you place a filename and the file gets
upload? Or is this a textarea you need to paste the contents of the file for
uploading?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|