Re: [PHP] Having a problem with clone.

2013-05-11 Thread Marco Behnke
Am 10.05.13 11:35, schrieb Richard Quadling: > Trying to clone an uncloneable object of class Smarty_Variable Different PHP versions maybe? Look at this thread I found: http://wordpress.org/support/topic/fatal-error-trying-to-clone-an-uncloneable-object-of-class-reflectionclass The last p

[PHP] Sync CSV files with MySQL Database.

2013-05-10 Thread Carlos Sura
Hello mates, Perhaps this seems to be a silly question, but it is not to me, here is the scenario: I know how to import CSV files with PHP to a MySQL database, the thing is, that CSV file is automatically feed by a third-party application, I want to do something to add just the new records, not

Re: [PHP] undef func

2013-05-10 Thread georg
Ok, txn ! so yum install php-devel worked, and got me a hole lot of pearl, however, still PHP has odbc_connect() call as undefined function. as per Apache error log. There was some mentioning of php.ini; could that be something here ? /georg - Original Message - From: "James

Re: [PHP] undef func

2013-05-10 Thread Ashley Sheridan
James Yerge wrote: >On 05/10/2013 06:08 PM, Gabriel Ricci wrote: >> pear isntall php-dev >> >> >> Att. >> >> Gabriel Ricci >> >> >> Website <http://gabrielricci.github.com> >> Follow @gabriel

Re: [PHP] undef func

2013-05-10 Thread James Yerge
On 05/10/2013 06:08 PM, Gabriel Ricci wrote: > pear isntall php-dev > > > Att. > > Gabriel Ricci > > > Website <http://gabrielricci.github.com> > Follow @gabrielricci <http://www.twitter.com/gabrielricci> > Facebook profile &l

Re: [PHP] undef func

2013-05-10 Thread Gabriel Ricci
Sorry, yum install php-dev Att. Gabriel Ricci Website <http://gabrielricci.github.com> Follow @gabrielricci <http://www.twitter.com/gabrielricci> Facebook profile <http://www.facebook.com/gabrielricci2>, GitHub profile<http://www.github.com

Re: [PHP] undef func

2013-05-10 Thread Gabriel Ricci
pear isntall php-dev Att. Gabriel Ricci Website <http://gabrielricci.github.com> Follow @gabrielricci <http://www.twitter.com/gabrielricci> Facebook profile <http://www.facebook.com/gabrielricci2>, GitHub profile<http://www.github.com/gabrielricci/>

Re: [PHP] undef func

2013-05-10 Thread georg
So thanx again, closing in. It turned out that I had tried; yum install php_pear // i.e. with an underscore, should be with hyphen ! so crawling a mm forward; then stuck on; pecl install pdo_odbc// in this case the undrscore is ok (!) which fails as "Cant find php headers in /usr/in

Re: [PHP] undef func

2013-05-10 Thread Serge Fonville
6/truncate-partition-of-partitioned-table 2013/5/10 georg > noop, didnt take, no such package, was my reward > > /georg > - Original Message - > From: Gabriel Ricci > To: georg > Cc: Daniel Brown ; tamouse mailing lists ; PHP General > Sent: Friday, May 10, 2

Re: [PHP] undef func

2013-05-10 Thread georg
noop, didnt take, no such package, was my reward /georg - Original Message - From: Gabriel Ricci To: georg Cc: Daniel Brown ; tamouse mailing lists ; PHP General Sent: Friday, May 10, 2013 11:06 PM Subject: Re: [PHP] undef func To have pecl, you need to install PEAR

Re: [PHP] undef func

2013-05-10 Thread Gabriel Ricci
To have pecl, you need to install PEAR first, "yum install php-pear" (or "yum install php5-pear") should work. Then you can try "pecl install pdo_odbc." Att. Gabriel Ricci Website <http://gabrielricci.github.com> Follow @gabrielricci

Re: [PHP] undef func

2013-05-10 Thread georg
unfortunately that didnt take, pecl is undefined command (my linux is not so strong) trying yum renders no such package - Original Message - From: "Daniel Brown" To: "tamouse mailing lists" Cc: "georg" ; "PHP General" Sent: Friday, May 1

Re: [PHP] undef func

2013-05-10 Thread Daniel Brown
y - my response, when finding out it is indeed a Linux box, is: pecl install pdo_odbc. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] undef func

2013-05-10 Thread tamouse mailing lists
On Fri, May 10, 2013 at 12:23 PM, Daniel Brown wrote: > On Fri, May 10, 2013 at 6:15 AM, georg wrote: >> Hello ! >> >> im increasingly frustrated on my effort to get PHP/ODBC going with Apache on >> Linux (did it on MS XP, that was trixy but this is worse, not

Re: [PHP] undef func

2013-05-10 Thread Daniel Brown
On Fri, May 10, 2013 at 6:15 AM, georg wrote: > Hello ! > > im increasingly frustrated on my effort to get PHP/ODBC going with Apache on > Linux (did it on MS XP, that was trixy but this is worse, nothing seem to be > correct; utilities missing, erroneous file-directory re

Re: [PHP] Having a problem with clone.

2013-05-10 Thread Nick Whiting
t; variable being defined (it isn't used in the Smarty template - so Smarty is > never touching it). When I compare the 2 dumps, the only differences is in > the datetime stamp elements and the object count values (there's 1 more > when $o_Gender exists). > > My setup is on a Cent

[PHP] pecl/gender bug in PHP V5.3

2013-05-10 Thread Richard Quadling
Hello all. Very odd behaviour. If using pecl/Gender V0.9.0 with PHP V5.3.3, V5.3.13, V5.3.23, then I get an error ... PHP Fatal error: Trying to clone an uncloneable object of class Variable in - on line 14 No problem with V5.4.14 No idea why this is the case. Changelog for V5.3 doesn&#

Re: [PHP] Having a problem with clone.

2013-05-10 Thread Richard Quadling
access >>> anything >>> in it - which I think is correct). I've var_dump()'d a debug_backtrace() >>> at >>> the point of failure in the Smarty code, with and without the $o_Gender >>> variable being defined (it isn't used in the Smarty template

Re: [PHP] Having a problem with clone.

2013-05-10 Thread Richard Quadling
any way (I have to use the Gender namespace to access anything >> in it - which I think is correct). I've var_dump()'d a debug_backtrace() >> at >> the point of failure in the Smarty code, with and without the $o_Gender >> variable being defined (it isn't used in

[PHP] undef func

2013-05-10 Thread georg
Hello ! im increasingly frustrated on my effort to get PHP/ODBC going with Apache on Linux (did it on MS XP, that was trixy but this is worse, nothing seem to be correct; utilities missing, erroneous file-directory references, crapy stringency in description...) well: "undefined fun

[PHP] Having a problem with clone.

2013-05-10 Thread Richard Quadling
ed in the Smarty template - so Smarty is never touching it). When I compare the 2 dumps, the only differences is in the datetime stamp elements and the object count values (there's 1 more when $o_Gender exists). My setup is on a CentOS VM running PHP V5.4.14 The live setup is on a remote Ce

[PHP] php extension about php_stream_fopen_tmpfile()

2013-05-09 Thread Bleakwind
I write a php extension. How can I user Zend API do that? where can I find some doc about file_handle->handle ? ZEND_API zend_op_array *(*org_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC); ZEND_API zend_op_array *sead_compile_file(zend_file_handle *file_handle, int t

[PHP] 5.4.15 and PHP 5.3.25 released!

2013-05-09 Thread Stas Malyshev
Hello! The PHP development team announces the immediate availability of PHP 5.4.15 and PHP 5.3.25. These releases fix about 10 bugs. All users of PHP are encouraged to upgrade to PHP 5.4. PHP 5.3.25 is recommended for those wishing to remain on the 5.3 series. The full list of changes are

Re: [PHP] Re: array_map() with multiple callback functions

2013-05-08 Thread George Langley
t; foreach ($my_array as &$v) > { > $v = trim($v); > $v = strtolower($v); > } > > -- On 2013-05-07, at 3:43 PM, Alex Nikitin wrote: > Something like: > > $cleanData = array_map(function($str){return strtolower(trim($str));}, > $passedData); -- Thanks guys - will check both out to see what works best in my situation. George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] filesize question

2013-05-08 Thread tamouse mailing lists
st the size of the string that I'm looking to cleanse. That's how you pass the name into the php script; how does $inputfile get set (via $argv somehow) once you're inside php? This line: >>> $inputline = fread($inputfile, filesize($argv[1])); Somehow, you opened $in

Re: [PHP] array_map() with multiple callback functions

2013-05-08 Thread Andrew Ballard
));}, > $passedData); I'd go with this general approach, whether you use a named function or an anonymous function for the callback. I don't know how large the array is, but option #1 iterates the input array twice and option #2 iterates the array three times. If you eventually need to a

[PHP] Re: array_map() with multiple callback functions

2013-05-08 Thread Jim Giner
so I'll present my simpler approach. foreach ($my_array as &$v) { $v = trim($v); $v = strtolower($v); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-05-08 Thread Daniel Brown
On Wed, May 8, 2013 at 3:13 PM, Steven Staples wrote: > > Why does this feel like a new function/feature for PHP now? > > Function acronymize($acronym) > { > // do stuff here now... :S > } -- Network Infrastructure Manager http://www.php.net/ -- PHP Gener

Re: [PHP]

2013-05-08 Thread Daniel Brown
On Wed, May 8, 2013 at 1:26 PM, David OBrien wrote: > > That would be reverse acronymization :) You're absolutely correct. Deacronymize? -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP]

2013-05-08 Thread Ashley Sheridan
Steven Staples wrote: >> So you're just lucky I didn't acronymize it as the Pretty House of >> Princesses or something. And yes, I just made up the word >> acronymize. It may be Wednesday, but it feels more like a Friday. >> > >Why does this feel

RE: [PHP]

2013-05-08 Thread Steven Staples
> So you're just lucky I didn't acronymize it as the Pretty House of > Princesses or something. And yes, I just made up the word > acronymize. It may be Wednesday, but it feels more like a Friday. > Why does this feel like a new function/feature for PHP now? Functi

Re: [PHP] FW:

2013-05-08 Thread Ashley Sheridan
Dan Joseph wrote: >Yo, > > (And, no, PHP doesn't stand >> for Produced by Horses & Ponies.) >> >> >This is completely devastating Just noticed the original link has a nasty payload for android, I assume the same applies for other OSs (probabl

Re: [PHP] FW:

2013-05-08 Thread Dan Joseph
Yo, (And, no, PHP doesn't stand > for Produced by Horses & Ponies.) > > This is completely devastating -- -Dan Joseph http://www.danjoseph.me http://www.dansrollingbbq.com http://www.youtube.com/DansRollingBBQ

Re: [PHP]

2013-05-08 Thread David OBrien
On Wed, May 8, 2013 at 1:22 PM, Daniel Brown wrote: > On Wed, May 8, 2013 at 1:14 PM, Tedd Sperling > wrote: > > > > PS: PHP + > "Produced by Horses & Ponies." ? You got too much time on > your hands Daniel. > > And yes, I just made up t

Re: [PHP]

2013-05-08 Thread Daniel Brown
On Wed, May 8, 2013 at 1:14 PM, Tedd Sperling wrote: > > PS: PHP + > "Produced by Horses & Ponies." ? You got too much time on your > hands Daniel. Sometimes I wish that were the case. Honestly, I think it's having a three-and-a-half-year-old daughter

Re: [PHP]

2013-05-08 Thread Tedd Sperling
On May 8, 2013, at 12:50 PM, Daniel Brown wrote: >If you're going to send hack attempts, at least adjust your clock > so that it doesn't look like it took almost a month for your SPAM to > get here. We're not the Pony Express. (And, no, PHP doesn't stand >

Re: [PHP] FW:

2013-05-08 Thread Daniel Brown
If you're going to send hack attempts, at least adjust your clock so that it doesn't look like it took almost a month for your SPAM to get here. We're not the Pony Express. (And, no, PHP doesn't stand for Produced by Horses & Ponies.) On Thu, Apr 11, 2013 at 11:43

[PHP] FW:

2013-05-08 Thread Paul Novitski
http://www.shinwa-kensetsu.sakura.ne.jp/bth7rz.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
r to eliminate globals from this, in fact? I honestly do not see the benefit to embedding that into a function like that.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard wrote: > [snip]Globals being used in a function. [/snip] > > *smacks forehead* It bites me all the time, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] filesize question

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 8:16 AM, Curtis Maurand wrote: > Hello, > I'm feeding a filename to a php script on the command line (command line > program). I run the following against it: > > $inputline = fread($inputfile, filesize($argv[1])); > > I'm getting an er

Re: [PHP] array_map() with multiple callback functions

2013-05-07 Thread Alex Nikitin
ay_map('trim',$cleanData); > } > //(Of course, wouldn't bother with a function, just to call array_map > twice...) > > Just seeing if there's a better way than having to go through the array twice > to apply each callback separately. Thanks, > > -- > PHP

[PHP] array_map() with multiple callback functions

2013-05-07 Thread George Langley
f course, wouldn't bother with a function, just to call array_map twice...) Just seeing if there's a better way than having to go through the array twice to apply each callback separately. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Jay Blanchard
[snip]Globals being used in a function. [/snip] *smacks forehead* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Larry Martell
sueProblem, $arrayElement); > } elseif ('Comments' == $type) { > array_push($issueComment, $arrayElement); > } > } > print_r($issueDifferently); > print_r($issueProblem); > print_r($issueComment); You have to declare the arrays as global inside your function. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Stuart Dallas
type){ > array_push($issueProblem, $arrayElement); > } elseif ('Comments' == $type) { > array_push($issueComment, $arrayElement); > } > } > print_r($issueDifferently); > print_r($issueProblem); > print_r($issueComment); > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with array_push?

2013-05-07 Thread Jay Blanchard
27;|'.$message; if('DoDifferently' == $type) { array_push($issueDifferently, $arrayElement); } elseif ('Problem' == $type){ array_push($issueProblem, $arrayElement); } elseif ('Comments' == $type) { array_push($issueComment, $arrayElement); } } print_r($issueDifferently

Re: [PHP] filesize question

2013-05-07 Thread ma...@behnke.biz
> Curtis Maurand hat am 7. Mai 2013 um 15:16 geschrieben: > > > Hello, > I'm feeding a filename to a php script on the command line (command line > program). I run the following against it: > > $inputline = fread($inputfile, filesize($argv[1])); mayve $inputline

[PHP] filesize question

2013-05-07 Thread Curtis Maurand
Hello, I'm feeding a filename to a php script on the command line (command line program). I run the following against it: $inputline = fread($inputfile, filesize($argv[1])); I'm getting an error complaining that the second parameter can't be '0' any ideas? t

Re: [PHP] ODBC

2013-05-07 Thread georg
but isnt there some yum command that will fix things for me (download if necessary, but I actually think the ODBC would be in the distribution of fedora ?) br georg - Original Message - From: "David OBrien" To: "georg" Cc: "PHP General" Sent: Monday,

Re: [PHP] ODBC

2013-05-06 Thread David OBrien
On Mon, May 6, 2013 at 3:32 PM, georg wrote: > Hi, > > Id like to get ODBC connection to SQL from PHP going. Ive done that on XP, > but now Im switching > to Linux (Fedora). > > My impression in that the connecting part is per the DB designers > responsibility. Im usi

[PHP] ODBC

2013-05-06 Thread georg
Hi, Id like to get ODBC connection to SQL from PHP going. Ive done that on XP, but now Im switching to Linux (Fedora). My impression in that the connecting part is per the DB designers responsibility. Im using Mimer-SQL, but cant find any information on how to set up ODBC for that. Any advice

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-06 Thread Daevid Vincent
hen this caught my eye as we use both of these servers and any kind of automated module is preferred over manually re-writing pages: https://developers.google.com/speed/pagespeed/mod https://developers.google.com/speed/pagespeed/ngx thanks, I'll look into that as well. -- PHP Ge

Re: [PHP] generate onfly PDF

2013-05-05 Thread Bastien
g is there. >>>> >>>> Cheers, >>>> >>>> tedd >>> AFAIK fpdf needs zlib and gd extensions. >>> gd extension is almost everywhere enabled as extension, however i'm not sur >>> zlib is enabled on most of servers... >>> >>> What do you think about that ? >> I would think zlib is even more ubiquitous than gd; it's used all over >> the place. > > and what about TCPDF librairy ? > have you already use it ? > how are its performances ? > > I've been using dompdf for years. Does a good representation of the HTML as PDF Bastien > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: generate onfly PDF

2013-05-05 Thread Ashley Sheridan
Tim Behrendsen wrote: >I have had outstanding success with wkhtmltopdf: > >https://code.google.com/p/wkhtmltopdf/ > >It's a self-contained standalone program that you can call from PHP. It >uses a full-bodied HTML interpreter based on Webkit. Highly >recommended, I&

[PHP] Re: generate onfly PDF

2013-05-05 Thread Tim Behrendsen
I have had outstanding success with wkhtmltopdf: https://code.google.com/p/wkhtmltopdf/ It's a self-contained standalone program that you can call from PHP. It uses a full-bodied HTML interpreter based on Webkit. Highly recommended, I've been using it for years. It's open sour

Re: [PHP] generate onfly PDF

2013-05-05 Thread Rafnews
uitous than gd; it's used all over the place. and what about TCPDF librairy ? have you already use it ? how are its performances ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PECL-Haru and UTF-8

2013-05-05 Thread Puiu Hrenciuc
? Thank you, Puiu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate onfly PDF

2013-05-04 Thread tamouse mailing lists
/citw185/examples/pdf/ >> >> Everything is there. >> >> Cheers, >> >> tedd >> > AFAIK fpdf needs zlib and gd extensions. > gd extension is almost everywhere enabled as extension, however i'm not sur > zlib is enabled on most of servers... > > What do you think about that ? I would think zlib is even more ubiquitous than gd; it's used all over the place. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate onfly PDF

2013-05-04 Thread Jim Giner
r - do they provide it or not? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate onfly PDF

2013-05-04 Thread Rafnews
rl...@gmail.com http://sperling.com AFAIK fpdf needs zlib and gd extensions. gd extension is almost everywhere enabled as extension, however i'm not sur zlib is enabled on most of servers... What do you think about that ? Al. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] generate onfly PDF

2013-05-04 Thread Tedd Sperling
itw185/examples/pdf/ Everything is there. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate onfly PDF

2013-05-04 Thread Ashley Sheridan
ts a class that doesn't need any special server-side support. Its basic, but is pretty good. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] generate onfly PDF

2013-05-04 Thread Rafnews
r i'm searching a solution free and that i can supply with my web components. I created a component that should be able to generate PDF files quite often as service for user. thx Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Sebastian Krebs
2013/5/3 Daevid Vincent > > > -Original Message- > > From: Marco Behnke [mailto:ma...@behnke.biz] > > Sent: Friday, May 03, 2013 12:01 PM > > To: Daevid Vincent; php >> "php-general@lists.php.net" > > Subject: Re: [PHP] Need a to

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Marco Behnke
Am 03.05.2013 21:34, schrieb Daevid Vincent: -Original Message- From: Marco Behnke [mailto:ma...@behnke.biz] Sent: Friday, May 03, 2013 12:01 PM To: Daevid Vincent; php >> "php-general@lists.php.net" Subject: Re: [PHP] Need a tool to minimize HTML before storing in m

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Daevid Vincent
> -Original Message- > From: Marco Behnke [mailto:ma...@behnke.biz] > Sent: Friday, May 03, 2013 12:01 PM > To: Daevid Vincent; php >> "php-general@lists.php.net" > Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache > > If yo

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Marco Behnke
If you really have that much traffic, then memcache isn't your answer to caching. It is as slow as a fast database. You should use APC caching instead. APC will also handle a lot of bytecode caching. If you want to go with tidy and surf around the php issues you could optimize the single

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Daevid Vincent
Well we get about 30,000 page hits PER SECOND. So we have a template engine that generates a page using PHP/MySQL and populates it as everyone else does with the generic content. Then we store THAT rendered page in a cache (memcache pool as well as a local copy on each server). HOWEVER, there

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread ma...@behnke.biz
But why are you caching uncompiled php code? > Daevid Vincent hat am 2. Mai 2013 um 23:21 geschrieben: > > > While that may be true for most users, I see no reason that it should limit or > force me to a certain use case given that dynamic pages make up the vast > majority o

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-02 Thread Daevid Vincent
snag, it works like a champ. > -Original Message- > From: ma...@behnke.biz [mailto:ma...@behnke.biz] > Sent: Thursday, May 02, 2013 4:55 AM > To: Daevid Vincent; 'php-general General' > Subject: RE: [PHP] Need a tool to minimize HTML before storing in memecache >

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-02 Thread ma...@behnke.biz
This is because tidy is for optimizing HTML, not for optimizing PHP. > Daevid Vincent hat am 2. Mai 2013 um 02:20 geschrieben: > > > So I took the time to install Tidy extension and wedge it into my code. Now > there is one thing that is killing me and breaking all my pages. >

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-01 Thread Daevid Vincent
de-endtags' => true, 'drop-proprietary-attributes' => true, //'join-classes' => true, //'join-styles' => true, //'quote-marks' => true, 'fix-uri' => false, 'numeric-entities' => tru

Re: [PHP] [ask] convert unknown Korean's string to readable string

2013-05-01 Thread Richard Quadling
t;> > $string1 = '\uc548\ub155\ud558\uc138\uc694'; > >> > $string2 = preg_replace('/\\\u([0-9a-f]+)/', '&#x$1;', $string1); > >> > $string3 = html_entity_decode($string2, ENT_COMPAT, 'UTF-8'); > >> > echo >

Re: [PHP] [ask] convert unknown Korean's string to readable string

2013-04-30 Thread Morning Star
ring2, ENT_COMPAT, 'UTF-8'); >> > echo >> > 'Original : ', $string1, PHP_EOL, >> > 'Entities : ', $string2, PHP_EOL, >> > 'Decoded : ', $string3, PHP_EOL, >> > PHP_EOL; >> > ?> >> > >> &

Re: [PHP] [ask] convert unknown Korean's string to readable string

2013-04-30 Thread Richard Quadling
7;, '&#x$1;', $string1); > > $string3 = html_entity_decode($string2, ENT_COMPAT, 'UTF-8'); > > echo > > 'Original : ', $string1, PHP_EOL, > > 'Entities : ', $string2, PHP_EOL, > > 'Decoded : ', $string3, PHP_EOL, &

Re: [PHP] [ask] convert unknown Korean's string to readable string

2013-04-29 Thread Morning Star
inal : ', $string1, PHP_EOL, > 'Entities : ', $string2, PHP_EOL, > 'Decoded : ', $string3, PHP_EOL, > PHP_EOL; > ?> > > outputs (at least for me) ... > > 안녕하세요 > > Based upon > http://stackoverflow.com/questions/7274183/ph

[PHP] Re: IE 10 bug? Ignore this post - definitely OT

2013-04-26 Thread Jim Giner
definitely OT. Just realized that when I log into my ISP cpanel, the same thing happens. The "Windows Security" signin dialog appears, gets filled, click on Ok and bang - I'm looking at another appl window instead of the IE window that I just logged in to. We can all ignore t

Re: [PHP] IE 10 bug?

2013-04-26 Thread Matijn Woudt
On Wed, Apr 24, 2013 at 6:01 PM, Jim Giner wrote: > I know - it sounds OT, but listen. > > I have a form that has a "sign in " button which attempts to sent the user > to a form in a password-protected folder. In order to get there the user > must provide credentials. Once there the receiving sc

Re: [PHP] PHP compiler - HipHop performance

2013-04-26 Thread ma...@behnke.biz
Please provide your inputs so that I can decide to use HipHop. When I tried it I was amazed by the performance impact. Just create yourself a PHP file that does 100.000 calculations and compare the php execution vs. the native compiled one. That is awesome! The drawback is, that hiphop does not su

Re: [PHP] PHP compiler - HipHop performance

2013-04-25 Thread Daniel Fenn
vide your inputs so that I can decide to use HipHop. > > Thanks, > Norah Jones > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I looked into HipHop once, and I decided not to use it, I felt that

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-25 Thread Ken Kixmoeller
_nul = 1 >> php.ini:;suhosin.upload.max_**uploads = 25 >> php.ini:;suhosin.upload.**disallow_elf = 1 >> php.ini:;suhosin.upload.**disallow_binary = 0 >> php.ini:;suhosin.upload.**remove_binary = 0 >> php.ini:;suhosin.upload.**verification_script = >> php.ini:;suhosin.session.m

[PHP] 64bit php5.5.0beta3 on Windows

2013-04-25 Thread Jan Vávra
HP_INT_MAX."\n"; 4 2147483647 This is weird. I've expected working filesize and values 8, 2 ^63. Jan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Load testing an app

2013-04-24 Thread Andrew Ballard
On Apr 24, 2013 9:46 PM, "tamouse mailing lists" wrote: > > On Tue, Apr 23, 2013 at 8:04 AM, Andrew Ballard wrote: > > On Tue, Apr 23, 2013 at 2:29 AM, Adam Richardson wrote: > >> On Mon, Apr 22, 2013 at 10:41 PM, Andrew Ballard wrote: > >>> The other developer in our office spent some time pro

Re: [PHP] Load testing an app

2013-04-24 Thread tamouse mailing lists
ng the netsh calls so they're not part of your web application's stack, and make them an asynchronous part? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
_length = 128 > php.ini:; Undocumented: Controls if suhosin coredumps when the optional > suhosin patch > php.ini:;suhosin.coredump = Off > php.ini:;suhosin.protectkey = 1 > php.ini:; Controls if suhosin loads in stealth mode when it is not the only > php.ini:;suhosin.stealth = 1

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Jim Lucas
uhosin.stealth = 1 php.ini:; Controls if suhosin's ini directives are changeable per directory php.ini:;suhosin.perdir = "0" Ken On Wed, Apr 24, 2013 at 5:06 PM, Jim Lucas wrote: On 04/24/2013 02:40 PM, Ken Kixmoeller wrote: Thanks so much. Yes, we found that because PHP threw a

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
Thanks, Jim --- Is this different from the "max_input_vars" discussion above? (from David OBrien) Ken On Wed, Apr 24, 2013 at 5:06 PM, Jim Lucas wrote: > On 04/24/2013 02:40 PM, Ken Kixmoeller wrote: > >> Thanks so much. Yes, we found that because PHP threw an e

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Jim Lucas
On 04/24/2013 02:40 PM, Ken Kixmoeller wrote: Thanks so much. Yes, we found that because PHP threw an error that said that explicitly. A bit of research led us to add a line to php.ini to set the "max_input_vars" to a higher level. At first, that appeared to fix it (on the developme

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
Thanks so much. Yes, we found that because PHP threw an error that said that explicitly. A bit of research led us to add a line to php.ini to set the "max_input_vars" to a higher level. At first, that appeared to fix it (on the development machine). The appearance is wrong; it is still

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread David OBrien
. >> >> We have done extensive research and see that upgrading from php 5.1.6-27 >> to >> 5.1.6-39 is the thing that caused it to break. All other issues (Apache, >> PHP and MySQL configuration and Versions) have been methodically ruled >> out. >> >> >

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
>From the link: "The php_register_variable_ex function in php_variables.c in PHP 5.3.9 allows remote attackers to execute arbitrary code via a request containing a large number of variables, related to improper handling of array variables. NOTE: this vulnerability exists because of an i

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread David OBrien
On Wed, Apr 24, 2013 at 5:09 PM, Ken Kixmoeller wrote: > Hey - -- > > I have a huge screen -- to make it simple for the user, it does 100s of > calls to MySQL and has 1,000s (literally) of POST variables. > > We have done extensive research and see that upgrading from php 5.1.

[PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
Hey - -- I have a huge screen -- to make it simple for the user, it does 100s of calls to MySQL and has 1,000s (literally) of POST variables. We have done extensive research and see that upgrading from php 5.1.6-27 to 5.1.6-39 is the thing that caused it to break. All other issues (Apache, PHP

[PHP] IE 10 bug?

2013-04-24 Thread Jim Giner
screen it shows some other application window, probably the next one in z-order sequence.(?) It looks like my app crashed or something since my IE is now behind the other appls sometimes. Has anyone else seen this, and if so, how does one counter it? -- PHP General Mailing List (http://www.ph

Re: [PHP] mysql_connect noob question

2013-04-24 Thread Richard Quadling
Completely different function call(). mysql_connect() - the port is part of the host. *server* The MySQL server. It can also include a port number. e.g. "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for the localhost. If the PHP directive mysql.defa

Re: [PHP] A little confused

2013-04-23 Thread Marco Behnke
Am 23.04.13 12:07, schrieb Chris Knipe: > Hi All, > > $_SESSION['ExpiryDate'] = "2013-04-23"; > echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y"); > > Required Result: Mon, the 23rd of Apr 2013 > > I get however:

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Jim Giner
tirade I received offline from this guy. What a putz! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Glob Design Info
27;re not listening -- you are total waste of time for anyone trying to help. Welcome to my ignore file. tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Load testing an app

2013-04-23 Thread Andrew Ballard
siege-home/ Hahahaha. This system AND the DHCP both USED to run on linux boxes. This task was much simpler then, because the DHCP table was a text file that we parsed and updated directly from PHP. It was decided to standardize on a single platform to make system maintenance and security management

<    8   9   10   11   12   13   14   15   16   17   >