Re: [PHP] trim away x > 1 number of spaces from a strin

2002-07-24 Thread Andrey Hristov
$new = preg_replace('/[ ]{2,}/',""$old); HTH Andrey - Original Message - From: "Victor SpÄng Arthursson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 12:05 PM Subject: [PHP] trim away x > 1 number of spaces from a strin Hi! Could someone help me with a

Re: [PHP] filling an array

2002-07-26 Thread Andrey Hristov
for($m=1;$m<=5;$m++){ $div_id[$m]=${'divid'.$m}; } Regards, Andrey - Original Message - From: "Steve Buehler" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Friday, July 26, 2002 10:48 PM Subject: [PHP] filling an array > Can anyone tell me what I am doing wrong? > > I am

Re: [PHP] Re: sessions

2002-07-26 Thread Andrey Hristov
unset($_SESSION['variavble']); Andrey - Original Message - From: "Tyler Durdin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 26, 2002 10:14 PM Subject: Re: [PHP] Re: sessions > So doing it the new way ($_SESSION['variable']) how do you close or > unregister a ses

Re: [PHP] Re: sessions

2002-07-26 Thread Andrey Hristov
do the following function a(){ var_dump('',$GLOBALS,''); } a(); and see what variables you have and whether your variables are set somewhere. HTH Andrey - Original Message - From: "Tyler Durdin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 26, 2002 9:28 PM Subject:

Re: [PHP] Dates and Date()

2002-07-29 Thread Andrey Hristov
n add/substract what you wish and will get correct results in case the the resulting timestamp is between 1.1.1970 and somewhere in year 2038. Best regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dates and Date()

2002-07-29 Thread Andrey Hristov
nter-1),2002); } } HTH Regards, Andrey - Original Message - From: "Christopher J. Crane" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 7:00 PM Subject: Re: [PHP] Dates and Date()

Re: [PHP] Dates and Date()

2002-07-29 Thread Andrey Hristov
No problema. If you have access to icq you can use irc.php.net or capek.openprojects.net (or any other openproject's irc server) on #php channel. Andrey - Original Message - From: "Christopher J. Crane" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL

Re: [PHP] Dates and Date()

2002-07-29 Thread Andrey Hristov
e people always experiment some not. Kind regards, Andrey Hristov - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Christopher J. Crane" <[EMAIL PROTECTED]>; "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [PHP] php.exe from command line

2002-07-29 Thread Andrey Hristov
Inspect $argc & $argv arrays (var_dump() them). Andrey - Original Message - From: "Evan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 8:06 PM Subject: [PHP] php.exe from command line > I've made a simple php file that creates a file named 'agent_1.txt' where

Re: [PHP] web services and PHP

2002-07-31 Thread Andrey Hristov
There are two ways (SOAP) to use SOAP library written in PHP such as NuSOAP by Dietrich Ayala or to use PHP-SOAP toolkit (module for PHP written in C)by Brad Lafountain(coding) and Shane Caraveo(testing) (available at sourceforge.net). Regards, Andrey > "Bob Lockie" <[EMAIL PROTECTED]> wrote i

Re: [PHP] include()

2002-08-01 Thread Andrey Hristov
> > I suppose include() can be used to include files from remote > > systems(not on > > WINDOWS). > > Only if the sysadmin running your web server allows it, which they should > not. > > > > A webmaster on the same server can always use a path like > > "/home/htdocs/.../config.php" and include my

Re: [PHP] Reg- array_unique

2002-08-02 Thread Andrey Hristov
Post that on [EMAIL PROTECTED] Andrey - Original Message - From: "SenthilVelavan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 10:54 AM Subject: [PHP] Reg- array_unique Hello All, I tried a program using array_unique.It shows different outputs

Re: [PHP] Re: Need help to choose hosting!

2002-08-02 Thread Andrey Hristov
http://ispcheck.com is the place. Listing of many webhostings. Go and see. Regards, Andrey > > Hey php-general, > > > > i want to buy hosting. but i can't find good one for me. maybe > > someone could point some links. but this is what i need! > > > > Storage up to 100MB > > normal trans

Re: [PHP] .htaccess

2002-08-02 Thread Andrey Hristov
The password that user used is available in some var var_dump($HTTP_SERVER_VARS); or var_dump($GLOBALS); Andrey - Original Message - From: "Oliver Witt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 5:21 PM Subject: [PHP] .htaccess > Hi! > Using an .htacce

Re: [PHP] Re: Protect PHP coding

2002-08-03 Thread Andrey Hristov
> >>>So... > >>>Is this equivalent to Zend Encoder? > >> > >>Not exactly, but in some aspects it is/will be better like the ability > >>to generate executable standalone PHP programs that you can distribute > >>independently. There is also the question of the price that for Zend > >>Encoder is rid

Re: [PHP] Linux PHP editor

2002-08-09 Thread Andrey Hristov
gedit - for gnome. nedit. - for X joe - for console. use joe if you had used Borland's editors. The key combinations are almost the same. Regards, Andrey - Original Message - From: "JJ Harrison\" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 1:40 PM Subject: [

Re: [PHP] Php lib?

2002-08-13 Thread Andrey Hristov
Hi, sets the value of the var to be parsed later. HTH Andrey - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 12:58 PM Subject: Re: [PHP] Php lib? > Thanks for that rather handy! > > Does anyone know what the function s

Re: [PHP] read a text file

2002-07-16 Thread Andrey Hristov
$contents = implode('',file($filename)); Regards, Andrey "Edgar" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > I was looking for in the news, but i did not encounter any thing. > > Where can I get an example or the way to read a text file into a variable > and how identify

Re: [PHP] Purpose of $$var ?????

2002-07-16 Thread Andrey Hristov
Variable variable. Read the docs. $v = 'foo'; $foo = 'bar'; echo $$v; Regards, Andrey P.S. Sometimes {} are used : ${$v} "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > The script was working great before PHP 4.2.x and not after that. So, I > looked thro

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Andrey Hristov
I think that it is better to use unixtimestamps and if you save them to a RDBMS then save according to GMT. When retrieving use timezone to convert to your local time - ex define('MY_TIMEZONE',-2); list($time) = mysql_fetch_array(mysql_query('select tstamp from table where user='.$user_id.';'));

Re: [PHP] To fill an Array

2002-07-17 Thread Andrey Hristov
$xy = array_values($_POST); HTH Regards, Andrey Hristov - Original Message - From: "Gabor Niederlaender" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 1:19 PM Subject: [PHP] To fill an Array > Hi all! > > I would

Re: [PHP] Regular expression

2002-07-17 Thread Andrey Hristov
Something like this. $your_string = preg_replace('/[\d\w]+@([\w\d]{3,}\.)+([\w]{2,4})/','', $your_string); HTH Best regards, Andrey Hristov - Original Message - From: "Michal Albrecht" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wedn

Re: [PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Andrey Hristov
Try with output buffering. Regards, Andrey Hristov - Original Message - From: "Matt Babineau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 6:20 PM Subject: [PHP] $_SESSION - autostart, or session_start() ? > If I set the SESSION

Re: [PHP] is php.net down ?

2002-07-22 Thread Andrey Hristov
They are moving to another machine. The intention is to move the download resource to another resource to free the resources ot the current machine because there are too many working apache processes. And this is a problem for other applications. It will be fine soon. Regards, Andrey - Orig

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

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

[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

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,

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

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

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

[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] How works the garbage collector

2002-04-15 Thread Andrey Hristov
There is another php option about the lifetime. If a session is not used for some amount of time it will be deleted when the GC starts. GC starts wih some probability. For example GC can be started 1 time on every 100 request, then it checks if there are expired sessions( not sure but maybe base

Re: [PHP] str_replace question

2002-04-16 Thread Andrey Hristov
preg_replace('/\d+/','',$the_string); Hope this helps. Andrey - Original Message - From: "Andras Kende" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 4:29 AM Subject: [PHP] str_replace question > Is a nicer way to remove any number 1-0 from a string??? >

[PHP] Re: [PHP-DB] Re: Cross DB application

2002-04-16 Thread Andrey Hristov
> "Arcadius A." wrote: > > Hello ! > I'm planning to write a database application for MySQL, and then port it to > PostrgeSQL. > Is there any library or class that could help me to write/maintain just one > source code for both MySQL and PostgreSQL ? Try the dbx extension. Andrey --

Re: [PHP] Seeing if a value matches anything in an array

2002-04-16 Thread Andrey Hristov
$pharray = array("php","the best language ever"); preg_match("/(?<=What is )(\w+)(?:\?)/",$question,$matches); if (in_array($matches[0],$phparray)){ // your stuff here } Regards, Andrey - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

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

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

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

[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
owned 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 PROT

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

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

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

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

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

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 anoth

[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 installed(

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

2002-03-05 Thread Andrey Hristov
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

[PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
array is generated in this way : for ($i=0;$i<10;$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 creat

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

Re: [PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
en 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

Re: [PHP] emulation of foreach with reference

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

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

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("#(()|$search)#se", '"\2"=="\1"? > "\1":&q

Re: [PHP] SOAP

2002-03-10 Thread Andrey Hristov
e extension tries 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 wr

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

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

  1   2   3   4   >