making directories with php

Status
Not open for further replies.

listysite76

New Member
Messages
28
Reaction score
0
Points
0
what is the correct path to make a Dir with php.
1. mkdir("public_html/users/$iduser/",0777);

2. mkdir("users/$iduser/",0777);

i'm very confused about this, folder which i can see via x10 file manager is does not exists when i use filezilla FTP client.also my image uploading script crashes every time ......say's no such a file or directry.....but actually directory exists.what is correct path?

for a example say: i want to create a folder named users id automatically in users folder

what's the correct path for this ?
 
Last edited:

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Hi listysite76,
Is in your php file,the path needs to be changed to
/home/cham1992/public_html/folder_name
cham1992 being your cPanel account in the freehosting server.
Example usage is
$path_main = "/home/cham1992/public_html/folder_name";
revert back if you still face problems.
 
Status
Not open for further replies.
Top