[PHP] How to track for Allowed memory size ?

2012-09-14 Thread Ivan Dimitrov
Hello, is there a way how to track for allowed memory size on ? I receive this error in one class that process sql querys. I want to check somehow when query is processed do php return this error and if this is happened to log sql query in file to can I optimize it latter. I.D. -- PHP Genera

RE: [PHP] regexp questions

2010-05-14 Thread Spud. Ivan.
> From: spudm...@hotmail.com > To: php-general@lists.php.net > Date: Fri, 14 May 2010 22:01:09 +0200 > Subject: RE: [PHP] regexp questions > > > > > Hi, > > > > I'm trying to insert a serialized data into mysql, but I does > mysql_real_escape_string() before inserting it. > > > > IN

[PHP] mysql_real_escape_string() and "

2010-05-14 Thread Spud. Ivan.
Hi, I'm trying to insert a serialized data into mysql, but I does mysql_real_escape_string() before inserting it. INSERT IGNORE INTO `table` (`value`) VALUES ('a:3:{s:12:"F1";s:6:"nombre";s:11:"F2";s:5:"F3";s:16:"F4";s:10:"F5";}'); it result in INSERT IGNORE INTO `table` (`value`) VALU

RE: [PHP] regexp questions

2010-05-14 Thread Spud. Ivan.
Hi, I'm trying to insert a serialized data into mysql, but I does mysql_real_escape_string() before inserting it. INSERT IGNORE INTO `table` (`value`) VALUES ('a:3:{s:12:"F1";s:6:"nombre";s:11:"F2";s:5:"F3";s:16:"F4";s:10:"F5";}'); it result in INSERT IGNORE INTO `table` (`value`

RE: [PHP] regexp questions

2010-05-12 Thread Spud. Ivan.
Subject: RE: [PHP] regexp questions From: a...@ashleysheridan.co.uk To: spudm...@hotmail.com CC: php-general@lists.php.net Date: Wed, 12 May 2010 17:11:11 +0100 On Wed, 2010-05-12 at 18:13 +0200, Spud. Ivan. wrote: > Date: Tue, 11 May 2010 15:38:41 -0700 > From: li...@cmsws.co

RE: [PHP] regexp questions

2010-05-12 Thread Spud. Ivan.
> Date: Tue, 11 May 2010 15:38:41 -0700 > From: li...@cmsws.com > To: spudm...@hotmail.com > CC: php-general@lists.php.net > Subject: Re: [PHP] regexp questions > > Spud. Ivan. wrote: > > > > I think we've not so much only with the regex, but maybe

RE: [PHP] regexp questions

2010-05-12 Thread Spud. Ivan.
> Subject: RE: [PHP] regexp questions > Date: Wed, 12 May 2010 11:11:07 +0100 > From: m.f...@leedsmet.ac.uk > To: spudm...@hotmail.com; php-general@lists.php.net > > > > > -Original Message- > > From: Spud. Ivan. [mailto:spudm...@hotmail.com] > &

RE: [PHP] regexp questions

2010-05-11 Thread Spud. Ivan.
> From: a...@ashleysheridan.co.uk > To: spudm...@hotmail.com > CC: php-general@lists.php.net > Date: Tue, 11 May 2010 21:43:54 +0100 > Subject: RE: [PHP] regexp questions > > On Tue, 2010-05-11 at 22:45 +0200, Spud. Ivan. wrote: > > > > > I think we

RE: [PHP] regexp questions

2010-05-11 Thread Spud. Ivan.
I think we've not so much only with the regex, but maybe you can tell me somethin helpful ;) /Word1:<\/a><\/h4>\(fir.*?st word.*?(.*)Word2:<\/a><\/h4>(.*)Second word:<\/a><\/h4>(.*)Word3:<\/a><\/h4>(.*)rd word/is Thanks. I.Lopez. >&

RE: [PHP] regexp questions

2010-05-11 Thread Spud. Ivan.
4.3.0 The flags parameter was added But it doesn't explain why my regexps work fine within php 5.1 but 5.3 Ivan. >>>>>>>>> > -Original Message- > From: Spud. Ivan. [mailto:spudm...@hotmail.com] > Sent: 11 May 2010 01:2

RE: [PHP] php path and relink

2010-05-10 Thread Spud. Ivan.
then try different paths to locate the version you want: /usr/bin/php /usr/local/bin/php /usr/sbin/php etc etc I don't have root permission to unistall the old version or remove the link or create a link in /usr/loca/bin/php I'm just call the php -v command and get the version 4. T

RE: [PHP] php path and relink

2010-05-10 Thread Spud. Ivan.
do strace php -v and see what's the path for the old version. It'd be better if you uninstall the old version, but it you don't know how was it installed, simply remove the old php binary or overwrite it with newer. I. Lopez. Hi, I have a shell account with limited access. The php c

RE: [PHP] regexp questions

2010-05-10 Thread Spud. Ivan.
Is there any place where to read the changelog or something? Thanks. >>> For example, the following regex doesn't work. return (bool) preg_match('/^[\pL\pN\pZ\p{Pc}\p{Pd}\p{Po}]++$/uD', (string) $str); Shiplu Mokadd.im ___

[PHP] regexp questions

2010-05-10 Thread Spud. Ivan.
Hi, I've recently changed from php 5.1 to 5.3.2 and I'm havong problems with preg_match, because the same regular expressions used in php 5.1 are not matching anything in 5.3.2. There are any significant changes that I should know? I've been searching but I haven't found anything. Thanks.

[PHP] Re: Parsing PHP variables in XML document

2006-02-27 Thread Ivan Nedialkov
I comed up with this $name,"attrs"=>$attrs); array_push($stack,$tag); } // end_element_handler ( resource parser, string name ) function endElement($parser, $name) { global $stack; $stack[count($stack)-2]['children'][] = $stack[count($stack)-1]; array_pop($stack); } // handler ( re

[PHP] Re: Parsing PHP variables in XML document

2006-02-27 Thread Ivan Nedialkov
So I have found this code in http://bg.php.net/manual/en/ref.xmlrpc.php and it evaluates PHP but when I try to use the PIHandler separately. It doesnt work. So I ask if someone could help me to make parser1 return an array just like parser2. PARSER1 $name"; if (count($attribs)) { fore

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Ivan Nedialkov
ich in most cases it won't be :( > > Bogdan Ribic wrote: > > Hi Ivan, > > > > You might be able to use output buffering in conjunction with > > including your xml file. Something like: > > > > ob_start(); > > include $xml_file; > > $c

[PHP] Parsing PHP variables in XML document

2006-02-26 Thread Ivan Nedialkov
Hi, I have the following problem. I want to import data into my site via PHP XML Parser, but I also want to include php string variables into the .xml file and when the xml file is parsed the variables are replaced whit the corresponding string. So far all my attempts have been unsuccessful. Her

[PHP] free cache/accelerator for php5?

2004-11-25 Thread Ivan Voras
Hi! Is there any free php cache/accelerator that works with php5? I was using turck-mmcache with 4.x, but it's buggy with php5 (old-style class constructors don't get called on cached classes), and the development seems to be stalled. -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: How to destroy session ID

2004-08-20 Thread Ivan Kovalenko
Khuram Noman wrote: > i have problem in destroying session id, i use the > following code > > session_start(); > print "before Destroy".session_id(); > session_destroy() ; > > session_start(); > print "After Destroy".session_id(); > > ?> > > in before and after it prints the same sessionID so

RE: [PHP] User IP

2004-08-04 Thread Ivan Kovalenko
Nicklas Bondesson wrote: Actually, there's way to determine real user's IP, checking $_SERVER["HTTP_CLIENT_IP"], $_SERVER["HTTP_X_FORWARDED_FOR"] and, finally, $_SERVER["REMOTE_ADDR"]. But this may not give certain and correct result. > As far as I'm conserned you can't. The proxy will hide all i

[PHP] too much trimming

2004-03-18 Thread Ivan Sergio Borgonovo
I've simple code like this: -- begin -- #!/usr/bin/php -q hey my name is and I feel good -- end -- I would expect this output: -- begin -- hey my name is goofy and I feel good -- end -- but I obtain this: -- begin -- hey my name is goofya

[PHP] Help need with image2wbmp() arguments

2003-12-17 Thread Ivan Dermanov
ctly but there is not the same result as in example above: Is it bug in image2wbmp() or something with my php setings is wrong? Ivan Dermanov, [EMAIL PROTECTED] 17.dec.2003. Belgrade,

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Ivan Marenic
scenario is that some header items can be generated by application, some by the phone's runtime, and others by the WAP gateway. And those reaching the server might not be what we expect. Regards, Ivan "Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread Ivan Marenic
Solved all my problems with PERL. Cheers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
from client. PHP page responses exactly the same as the one on remote Apache server. I have mental fog in my mind write now. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Ivan Marenic <[EMAIL PROTECTED]> wrote: > > Here i

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
r-Encoding: chunked Content-Type: text/html > > You might be able to use ethereal (http://www.ethereal.com/) to get the > HTTP request. For sniffing HTTP traffic I am using EffeTech HTTP Sniffer. Works OK. Ivan -- PHP General Mailing L

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
> This looks you are expecting to receive a POST request with PHP. So, are > you wanting to send one or receive one? Receive one. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Ivan Marenic <[EMAIL PROTECTED]> wrote: > >

[PHP] ASP code that works!

2003-11-15 Thread Ivan Marenic
Dim binread Dim bytecount bytecount = Request.TotalBytes binread = Request.BinaryRead(bytecount) Response.BinaryWrite binread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Here is ASP code that works. Dim binread Dim bytecount bytecount = Request.TotalBytes binread = Request.BinaryRead(bytecount) 'Send response back to client Response.BinaryWrite binread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
stData ); os.close(); os = null; Here is PHP code snippet: //Here I see HTTP method, and response is POST : echo $_SERVER['REQUEST_METHOD']; : : // Show any post vars, but nothing shows - never! if(count($_POST)>0){ echo "POST".$new_line; print_r($_POST); ech

[PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Any idea why? I am sending HTTP post request from j2me mobile device. Request is OK because it works well on ASP page. Thanks for help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending email with the windows version of php

2003-07-19 Thread Ivan Carey
tell me what form of email sending windows would use. Thanks, Ivan

[PHP] How do I use $HTTP_*_VARS[]

2003-06-30 Thread Ivan Carey
register_globals. How do I use $HTTP_*_VARS[] without a lot of recoding of all pages or do I simply leave register_globals on. Or is ther another way? Thankyou, Ivan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Marenic
ng like the following: > - Right click on the folder > - Select proprieties > - Click on security icon > - And allow everyone to write, read, execute > > If you cannot access this tools, ask your administrator to allow you to do > this work. > > > - Original

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Marenic
I've tried same source on different OS and it works OK. I assume there is a BUG, for win 2000. Thank you all for help. Kind regards, Ivan "Jason Sheets" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Have you tried giving it a

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Marenic
red. I've tried all variations: "w", "r+", "wb" ... nothnig works. "Stephen" <[EMAIL PROTECTED]> wrote in message 000901c28e73$2f24a870$0200a8c0@melchior">news:000901c28e73$2f24a870$0200a8c0@melchior... > wb is not a permission. Try

[PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Mareniæ
Hi. I am trying to create little counter: I can't open file for writing. I've tried different params: "w", "r+", "wb" ... nothnig works I am using IIS 5.0 , and I have set permitions to read & write files on server. = source code === if(is_writable("counter.txt")==TRUE)

[PHP] how do I send information to a php page from a menu list

2002-09-02 Thread Ivan Carey
code I am using presently is below Select a Category $faqcats"; }//while ($myrowadmintitles=MySQL_fetch_array($admintilteresult)) ?> Thanks for your answer, Ivan

[PHP] problem with using include files

2002-08-27 Thread Ivan Carey
path when using an include file in this way? I have tried to use some of the Environment Variables. I find that I am having this problem when I am using a structured site. I would rather not place all files into the same directory Thankyou for your reply, Ivan

[PHP] problem with using link variables

2002-08-25 Thread Ivan Carey
I am trying to achieve is to be able to display hello & there on the agencydet.php page when it is shown in the browser. Thanks, Ivan

[PHP] Re: session duration

2002-07-02 Thread Ivan Voras
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:20020702092207.GERZ903.sccrmhc03.attbi.com@[192.168.1.103]... > >Is there a way to programatically (inside a session) change session duration > >for the current session only? (using cookie-based sessions) ? > > Wild Guess: > > What if you u

[PHP] session duration

2002-07-01 Thread Ivan Voras
Is there a way to programatically (inside a session) change session duration for the current session only? (using cookie-based sessions) ? -- - Ivan Voras - - If I knew what I was doing, it wouldn't be called "research". -- R. P. Bergman - -- PHP General Mai

Re: [PHP] mail() problem

2002-06-05 Thread Ivan Hernandez
Cesar: What's the exact error message you are getting? or there's no error message? Are you running the PHP script in a local machine or a server? What MTA are you using? Regards, Ivan --- "César_L._Aracena" <[EMAIL PROTECTED]> wrote: > Hi all, > > I ha

[PHP] php+java on freebsd

2002-04-02 Thread Ivan Voras
Can anyone tell me how to get java support for php working? I compiled apache with -pthread option, I properly configured php.ini (phpinfo() agrees), but I cannot overcome this: (the message appears as a PHP error when trying to create any java objects) Fatal error: Unable to load Java Library /

[PHP] Creating an SQL database and finding the path to SQL

2002-03-24 Thread Ivan Olson
Forgive me for being so new, But i dont know where to start or where to start to look for this... _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] php files on cd

2002-03-05 Thread Ivan Carey
Hello Is it possible to put a mysql & php web site on CD or maybe to capture the site statically to put it onto cd. thanks Ivan

[PHP] how do I use php and mysql to print mailing lables

2002-03-04 Thread Ivan Carey
Hello and thanks for your help how do I use php and mysql to print mailing lables? I would like to be able to print mailing labels from an mySQL online database using php. Is it possible to do this as the same functionality as in an MSAccess offline database? Thanks, Ivan

Re: [PHP] downloading text files stored in database?

2002-02-25 Thread Ivan Balazs
In the download_file.php put a header() function which redirects the browser to the file, like header("Location: test.dat"). After that it should show the dialog screen. Balazs On Mon, 25 Feb 2002, Lee P Reilly wrote: > Hi, > > I wonder if someone can point me in the direction of an example and

[PHP] How do I use a confirm box to confirm before deletion from a database

2002-01-28 Thread Ivan Carey
with php or a combination of php and a javascript funtion Thanks, Ivan

Re: [PHP] newbie - help with field variables in forms

2002-01-08 Thread Ivan Balazs
Hi! A very simple way to do this is by checking the variables of the form (the names of fields) if they are isset() or not. To be more specific you can even check, if any of them is empty(). In special cases like the email address, i suggest using regexp to check if it is a valid email address.

[PHP] how to reinitialise an MySQL_fetch_array

2001-12-15 Thread Ivan Carey
d like to be able to restart the inner loop by reinitailsing the MySQL_fetch_array } //while ($myrow=MySQL_fetch_array($result2)) Regards, Ivan

[PHP] how to get multiple checkbox values in a results page?

2001-12-01 Thread Ivan Carey
action is inschk.php If an array is sent to inschk.php how may I get the multiple values out of it. If this can be done I then will insert the different values into a database. At present if I check multiple checkboxes I can only see the value of the last checkbox that is checked. Thanks, Ivan

Re: [PHP] mail problem...

2001-07-04 Thread Ivan Balazs
Hi! It seems to be a php-specific problem. Check your php config file (in php4 it is php.ini). There you should find a line related to the smtp server. Fill it with its correct content. Balazs On Wed, 4 Jul 2001, php wrote: > hai... > > I have install php and i want to create email direct

Re: [PHP] Php Files on Browser

2001-06-24 Thread Ivan Balazs
Hi! Check your server settings! If you're using Apache then there are several things that need to be calibrated, such as the mime-type settings, the scriptAlias part and application-specific settings. And don't forget to tell the server the dir name you're keeping the files in. You may try to fin

[PHP] How to compile PDFLIB in FreeBSD 4.3

2001-05-01 Thread Ivan
I try to use configure to config pdflib in FreeBSD when i make it, i got a error messages cd bind/php && make make: no target to make. *** Error code 2 (ignored) -- Thanks & Best Regards Ivan Chen ³¯Åb¤å IT Department ¸ê°TºÞ²z³¡ Direct Line 886 2 27747875 ±M½u 886 2 27747875 Jard

Re: [PHP] PHP+MS Access and/or MS SQL

2001-04-27 Thread Ivan Porro
Panel on the 'db server' > > machine. Notice that These odbc with MSAccess work ONLY LOCALLY (in > > lan,not remotely). U have to use MSSQL server to realize remote dB > > storage. > > > > Good Luck, > > > > Ivan > > > > [EMAIL PROT

Re: [PHP] What is this??

2001-04-27 Thread Ivan Porro
-- > 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] -- (p)Ivan Student DIST Bio-Lab Viale Causa 13 16145 Genoa - Italy tel

Re: [PHP] PHP+MS Access and/or MS SQL

2001-04-27 Thread Ivan Porro
g a ODBC Data Source Name using Manage ODBC data source in Control Panel on the 'db server' machine. Notice that These odbc with MSAccess work ONLY LOCALLY (in lan,not remotely). U have to use MSSQL server to realize remote dB storage. Good Luck, Ivan [EMAIL PROTECTED] wrote: > >

[PHP] a (simple) question?

2001-04-27 Thread Ivan Porro
Hi, anyone know a simple way to realize multiple-upload at once (something like Msoft CTRL-multiple selection when browsing and uniqe Upload button). I've found only a multiple file input field in a form but the numbers of file I'had to upload is unknow. TIA -- (p)Ivan Student DI

Re: [PHP] PHP Book?

2001-04-27 Thread Ivan Porro
o unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- (p)Ivan Student DIST Bio-Lab Viale Causa 13 16145 Genoa - Italy tel: +39 010 3532789 e-mail: [EMAIL PROTECTED] -- PHP G

Re: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread Ivan Porro
TED] > > > > > > -- > 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] -- (p)Ivan Student DIST Bio-Lab Vi