#50453 [Fbk->Opn]: Relative path

From: Date: Fri, 11 Dec 2009 22:23:35 +0000
Subject: #50453 [Fbk->Opn]: Relative path
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3455@lists.php.net to get a copy of this message
ID: 50453 User updated by: prof3ta at gmail dot com Reported By: prof3ta at gmail dot com -Status: Feedback +Status: Open Bug Type: Documentation problem PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#3455) next »