eeekin_07 Posted April 19, 2007 Share Posted April 19, 2007 Hi, it's me again, looks like php is interesting and now i am facing problems on the : <input name="file" bgcolor="#FFFF99" type="file" /> to import the xml files, the directory is : \\\....\ftproot\PSP\KSM\StatusUpdate\Inbound\sample.xml and i use if ( $_FILES['file']['tmp_name'] ) { $TransactionMessage = simplexml_load_file($_FILES['file']['tmp_name']); foreach ($TransactionMessage->TransactionHeader as $TransactionHeader) {} } for $_FILES['file']['tmp_name'] : When we click browse, could we specific the dir, means when we browse it is directly go to the dir we want? anyone... really thanx.. Link to comment https://forums.phpfreaks.com/topic/47705-browse-specific-directory/ Share on other sites More sharing options...
surion Posted April 19, 2007 Share Posted April 19, 2007 hmmm, if you use input type=file, u use a control made to browse on the local computer of the user,... not on the server i guess i don't think it is possible to specify a standard directory, thats something that depends on the users settings, Link to comment https://forums.phpfreaks.com/topic/47705-browse-specific-directory/#findComment-232965 Share on other sites More sharing options...
eeekin_07 Posted April 19, 2007 Author Share Posted April 19, 2007 thanx surion, but is there any other way to specify the directory? actually the server should import the xml file located on the ftpserver... hmm...i should find another way.. :-\ Link to comment https://forums.phpfreaks.com/topic/47705-browse-specific-directory/#findComment-232968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.