Robert

I'm no expert but i think you should look at

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

particulalry the move_uploaded_file command

HTH
N
> Hi
>
> Heres an easy one for the php gurus :)
>
> Have uploaded a file to the server. 
>
> var_dump($_FILES[XMLData]); gives me...
>
>
> array(5) {  ["name"]=>  string(8) "Test.xml"  ["type"]=>  string(8) 
> "text/xml"  ["tmp_name"]=>  string(27) "C:\WINDOWS\Temp\php1A23.tmp" 
> ["error"]=>  int(0)  ["size"]=>  int(43630)}
>
> Which looks right.
>
> When I try and open the file it always seems to fail,  I tried
>
>         $xml = simplexml_load_file($XMLFileName);
>         var_dump($xml);
>
> where $XMLFileName = tmp_Name
>
> This gives bool(false)
>
> I then tried
>
>         $handle = fopen($XMLFileName, "r");
>         $contents = fread($handle, filesize($textfile));
>         fclose($handle);
>        
>         echo $contents;
>
> This gives an empth string.  I know the xml file I am uploading has data 
> and that the file size matches that shown in the $_Files[].
>
> Any suggestions at all?
>
> is it possible the ISP has disallowed acces to 'C:\WINDOWS\Temp\' ? If 
> so how should I get access to my XML ?
>
> Help !
>
> Rob
>
> _______________________________________________
> NZ Borland Developers Group Offtopic mailing list
> Post: [email protected]
> Admin: http://delphi.org.nz/mailman/listinfo/offtopic
> Unsubscribe: send an email to [email protected] with 
> Subject: unsubscribe
>
>
>   

_______________________________________________
NZ Borland Developers Group Offtopic mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/offtopic
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to