ggmj.de

German Giant Map Junkies
Aktuelle Zeit: Mi Jan 17, 2018 1:46 pm

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 18 Beiträge ]  Gehe zu Seite 1, 2  Nächste
Autor Nachricht
 Betreff des Beitrags: Not getting logs from FTP
BeitragVerfasst: Fr Sep 23, 2005 4:07 am 
Hi,
I am having a problem getting the files to upload from ftp. They post over fine if I manually add them to the log file but getting error from get logs command? "Notice: Undefined offset: 8 in C:\Inetpub\vhosts\GAMESHANTY.COM\httpdocs\utlc\Index.php on line 252"

Now heres my config.php

$plserver ="localhost"; // IP-Adress of DB: mostly localhost (let unchanged if you're unsure)
$pluser ="UTLC"; // name of DB-User
$plpass ="******"; // your DB-password
$pldataBase ="UTLC"; // the database to be used

$ftp_server ="64.34.164.188"; // FTP-Server-IP
$ftp_user_name ="server"; // FTP-Server-Username
$ftp_user_pass ="*****"; // FTP-Server-Password
$ftp_logs_dir ="/UT2004/UserLogs/"; // Path to the PlayerJoin*.log - Files on FTP-Server

Can you tell me what I did wrong?


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 10:07 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
hi, is the directory 100% correct? It looks like there's Upper/Lowercase-typo in the $ftp_logs_dir - Value. 2nd idea: If the Gameserver is running under windows you need to use BACKslashes instead of slashes... maybe. I never tried it with a real windows-webserver... only locally with xampp.

Hope this Helps :? - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 2:38 pm 
{GGMJ}_3dc hat geschrieben:
hi, is the directory 100% correct? It looks like there's Upper/Lowercase-typo in the $ftp_logs_dir - Value. 2nd idea: If the Gameserver is running under windows you need to use BACKslashes instead of slashes... maybe. I never tried it with a real windows-webserver... only locally with xampp.

Hope this Helps :? - ~3DC~


Hi, Thanks for your help I really need this file. The direectory name was cut & pasted so it is exact. If I change the backslashes like so $ftp_logs_dir ="\UT2004\UserLogs"; I get this error. Parse error: parse error in C:\Inetpub\vhosts\GAMESHANTY.COM\httpdocs\utlc\config.php on line 16

Here is what the get logs pag says "Getlogs transfers all complete Playerjoin-Logfiles from /UT2004/UserLogs/ and saves them under C:\Inetpub\vhosts\GAMESHANTY.COM\httpdocs\utlc/logs/.
After that the Logfiles will be deleted from /UT2004/UserLogs/.
Click HEREto start the process

I am really at a loss. Now if I manually move the player join files to the /utlc/log/ files it works fine. They arejust not moving via ftp I think. And if I change anything in ftp setups it errors with this message

"Error: Could not connect to FTP-Server. Please check Settings in config.php." So I believe the FTP section to be correct.

Please help :)


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:05 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Hi again,

aaah, ok... the parse error results of the syntax of the ""'s and the backslashes.
Code:
$ftp_logs_dir ="\UT2004\UserLogs\""; //<< there is one " more at the end now


If this dont works for itself, please also try changing the values for $current_dir and $current_dir2 in the config.php(at the end) to:
Code:
$current_dir = getcwd()."\logs\"";          // Path where the Logs will be saved before checking
$current_dir2 = getcwd()."\checkedlogs\"";            // Path where the checked logs will be saved
But normally it should work without changing the last 2 values, because you say it works if you copy the files manually to the logs-directory.

grml, windows is sooo .... :rambo: *g*

Greetz and sorry for the inconvenience - ~3DC~

PS: which file do you need? there isnt an additional file :)

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:28 pm 
{GGMJ}_3dc hat geschrieben:
Hi again,

aaah, ok... the parse error results of the syntax of the ""'s and the backslashes.
Code:
$ftp_logs_dir ="\UT2004\UserLogs""; //<< there is one " more at the end now


If this dont works for itself, please also try changing the values for $current_dir and $current_dir2 in the config.php(at the end) to:
Code:
$current_dir = getcwd()."\logs"";          // Path where the Logs will be saved before checking
$current_dir2 = getcwd()."\checkedlogs"";            // Path where the checked logs will be saved
But normally it should work without changing the last 2 values, because you say it works if you copy the files manually to the logs-directory.

grml, windows is sooo .... :rambo: *g*

Greetz and sorry for the inconvenience - ~3DC~

PS: which file do you need? there isnt an additional file :)


I just mean I need this program to work ... lol

Thanks

I tried ftp path both ways /ut2004/userlogs/ & \ut2004\userlogs\

I get this error "Parse error: parse error in C:\Inetpub\vhosts\GAMESHANTY.COM\httpdocs\utlc\config.php on line 14"

If I change where the logs are saved I get error on line 39 or line 40


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:33 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
could you please post the whole config.php again? because "parse error" looks like a typo or something like that...

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:40 pm 
<?
/////////////////////////////////////////////
// (c)05 3dc //
/////////////////////////////////////////////
//
$plserver ="localhost"; // IP-Adress of DB: mostly localhost (let unchanged if you're unsure)
$pluser ="utlc"; // name of DB-User
$plpass ="****"; // your DB-password
$pldataBase ="utlc"; // the database to be used

$ftp_server ="64.34.164.188"; // FTP-Server-IP
$ftp_user_name ="*****"; // FTP-Server-Username
$ftp_user_pass ="*****"; // FTP-Server-Password
$ftp_logs_dir ="/UT2004/Userlogs/""; // Path to the PlayerJoin*.log - Files on FTP-Server

$standardlng=""; // Language on startup every time (en or de)
$numcharscomment=10; // Chars of the comment to be shown in Search-Results
$numcharscommentoverview=100; // Chars of the comment to be shown on "Show Comments"-Page

// END OF USER-CONFIGURATION-AREA ;)


///////DO//NOT//CHANGE//ANYTHING//BELOW//THIS//LINE/////////
include ("lngtxt.php");
$current_dir = getcwd()."/logs/"; // Path where the Logs will be saved before checking
$current_dir2 = getcwd()."/checkedlogs/"; // Path where the checked logs will be saved
////////////////////////////////////////////////////////////
$dbHandle =mysql_connect($plserver,$pluser,$plpass)
or die("Connection to DB failed.<br />\n".mysql_error());
mysql_select_db($pldataBase,$dbHandle)
or die("DB ".$dataBase." not found.<br />\n".mysql_error());

?>

Keep in mind I get Parse error: parse error in C:\Inetpub\vhosts\GAMESHANTY.COM\httpdocs\utlc\config.php on line 14

and the page won't even load with the double "" at end. Now page loads but I get that first "Notice: Undefined offset: 8 in C:\Inetpub\vhosts\GAMESHANTY.COM\httpdocs\utlc\Index.php on line 252

When running get logs but at least the page loads.


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:48 pm 
If you need to I can can give you the pasword to log in and see for yourself. It appears that all that is not working is moving the playerjoin* files to the /UTLC/Logs/ file


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:54 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
if you use BACKslashes you need to use a double-" at the end.
if you use normal slashes, you dont need to change anything.

for understanding the error(s):
Code:
echo "abc";
would display
Zitat:
abc

Code:
echo "/abc/";
would display
Zitat:
/abc/

Code:
echo "\abc";
would display
Zitat:
\abc


Code:
echo "\abc\";
would result in a parse-error.

Code:
echo "\abc\"";
would display
Zitat:
\abc\


if a backslash inside "" is followed by a " , php thinks it's a Backslash. Now the whole variable-definition isnt "closed", it looks like
Code:
$abc="example text ;
, which is wrong, because php dont finds an end for the content.

You know what I mean?

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 3:57 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Anonymous hat geschrieben:
If you need to I can can give you the pasword to log in and see for yourself. It appears that all that is not working is moving the playerjoin* files to the /UTLC/Logs/ file
I could join your irc-chan and help you there if you use that kind of communication...

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 4:00 pm 
errr no I have no idea what you just said :lol: But anyway sounds like I can leave them with default backslashes. Any ideas what is wrong you need anything else from me?


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 4:01 pm 
I have to run an errand and will be back in about an hour. Tell me where to look for you on irc and I will find you when I get back if that is ok. I also have ICQ


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 4:27 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
omg i installed icq now :shock: :lol:
Tell me your number and i'll add you to my buddies; for verification: 212-040-544 is my id.

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 6:45 pm 
It will show up as ACman but my ICQ# is 13323999

Thanks I am online now


Nach oben
  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Sep 23, 2005 8:18 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
yo, me too.... but now it's too late, right?! I'll try it again tomorrow, ok?

_________________
manamana


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 18 Beiträge ]  Gehe zu Seite 1, 2  Nächste

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron

Deutsche Übersetzung durch phpBB.de