Reply to Re: protecting files by putting outside web root

Your name:

Reply:


Posted by J.O. Aho on 01/12/06 13:26

ryan wrote:
> awww. you can't sleep either eh?

It's not that bad really, just hope that I'll fall asleep somewhat more
"normal" time tonight :)

> I get the error "Sorry, can't find a file0520488R.pdf" im
> guessing this is because i don't have the /home/username/pdf set up
> correctly?

There can be a couple of reasons

1. you don't have the file in question

2. the path is wrong

3. the webserver don't have the right to access the directory

In a *nix environment, just see to that the directory has the folloving
privileges set

drwxr-xr-x 2 username users 296 Jan 12 2006 pdf

this can be doen in a shell with:
chmod 755 pdf

and for all files inside the directory
chmod 644 <filename>

whcih gives
-rw-r--r-- 1 username users 2092 Jan 12 2005 anime.pdf


Hope this will help to fix things for you.


//Aho

[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

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