[PHP] Register Globals is_upload_file

2004-01-27 Thread bill
I'm converting old code to work with Register globals turned off in php.ini.
With it on, is_upload_file($filename) works fine but when turned off doesn't
work at all.

What am I missing.. Help me please !!

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



Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread Daniel Guerrier
http://us3.php.net/features.file-upload
--- bill [EMAIL PROTECTED] wrote:
 I'm converting old code to work with Register
 globals turned off in php.ini.
 With it on, is_upload_file($filename) works fine but
 when turned off doesn't
 work at all.
 
 What am I missing.. Help me please !!
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread John Nichel
bill wrote:

I'm converting old code to work with Register globals turned off in php.ini.
With it on, is_upload_file($filename) works fine but when turned off doesn't
work at all.
What am I missing.. Help me please !!

...the Handling file uploads section of the manual.

http://www.php.net/manual/en/features.file-upload.php

And you more than likely need to give it the path to the upload 
directory, as well as the tmp filename.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread Marek Kilimajer
You are working with Register globals turned off, so try 
is_upload_file($_FILES['tmp_name']['filename'])

bill wrote:
I'm converting old code to work with Register globals turned off in php.ini.
With it on, is_upload_file($filename) works fine but when turned off doesn't
work at all.
What am I missing.. Help me please !!

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