mr666
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by mr666
-
-
well im using flash and display the data from the xml
anyway thanks for the pointer -
i have a php form (edit_info.php only for logged-in members) when submitted,
1.update mysql database (table:user_info)
2.opens a single xml file (dummy.xml) and re-writes the whole structure whenever they update their info..
That particular xml file(dummy.xml) contains all the information from a table(user_info) from the database.
my question is what if there are two or more members updating their info at the same time (in-directly attempting to update the dummy.xml file at the same time) would that be a problem? like one of the member didnt get their info updated on the xml ?
do let me know if you need to look at the codes :)
php chmod and ftp problem
in PHP Coding Help
Posted
[code] if(!is_dir("$ausername")) {
mkdir("$ausername", 0755);
@chmod("$ausername", 0755);
copy("stu_index.html", "$ausername/index.html");
@chmod("$ausername/index.html", 0755);
}[/code]
*the problem is i cant add files via ftp to the created folder or even delete it..
[code] if(!is_dir("$ausername")) {
mkdir("$ausername", 0777);
@chmod("$ausername", 0777);
copy("stu_index.html", "$ausername/index.html");
@chmod("$ausername/index.html", 0777);
}[/code]
*only when i use php to mkdir and chmod it to 777, then i am able to add files and or del the folder via ftp..
i wonder how can i not chmod the file and folder 777 yet able to edit things via ftp ? im using a shared unix host..
thanks in advance!