Search
Left Quote    I have not failed. I've just found 10,000 ways that won't work.
- Thomas Alva Edison    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: chmod in php
  This user is offline  mw509
  Subject: "chmod in php" Posted: @ 11:04 pm on Apr 04 2010   

Member #: 1227
Rank: User - (2)
Since: 04/04/10
Posts: 2
From: Ghana

am currently writing an application that is suppose to create a new directory at the end of user registration and then copy files from an existing folder into a the new created folder.

am using < mkdir ("director y name", 0755); > to create the directory and

chmod ("direcotr y", 0755";
copy("file name", "deswtinat ion" or die ("its not working";

to cpy the files.

now am able to create the directory alright but the point where it has to copy the files isn't working properly. and I really need help in resolving this. can anyone please help me?

---{[ MW509 ]}---

Edited at 11:10:35 pm on 04/04/10


:)
moonwalker509 | moonwalker509 |     Viewed: 5,586 Times | Reply to This | To top
  This user is offline  mw509
  Subject: "re: chmod in php" Posted: @ 7:40 pm on Apr 12 2010    

Member #: 1227
Rank: User - (2)
Since: 04/04/10
Posts: 2
From: Ghana

I found what the problem was. I just waited a while to see if anyone would come up with a solution but I guess NO ONE DID! anyway.

I realized I've been working on a linux system and on Linux and unix CHMOD works easily but windows does not recognize such PHP commands so thats why it wasn't working. though it may work for some people it will not for others so moving your code unto a different OS platform may fuck u up... :)




:)

moonwalker509 | moonwalker509 |     Viewed: 5,540 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: chmod in php" Posted: @ 11:47 am on Apr 13 2010    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

Glad you identified a solution. I would have helped, but I didn't know the answer.




-bs0d | AllSyntax.com

    Viewed: 5,531 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2017; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank