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] 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] 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] .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: 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] 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] 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] 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] 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] 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] 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
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
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] 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] 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] 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] 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] 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] $_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] 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] 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] 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] 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] 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] 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,

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

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] How to sort by 3rd row in an 2d-Array

2002-04-15 Thread Andrey Hristov
usort() /uksort()/uasort() look here : http://www.php.net/manual/en/function.uasort.php There is an example in the user notes. Andrey - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 12, 2002 7:25 PM Subject: [PHP] How to sort by 3rd row

Re: [PHP] functions

2002-04-12 Thread Andrey Hristov
HTH Regards, Andrey Hristov - Original Message - From: "Alia Mikati" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 12, 2002 4:37 PM Subject: [PHP] functions > hi > i would like now how can we call a function within another fun

Re: [PHP] String termination

2002-04-11 Thread Andrey Hristov
the zval struct in PHP is multifunctional and its string branch has length member. Much of the operations on string are with *_STRINGL() L comes from length. It is preferable php function to use the length instead of *_STRING macros which looks throug the string to find its end. Andrey - Or

Re: [PHP] constructors in derived classes

2002-04-11 Thread Andrey Hristov
In PHP the programmer has to call the constructor of the super class. The derived class has to know the name of his "super"(java syntax). In PHP5 the constructor will have unified name, there will not be a need the derived class to know super class name. So base_var = $init;} } class Extended ex

Re: [PHP] how to create a file with php

2002-04-11 Thread Andrey Hristov
I'm really happy that I learnt for this function :) Andrey - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 7:17 PM Subject: Re: [PHP] how to create a file with php PHP has a touch() function.

Re: [PHP] is it possible to scann subdirectories?

2002-04-11 Thread Andrey Hristov
make recursive function for this. or use some external comment to find your files. for example : find is a good choice find -type f / -exec grep ohmygoodness {} \; will look in every file for "ohmygoodness" Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: [PHP] how to create a file with php

2002-04-11 Thread Andrey Hristov
exec("touch /path/to/filename"); exec(":> /path/to/filename"); or just fclose(fopen("/path/to/filename","w+")); Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 6:14 PM Subject: [PHP] how to create a file with php > Hi

Re: [PHP] printing "<" and ">" ?

2002-04-09 Thread Andrey Hristov
htmlspecialchars() Andrey - Original Message - From: "Hawk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 8:33 PM Subject: [PHP] printing "<" and ">" ? > I have a clan database, and some clans use <> in their tags, my problem > right now it how the best way

Re: [PHP] Soring an array

2002-04-09 Thread Andrey Hristov
cher1 left join teacher2 on teacher1.shool=teacher2.kindga; Regards, Andrey - Original Message - From: "Vasoczki Ferenc" <[EMAIL PROTECTED]> To: "'Andrey Hristov'" <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 11:47 AM Subject: RE: [PHP] Sorin

Re: [PHP] Soring an array

2002-04-09 Thread Andrey Hristov
table(x) and table(x+1) HTH Regards, Andrey Hristov - Original Message - From: "Vasoczki Ferenc" <[EMAIL PROTECTED]> To: "Php Mailing List (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 11:26 AM Subject: [PHP] Soring an array > Hi! >

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Andrey Hristov
try to do double rawurldecode(). Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 2:36 PM Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \' > does not help, any other ideas? > > > "Bogdan Stances

Re: [PHP] login library

2002-03-27 Thread Andrey Hristov
For example use session_ids. This does not mean that use MUST use PHP session module. Store a unique string in the DB and set it as cookie for the user. When someone logs generate a string, write it in the members table and old session is removed, so the user with old session will be not able to

Re: [PHP] module startup and shutdown functions

2002-03-26 Thread Andrey Hristov
You may start your search here : http://php.net/manual/en/zend.startup-and-shutdown.php Andrey - Original Message - From: "Jason Goodman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 5:40 PM Subject: [PHP] module startup and shutdown functions > Can someon

Re: [PHP] localization - internationalization

2002-03-25 Thread Andrey Hristov
use setlocale() to set locale in every script. then the output from different functions - number_format(), strftime(), etc. will be according to the locale. I've not tried this but it have to work. Best regards, Andrey - Original Message - From: "Matt Friedman" <[EMAIL PROTECTED]> To:

Re: [PHP] GIF support in PHP

2002-03-25 Thread Andrey Hristov
extension on Apache restart. Restart Apache. Best regards, Andrey Hristov - Original Message - From: "Todor Stoyanov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 3:43 PM Subject: [PHP] GIF support in PHP > Is there a way to add G

Re: [PHP] comparisons

2002-03-22 Thread Andrey Hristov
te: three equal signs // not found... } // in versions older than 4.0b3: $pos = strpos($mystring, "b"); if (!is_integer($pos)) { // not found... } Andrey - Original Message ----- From: "Rick Emery" <[EMAIL PROTECTED]> To: "'Andrey Hristov'" <[E

Re: [PHP] comparisons

2002-03-22 Thread Andrey Hristov
> if (ereg("john",$jeff) ) { } > ok > or: > > if( strstr( $jeff, "john") ) { } > ok > or: > > if( strpos( $jeff, "john") ) { } error if (strpos($jeff, "john") !== FALSE) Best regards, Andrey Hristov -- PHP Gen

Re: [PHP] variable test

2002-03-21 Thread Andrey Hristov
> > if($x) >echo $x; if $x is not defined you will get a warning but that depends on error settings in php.ini. This construction checks whether $x is defined or $x is true. > > if(!empty($x)) >echo $x; $x must be defined. > > -- > PHP General Mailing List (http://www.php.net/) > T

[PHP] Re: [PHP-DEV] - Looking for good php-editor

2002-03-21 Thread Andrey Hristov
"IDE" or "editor syntax highlighting" Best regards, Andrey Hristov - Original Message - From: "Krister Hansson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 10:20 AM Subject: [PHP-DEV] - Looking for good php-editor Hi

Re: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-20 Thread Andrey Hristov
use preg_match_all(); the var_dump($matches); to see what happened. Best regards, Andrey Hristov - Original Message - From: "Stefen Lars" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 7:27 AM Subject: [PHP] Returning mutliple m

Re: [PHP] Please explain...

2002-03-19 Thread Andrey Hristov
AFAIK the problem reported comes from that $x is on the left but "foo" is on the right. so you convert "foo" to int, and because there is not digit in "foo" it is 0. int(6) Output: foobar "foo" evaluates as 0 in the comparison. Andrey - Original Message - From: "Rudolf Visagie" <[E

Re: [PHP] Testing for NULL

2002-03-18 Thread Andrey Hristov
if (!isset($login)){ echo "login undefined"; } Best regards, Andrey Hristov - Original Message - From: "Jesse Warden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 18, 2002 9:09 PM Subject: [PHP] Testing for NULL > Hi, I

Re: [PHP] Sessions

2002-03-18 Thread Andrey Hristov
not the session is registered but a variable in the session jar. Andrey - Original Message - From: "Morten Nielsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 18, 2002 7:45 PM Subject: [PHP] Sessions > Hi, > > I got a page that is being reloaded a lot. In the bi

Re: [PHP] object reflection in php?

2002-03-18 Thread Andrey Hristov
get_object_vars(), get_class_vars(), get_class_methods() Andrey - Original Message - From: "Filippo Veneri" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 18, 2002 1:28 PM Subject: [PHP] object reflection in php? > Is there a way to get the name of a filed > from a v

Re: [PHP] Store data in array

2002-03-18 Thread Andrey Hristov
It is showing "Array" probably because you do echo $rows; and because $rows is array you receive "Array"; try foreach($rows as $k=>$v){ print "\n[$k][$v]"; } Regards, Andrey - Original Message - From: "Uma Shankari T." <[EMAIL PROTECTED

Re: [PHP] Store data in array

2002-03-18 Thread Andrey Hristov
If it is possible do the sorting in the SQL statement by using ORDER BY. SQL sorting is much faster than in PHP. However while ($row= mysql_fetch_assoc($res)){ $rows[] = $row; } Then you have many ways to sort. Look at : sort(), asort(), arsort(), usort(), uasort() etc. Best regards, Andrey

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Andrey Hristov
Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ? > > > At 10:19 18.03.02 +0200, "Andrey Hristov" <[EMAIL PROTECTED]> wrote: > >$your_timestamp+=gmmktime(0,0,0,1,1,1972); > > Try: > > $your_timestamp = > mktime(date("H"),date

[PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Andrey Hristov
$your_timestamp+=gmmktime(0,0,0,1,1,1972); Regards, Andrey - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 18, 2002 10:11 AM Subject: [PHP-DB] How to add 2 years to todays date ? > Hi All > I think the subject line says it all.

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
pile the html > fromand also distribute. > > Does anyone here have experience with phpdoc? > > -Original Message- > From: Andrey Hristov [mailto:[EMAIL PROTECTED]] > Sent: 16 March 2002 17:29 > To: caspar kennerdale > Cc: [EMAIL PROTECTED] > Subject: Re: [PH

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
mpile the html > fromand also distribute. > > Does anyone here have experience with phpdoc? > > -Original Message- > From: Andrey Hristov [mailto:[EMAIL PROTECTED]] > Sent: 16 March 2002 17:29 > To: caspar kennerdale > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP]

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
ED]> Sent: Saturday, March 16, 2002 7:24 PM Subject: RE: [PHP] server load > So you could have as much commented text without any detriment to the pages > performance? > > great > > > > -----Original Message- > From: Andrey Hristov [mailto:[EMAIL PROTECTED]] &g

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
Flex - the tools that parses the code skips everything between /* and */ and for this no token is given back. Of course if you don't have 5kb comments Flex will be a little faster but possibly few %. Regards, Andrey - Original Message - From: "caspar kennerdale" <[EMAIL PROTECTED]> To:

Re: [PHP] multiple variables

2002-03-15 Thread Andrey Hristov
if (in_array($arbitraryValue,array(1,2,3,4))){ } - Original Message - From: "Ralph Jarvis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 15, 2002 4:50 PM Subject: [PHP] multiple variables > Hi; > > An obvious question for some, but I am stumped: > > I want to use m

Re: [PHP] Deleteing folders containing files...

2002-03-15 Thread Andrey Hristov
Linux /Unix - $some=`rm -rf your_dir`; Regards, Andrey - Original Message - From: "Philip Jeffs" <[EMAIL PROTECTED]> To: "PHP LIST" <[EMAIL PROTECTED]> Sent: Friday, March 15, 2002 11:36 AM Subject: [PHP] Deleteing folders containing files... Hi, Does anyone know of an 'easy' way t

Re: [PHP] Opera broswer & file upload

2002-03-14 Thread Andrey Hristov
Look here for more info about file upload problems with Opera: http://bugs.php.net/search.php?cmd=display&search_for=opera&x=0&y=0 Andrey - Original Message - From: "Vlad Kulchitski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 5:57 PM Subject: [PHP] Opera

Re: [PHP] Opera broswer & file upload

2002-03-14 Thread Andrey Hristov
bug is reported it is patched in the CVS and after some time new version is released at some time. Andrey - Original Message - From: "Vlad Kulchitski" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 6:06 PM Subject

Re: [PHP] Opera broswer & file upload

2002-03-14 Thread Andrey Hristov
This problem was fixed in the CVS. Best regards, Andrey Hristov - Original Message - From: "Vlad Kulchitski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 5:57 PM Subject: [PHP] Opera broswer & file upload Also another que

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 and Regards, Andrey Hristov - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Hunter, Ray" <[EMAIL PROTECTED]> Cc: "Richard Davey" <

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 i

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

2002-03-13 Thread Andrey Hristov
[2]] I am 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?

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
t;, "inc") ); in index.php Regards, Andrey Hristov - Original Message - From: "S.Murali Krishna" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: "S.Murali Krishna" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Se

Re: [PHP] archive

2002-03-12 Thread Andrey Hristov
http://marc.theaimsgroup.com/?l=php-general&r=1&w=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

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 and . Regards, Andrey Hristov - Original Message - From: "John Gurley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 12, 2002 5:26 PM Subject: [PHP] question

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

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

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

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 whites

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

2002-03-11 Thread Andrey Hristov
PHP4 sessions or self made sessions. If PHP4 there is an option in php.ini to set about how frequently the GC(garbage collector) will be started. Otherwise if self made and using a DB for backend - add new field last_time , and on every page request do "Delete from session_table where last_time

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

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

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

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

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

[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

  1   2   3   4   >