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

2002-02-27 Thread Andrey Hristov
its .= '0'; } $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 infron

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 >

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 Corporat

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] Associative array key as a variable

2002-02-23 Thread Andrey Hristov
Use global. Read the docs about variable scoping. If you use php >=4.1.0 then use $_POST, $_GET,... they not need to use global. Global scope. "; } show("countries"); show("cities"); ?> Regards, Andrey Hristov - Original Message - From: <[EMAIL PROTEC

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

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

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

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 -

Re: [PHP] Next and Preview Row

2002-02-22 Thread Andrey Hristov
ID0015', 'Fourth row'); INSERT INTO some VALUES ( 'ID0023', 'Fifth row'); INSERT 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

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: [

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

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 P

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

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread Andrey Hristov
ooops sorry The correct is : preg_match_all('/ To: "Ando Saabas" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 1:35 PM Subject: Re: [PHP] Extracting hyperlinks from file > Use preg_match_all('| var_dump($the_match

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread Andrey Hristov
Use preg_match_all('| To: <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 10:45 PM Subject: [PHP] Extracting hyperlinks from file > I need to produce an array of all the links(hrefs) in a remote file > (actually those that refer to files in the same remote server, but thats > > another m

[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: [P

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

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

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 so

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 To: <[EMAIL PROTECTED]> Sent: Thursday, February 14, 2002 8:56 PM Subject: [PHP] Sessions > Hi, > I try to use sessions to keep track if a user is logged in. I keep getti

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

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

2002-02-14 Thread Andrey Hristov
yn_var4 When you want 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 And

Re: [PHP] VERY novice question!

2002-02-14 Thread Andrey Hristov
(($m[0]=="-")&&($count<2))||($count++"0")) this seems ok but $count++"0" is not OK. What you want to do? Best regards, Andrey Hristov "Back from the exams hell" - Original Message - From: "brendan conroy" <[EMAIL PROTE

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

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] Compiled PHP

2002-01-11 Thread Andrey Hristov
IK the encoder first 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 PR

Re: [PHP] Compiled PHP

2002-01-11 Thread Andrey Hristov
ource code 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:

Re: [PHP] RTFM code snippet

2002-01-11 Thread Andrey Hristov
If you have file with name "0" , with while ($file = readdir($dir)) { it will be casted to false, but this is regular file. Thus !== is used. Regards, Andrey Hristov - Original Message - From: "mike cullerton" <[EMAIL PROTECTED]> To: "php-general&qu

Re: [PHP] RTFM code snippet

2002-01-11 Thread Andrey Hristov
also 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 ne

Re: [PHP] session related

2002-01-11 Thread Andrey Hristov
Probably 1)You do echo before session_start() 2)You have white space before the opening To: <[EMAIL PROTECTED]> Sent: Thursday, January 10, 2002 11:00 PM Subject: [PHP] session related > i can't use session, give me an error when use ie 6. > > Warning: Cannot send session cookie - headers alrea

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, Januar

Re: [PHP] Sessions don't load

2002-01-09 Thread Andrey Hristov
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

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 unsh

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

2002-01-08 Thread Andrey Hristov
ame'].""; } 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 > he

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

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,

[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, Janua

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

2002-01-06 Thread Andrey Hristov
. Inc.'; 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. Reg

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]

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 p

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 offe

Re: [PHP] is_uploaded_file

2001-12-28 Thread Andrey Hristov
PHP which 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

Re: [PHP] is_uploaded_file

2001-12-28 Thread Andrey Hristov
>From : http://www.php.net/manual/en/features.file-upload.php HTH Regards, Andrey Hristov - Original Message - From: "Paul Roberts" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, De

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 scri

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

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] 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: [

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

[PHP] Build questions

2001-12-23 Thread Andrey Hristov
er(so 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 u

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
'); ?> Produces : <html> 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

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 nam

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

2001-12-21 Thread Andrey Hristov
Ususally when someone needs to select last row in a table (s)he do: select * from some_table order by some_field desc limit 1; but there is another possible solution for mysql : More info here : http://www.mysql.com/doc/V/a/Variables.html Regards, Andrey Hristov -- PHP General Mailing List

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 knowledg

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

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

2001-12-19 Thread Andrey Hristov
login.php other.php 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 fo

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? > Havi

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

2001-12-18 Thread Andrey Hristov
> Julio Nobrega. > > Um dia eu chego la: > http://sourceforge.net/projects/toca > > "Andrey Hristov" <[EMAIL PROTECTED]> wrote in message > 032e01c187db$148bfa30$0b01a8c0@ANDreY">news:032e01c187db$148bfa30$0b01a8c0@ANDreY... > > $PHPSESSID is only ava

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

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

[PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
First NULL string(5) "4.0.4" So I think that the problem is that you haven't started any session. Before session starting PHPSESSID is NULL. That is my opinion. PHPSESSID by default is get as GET parameter. Do you have any GET parameter when starting on a console? Regards,

Re: [PHP] php in free()

2001-12-18 Thread Andrey Hristov
from 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 -

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 HT

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

Re: [PHP] read php shared memory with C

2001-12-14 Thread Andrey Hristov
Read zend.h to see the structure of zval (the main zend strucutre). Regards, Andrey Hristov - Original Message - From: "César Gómez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 10:46 AM Subject: [PHP] read php shared memory with C

Re: [PHP] Supressing PHPSESID from url

2001-12-14 Thread Andrey Hristov
I don't know if theWap browser can support cookies but the cookies are the silent way. also you can change the name of the Session_id (in php.ini) or generate it by yourselft. reduce it's length but that means reduced security. try inserting hidden fields in the forms. Regards, Andr

Re: [PHP] Logo proposal

2001-12-13 Thread Andrey Hristov
Ants don't sleep. PHP programmers are from the whole globe so PHP also never sleep. Regards, Andrey Hristov On Thursday 13 December 2001 07:05 am, you wrote: > Aunt is more similar very similar to PHP. Very industrious and powerful ;) > > - Original Message - > Fro

Re: [PHP] Cookie

2001-12-12 Thread Andrey Hristov
ot; it will be accessible only in members and its subdirectories. Regards, Andrey Hristov On Wednesday 12 December 2001 03:16 pm, you wrote: > Still trying to get the cookie to work in my site for automatic login > capabilities. It has it's moments of greatness, before fading into the >

Re: [PHP] Writing "xxx" OR "yyy" with a regular expressions`?

2001-12-12 Thread Andrey Hristov
Try this : preg_match('!(HREF|SRC)=([\"\']?)(.*?)\2!i',$Content,$reg_array); HTH Regards, -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Wednesday 12 December 2001 02:06 pm, you wrote: > Hello there, > > I

Re: [PHP] 4.1.0 and is_file

2001-12-12 Thread Andrey Hristov
It looks like it is a fixed bug. >From PHP-DEV (today): > ID: 14424 > Updated by: sander > Reported By: [EMAIL PROTECTED] > Status: Open > Old Bug Type: Filesystem function related > Bug Type: Documentation problem > Operating System: Suse linux 7.2 > PHP Version: 4.1.0 > New Comment: > > So what

Re: [PHP] a piece of PHP history

2001-12-12 Thread Andrey Hristov
So > Anyone interested in gaining a position should reply to: > Andrey Zmievskiy 73021,[EMAIL PROTECTED] Zmievski or Zmievskiy ? : Regards, Andrey - Original Message - From: "Andrei Zmievski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Mon

Re: [PHP] Help with algorithm

2001-12-12 Thread Andrey Hristov
']]=array('name'=>$arr['name']); rec($arr['theme_id'],$the_parent_array[$arr['theme_id']']); } } $your_array = array(); rec(1,$your_array); HTH Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Or

[PHP] test message.

2001-12-12 Thread Andrey Hristov
test message. -- 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] Test message.

2001-12-12 Thread Andrey Hristov
Test -- 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-INST] Undefined Variable Warnings & Mail Settings

2001-12-12 Thread Andrey Hristov
set error_reporting to some level which does not include E_WARNING or set it to 0 -> no messages except fatal parser messages. Regards, Andrey Hristov - Original Message - From: "Carolyn Mescan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December

[PHP] test message

2001-12-12 Thread Andrey Hristov
test message -- 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] Sending out mass mail without having timeout problems ..

2001-12-12 Thread Andrey Hristov
In background : 1)$result_does_not_matter = `/path/to/your/massmailer.php 1>mail_std_out.log 2>mail_std_err.log &`; 2) use exec with cmd as the above. With PHP you can write PHP shellscripts: #!/usr/local/bin/php -q HTH Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.co

Re: [PHP] session woes

2001-12-12 Thread Andrey Hristov
Is register_globals turned on or off? - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 09, 2001 6:13 AM Subject: [PHP] session woes > I have a friend who is using an ISP that uses php4.0.3pl1 . It appears that > session_reg

Re: [PHP] RegEx gurus help...

2001-12-12 Thread Andrey Hristov
The code below does almost of the job. There is only one problem. If some path is absolute to the server /aaa/bbb/ the path get file://aaa// but I think no problems with apache. HTH Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS a URL, a link to an external

[PHP] test

2001-12-12 Thread Andrey Hristov
test -- 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] Comparing Dates

2001-12-12 Thread Andrey Hristov
xpl[1],$yd_expl[2],$yd_expl[3],$yd_expl[4],$yd_expl[5]) ){ // do you have to do } HTH Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 09, 2001

Re: [PHP] database with php code

2001-12-07 Thread Andrey Hristov
strip the from the strings and do eval(); HTH Regards, Andrey Hristov - Original Message - From: "Sergio Mergen" <[EMAIL PROTECTED]> To: "php List (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001 9:39 PM Subject: [PHP] database with php code

Re: [PHP] HTTP Environment Varialbles

2001-12-06 Thread Andrey Hristov
noticed. Regards and best wishes, Andrey Hristov -=-=-=-=-=-=-=-=-=-=--=-=-=-=-==-=-=--=-= From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Fr

Re: [PHP] HTTP Environment Varialbles

2001-12-06 Thread Andrey Hristov
var_dump($HTTP_SERVER_VARS); var_dump($HTTP_POST_VARS); var_dump($HTTP_GET_VARS); var_dump($HTTP_COOKIE_VARS); var_dump($HTTP_ENV_VARS); since 4.1.0 these are deprecated. Use $_SERVER, $_POST, $_GET, $_COOKIE, $_ENV Regards, Andrey Hristov - Original Message - From: "Alex Shi&quo

Re: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Andrey Hristov
set_time_limit(0); // no limit set_time_limit(60); // 60 seconds Regards, Andrey - Original Message - From: "Christoph Starkmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 7:09 PM Subject: [PHP] Maximum execution time of 30 seconds exceeded > Hi eve

Re: [PHP] encryption

2001-12-06 Thread Andrey Hristov
UPDATE members set passwd=PASSWORD(passwd); "select login from members where PASSWORD($form_pass)=passwd;" Regards, Adnrey Hristov - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 2:32 PM Subject: [PHP] encry

Re: [PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Andrey Hristov
Search the list. I remember that someone posted a link from php.net where a putted several links which points to the home pages of editors(Linux+Windows). Regards, Andrey Hristov - Original Message - From: "Roko Roic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] Storing Img Binary in MySQL

2001-12-06 Thread Andrey Hristov
mysql_query('INSERT INTO the_table (name,content) VALUES(".$HTTP_POST_FILES['ImgFile']['name'],',', mysql_escape_string(implode('',file($HTTP_POST_FILES['ImgFile']['tmp_name']))).');'); you ca

Re: [PHP] Qukc days to time() conversion?

2001-12-05 Thread Andrey Hristov
Read this : http://www.mysql.com/doc/D/a/Date_calculations.html Regards, Andrey Hristov - Original Message - From: "Jeff Lewis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 7:19 PM Subject: [PHP] Qukc days to time() conversion? I

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov
I think that I found the solution: http://www.zend.com/manual/configuration.php Regards - Original Message - From: "Andrey Hristov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 7:04 PM Subject: Re

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov
Try this http://www.google.com/search?hl=en&q=%22.htaccess%22+%22override%22+%22php%22+%22settings%22&spell=1 Regards, Anrey Hristov - Original Message - From: "Kurt Lieber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 7:06 PM Subject: [PHP] possible to

Re: [PHP] variable scope / preg_replace_callback question

2001-12-03 Thread Andrey Hristov
function _compile_lang($key){ global $_lang; return $_lang[$key[1]]; } // End _compile_lang HTH Regards, Andrey Hristov - Original Message - From: "Peter Bowyer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 03, 2001 3:45 PM Subject

[PHP] Re: [PHP-DB] R: [PHP-DB] PHP/Mysql

2001-11-30 Thread Andrey Hristov
Set include_path to the place where is your php_mysql.so and uncomment extension=php_mysql.so Regards, Andrey Hristov Bye - Original Message - From: "Riccardi Moreno" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]

[PHP] Re: [PHP-DB] PHP/Mysql

2001-11-30 Thread Andrey Hristov
Fatal error: Call to undefined function: mysql_connect() means to things. php is not built with integrated mysql support, or php cannot find php_mysql.so on your comp. What is the value of php.ini variable include_path or something similar. Regards, Andrey Hristov - Original Message

Re: [PHP] MySQL: copying entire columns

2001-11-30 Thread Andrey Hristov
$value){ $tmp = explode($cschar,trim($value)); $tmp[count($tmp)] = $tmp[$which_column]; unset($tmp[$which_column]); $out_cont[] = implode(",",$tmp); } $fd = fopen($out_fname,'w+'); fwrite($fd,implode("\r\n",$out_cont)); fclose($fd); ?&

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread Andrey Hristov
I cannot compile this: try that : foreach ($HTTP_POST_VARS as $key => $var){ print "VAR: $var KEY = $key"; } Regards, Andrey Hristov - Original Message - From: "mweb" <[EMAIL PROTECTED]> To: "phplist" <[EMAIL PROTECTED]> Sent: Fri

Re: [PHP] Global storage of objects.

2001-11-29 Thread Andrey Hristov
it is http://www.vl-srm.net/index.php Regards, Andrey Hristov P.S. http://oasis.sourceforge.net uses SysV semaphores and shared memory, so you can look how they are used in real life application - Original Message - From: "Stefan Bergstrand" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] Ezmlm Hosts besides csoft.net?

2001-11-29 Thread Andrey Hristov
http://www.ispcheck.com HTH Andrey - Original Message - From: "Sondra Russell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 6:02 PM Subject: [PHP] Ezmlm Hosts besides csoft.net? > Hello everyone! > > I'm wondering if you guys could suggest a hosting co

<    1   2   3   4   >