dkseelro Posted April 27, 2011 Share Posted April 27, 2011 Dear Friends i am not a php develoers. but now i want to learn php for that i start from the free and open SOURCE software. i start from the opensource software IPATH which used by many countries for the tele-medicine. in that module there are difrent module which are developed in php in that module there are many options. one optin is Export case in the zip format. when i click on that click it downloads a zip file but zip file with 0 bytes. when i go through the code i found that there are two lines of code in php which are only for the UNIX operating system these does not work on the windows. lines are given bellow but i want to change these lines for the windows system( "cd ".$ipath->conf['data_dir']."/tmp; "."zip -r ".basename($this->zip_file)." ".basename($exp_dir). " > /dev/null"); system( "rm -r $exp_dir" ); can any one of you help me to changes these lines for windows platform. i am waiting for your positive response Regards Dodo Quote Link to comment https://forums.phpfreaks.com/topic/234824-php-code-does-not-work-on-the-windows/ Share on other sites More sharing options...
sunfighter Posted April 27, 2011 Share Posted April 27, 2011 This is not a php question. It deals with servers and should be asked there. Probably under Microsoft IIS this site or Other Web Server Software guess it depends on the server your using. Quote Link to comment https://forums.phpfreaks.com/topic/234824-php-code-does-not-work-on-the-windows/#findComment-1207053 Share on other sites More sharing options...
genebom Posted April 28, 2011 Share Posted April 28, 2011 You might want to look here... http://news.softpedia.com/news/A-Simple-PHP-Script-to-Create-ZIP-Archives-on-Windows-80871.shtml Quote Link to comment https://forums.phpfreaks.com/topic/234824-php-code-does-not-work-on-the-windows/#findComment-1207557 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.