[PHP] Re: image

2003-04-04 Thread Dimitris Kossikidis
Try to put your image into your web directory Diksha Neel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] dear all, hi! i am creating an html file through a php script. i am drawing a table in one of whose cells i want to include and image. but this image does not appear when

[PHP] Re: How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Dimitris Kossikidis
I suppose that argc argv variables should be supported in future releases of php. At this time only cgi php supports this feature. Am i wrong? Christian Bartels [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello! I'm new here on the list. I hope you can help me! :) I have a

[PHP] Re: Truncating text

2003-03-04 Thread Dimitris Kossikidis
Just run this query avoiding all this php code SELECT SUBSTRING( MyFieldName, 0, 30 ) FROM MyTable Substring( fieldname, starting position, length ) Sebastian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Good morning all. I have a mysql query that fetches some text. I am

[PHP] Re: =.jpg from another URL with PHP=

2002-10-11 Thread Dimitris Kossikidis
First of all you have to open this file as a binary e.g. fopen(myfile.jpg,rb); then you shound send the apropriate html headers to display the image e.g. header(Contet-type: image/jpeg); Anthony Ritter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The

[PHP] Re: Multiple Form Submit Buttons

2002-10-11 Thread Dimitris Kossikidis
Suppose that form's buttons are input type= submit name=submit value=Edit input type= submit name=submit value=Delete input type= submit name=submit value=New ? switch ($submit){ case Edit: ...; break; case Delete: ...; break;

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] 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 your

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 PM

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

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

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 the

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,

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] 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] 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 Lampn [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 10:22 AM To: Php-General Subject:

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 Lampn [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 10:22 AM To: Php-General Subject:

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 following

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] Adding

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: Thursday,

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 I

Re: [PHP] still learning php

2001-10-01 Thread Dimitris Kossikidis
leb Carvalho Application Engineer LoadRunner/APM -- --- Enterprise Testing and Performance Management Solutions -- --- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone :

Re: [PHP] still learning php

2001-10-01 Thread Dimitris Kossikidis
ing and Performance Management Solutions -- --- 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] CC: [EMAIL PROTECTED] Subjec

Re: [PHP] Capturing several checkbox values

2001-09-25 Thread Dimitris Kossikidis
input type=checkbox name=mycheck[] value=value1 input type=checkbox name=mycheck[] value=value2 input type=checkbox name=mycheck[] value=value3 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