#50453 [Opn->Bgs]: Relative path

From: Date: Wed, 06 Jan 2010 08:37:18 +0000
Subject: #50453 [Opn->Bgs]: Relative path
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3629@lists.php.net to get a copy of this message
ID: 50453 Updated by: bjori@php.net Reported By: prof3ta at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: We shouldn't need to treat our users as sillibillies by screaming obvious thing at them. This is explained, among other places, in the filesystem docs. Previous Comments: ------------------------------------------------------------------------ [2009-12-11 22:23:35] prof3ta at gmail dot com Sorry if I have been cryptic, but I was running out of time. The target path in the move_uploaded_file function is referred in the whole doc page as a mere "path", without specifying if a relative or absolute path should be used for it. Both are obviously possible. In the example code, an absolute path is used. It should be clarified IN CAPITAL LETTERS that the absolute path is relative to the whole file system and *not* to the webroot (as one could erroneously expect). This is not a proper bug, I'm just advising to be more explicit in the function doc page. Hope this helps. ------------------------------------------------------------------------ [2009-12-11 20:05:43] bjori@php.net Why? ------------------------------------------------------------------------ [2009-12-11 18:13:18] prof3ta at gmail dot com Description: ------------ In the sample code, the path for the upload dir should be a relative one, not an absolute one. Reproduce code: --------------- --- From manual page: function.move-uploaded-file#Examples --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50453&edit=1

« previous php.doc.bugs (#3629) next »