Linux server saving problems?
#1

Well my login/register system works fine on my PC (Windows Vista) But i uploaded my files to my linux server and its randomly started saving all the files into the root of scriptfiles instead of Users folder in there heres a screenshot:


It works fine on Windows :S, This is the code for the saving directories:

Code:
format(file, sizeof(file), "\\Users\\%s.ini", pname);
Reply
#2

Quote:
Originally Posted by [mad
MLK (dino-host.net) ]
Well my login/register system works fine on my PC (Windows Vista) But i uploaded my files to my linux server and its randomly started saving all the files into the root of scriptfiles instead of Users folder in there heres a screenshot:
Image

It works fine on Windows :S, This is the code for the saving directories:

Code:
format(file, sizeof(file), "\\Users\\%s.ini", pname);
What's so bad about using:
Code:
format(file, sizeof(file), "/Users/%s.ini", pname);
Or:
Code:
format(file, sizeof(file), "Users/%s.ini", pname);
Both should work fine.
Reply
#3

remember, in linux, your files need to be defined Case Sensitive!
Reply
#4

Quote:
Originally Posted by ev0lutionnn
What's so bad about using:
Code:
format(file, sizeof(file), "/Users/%s.ini", pname);
Or:
Code:
format(file, sizeof(file), "Users/%s.ini", pname);
Both should work fine.
[/quote]

Thats just not how you do file saving.

Quote:
Originally Posted by TMasters
remember, in linux, your files need to be defined Case Sensitive!
You can easily see that the file has a capital U in the folders too.

Reply
#5

Quote:
Originally Posted by [mad
MLK (dino-host.net) ]

Quote:

What's so bad about using:
Code:
format(file, sizeof(file), "/Users/%s.ini", pname);
Or:
Code:
format(file, sizeof(file), "Users/%s.ini", pname);
Both should work fine.

Thats just not how you do file saving.

Quote:
Originally Posted by TMasters
remember, in linux, your files need to be defined Case Sensitive!
You can easily see that the file has a capital U in the folders too.

Actually that is...I've never seen the use of double slashing.

Users/%s.ini would work fine.
Reply
#6

Quote:
Originally Posted by JaTochNietDan
Actually that is...I've never seen the use of double slashing.

Users/%s.ini would work fine.
Thanks dude worked the treat!.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)