Category : windows

i have installed google drive desktop app and wamp.net in my windows 10 system. i am try on local environment using nginx+php but, when try to access site from my google drive path (D:My Driveexample.com) then get access denied error, if try from another local disk (C:wwwexample.com) like "C" or other then work fine and ..

Read more

currently, i’m working on a project using codeigniter 3 on windows server. it process some data in background process after user upload and save it into DB. it is totally fine. here’s the code private function _run_in_background() { $ip = $this->helper->get_ip_address(); $command = "php -f ".FCPATH."index.php auth run_in_background 0 $ip"; $this->_command($command); } private function _command($command) ..

Read more

Trying to create a file into a folder in the mapped drive (Z:) The source code Im using is as follows: $fileNumber = ‘F2310XXXX’; $content = "; Test n; Date : ".date(‘d/m/Y H:i:s’)."n; Filename : ".$fileNumber.".TXT"; $fp = fopen("//xx.xx.xxx.xxx/MC/".$fileNumber.".TXT","wb"); fwrite($fp,$content); fclose($fp); The following error occur: A PHP Error was encountered Severity: Warning. Message: fopen(//xx.xx.xxx.xxx/MC/F2310XXXX.TXT): failed ..

Read more

Recently I came to know that there is a slight difference in code behavior due to host platform. $result = Data::my_custom_function($data, ‘id’); //comment : my_custom_function($array, $id) — it will return either false or string based on business logic if($result) { return $result; } else { return false; } Above code runs fine with Windows if ..

Read more