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 Aug 20, 2014, at 10:56 AM, Stuart Dallas wrote:

> My bad. Add a / before the first .. on that line:
> 
>  $directory = dirname(__FILE__).'/../../../media/images/';
> 
> However, from that error message you can see the full path that will be generated:
> 
> /home/rtsadven/public_html/wrightcheck/admin/resources/php/../../../media/images/pic2.jpg
> 
> Or, normalised:
> 
> /home/rtsadven/public_html/wrightcheck/media/images/pic2.jpg
> 
> Is that the right path?

Bingo - that is the correct path and the image was moved correctly. Thanks Stuart and everyone else who chimed in on this. Great list!!!

Don Wieland
D W   D a t a   C o n c e p t s
~~~~~~~~~~~~~~~~~~~~~~~~~
donw@xxxxxxxxxxxxxxxxxx
http://www.dwdataconcepts.com
Direct Line - (949) 336-4828
SKYPE - skypename = dwdata

Integrated data solutions to fit your business needs.

Need assistance in dialing in your FileMaker solution? Check out our Developer Support Plan at:
http://www.dwdataconcepts.com/DevSup.php

Appointment 1.0v9 - Powerful Appointment Scheduling for FileMaker Pro 9 or higher
http://www.appointment10.com

For a quick overview - 
http://www.appointment10.com/Appt10_Promo/Overview.html




[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