Re: [PHP] multicolumn table

2001-12-17 Thread Andrey Hristov
try to start the sql at a prompt and post the error which mysql returns Regards, Andrey Hristov - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday, December 17, 2001 4:04 PM Subject: [PHP] multicolumn table Hi list, I've tried

Re: [PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread Andrey Hristov
Maybe you use 4.1.0 and register_globals is off (in php.ini). try this var_dump($HTT_SERVER_VARS); Regards, Andrey Hristov - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 17, 2001 4:27 PM Subject: [PHP] Using PHP in an HTTP 404 error document

Re: [PHP] php in free()

2001-12-18 Thread Andrey Hristov
the socket until feof($fp) but stopped somewhere before the end of data and close()-ing socket after that. After this intervention the time which the scripts uses is 4!!! seconds. Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From

[PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
when starting on a console? Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

Re: [PHP] Parse error: parse error in/test/put_file.php on line 14???

2001-12-18 Thread Andrey Hristov
The problem is here $pos = strrpos($file, \); must be $pos = strrpos($file, \\); Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Alex Elderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 18

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
$PHPSESSID is only available if the session is started before current executed script. Regards, Andrey - Original Message - From: Julio Nobrega Trabalhando [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 1:45 PM Subject: [PHP] Re: $PHPSESSID on PHP 4.1.0 Hi

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
/projects/toca Andrey Hristov [EMAIL PROTECTED] wrote in message 032e01c187db$148bfa30$0b01a8c0@ANDreY">news:032e01c187db$148bfa30$0b01a8c0@ANDreY... $PHPSESSID is only available if the session is started before current executed script. Regards, Andrey -- PHP General Mail

Re: [PHP] HTTP_POST_FILES not working with 4.1.0?

2001-12-19 Thread Andrey Hristov
Try $_FILES array, if it works that means that register_globals is off. Regards, Andrey - Original Message - From: Ron Dyck [EMAIL PROTECTED] To: PHPList [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 4:41 PM Subject: [PHP] HTTP_POST_FILES not working with 4.1.0? Having

Re: [PHP] Passing Logined in Name form One Form to other Page

2001-12-19 Thread Andrey Hristov
avaiable and preferable. ? Regards, Andrey Hristov - Original Message - From: Jack [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 9:30 AM Subject: [PHP] Passing Logined in Name form One Form to other Page Dear all I had

Re: [PHP] embed pdf.

2001-12-21 Thread Andrey Hristov
May be by using IFRAME, this: Does anybody out there know how to embed pdf in a web page can be succeeded. Regards, Andrey Hristov - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 3:22 PM Subject: Re: [PHP] embed pdf

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
Nope $test(); Regards, Andrey - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: Emile Bosch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 3:43 PM Subject: Re: [PHP] Question about CREATE_FUNCTION Why do you need this? To my knowledge you get

[PHP] last row in the table

2001-12-21 Thread Andrey Hristov
memberInfo where member_id=@a;'); $brr=mysql_fetch_array($res); mysql_free_result($res); var_dump($brr); ? More info here : http://www.mysql.com/doc/V/a/Variables.html Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] last row in the table

2001-12-21 Thread Andrey Hristov
I wrote this because maybe the ordering is more expensive than 2 queries (one one indexed field possibly). Regards, Andrey - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:18 PM Subject: [PHP] last row in the table

Re: [PHP] Re: Issues with fopen long file names?

2001-12-21 Thread Andrey Hristov
Try this : $fp = fopen(C:\\WINNT\\Temp\\adodb_9002b91d2d52c10124c949e2b415a980.cache, r); HTH, Andrey - Original Message - From: Garth Dahlstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:24 PM Subject: [PHP] Re: Issues with fopen long file names? I

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
?php $test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Regards, Andrey - Original Message - From: Alexander Skwar [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about

[PHP] Build questions

2001-12-23 Thread Andrey Hristov
no thread enviroment). I suppose that I've to build php4ts because my current Apache/php config uses this dll in company of php4ts.lib. Last question : Why the compile time is bigger in times compared to linux? TIA Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Prev ... Next

2001-12-23 Thread Andrey Hristov
The sql is select name from members limit offset,10; you have to generate offet which _must_ be an integer. Regards, Andrey Hristov - Original Message - From: Rambo Amadeus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 6:06 PM Subject: [PHP] Prev ... Next

Re: [PHP] This makes NO SENSE!!!!!

2001-12-27 Thread Andrey Hristov
What PHP version do you use(4.1.0?) Regards, Andrey Hristov - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: Chris Cocuzzo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 2:18 PM Subject: Re: [PHP] This makes NO SENSE! Most probably you

Re: [PHP] This makes NO SENSE!!!!!

2001-12-27 Thread Andrey Hristov
It is for the author of This makes NO SENSE! Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] is_uploaded_file

2001-12-28 Thread Andrey Hristov
Read the docs about copy_uploaded_file() (this is the function with some more docs, as I remember). HTH Andrey Hristov - Original Message - From: Paul Roberts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 28, 2001 2:41 PM Subject: [PHP] is_uploaded_file I'm on PHP

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Andrey Hristov
Under *nix - SysV semaphores HTH Regards, Andrey Hristov - Original Message - From: Nicolas Guilhot [EMAIL PROTECTED] To: Php General MailingList [EMAIL PROTECTED] Sent: Friday, December 28, 2001 4:31 PM Subject: [PHP] Only one instance of a script at a time ! Running a php script

Re: [PHP] is_uploaded_file

2001-12-28 Thread Andrey Hristov
Hristov - Original Message - From: Paul Roberts [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 28, 2001 5:13 PM Subject: Re: [PHP] is_uploaded_file no it's move_uploaded_file and it's 4.03 or greater as well. i'm using empty() as i

Re: [PHP] is_uploaded_file

2001-12-28 Thread Andrey Hristov
changed after that version. If one of your boxes is 4.0.2 and the other 4.0.3 use the output of phpinfo() with some kind of hack to determine wich one of the function to use, or just write a wrapper which decides pipe to which function to make. Regards, Andrey Hristov -- PHP General Mailing List

Re: [PHP] PHP certification

2001-12-28 Thread Andrey Hristov
Brainbench? Regards, Andrey Hristov - Original Message - From: clint [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Friday, December 28, 2001 11:13 PM Subject: [PHP] PHP certification Does anyone know if there are plans to offer a PHP certification in the future? I

Re: [PHP] easy quickie..

2002-01-02 Thread Andrey Hristov
I think it is $HTTP_SERVER_VARS['HTTP_REFERER'] Regards, Andrey Hristov - Original Message - From: Kelly Meeks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 8:15 PM Subject: [PHP] easy quickie.. Happy New Year, Does php set a variable that tells you

Re: [PHP] distinct element from array

2002-01-06 Thread Andrey Hristov
Try array_unique() Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: [PHP-DB] PHP/MySql - address book

2002-01-06 Thread Andrey Hristov
.'; or better select employee.* from employee left join companies using(company_id) where company_name='Some Ltd Inc.'; I do not have links to literature about relational model but I remember that on www.phpbuilder.com there is/are some info on it.I think from y.2000. Regards, Andrey Hristov

[PHP] Re: [PHP-DB] mysql_num_rows

2002-01-06 Thread Andrey Hristov
That means the sql is not correct and the mysql_query()(mysql at all) didn't succeded to execute it Check you sql statement. Regards, Andrey Hristov - Original Message - From: Gurhan Ozen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 06, 2002 9:52 PM Subject: [PHP-DB

Re: [PHP] global generation

2002-01-07 Thread Andrey Hristov
try : for ($i=0; $i $num_results; $i++) { $some= $$GLOBALS[variable]; // $some[$i] is what you need. } Regards, Andrey Hristov - Original Message - From: Rodney Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 07, 2002 6:11 PM Subject: [PHP] global generation

Re: [PHP] global generation

2002-01-07 Thread Andrey Hristov
Ooops, no $$ before GLOBALS, single $ for ($i=0; $i $num_results; $i++) { $some= $GLOBALS[variable]; // $some[$i] is what you need. } Regards, Andrey Hristov - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Rodney Davis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Andrey Hristov
Possibilities: 1)There was an error when mysql_query(). Possibly the SQL statement is not correct. Trace with var_dump()/mysql_errno(). 2)You give as parameter to some of mysql_* functions a variable not returned from mysql_query(). HTH Regards, Andrey Hristov - Original Message

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Andrey Hristov
; } Regards, Andrey - Original Message - From: Dan McCullough [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 7:00 PM Subject: Re: [PHP] Supplied argument is not a valid MySQL result resource here is the sql $parent_sql = SELECT * FROM categories

Re: [PHP] unshift a key value pair

2002-01-09 Thread Andrey Hristov
Try array_merge() Regards, Andrey Hristov - Original Message - From: Marc Logghe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 10:55 AM Subject: [PHP] unshift a key value pair Hi, I was wondering how you could unshift a key value pair onto an array

Re: [PHP] Sessions don't load

2002-01-09 Thread Andrey Hristov
, there is no set PHPSESSID cookie, so PHP WILL NOT have $GLOBALS['PHPSESSID'] variable (assuming register_globals is on in php.ini). If you want the id. Get it from session_id(). HTH Regards, Andrey Hristov - Original Message - From: Ryan Kelley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: [PHP] php,sockets-help!

2002-01-09 Thread Andrey Hristov
Probably here : $header .= User-Agent: PHP/4.0.6 (Apache/1.3.20)\r\n\r\n; you have two new lines instead of one. HTH Regards, Andrey Hristov - Original Message - From: Sandeep Murphy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 6:23 PM Subject: [PHP] php

Re: [PHP] session related

2002-01-11 Thread Andrey Hristov
suppres echo's to be sent to the browser with ob_start() as the furst instructuion in the Php, and ob_end() after the last header is sent. Regards, Andrey Hristov - Original Message - From: Mark Chin, Apoll Displays [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 11

Re: [PHP] RTFM code snippet

2002-01-11 Thread Andrey Hristov
makes type comparison. Regards, Andrey Hristov - Original Message - From: mike cullerton [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Friday, January 11, 2002 5:01 PM Subject: [PHP] RTFM code snippet hey folks, hope the new year is treating everyone well. i was RTFMing

Re: [PHP] Compiled PHP

2002-01-11 Thread Andrey Hristov
untouched(no compiling on it). It is interesting if one can make compiler for php to Java bytecode. I saw that there is a such compiler for Ada. Regards, Andrey Hristov - Original Message - From: charlesk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 11, 2002 5:57 PM Subject

Re: [PHP] Compiled PHP

2002-01-11 Thread Andrey Hristov
optimizes somehow the code and then encode it to make a bruteforce attack harder to do. Regards, Andrey Hristov - Original Message - From: Henning Sprang [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 11, 2002 6:31 PM

Re: [PHP] session problem

2002-02-14 Thread Andrey Hristov
What do you mean : session persist? Whe you close the browser the file(the most common case) is not deleted till the session expires. So if the expire time is 30 min it will stay in the /tmp for minimum 30 mins(the session garbage collector is not started on every request). The cookie which is

Re: [PHP] Store array into mysql?

2002-02-14 Thread Andrey Hristov
Hi, if you want to save an array and the structure is not known when you make the database schema definition, you have to serialize(), put the string in the DB, and when you restore it from the DB do unserialize(). Best regards, Andrey Hristov Back from the exams hellReady to help again

Re: [PHP] VERY novice question!

2002-02-14 Thread Andrey Hristov
is not OK. What you want to do? Best regards, Andrey Hristov Back from the exams hell - Original Message - From: brendan conroy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 7:46 PM Subject: [PHP] VERY novice question! Thanks for reading

[PHP] Re: [PHP-DEV] Newbie help w/ dynamic variables

2002-02-14 Thread Andrey Hristov
to show them in the parsed html do: $counter=0; while(isset(${your_dyn_var.$counter++})) echo ${your_dyn_var.($counter-1);} or for ($tmp_count=0;$tmp_count$counter;$counter++){ echo ${your_dyn_var.$counter};} Best regards Andrey Hristov - Original Message - From: Honey House Designs

Re: [PHP] character replace function

2002-02-14 Thread Andrey Hristov
you want to remove a char at position $x. so $the_string = substr($the_string,0,$x).substr($the_string,$x+1,strlen($the_string)-1-$x); you can do some juggling in the second substr() with negative values for the parameters but they will not be more fast than this. Best regards, Andrey Hristov

Re: [PHP] Sessions

2002-02-14 Thread Andrey Hristov
This means that you do some output before calling session_start() or session_register(); check for echo()s or blanks before ? . Also there have not to be any html before ? when using sessions. Best regards, Andrey Hristov - Original Message - From: Morten Nielsen [EMAIL PROTECTED

Re: [PHP] Sessions

2002-02-14 Thread Andrey Hristov
till it is sent to the end user. Best regards, Andrey Hristov - Original Message - From: James Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 9:02 PM Subject: [PHP] Sessions Speaking of sessions, I was wondering if something like this is even possible

Re: [PHP] My Session don't expire

2002-02-16 Thread Andrey Hristov
Maybe the content of the page is cached. Try to reload/to clear the cache of the browser. Best regards, Andrey Hristov - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Saturday, February 16, 2002 4:50 PM Subject: [PHP] My Session don't expire

Re: [PHP] Difference between two dates

2002-02-19 Thread Andrey Hristov
Try this : $d1=strtotime('d-m-Y',$str); $d2=strtotime('d-m-Y',$str1); var_dump($d2-$d1); Best regards, Andrey Hristov - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 10:50 AM Subject: [PHP] Difference between two

[PHP] Re: [PHP-DEV] Get an application/octet-stream from a java applet

2002-02-20 Thread Andrey Hristov
in 4.1.0 at least in a CVS 4.1.0-pre version. Try with 4.1.x Best regards, Andrey Hristov - Original Message - From: Nicolas BOUTET [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 3:57 PM Subject: RE: [PHP-DEV] Get an application/octet-stream from

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread Andrey Hristov
Use preg_match_all('|a.*?href=(|'|)(.*?)(|')|i', $the_string,$the_matches); var_dump($the_matches); Regards, Andrey Hristov - Original Message - From: Ando Saabas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 10:45 PM Subject: [PHP] Extracting hyperlinks

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread Andrey Hristov
ooops sorry The correct is : preg_match_all('/a.*?href=(|'|)(.*?)(|')/i', $the_string,$the_matches); var_dump($the_matches); - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Ando Saabas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 1:35 PM Subject

Re: [PHP] Date calculations

2002-02-21 Thread Andrey Hristov
look at the mysql docs at www.mysql.com/doc/ there are some functions about times. it is easy to work with time intervals. Best regards, Andrey Hristov - Original Message - From: Sven Jacobs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:56 PM Subject: [PHP

Re: [PHP] Re: NULL value for variable

2002-02-21 Thread Andrey Hristov
warning but probably lose the second which is useful. Best regards, Andrey Hristov - Original Message - From: Narvaez, Teresa [EMAIL PROTECTED] To: 'Sanduhr' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 6:05 PM Subject: RE: [PHP] Re: NULL value for variable I

Re: [PHP] function that extracts numbers from a string

2002-02-22 Thread Andrey Hristov
Try with preg_match_all() PCRE functions are up to 25% faster than POSIX(ereg). Best regards, Andrey Hristov - Original Message - From: DigitalKoala [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 1:44 PM Subject: [PHP] function that extracts numbers from

Re: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Andrey Hristov
Better is: $index=0; for (index=0; $index $rowcount; $index++){ $formvar=${'formvar'.$index}; } - Original Message - From: george Pitcher [EMAIL PROTECTED] To: Michael Romagnoli [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 2:40 PM Subject: Re: [PHP]

Re: [PHP] Next and Preview Row

2002-02-22 Thread Andrey Hristov
INTO some VALUES ( 'ID0026', 'Sixth row'); Try this sql on this table: select * from some where id'ID0015' order by id desc limit 0,1; select * from some where id'ID0015' order by id limit 0,1; Best regards, Andrey Hristov - Original Message - From: Mark Lo [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Re: difference between php3 and php4

2002-02-22 Thread Andrey Hristov
identificator do : if ($res){ ... }else{ echo something went wrong;;} I think the problem is etiher the sql query is not successful or php cannot connect to the mysql. $db = mysql_connect(localhost, , ); the username is empty?? Regards, Andrey Hristov - Original Message - From: Todor Stoyanov

Re: [PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Andrey Hristov
Did you restarted the Apache service? Regards, Andrey Hristov - Original Message - From: Mike Brackenridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 7:00 PM Subject: [PHP] imagecreate with Windows .exe installer php4 installed with Apache on Windows ME

Re: [PHP] resolving php tags in a string

2002-02-22 Thread Andrey Hristov
get all from the string which is between the tags and use the substring with eval(); Best regards, Andrey Hristov - Original Message - From: neko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 5:42 AM Subject: [PHP] resolving php tags in a string I have

Re: [PHP] fork?

2002-02-23 Thread Andrey Hristov
Vulcan Logic SRM www.vl-srm.net Every your task is a banana. Regards, Andrey Hristov - Original Message - From: Paul Roberts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 23, 2002 1:05 PM Subject: [PHP] fork? how do i do two things at the same time, i'm thinking

Re: [PHP] Associative array key as a variable

2002-02-23 Thread Andrey Hristov
); show(cities); ? Regards, Andrey Hristov - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 23, 2002 7:31 PM Subject: [PHP] Associative array key as a variable Hi. I have the following PHP program executed from an HTML form where I pass

Re: [PHP] Re: php 4.1.1 vs 4.0.6

2002-02-23 Thread Andrey Hristov
In 4.1.x series there are new vars (global scope) $_GET,$_POST,$_COOKIE,$_FILES,$_SESSION not available in 4.0.x versions. For old scripts could be problem that register_globals is off in the 4.1.x tree(for new installations, not upgrades). But this is for good. Regards, Andrey Hristov

Re: [PHP] Entering data into MySQL

2002-02-24 Thread Andrey Hristov
Try doing it by yourself. $the_str = str_replace('','\',$the_str); $the_str = str_replace(',\\',$the_str); This is a little hack until you find what is the problem with addslashes(); Best regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message

Re: [PHP] unsetting global variables from an function

2002-02-27 Thread Andrey Hristov
Try unset($GLOBALS[var]); Best regards, Andrey Hristov - Original Message - From: Enrico Weigelt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 28, 2002 9:44 AM Subject: [PHP] unsetting global variables from an function hi folks, is there a way for unsetting

Re: [PHP] Inserting leading 0 infront of a variable

2002-02-27 Thread Andrey Hristov
'; } $topic_id = $leading_digits.$myrow[topic_id] ; Best regards, Andrey Hristov - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 28, 2002 9:56 AM Subject: [PHP] Inserting leading 0 infront of a variable Hi guys

[PHP] Web Services

2002-02-28 Thread Andrey Hristov
Hi, Is there someone who knows good places with information about Web Services? Such as SOAP, XML-RPC, WSDL etc. TIA Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ImageMagick and Convert In PHP

2002-03-01 Thread Andrey Hristov
by andy:web . so identify fails. Maybe my problem and yours have something in commong. try : strace your_command_here and see the output. Best regards, Andrey Hristov - Original Message - From: Nicke [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 01, 2002

Re: [PHP] empty() texarea

2002-03-01 Thread Andrey Hristov
When register_globals is on try this: if ($open_why_good_consult){ } Regards, Andrey - Original Message - From: John Fulton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 01, 2002 6:45 PM Subject: [PHP] empty() texarea I can't seem to get empty() to check if someone

Re: [PHP] passing array of variables in a query string

2002-03-01 Thread Andrey Hristov
It is in the TODO list of PHP. The behaviour will be changed in such a case. You can get the string from $QUERY_STRING explode it with $ar=explode('',$QUERY_STRING); and some other small things to get all stuff with same name in an array Regards, Andrey - Original Message - From: Diana

Re: [PHP] empty() texarea

2002-03-01 Thread Andrey Hristov
Hi Erik, I think that you look for array_count_values(). Regards, Andrey - Original Message - From: Erik Price [EMAIL PROTECTED] To: John Fulton [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 01, 2002 6:58 PM Subject: Re: [PHP] empty() texarea On Friday, March 1,

Re: [PHP] trouble with telnet.

2002-03-01 Thread Andrey Hristov
locate mysqld whereis mysql Regards, Andrey - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 01, 2002 7:05 PM Subject: [PHP] trouble with telnet. Hello, I telneted to my web server and I would like to see if they have MySQL. Is there

Re: [PHP] hmm.. more trouble with telnet.

2002-03-01 Thread Andrey Hristov
I think - no mysql is available what did locate mysql returned? Regards, Andrey - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 01, 2002 7:27 PM Subject: [PHP] hmm.. more trouble with telnet. Hello, When I type in 'whereis mysql'

Re: [PHP] mysql and telnet.

2002-03-01 Thread Andrey Hristov
.cfm are ColdFusion files(like .php or .pl) Regards, Andrey - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 01, 2002 7:36 PM Subject: [PHP] mysql and telnet. Hello, Thanks for the advice... But now I need to know what all this

Re: [PHP] Bizarre mail() problem

2002-03-02 Thread Andrey Hristov
check you php.ini if you need to change sendmail -t -i to something other. Regards, Andrey - Original Message - From: andy thomas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 02, 2002 11:04 AM Subject: [PHP] Bizarre mail() problem I have written a script to do some

Re: [PHP] Threads and PHP

2002-03-02 Thread Andrey Hristov
pcntl extension. But only *nix. Best regards, Andrye Hristov - Original Message - From: Gaylen Fraley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 02, 2002 6:33 PM Subject: [PHP] Threads and PHP Is it possible to use threads to perform an operation while another

[PHP] Cannot compile PHP with APXS

2002-03-02 Thread Andrey Hristov
Untared php 4.1.1 into /usr/local/src/php4.1.1 Untared apache 1.3.22 into /usr/local/src/apache-1.3.22 ran ./configure in apache there is /var/www/bin/apxs When configuring php : ./configure --with-mysql --with-apxs=/var/www/bin/apxs --with-xml error occurs that says either perl is not

Re: [PHP] How to validate this date: 2002-02-31

2002-03-05 Thread Andrey Hristov
. If they are the same as the parsed the date is valid, otherwise not. Best regards, Andrey Hristov - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 11:27 AM Subject: [PHP] How to validate this date: 2002-02-31 Hi there, I am still

[PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
in this way : for ($i=0;$i10;$i++){ $ar['foo'.$i] = 'bar'.$i; } Best regards, Andrey Hristov P.S. There is in PHP's ToDo list such feature. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why session is not deleted ???

2002-03-07 Thread Andrey Hristov
Yes. If you know what is garbage collector then you will understand why it is there. The GC is started from time to time and cleans expired session data. Best regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com On Thursday 07 March 2002 07:54 pm, you wrote: Firstly i create

Re: [PHP] require v. includes

2002-03-07 Thread Andrey Hristov
behaviour. Before it leaded to fatal error if some the file that has to be required is not found. Now it works just like include (just notice or warning - not sure). For more info read the docs ar : http://www.php.net/ Best regards, Andrey Hristov On Thursday 07 March 2002 07:25 pm, you wrote

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Andrey Hristov
You can use a string to keep the file content. And then put it the mysql(probably a BLOB field) Best regards, Andrey Hristov IcyGEN Corporation On Thursday 07 March 2002 11:30 pm, you wrote: hello everyone. i'm wondering if i can do the following: FIRST, using php, can i create/generate

Re: [PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
. Then if I use the standart foreach() statement PHP will have to copy $ar[$k] to $v :))) Best regards and fun with PHP, Andrey Hristov On Thursday 07 March 2002 08:48 pm, you wrote: On Thu, 2002-03-07 at 09:53, Andrey Hristov wrote: The code below is too weird. I spent 15 min writing

Re: [PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
ooops ?php echo foo.$i++; echo \n; echo bar.($j+++0); ? On Thursday 07 March 2002 09:09 pm, Andrey Hristov wrote: try this: ?php echo foo.$i++; echo \n; echo bar.($+++0); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] how to calculate frequency of words in array?

2002-03-08 Thread Andrey Hristov
array_count_values() Best regards, Andrey Hristov On Friday 08 March 2002 04:45 pm, you wrote: Does anybody has a clever way to summarize the number of different words (with multiple occurences) from an array into an array with all the different words and the times they occured? Thanks

Re: [PHP] Replacing words

2002-03-08 Thread Andrey Hristov
Read the docs. Look at the assertion part. ?= and the opposite of it. Best regards, Andrey Hristov On Friday 08 March 2002 05:51 pm, you wrote: Hello! I use $txt = preg_replace(#((?php .*?/A)|$search)#se, '\2==\1? \1:$replace', $txt); to replace some text in $txt. The problem: Parts

Re: [PHP] SOAP

2002-03-10 Thread Andrey Hristov
to distinguish whether this is xmlrpc packet or soap envelope.It is bad that the extension is compilable only under Linux. There is no version for windows. I was forced to switch to Linux to use it. Hope that helps. Best regards, Andrey Hristov On Monday 11 March 2002 06:52 am, you wrote: Who has had

[PHP] Re: [PHP-DEV] PHP 4.1.2 for windows

2002-03-10 Thread Andrey Hristov
AFAIK the problem is not afecting windows users. Because of that there is no windows binary. Best regards, Andrey Hristov - Original Message - From: Gabor Hojtsy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 9:42 AM Subject: [PHP-DEV] PHP 4.1.2 for windows Hi

Re: [PHP] Installing PHP 4.1.2

2002-03-11 Thread Andrey Hristov
There was a discussion on PHP-DEV. Win32 binaries will be available soon. Best regards, Andrey Hristov - Original Message - From: Marcel Besancon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 6:43 PM Subject: [PHP] Installing PHP 4.1.2 Hi everybody

Re: [PHP] removing ALL whitespace from a string

2002-03-11 Thread Andrey Hristov
$new=preg_replace('/\s/','',$old); Best regards, Andrey Hristov - Original Message - From: Lee P Reilly [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Monday, March 11, 2002 6:56 PM Subject: [PHP] removing ALL whitespace from a string Can somebody tell me

Re: [PHP] limiting the livetime of a session possible?

2002-03-11 Thread Andrey Hristov
last_timenow() interval 60 min; not sure for the query but that is the idea. Best regards, Andrey Hristov - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 6:46 PM Subject: [PHP] limiting the livetime of a session possible? Hi there, I am

Re: [PHP] PHP IDE

2002-03-12 Thread Andrey Hristov
on gtk.php.net there is a link to PHPMole. Built with PHP requires GTK. Not sure but I think that there is gtk lib for OSX since it is BSD. Best reagrds, Andrey Hristov - Original Message - From: Jordan S. Jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:23

Re: [PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Andrey Hristov
and the end. Regards, Andrey Hristov - Original Message - From: Richard Davey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 3:57 PM Subject: [PHP] Is there a faster way to escape special characters in a regex? Hi all, At the moment I'm doing this to escape all

Re: [PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Andrey Hristov
Yes they are identical. The rule is that the first and the last(excluding modificators) symbol must be identical so |abc| ~abc~ /abc/ %abc%(not sure for that) are equivalent. The docs uses // syntax because it is the most popular. Regards, Andrey Hristov - Original Message - From

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
I used it few times. You have to make modifications to index.php, so the engine will know where to look to for .php scripts that have to be documented. I've attached my index.php - Original Message - From: S.Murali Krishna [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12,

Re: [PHP] question

2002-03-12 Thread Andrey Hristov
Probably the value you want to sent to the php page is on the page but not between form and /form. Regards, Andrey Hristov - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 5:26 PM Subject: [PHP] question don't know exactly

Re: [PHP] archive

2002-03-12 Thread Andrey Hristov
http://marc.theaimsgroup.com/?l=php-generalr=1w=2 Regards, Andrey - Original Message - From: Jim Long [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 8:51 PM Subject: [PHP] archive Hello, Is there a searchable archive of this PHP- general subscriber list?

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
Hristov - Original Message - From: S.Murali Krishna [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: S.Murali Krishna [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 7:41 AM Subject: Re: [PHP] Help in PHPDoc Hi Andrey Thanks for your kind response first. I

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Andrey Hristov
not nagging(not sure for the word) at you. Best regards, Andrey Hristov - Original Message - From: Richard Davey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 6:52 PM Subject: Re: [PHP] How to access arrays from $GLOBAL? Mike Ford [EMAIL PROTECTED] wrote

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Andrey Hristov
Sources. Andrey - Original Message - From: Hunter, Ray [EMAIL PROTECTED] To: 'Rasmus Lerdorf' [EMAIL PROTECTED]; Richard Davey [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 6:59 PM Subject: RE: [PHP] How to access arrays from $GLOBAL? Where is some good

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Andrey Hristov
to add that $GLOBALS has reference to itself but when used in non-function context. Try ?php var_dump($GLOBALS);? and ?php function a(){ var_dump($GLOBALS); } a(); ? Regards, Andrey Hristov - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Hunter, Ray [EMAIL PROTECTED] Cc

  1   2   3   4   >