Re: [PHP] printing files

2002-02-13 Thread Dimitris Kossikidis
The only way that works fine for me is to read a file char by char. When you read the \n character add the readen chars in array's position. Here is an example $fp = fopen ("myfile","r"); $txtarr = array();// array to store each line of your file $linenum = 1; // just a counter $lin

Re: [PHP] Changing arguments in the php.ini file

2002-02-26 Thread Dimitris Kossikidis
Try to STOP and then START apache, not restart. If it doesn't work make sure that there is no php.ini file in the c:\phpinstalldir\.but only in your WINDIR. - Original Message - From: "Kostas Karadamoglou" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 4:06

Re: [PHP] Superuser for PHP Script

2002-03-13 Thread Dimitris Kossikidis
If you want to use sudo you can do it with the fowling function: function loginsu(){ $fhandle = @popen("$sudo_path -u root clear", "w"); $fputs( $fhanlde, "$supassword"); @pclose($fhandle); } Dont forget to edit /etc/sudoers adding the folowing line apache ALL=PASSWD:ALL Do it at y

Re: [PHP] Forms

2002-03-22 Thread Dimitris Kossikidis
You 've missed this ")" . Change it to print( form("tt.php", form_radio("group","parameters") ) ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Results, Per Page, Total Results!

2002-04-15 Thread Dimitris Kossikidis
Here you can find a php class to make it work very simply... http://phpclasses.promoxy.com/browse.html/package/366.html - Original Message - From: "Thomas Edison Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 9:23 AM Subject: [PHP] Search Results, Per Page

RE: [PHP] mySQL problem

2001-11-02 Thread Dimitris Kossikidis
Try this $Query = "SELECT UCASE(Company) as company, Icons, ID, LogoD FROM feComps"; List ( $company, $icons, etc ) = mysql_fetch_row( ); > -Original Message- > From: Niklas Lamp&igr;n [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 10:22 AM > To: Php-General > Subj

RE: [PHP] mySQL problem

2001-11-02 Thread Dimitris Kossikidis
Try this $Query = "SELECT UCASE(Company) as company, Icons, ID, LogoD FROM feComps"; List ( $company, $icons, etc ) = mysql_fetch_row( ); > -Original Message- > From: Niklas Lamp&igr;n [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 10:22 AM > To: Php-General > Subj

RE: [PHP] PHP code organization...

2001-11-22 Thread Dimitris Kossikidis
Try to break up html into different files for each browser type. Switch ($browser) { case "ns4" : include ns4.html; break; case "ie5" : include ie5.html; break; . . . default : include ie6.html; }

RE: [PHP] Hierarchies

2001-11-28 Thread Dimitris Kossikidis
You can do it only in few lines of code with a recursive function... You can display full tree structure with unlimited levels. Mysql Table : cid int, parent int, Name varchar Cid parent varchar 1 0 A 2 1 C 3 0 B 4 1 D 5 2 E 6

Re: [PHP] Logo proposal

2001-12-13 Thread Dimitris Kossikidis
How about an Aunt!? ( I don't know if it is in use ) Ant is a hard worker in the summer and very powerfull ( can lift 30 times it's weight ) and small. Just Like PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-21 Thread Dimitris Kossikidis
Or you can use this simply class from Manuel Lemos's site. It works with Mysql only. http://phpclasses.upperdesign.com/browse.html/package/366 > Hi, > > I need an algorithm for paging. If I have 100 pages of results, I only > want to show > << Prev 1 2 3 4 5 6 7 8 9 10 Next >> > > Where I limit

Re: [PHP] IP address from which country

2002-01-09 Thread Dimitris Kossikidis
I 'm not sure, but i beleive you can get visitor's country from Apache 's Varialble $HTTP_ACCEPT_LANGUAGE. For further information read "Predefined Variables" in the manual. Hope it works!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] Capturing several checkbox values

2001-09-25 Thread Dimitris Kossikidis
Now you get an array called mycheck. Manipulate this array in php. Remeber that only checked items are set in array. That means if 2 checkboxes are checked you 'll get an array with 2 positions. Suppose that 1st and 3rd checkboxes are checked. - Original Message - From: "John Day" <

Re: [PHP] Capturing several checkbox values

2001-09-25 Thread Dimitris Kossikidis
Now you get an array called mycheck. Manipulate this array in php. Remeber that only checked items are set in array. That means if 2 checkboxes are checked you 'll get an array with 2 positions. Suppose that 1st and 3rd checkboxes are checked. - Original Message - From: "John Day" <

Re: [PHP] still learning php

2001-10-01 Thread Dimitris Kossikidis
$field_value = "I 'm bla bla"; $field_value = addslashes($field_value); $sql = "Insert into TABLE values('$field_value'); - Original Message - From: "Caleb Carvalho" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 2:05 PM Subject: [PHP] still learning php >

Re: [PHP] still learning php

2001-10-01 Thread Dimitris Kossikidis
> Mercury Interactive > 410 Frimley Business Park > Frimley, Surrey. GU16 7ST > United Kingdom > Telephone : +44 (0)1276 808300 > > > > >From: "Dimitris Kossikidis" <[EMAIL PROTECTED]> > >To: "Caleb Carvalho" <[EMAIL PROTECTED]>

Re: [PHP] still learning php

2001-10-01 Thread Dimitris Kossikidis
- --- > Enterprise Testing and Performance Management Solutions > -- --- > Mercury Interactive > 410 Frimley Business Park > Frimley, Surrey. GU16 7ST > United Kingdom > Telephone : +44 (0)1276 808300 > > > > >From: &

Re: [PHP] Session and header() errrors

2001-10-04 Thread Dimitris Kossikidis
You should change sessions configuration in php.ini The default value for sessions dir /tmp. In windows shoud point to c:\tmp The header error occurs because you get a warning about session. - Original Message - From: "Web user" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursda

Re: [PHP] Adding zeros to date

2001-10-05 Thread Dimitris Kossikidis
This should be fine... $month = 5; $year = 2001; $day = 6; echo date( "Y/m/d", mktime( 0, 0, 0, $month, $day, $year ) ); Output "2001/05/06" - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Friday, October 05, 2001 12:44 PM Subject: [PHP

Re: [PHP] Undefined variable

2001-10-19 Thread Dimitris Kossikidis
This should work ... if ( IsSet($id) ) { . sql statement }else{ . } - Original Message - From: "Tshering Norbu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 12:22 PM Subject: [PHP] Undefined variable > Dear list, > > I test the followi