Re: problem with copy()

From: Date: Tue, 28 Jan 2003 15:20:50 +0000
Subject: Re: problem with copy()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133385@lists.php.net to get a copy of this message
you need to escape the windows backslash: $file = "c:\pic.jpg"; should be $file = "c:\\pic.jpg"; or $file = "c:/pic.jpg"; which will work the same -- Maxim Maletsky maxim@php.net "Bartosz Matosiuk" <madsiuk@morellos.net> wrote... : > hi > > can the string source in copy () looks like that: "c:\pic.jpg". If not > than how should it look like. > > I'm not sure becouse script gives me "Unable to open c:\pic.jpg for > reading: No such file or directory" but the file is there. > > and when i'm using $HTTP_POST_FILES['file']['tmp_name'] it returns > me: > 'Unable to open 'none' for reading: No such file or directory'. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#133385) next »