Re: How upload files to protected directories?
| From: | Keith Vance | Date: | Thu, 15 Mar 2001 00:55:03 +0000 |
| Subject: | Re: How upload files to protected directories? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43935@lists.php.net to get a copy of this message | ||
You should be able to do something using PHP, try looking here,
http://www.php.net/manual/cs/features.file-upload.php
I think there is just a communication problem between you and your hosting
company. They don't allow ftp uploads, but as long as you are doing it
through http, it should work fine. There is also some good stuff about
this on http://www.phpbuilder.com. I do it all the time and
my hosting
company couldn't care less, but your's may be different and you may have
to switch or should switch to someone else if you can't get the http
upload to work.
Keith
On Wed, 14 Mar 2001, Mig wrote:
> Hello
>
> I post my question here because I can't understand what host support is trying to say to
> me:
>
> I use paid host with PHP and MySql facilities, all working fine for me (both PHP and MySql).
> I offer to customers ability for storing updating and retrieving MySql records using <form
> POST ..> HTML commands. My problem begins when I want customers also be allowed to upload images
> (.GIF and .JPG files) linked to their records.
> If possible, I would prefer store these images into BLOB MySql fields and then show image
> stream using PHP GD functions, but this appears difficult because host PHP doesn't have GD
> library.
>
> Next solution is to store GIF/JPG files into some directory and then use html commands to show
> pictures. But POST commands are denied on this host (as well as ftp commands) because they
> don't want somebody uploading trojan programs there.
>
> Support said to me: "the only way around this is to write a cgi script which
> uploads/writes to a file - there are commercial products that do this safely or maybe you can find a
> free script on one of the many cgi script sites - most commercial classified ad scripts have a
> function such as this."
>
> Does somebody know what this means?. If ftp commands and all PHP filesystem commands are
> disallowed, how could CGI script solve it? And also, what are 'classified ad scripts'?
> Sorry I live in Brazil and don't catch all english expressions: are these scripts to post
> classified ads?
>
> Any other solution will be welcome.
>
> Thanks in advance
>
> Mig
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>