Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-19 Thread Raditha Dissanayake
Scott Fletcher wrote:
Yep, that Java applet, Raditha's Rad Upload...  Just found the documentation
there that the file path worked before PHP 4.3.6 but not with 4.3.6 and up.
I don't know what the PHP developer did with the $_FILE codes before
releasing PHP 4.3.6
 

Older versions of PHP used to give the full pathname but recent versions 
do not. Rad UPload works around this by encoding the pathnames, which 
tricks the engine into thinking the path information is not there at all.


Scott
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 

Jason Wong wrote:
   

On Friday 19 November 2004 03:28, Scott Fletcher wrote:
 

Well, I had successfully uploaded the files/folders.  PHP just stripped
   

out
 

the folders for no reasons.  A file can be a folder too.
   

Could you explain how you did that (upload a folder)?
 

I guess using Raditha's Rad Upload.
   

 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
I mean full file path, it only show the filename without the filepath...

Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I found that $_FILES and move_uploaded_file doesn't contain directories
name
 when I uploaded multiple files/folders.  On the unix machine, all I saw
are
 files as if the tree is being stripped out and the remaining files is
placed
 together as if there's no folder.

 Why is that?  I really need this to work because the files/folders varies
 all the time.

 Thanks,
  Scott

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Richard Davey
Hello Scott,

Thursday, November 18, 2004, 6:05:09 PM, you wrote:

SF I mean full file path, it only show the filename without the filepath...

That's because it only uploads the file, not the full path worth of
files and certainly not any folders. In short - you cannot find out
what you need directly from PHP.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 I am not young enough to know everything. - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
Well, I had successfully uploaded the files/folders.  PHP just stripped out
the folders for no reasons.  A file can be a folder too.

Scott

Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello Scott,

 Thursday, November 18, 2004, 6:05:09 PM, you wrote:

 SF I mean full file path, it only show the filename without the
filepath...

 That's because it only uploads the file, not the full path worth of
 files and certainly not any folders. In short - you cannot find out
 what you need directly from PHP.

 Best regards,

 Richard Davey
 -- 
  http://www.launchcode.co.uk - PHP Development Services
  I am not young enough to know everything. - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Jason Wong
On Friday 19 November 2004 03:28, Scott Fletcher wrote:
 Well, I had successfully uploaded the files/folders.  PHP just stripped out
 the folders for no reasons.  A file can be a folder too.

Could you explain how you did that (upload a folder)?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Rome wasn't burned in a day. 
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Marek Kilimajer
Jason Wong wrote:
On Friday 19 November 2004 03:28, Scott Fletcher wrote:
Well, I had successfully uploaded the files/folders.  PHP just stripped out
the folders for no reasons.  A file can be a folder too.

Could you explain how you did that (upload a folder)?
I guess using Raditha's Rad Upload.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
Yep, that Java applet, Raditha's Rad Upload...  Just found the documentation
there that the file path worked before PHP 4.3.6 but not with 4.3.6 and up.
I don't know what the PHP developer did with the $_FILE codes before
releasing PHP 4.3.6

Scott

Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Jason Wong wrote:
  On Friday 19 November 2004 03:28, Scott Fletcher wrote:
 
 Well, I had successfully uploaded the files/folders.  PHP just stripped
out
 the folders for no reasons.  A file can be a folder too.
 
 
  Could you explain how you did that (upload a folder)?
 

 I guess using Raditha's Rad Upload.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Richard Davey
Hello Scott,

Thursday, November 18, 2004, 7:28:00 PM, you wrote:

SF Well, I had successfully uploaded the files/folders. PHP just
SF stripped out the folders for no reasons. A file can be a folder
SF too.

If you insist.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 I am not young enough to know everything. - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: $_FILES passed by value

2004-06-03 Thread Rob Adams
Daniel Guerrier [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 If I pass a $_FILES to an object by value.  Does it
 create a copy of the actual posted files as well?

 In other words if I post a 2MB file to save.php and in
 turn pass $_FILES to an object $file-fileis($_FILES);
 Does that create 4MB of data in memory?

$_FILES is a super global.  You really shouldn't have to pass it anywhere...
It doesn't contain the actual file, just information about the file.  IE.
  size
  name
  tmp_name
  type

So if you do make a copy if it, you aren't copying the actual file that was
uploaded, just an array of information.

  -- Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $_FILES passed by value

2004-06-03 Thread Marek Kilimajer
Rob Adams wrote:
Daniel Guerrier [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
If I pass a $_FILES to an object by value.  Does it
create a copy of the actual posted files as well?
In other words if I post a 2MB file to save.php and in
turn pass $_FILES to an object $file-fileis($_FILES);
Does that create 4MB of data in memory?

$_FILES is a super global.  You really shouldn't have to pass it anywhere...
It doesn't contain the actual file, just information about the file.  IE.
  size
  name
  tmp_name
  type
So if you do make a copy if it, you aren't copying the actual file that was
uploaded, just an array of information.
  -- Rob
And the uploaded file is not kept in memory but in temporary file: 
$_FILES['uploadedfile']['tmp_name']

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: _FILES

2003-03-06 Thread Niels Andersen
Yes, $HTTP_POST_FILES is depricated, but it still works in PHP 4.

John Taylor-Johnston [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 $HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES
is still compliant?
 John




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: $_FILES limited to 5? (Server versions)

2002-10-16 Thread Jason Young

Just wanted to let everyone know:

PHP version is 4.2.1
Apache is 1.3.24

Running WindowsXP Pro


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: $_FILES limited to 5? (Server versions)

2002-10-16 Thread David Freeman


  Just wanted to let everyone know:
  
  PHP version is 4.2.1
  Apache is 1.3.24
  
  Running WindowsXP Pro

Oh, yeah, that.

My dev environment is almost exactly the same.

CYA, Dave




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php