Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.05; 'line:': 0.07; 'python': 0.09; 'file,': 0.15; 'normally.': 0.16; 'skip:/ 50': 0.16; 'wrote:': 0.17; 'figures': 0.17; 'requests': 0.18; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'embedded': 0.27; 'actual': 0.28; 'all.': 0.28; 'writes:': 0.29; 'van': 0.29; 'file': 0.32; 'to:addr :python-list': 0.33; 'server': 0.35; 'open': 0.35; 'too.': 0.35; 'itself': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'is.': 0.62; '8bit%:100': 0.70; '8bit%:92': 0.70; 'received:74.208': 0.71; '2013': 0.84 Date: Mon, 21 Jan 2013 07:33:22 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Forcing Python to detect DocumentRoot References: <339d9d6d-b000-4cf3-8534-375e0c44b2ca@googlegroups.com> <10ebf68d-12f9-46d6-be50-6c314500302d@googlegroups.com> <2bf766db-ffcd-4a7f-8e08-6e3400618e78@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:3FVCzSsewoXTCRhD+1XQpLLXiHKIjhw56AE/RJ0d4Ux KcJLxIvPguPNnSba8npdZGwVMwPo0vjxZvXFYm+QBFnQyUb75h IkCyZFGhmEgs83B3w9dOjvSIoZptOhAbUwUdJje3eAItnZDUXZ 7PlHQGF9kBiAxOAF2XAwqRrDiKX8l0Aw3dJOM287QbpQ6pXJ80 HV/PCCgccYbymcMWHU3m6cs4lSmsLzPFZqXVpFynptStjMzMnW resMtN69ms7/moyQHvH8ERh+Za8/yTyTn1wfsndMKQVck8vwn8 GUsRojmaExKKiUp0B8hI5mAjFfrk0X7idW+5jhqUntAGaWkUw= = X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358771626 news.xs4all.nl 6948 [2001:888:2000:d::a6]:56526 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37184 On 01/21/2013 01:25 AM, Ferrous Cranus wrote: > Τη Σάββατο, 19 Ιανουαρίου 2013 10:01:15 μ.μ. UTC+2, ο χρήστης Piet van Oostrum έγραψε: >> Ferrous Cranus writes: > While > > /home/nikos/public_html/cafebar-idea.gr/cgi-bin/counter.py > > that has also embedded this line: > > > > cannnot open the file normally. > > And the questions iw WHY since python script can open ANY filesystempath > file the user has access too. > As Piet has said,Python is NOT opening the file mail.png. When the html is sent to the browser, and the browser requests that image file, it's the server itself who figures out where the actual file is. Python isn't involved at all. -- DaveA