[Tool/Web/Other] [PHP] starting the server with php
#10

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
I had the same problem on linux, but i think it both is caused by the same thing.
When you start the server like this, the current working directory will be the php root dir, and not the server dir. So the server tries to find the server.cfg in the php root, but doesnt find one, this is why it gives the error.
You will have to use "cd /server_dir" first or override the working directory in another way.
Well, I changed the working directory if I did not make any mistakes, but the problem still exists.

Again, for those who care, here the (relevant) code:
pawn Код:
directory=input;
System.setProperty("user.dir", directory);
Reply


Messages In This Thread
[PHP] starting the server with php - by StrickenKid - 05.09.2009, 23:31
Re: [PHP] starting the server with php - by CJ101 - 05.09.2009, 23:39
Re: [PHP] starting the server with php - by StrickenKid - 05.09.2009, 23:46
Re: [PHP] starting the server with php - by Mrkrabz - 06.09.2009, 09:47
Re: [PHP] starting the server with php - by Norn - 06.09.2009, 11:34
Re: [PHP] starting the server with php - by Mrkrabz - 06.09.2009, 11:48
Re: [PHP] starting the server with php - by DeathOnaStick - 12.04.2011, 15:19
Re: [PHP] starting the server with php - by saiberfun - 12.04.2011, 16:25
Re: [PHP] starting the server with php - by Mauzen - 12.04.2011, 17:10
Re: [PHP] starting the server with php - by DeathOnaStick - 12.04.2011, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)