Re: Writing a file from a Sub-Domain form to Upper Domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 August 2014 18:13, Don Wieland <donw@xxxxxxxxxxxxxxxxxx> wrote:

> Morning folks,
>
> I have a form/processing page in which I am trying to allow users to
> UPLOAD an image:
>
> http://admin.wrightcheck.com/admin/resources/php/upload_image.php
>
> and I want to use the "move_uploaded_file()" function to a folder in the
> upper main domain:
>
> http://www.wrightcheck.com/media/images/thefilename.jpg
>
> So far all combination are not working. What is the best way to handle
> paths with such a routine? Not sure if there is something in my .httpaccess
> config that is not allowing this.
>

Are you literally trying to move the file to "
http://www.wrightcheck.com/media/images/thefilename.jpg";? If so, that's
your problem. You need to work on the local filesystem only.

If you already are then the problem could be related to safe mode or an
open_basedir setting, which would likely restrict you to working within the
subdomain's root directory.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux