Re: [PHP] Getting part of string matched with regular expressions

2008-01-27 Thread Paul Scott
On Mon, 2008-01-28 at 14:28 +0900, Teck wrote: > I was using preg_replace for this, and try to delete (i.e., replace > the non-matched part with an empty string) the second part, but I > can't make it work. Rather use preg_match_all() as that will produce an array of values, with the first va

[PHP] Getting part of string matched with regular expressions

2008-01-27 Thread Teck
Hi, I'm trying to find a way to get part of a string where the part is matched with regular expressions. So, for example, if I have a string: a2b3cd5ef6ghi7232jklmn I need to grab "12b3cd5" using regular expressions and store the part in a variable. $var = do_something("","","a2b3cd5ef

RE: [PHP] php installation problem

2008-01-27 Thread Umar
Hi Andres! Thanks for your reply.. That is intresting there is no libiconv or icon installed on my First Slackware machine where I have successfully installed php. But there is a libiconv installed on second Slackware machine. Regards, Umar Draz Andrés Robinet wrote: > >> -Original Mess

Re: [PHP] i enconter a question when use Zend Framework's _foward function

2008-01-27 Thread Nathan Nobbe
On Jan 27, 2008 10:01 PM, little btx <[EMAIL PROTECTED]> wrote: > public function init() > try{ > $this->subject = new subject($subject_id); > }catch (Zend_Exception $e) > { > > $this->_forward('index','error',null,array('error'=>$e->getMessage()); > } > } > whe

Re: [PHP] i enconter a question when use Zend Framework's _foward function

2008-01-27 Thread Nathan Nobbe
On Jan 27, 2008 9:53 PM, little btx <[EMAIL PROTECTED]> wrote: > in the function init() ,i want to use the function _foward but it doesn't > work. how to deal the problem > i think youll have to be more specific, can you supply some code that illustrates the problem ? -nathan

[PHP] i enconter a question when use Zend Framework's _foward function

2008-01-27 Thread little btx
in the function init() ,i want to use the function _foward but it doesn't work. how to deal the problem

[PHP] interface inheritance

2008-01-27 Thread Nathan Nobbe
all, previously, on this list and elsewhere, i have raised the topic of interface inheritance, lamenting that php is void of the feature. to my utter amazement i discovered that php does in fact support interface inheritance, reading through some of Marcus Boergers' code in SPL.. i noticed Recurs

[PHP] Re: How to prevent direct access..

2008-01-27 Thread Nathan Rixham
Chuck wrote: I have a php file that produces an image and is only referred to from an img tag like so: I want to prevent anyone from directly accessing the getRandImage.php file. The file has to be world readable or the image will not display. I played around with testing $_SERVER['HTTP_REFERE

[PHP] How to prevent direct access..

2008-01-27 Thread Chuck
I have a php file that produces an image and is only referred to from an img tag like so: I want to prevent anyone from directly accessing the getRandImage.php file. The file has to be world readable or the image will not display. I played around with testing $_SERVER['HTTP_REFERER'] using regul

Re: [PHP] Foreach

2008-01-27 Thread Nathan Nobbe
On Jan 27, 2008 7:24 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > I was just pointing out how fragmented PHP5+ is. Look at the docs on > SPL and the DOM stuff, it's horrible. > i hear you, and i agree, most of the php docs are good, but some of the oop stuff is kinda weak, like SoapClient, and D

Re: [PHP] Foreach

2008-01-27 Thread Eric Butera
On Jan 27, 2008 1:33 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 23, 2008 8:02 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > Maybe someday SPL will become part of the PHP manual too. ;) > > > > ill admit, the doxygen documentation is a little daunting at first. at > least > more so tha

Re: [PHP] htmlentities() does not remove escape

2008-01-27 Thread jekillen
On Jan 27, 2008, at 10:37 AM, Nathan Nobbe wrote: On Jan 27, 2008 1:27 PM, jekillen <[EMAIL PROTECTED]> wrote: I have a form that has a textarea and I do not want to disallow the use of single quote as apostrophe, or for any other normal stylization. So I am using html entities to change thes

Re: [PHP] Re: Posting Summary for Week Ending 18 January,2008:php-general@lists.php.net

2008-01-27 Thread Nisse Engström
On Mon, 21 Jan 2008 00:14:34 +, David Powers wrote: > A Google check on my email address shows that, with one exception, it > has been released into the public domain solely through archives and > mirrors of this list. The exception is a private group, whose > administrator I have alerted t

Re: [PHP] htmlentities() does not remove escape

2008-01-27 Thread Robert Cummings
On Sun, 2008-01-27 at 10:27 -0800, jekillen wrote: > Hello: > I have a form that has a textarea and I do not want to > disallow the use of single quote as apostrophe, or > for any other normal stylization. So I am using html > entities to change these characters into html entities. > But the funct

Re: [PHP] htmlentities() does not remove escape

2008-01-27 Thread Nathan Nobbe
On Jan 27, 2008 1:27 PM, jekillen <[EMAIL PROTECTED]> wrote: > Hello: > I have a form that has a textarea and I do not want to > disallow the use of single quote as apostrophe, or > for any other normal stylization. So I am using html > entities to change these characters into html entities. > But

Re: [PHP] Foreach

2008-01-27 Thread Nathan Nobbe
On Jan 23, 2008 8:02 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > Maybe someday SPL will become part of the PHP manual too. ;) > ill admit, the doxygen documentation is a little daunting at first. at least more so than phpDocumentor for example. but once youve cruised around the spl docs for a

[PHP] htmlentities() does not remove escape

2008-01-27 Thread jekillen
Hello: I have a form that has a textarea and I do not want to disallow the use of single quote as apostrophe, or for any other normal stylization. So I am using html entities to change these characters into html entities. But the function does not remove the escapes added by the browser when sendi

RE: [PHP] determine file-upload's tmp-filename

2008-01-27 Thread Michael Fischer
On Sun, 2008-01-27 at 11:12 -0500, Andrés Robinet wrote: > > -Original Message- > > From: Michael Fischer [mailto:[EMAIL PROTECTED] > > Sent: Sunday, January 27, 2008 4:03 AM > > To: php-general@lists.php.net > > Subject: Re: [PHP] determine file-upload's tmp-filename > > > > > >

RE: [PHP] php installation problem

2008-01-27 Thread Andrés Robinet
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 27, 2008 11:03 AM > To: php-general@lists.php.net > Subject: RE: [PHP] php installation problem > > > -Original Message- > > From: Umar [mailto:[EMAIL PROTECTED] > > Sent: Sunday, January

RE: [PHP] determine file-upload's tmp-filename

2008-01-27 Thread Andrés Robinet
> -Original Message- > From: Michael Fischer [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 27, 2008 4:03 AM > To: php-general@lists.php.net > Subject: Re: [PHP] determine file-upload's tmp-filename > > > Original-Nachricht > > Datum: Sat, 26 Jan 2008 16:09:58 -0800 >

RE: [PHP] php installation problem

2008-01-27 Thread Andrés Robinet
> -Original Message- > From: Umar [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 27, 2008 3:55 AM > To: php-general@lists.php.net > Subject: [PHP] php installation problem > > > Dear Members! > > I have installed php-5.2.5 on slackware 12.0 with these option > successfully > > ./conf

[PHP] Hex Strings Appended to Pathnames

2008-01-27 Thread Mick
Operating System: CentOS 4.6 PHP Version: 4.3.9-3.22.9 Zend Optimizer (free) version: 3.2.6 Hello. I've got somewhat of a strange problem here involving Squirrelmail. Basically, what is happening is that one of our customers is logged out of his Squirrelmail session at random intervals. This

Re: [PHP] determine file-upload's tmp-filename

2008-01-27 Thread Michael Fischer
Original-Nachricht > Datum: Sun, 27 Jan 2008 01:21:19 -0800 > Von: Brady Mitchell <[EMAIL PROTECTED]> > An: Michael Fischer <[EMAIL PROTECTED]> > CC: php-general@lists.php.net > Betreff: Re: [PHP] determine file-upload\'s tmp-filename > On Jan 26, 2008, at 357PM, Michael Fischer

Re: [PHP] determine file-upload's tmp-filename

2008-01-27 Thread Brady Mitchell
On Jan 26, 2008, at 357PM, Michael Fischer wrote: hi there, is there a way to determine the tmp-filename of a file upload while the upload is still in progress? I'm not sure when it becomes available, but $_FILES['file_name'] ['tmp_name'] is the only place I know of to find the temporary n

Re: [PHP] determine file-upload's tmp-filename

2008-01-27 Thread Michael Fischer
Original-Nachricht > Datum: Sat, 26 Jan 2008 16:09:58 -0800 > Von: Casey <[EMAIL PROTECTED]> > An: "Michael Fischer" <[EMAIL PROTECTED]> > CC: php-general@lists.php.net > Betreff: Re: [PHP] determine file-upload\'s tmp-filename > On Jan 26, 2008 3:57 PM, Michael Fischer <[EMAIL

[PHP] php installation problem

2008-01-27 Thread Umar
Dear Members! I have installed php-5.2.5 on slackware 12.0 with these option successfully ./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-pcre-regex --with-layout=GNU --enable-sysvshm --enable-shmop --enable-sysvmsg