You are here: Re: Move File Path? « PHP Programming Language « IT news, forums, messages
Re: Move File Path?

Posted by Jerry Stuckle on 11/18/42 11:43

Barkster wrote:
> Well I think I figured it out, it must be all relative to the upload
> file. I thought the path was relative to the root. This seems to have
> fixed it for me
>
> $file = '../../After.jpg';
> $newfile = '../../beta/files/TestMe.jpg';
>

Or,

$file = '/After.jpg';

Yours is a relative path; precede it with a / to get the absolute path to root.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация