Re: [PHP] Setting paths in PHP

2001-05-10 Thread Johan
Tnx for your help, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Setting paths in PHP

2001-05-10 Thread Miles Thompson
Johan, Use a combination of getcwd() and chdir(). It's well worth while checking out the functions offered for both directory and file. #The following index.htm contains links, see below. >$link = "data/data.htm"; >$fd = fopen ($link, "r"); >echo fread

[PHP] Setting paths in PHP

2001-05-10 Thread Johan
My question: how do you set a path using php or html? I need it for the following code: index.php - --- data.htm -- Download it now! -