* Thus wrote René Fournier ([EMAIL PROTECTED]):
> Ah, man, I just found my problem, and do I ever feel stupid... Thought
> I'd share it to highlight the "it's right in front of one's nose"
> feeling:
>
> copy($_FILES['userfile']['tmp_name']...
You should really use:
http://php.net/move_upload
Ah, man, I just found my problem, and do I ever feel stupid... Thought
I'd share it to highlight the "it's right in front of one's nose"
feeling:
copy($_FILES['userfile']['tmp_name']...
...was a sample code snippet. I had just copied and pasted it without
changing the "userfile" part—and since
René Fournier wrote:
I've added a path, but still no success
Does your webserver (Apache?) have write permission to the directory
you're trying to move the file too?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
I've added a path, but still no success
On Wednesday, October 29, 2003, at 05:11 PM, John Nichel wrote:
René Fournier wrote:
Thanks John. I've simplified and improved the quote per your
suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is
the code:
// MOVE FILE
if
(m
René Fournier wrote:
Thanks John. I've simplified and improved the quote per your
suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the
code:
// MOVE FILE
if
(move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][
'name'])) {
echo "Success!";
Thanks John. I've simplified and improved the quote per your
suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the
code:
// MOVE FILE
if
(move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][
'name'])) {
echo "Success!";
} else {
Rene --
...and then René Fournier said...
%
% Thanks John. I've simplified and improved the quote per your
% suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the
% code:
%
% // MOVE FILE
% if
% (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][
%
Thanks John. I've simplified and improved the quote per your
suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the
code:
// MOVE FILE
if
(move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][
'name'])) {
echo "Success!";
} else {
René Fournier wrote:
I'm trying to get a little upload script working... But I can't seem to
copy the tmp file to my local web directory (btw, do I really need to
specify the path, or can I just use a filename, and the file will be
written to the same directory as the PHP script??). Anyway, her
I'm trying to get a little upload script working... But I can't seem to
copy the tmp file to my local web directory (btw, do I really need to
specify the path, or can I just use a filename, and the file will be
written to the same directory as the PHP script??). Anyway, here is
the code:
$rea
10 matches
Mail list logo