Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] try to copy--- Please help me ASAP

Expand Messages
  • Nokhra The Great
    You do not have read/write (access) permission for the mentioned file. Give access permission for test_ 1 and run this script again. It will work. Thanking
    Message 1 of 2 , Jul 8, 2007
    • 0 Attachment
      You do not have read/write (access) permission for the mentioned file. Give access permission for test_ 1 and run this script again. It will work.


      Thanking you,
      Mohymen
      http://mohymen.wordpress.com

      ----- Original Message ----
      From: Mohammad abu taleb (Shimul) <simul14@...>
      To: Php ex <phpexperts@yahoogroups.com>
      Sent: Sunday, July 8, 2007 10:10:44 AM
      Subject: [phpXperts] try to copy--- Please help me ASAP

      I want to copy a file to client PC from Server PC
      I try like this but it says.....
      Warning: copy(//192.168. 2.128/test_ 1/example. txt.bak): failed to open stream: Permission denied in D:\apache2triad\ htdocs\bfew\ test\d.php on line 20
       
      $file = 'example.txt' ;
      $newfile = '//192.168.2. 128/test_ 1/example. txt.bak';
      if (!copy($file, $newfile)) {
         echo "failed to copy $file...";
      }
       
      Mohammad Abu Taleb Shimul
       


      Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.



      Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
    • Mohammad abu taleb (Shimul)
      but I have full access I can access by run 192.168.2.128 test_1 ... From: Nokhra The Great To: phpexperts@yahoogroups.com Sent: Sunday,
      Message 2 of 2 , Jul 8, 2007
      • 0 Attachment
        but I have full access
        I can access by  run\\192.168.2.128\test_1
         

        ----- Original Message ----
        From: Nokhra The Great <mohymen@...>
        To: phpexperts@yahoogroups.com
        Sent: Sunday, July 8, 2007 1:46:12 PM
        Subject: Re: [phpXperts] try to copy--- Please help me ASAP

        You do not have read/write (access) permission for the mentioned file. Give access permission for test_ 1 and run this script again. It will work.


        Thanking you,
        Mohymen
        http://mohymen. wordpress. com

        ----- Original Message ----
        From: Mohammad abu taleb (Shimul) <simul14@yahoo. com>
        To: Php ex <phpexperts@yahoogro ups.com>
        Sent: Sunday, July 8, 2007 10:10:44 AM
        Subject: [phpXperts] try to copy--- Please help me ASAP

        I want to copy a file to client PC from Server PC
        I try like this but it says.....
        Warning: copy(//192.168. 2.128/test_ 1/example. txt.bak): failed to open stream: Permission denied in D:\apache2triad\ htdocs\bfew\ test\d.php on line 20
         
        $file = 'example.txt' ;
        $newfile = '//192.168.2. 128/test_ 1/example. txt.bak';
        if (!copy($file, $newfile)) {
           echo "failed to copy $file...";
        }
         
        Mohammad Abu Taleb Shimul
         


        Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.



        Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.



        Be a better Heartthrob. Get better relationship answers from someone who knows.
        Yahoo! Answers - Check it out.
      Your message has been successfully submitted and would be delivered to recipients shortly.