Hi all,
I was upgrading php from 5.6 to 5.11 and came across one odd issue. Hope
someone could point out what is the problem.
Following code demonstrates it:
$xml = 'encoding="UTF-8"?>';
echo xmlrpc_decode($xml);
I suspect to get "" as a result, but for some reason < and > are
cut
On Wed, 3 Mar 2010 08:21:06 -0600, halip...@gmail.com (haliphax) wrote:
>> On Fri, Feb 26, 2010 at 11:01 PM, wrote:
>> > while ($i < $j) { $b[$i] = $a[$i++]; } B.
>> >
>> > You get $b[0] = $a[1], and so on (as you would expect).
>>
>
>Wouldn't that be $b[0] = $a[0], with the value of $i
Haig Davis wrote:
> Hi,
>
> I apologise if this is not strictly php related. What Open Source Shopping
> cart system do you recommend between osCommerce and Zen-Cart for ease of use
> and a php guy with dangerously little javascript knowledge?
>
> This is not for a massive shopping site, simply a
At 11:29 AM -0800 3/3/10, Haig Davis wrote:
Hi,
I apologise if this is not strictly php related. What Open Source Shopping
cart system do you recommend between osCommerce and Zen-Cart for ease of use
and a php guy with dangerously little javascript knowledge?
This is not for a massive shopping
On Wed, 2010-03-03 at 14:46 -0500, Robert Cummings wrote:
> Haig Davis wrote:
> > Hi,
> >
> > I apologise if this is not strictly php related. What Open Source Shopping
> > cart system do you recommend between osCommerce and Zen-Cart for ease of use
> > and a php guy with dangerously little javas
Currently it's mostly procedural with some components that are OO. I
suspect most of the memory sinks are large arrays (we have a lot of
them), but I am not certain of that. Hence my interest in more accurate
investigation tools.
--Larry Garfield
dsiemba...@gmail.com wrote:
couple questions
couple questions Larry is this application composed of classes or
straight up no holes barred procedural code?
la...@garfieldtech.com wrote:
That's not really what I'm after. Let me try an example:
function foo($id) {
static $foos = array();
if (empty($foos[$id]) {
$foos[$id] = load_
Jay Blanchard wrote:
[snip]
In certain circumstances controlled by my users, I'd like to redirect
my users to another site, a third party whom we have contracted with.
The second site uses basic authentication with a simple username and
password. Can I write my PHP code so my users do not have
[snip]
In certain circumstances controlled by my users, I'd like to redirect
my users to another site, a third party whom we have contracted with.
The second site uses basic authentication with a simple username and
password. Can I write my PHP code so my users do not have to login
(or even kno
global $fooSize = 0;
function foo($id) {
global $fooSize;
if (empty($foos($id)) {
$b = get_memory_usage(true);
$foos[$id] = load_foo($id);
$fooSize+= $b - get_memory_usage(true);
}
...
}
On Wed, Mar 3, 2010 at 8:16 PM, la...@garfieldtech.com
wrote:
> That's not really what I'm after.
depends on how that site does its authentication...
if it's a form, it may need an extra setting to allow you to go to a
specific page on that site after authentication.
On Wed, Mar 3, 2010 at 8:25 PM, Bill Rausch wrote:
>
>
> Hi there,
>
> In certain circumstances controlled by my users, I'd li
Haig Davis wrote:
Hi,
I apologise if this is not strictly php related. What Open Source Shopping
cart system do you recommend between osCommerce and Zen-Cart for ease of use
and a php guy with dangerously little javascript knowledge?
This is not for a massive shopping site, simply a cart to pow
Hi,
I apologise if this is not strictly php related. What Open Source Shopping
cart system do you recommend between osCommerce and Zen-Cart for ease of use
and a php guy with dangerously little javascript knowledge?
This is not for a massive shopping site, simply a cart to power a
subscription si
Hi there,
In certain circumstances controlled by my users, I'd like to redirect
my users to another site, a third party whom we have contracted with.
The second site uses basic authentication with a simple username and
password. Can I write my PHP code so my users do not have to login
(or e
a good tool for mapping mysql databases is mysql-workbench.
the real question is how much normalization is normal?
http://wb.mysql.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That's not really what I'm after. Let me try an example:
function foo($id) {
static $foos = array();
if (empty($foos[$id]) {
$foos[$id] = load_foo($id);
}
return $foos[$id];
}
When load_foo() is slow (e.g., lots of DB traffic or remote-server calls
or whatever), such caching can h
function check_memory_usage(&$memory)
{
$memory[] = memory_get_usage();
return $memory;
}
something like this?
you can put it wherever you like and returns an array for further
processing. You could optionally add a second argument to set the index
to a name and check if the name exists
On 3 March 2010 15:49, la...@garfieldtech.com wrote:
> Yep, I'm familiar with XDebug and KCacheGrind. As you say, though, it
> doens't (as far as I am aware) offer the particular data that I'm after.
> We've already got cachegrind gurus working on the code who know how to use
> it better than I
Yep, I'm familiar with XDebug and KCacheGrind. As you say, though, it
doens't (as far as I am aware) offer the particular data that I'm after.
We've already got cachegrind gurus working on the code who know how to
use it better than I do. :-) What I'm looking for is "see this big
cache objec
and its that easy!
it took me a minute to figure out; but all I had to do was:
if (is_resource($process)) {
for ($i = 0; $i < sizeof($src_ip); $i++) {
fwrite($pipes[0], "$sig_desc[$i],$src_ip[$i],$dst_ip[$i]\n");
}
fclose($pipes[0]);
fclose($pipes[1]);
proc_close($pr
> On Fri, Feb 26, 2010 at 11:01 PM, wrote:
> > while ($i < $j) { $b[$i] = $a[$i++]; } B.
> >
> > You get $b[0] = $a[1], and so on (as you would expect).
>
Wouldn't that be $b[0] = $a[0], with the value of $i being 1 *after* the
statement was finished executing? You used a post-decrement
On 03/03/2010 13:01, Paul Halliday wrote:
> I need to pipe some data to an external application.
>
> I have this:
>
> while ($row = mysql_fetch_array($theData[0])) {
> $src_ip[] = $row[0];
> $dst_ip[] = $row[1];
> $sig_desc[] = $row[2];
>
> $rec ++;
> if ( $rec == $recCount )
I work by example :)
I can't find enough of an example to get me going with this.
I have this:
$glow = popen('afterglow.pl -c color.properties -s -e 3 -p 1 -l 2000 |
neato -Tpng -o /usr/local/www/test.png','r');
how do I feed my array to that?
Thanks.
On Wed, Mar 3, 2010 at 9:04 AM, Richard Q
On Wed, 2010-03-03 at 13:04 +, Richard Quadling wrote:
> On 3 March 2010 13:01, Paul Halliday wrote:
> > I need to pipe some data to an external application.
> >
> > I have this:
> >
> > while ($row = mysql_fetch_array($theData[0])) {
> >$src_ip[] = $row[0];
> >$dst_ip[] = $row[1];
> >
On 3 March 2010 13:01, Paul Halliday wrote:
> I need to pipe some data to an external application.
>
> I have this:
>
> while ($row = mysql_fetch_array($theData[0])) {
> $src_ip[] = $row[0];
> $dst_ip[] = $row[1];
> $sig_desc[] = $row[2];
>
> $rec ++;
> if ( $rec == $recCount ) {
>
I need to pipe some data to an external application.
I have this:
while ($row = mysql_fetch_array($theData[0])) {
$src_ip[] = $row[0];
$dst_ip[] = $row[1];
$sig_desc[] = $row[2];
$rec ++;
if ( $rec == $recCount ) {
break;
}
}
for ($i = 0; $i < sizeof($src_ip)
Michael A. Peters wrote:
Michael A. Peters wrote:
Michael A. Peters wrote:
*snip*
Is there an easy way around this? IE a php class/function that
understands SVG w/ xlink and can replace the use tags with the
polygons they refer to? If not, I'll have to try to write one, but
I'd rather not .
ON Linux I have kcacheGrind setup with Xdebug and I find it is a nice
little thing to have. It won't tell you the memory consumed but it will
find cycles and display object maps. if you have Kcachegrind it is
likely you have valgrind installed.
http://www2.mandriva.com/
http://valgrind.org/
htt
Michael A. Peters wrote:
Michael A. Peters wrote:
*snip*
Is there an easy way around this? IE a php class/function that
understands SVG w/ xlink and can replace the use tags with the
polygons they refer to? If not, I'll have to try to write one, but I'd
rather not ...
I just did, haven't t
On Wed, Mar 3, 2010 at 07:28, Sascha Wojewsky wrote:
> thank you for your answer,
>
>> If you want server-unique session ids, use session_name() before
>> session_start()..?
>
> i cannot use session_name, because i've to regenarete a session id by
> permanent login.
> i'm using session_regenerate_
Michael A. Peters wrote:
*snip*
Is there an easy way around this? IE a php class/function that
understands SVG w/ xlink and can replace the use tags with the polygons
they refer to? If not, I'll have to try to write one, but I'd rather not
...
I just did, haven't tested yet, but this may wo
I'm moving all of my dynamic image generation to svg.
Not only does it look better, but it is less resource intensive on my
server allowing me to generate the svg on demand instead of
pre-generating (via cron) twice a month like I had to do with gd dynamic
generation.
However, some browsers *
32 matches
Mail list logo