Reply to Location of file (fopen)

Your name:

Reply:


Posted by Michael Satterwhite on 08/23/06 19:28

This is something I always have trouble keeping straight. Assume I have a
file tree as follows:

/home
/home/me
/home/me/public_html
/home/me/public_html/dir1
/home/me/public_html/dir2

My web pages are under either public_html or public_html.dir1. If I want to
create a file under public_html/dir2, in php, is the correct command

$FL = fopen("/home/me/public_html/dir2.filename", "w");
-or-
$FL = fopen("/dir2.filename", "w");

What effect does "open_basedir" have on this - and how can I, as a PHP user
be sure how this parameter is set.

Thanks in advance, everyone.
---Michael

[Back to original 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

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