From: Don S. <do...@se...> - 2003-05-17 16:24:45
|
In hte options page, the leading "/" in my directory paths is removed for the following options: temp_directory incoming_directory mldonkey_bin mldonkey_gui Example, mldonkey_bin is "/opt/mldonkey" but in the options.php page it is "opt/mldonkey". When I run voo from the telnet session or the command-line page, the options is correctly printed as "/opt/mldonkey", so something in options.php is taking it out. I'm looking into it now. By the way the options.php files was full of ^M characters. I ran dos2unix on it and checked it back in. Don. |
From: Don S. <do...@se...> - 2003-05-17 16:32:10
|
Alright it is this line in options.php that is removing the leading / characters: $array[1] = preg_replace("/^\W*/", "", $array[1]); Basically it says to remove any "non-word" character from the beginning. I'm not quite sure what you are expecting to find here. You could just use the trim() function to get rid of leading whitespace. Are there other characters appearing that you don't want to display? Don. On Sat, 17 May 2003, Don Seiler wrote: > In hte options page, the leading "/" in my directory paths is removed for > the following options: > > temp_directory > incoming_directory > mldonkey_bin > mldonkey_gui > > Example, mldonkey_bin is "/opt/mldonkey" but in the options.php page it is > "opt/mldonkey". When I run voo from the telnet session or the > command-line page, the options is correctly printed as "/opt/mldonkey", so > something in options.php is taking it out. > > I'm looking into it now. By the way the options.php files was full of ^M > characters. I ran dos2unix on it and checked it back in. > > Don. > > > ------------------------------------------------------- > This SF.net email is sponsored by: If flattening out C++ or Java > code to make your application fit in a relational database is painful, > don't do it! Check out ObjectStore. Now part of Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > Phpeselgui-developer mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpeselgui-developer > > > |
From: Don S. <do...@se...> - 2003-05-17 16:38:34
|
Alright when I comment that line out all the "Yes/No" radio forms are just text fields. I guess there's some control information there. Anyway it doesn't seem like much is being done so if I have time to think of a solution I'll implement one. Don. On Sat, 17 May 2003, Don Seiler wrote: > Alright it is this line in options.php that is removing the leading / > characters: > > $array[1] = preg_replace("/^\W*/", "", $array[1]); > > Basically it says to remove any "non-word" character from the beginning. > I'm not quite sure what you are expecting to find here. You could just > use the trim() function to get rid of leading whitespace. Are there other > characters appearing that you don't want to display? > > Don. > > On Sat, 17 May 2003, Don Seiler wrote: > > > In hte options page, the leading "/" in my directory paths is removed for > > the following options: > > > > temp_directory > > incoming_directory > > mldonkey_bin > > mldonkey_gui > > > > Example, mldonkey_bin is "/opt/mldonkey" but in the options.php page it is > > "opt/mldonkey". When I run voo from the telnet session or the > > command-line page, the options is correctly printed as "/opt/mldonkey", so > > something in options.php is taking it out. > > > > I'm looking into it now. By the way the options.php files was full of ^M > > characters. I ran dos2unix on it and checked it back in. > > > > Don. > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: If flattening out C++ or Java > > code to make your application fit in a relational database is painful, > > don't do it! Check out ObjectStore. Now part of Progress Software. > > http://www.objectstore.net/sourceforge > > _______________________________________________ > > Phpeselgui-developer mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpeselgui-developer > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: If flattening out C++ or Java > code to make your application fit in a relational database is painful, > don't do it! Check out ObjectStore. Now part of Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > Phpeselgui-developer mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpeselgui-developer > > > |