On Mon, Jul 15, 2013 at 4:21 AM, Adam Nicholls inkysp...@gmail.com wrote:
Hi Andrew
Thanks for this.
But I'm still getting errors. I think I need to explain a bit more.
Unfortunately there isn't a PHP API for this application I'm trying to
interact with, my goal really is to be able
On Sun, Jul 14, 2013 at 3:18 PM, Adam Nicholls inkysp...@gmail.com wrote:
Richard - I've tried that I get an error about it not being defined as
property of the object.
Andrew - do you mean try using the method Richard has shown?
Cheers
Adam.
On 13 July 2013 17:11, Richard Quadling
the values of the
variables to the value of each field in a record within a Recordset.
Andrew
.
Is there anything I can do to fix this or is it a server issue that you
must fix?
Thanks, Al.
Are you using sessions for persistence? If so, is your session storage in a
location that is shared between servers behind the load balancer? (Shared
network path, database, etc.)
Andrew
I've found database session storage requires extra diligence in error
handling. When I see that error at 0 it is usually because something blew
up either before the session handler was ready or after it was torn down.
Andrew
On May 17, 2013 2:42 PM, Matijn Woudt tijn...@gmail.com wrote:
On Fri
twice and option #2
iterates the array three times. If you eventually need to add
additional functions to clean the input, they would add even more
iterations. This approach only iterates once.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On Apr 24, 2013 9:46 PM, tamouse mailing lists tamouse.li...@gmail.com
wrote:
On Tue, Apr 23, 2013 at 8:04 AM, Andrew Ballard aball...@gmail.com
wrote:
On Tue, Apr 23, 2013 at 2:29 AM, Adam Richardson simples...@gmail.com
wrote:
On Mon, Apr 22, 2013 at 10:41 PM, Andrew Ballard aball
On Tue, Apr 23, 2013 at 2:29 AM, Adam Richardson simples...@gmail.com wrote:
On Mon, Apr 22, 2013 at 10:41 PM, Andrew Ballard aball...@gmail.com wrote:
The other developer in our office spent some time profiling the site with
xdebug and found that an exec() call to netsh used on a couple
, and the database is SQL
Server 2008 (previously 2000).
So, any ideas we can try?
Andrew
Correct. Just to expand on that, a browser will not send the hash fragment
part of a URL with the request. If you ever receive that part at the web
server, that's a pretty good sign the request came from a robot.
Andrew
On Apr 21, 2013 3:29 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote
On Mar 16, 2013 6:14 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2013-03-15 at 22:32 -0400, Andrew Ballard wrote:
Guess regex are the only useful solution here. When you consider to use
built-in functions, just remember, that for example '0xAF' is an
integer
too
On Sat, Mar 16, 2013 at 12:21 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Sat, 2013-03-16 at 11:46 -0400, Andrew Ballard wrote:
On Mar 16, 2013 6:14 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2013-03-15 at 22:32 -0400, Andrew Ballard wrote:
Guess regex
I suppose one could try something like this:
if (is_string($val) $val === (string)(int)$val)
If $val is an integer masquerading as a string, it should be identical to
the original string when cast back to a string, shouldn't it? (I can't try
it right now.)
Andrew
On Mar 15, 2013 9:54 PM, Sebastian Krebs krebs@gmail.com wrote:
2013/3/16 Andrew Ballard aball...@gmail.com
I suppose one could try something like this:
if (is_string($val) $val === (string)(int)$val)
If $val is an integer masquerading as a string, it should be identical
where I can test it
right now. )
Regexes have problems with more than 9 digits for 32-bit ints. I guess to
some degree it depends on how likely you are to experience values that
large.
Andrew
On Sat, Nov 17, 2012 at 4:13 PM, Sebastian Krebs krebs@gmail.com wrote:
2012/11/17 Andrew Ballard aball...@gmail.com
On Nov 16, 2012 10:24 PM, tamouse mailing lists tamouse.li...@gmail.com
wrote:
On Fri, Nov 16, 2012 at 12:41 PM, Sebastian Krebs krebs@gmail.com
wrote:
Beside
solution?
Without knowing the intent of the code, it could be a headache to maintain.
Just my 2 cents.
Andrew
- does this depend on using third party cookies between your
site and PayPal? If so, do you have them disabled in Firefox?
Andrew
out to be the simplest solution that's not even related
directly to the programming. Thanks, Andrew for the prompting!
However if this happened on a punter's computer the same would happen - so
is there a way of coding the removal of third party cookies to avoid this
problem?
As far as I know
installation. (Threaded, non-threaded, etc.)
Andrew
.) and they all displayed error messages using
the code you posted above.
The server is running PHP 5.2.12, and this one can only connect to our
SQL Server 2000 instance, so I can't test it against SQL 2008.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
for PHP developed by Microsoft. The mssql library has
been phased out.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, mailto), which would imply that
your middle example is NOT an absolute path.
http://tools.ietf.org/html/rfc3986#section-4.3
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with unserialize.)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
();
?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are still
sending output from the first loop before you call session_start() in
the second loop. To be absolutely correct, you'd have to remove those
echo statements I added for debugging, store all of your timings in
separate variables and then output them at the end of the script.
Andrew
--
PHP
to eliminate most of the leaks that I've seen. YMMV.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
meant to use
a string instead of a constant, but this will also generate a notice
to let you know that the code should be fixed.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can test it in.
However, I think SimpleXML has some features that make this easier.
Take a look at this:
http://www.php.net/manual/en/simplexmlelement.registerxpathnamespace.php
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(in which
case I believe your longitude above should be negative rather than
positive)?
http://maps.google.com/maps?q=42.57,84.3320hl=ensll=42.57,-84.332sspn=0.023008,0.038581t=mz=8
http://maps.google.com/maps?q=42.57,-84.3320hl=ensll=42.554092,-84.324188sspn=0.736459,1.234589t=mz=15
Andrew
That's the spirit! Truly world-class education!
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= fgetcsv($csvFilePointer)) {
// ... process the row
}
?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
And again to the list, since for some reason Reply-to-all did not do
as intended this time.
-- Forwarded message --
From: Andrew Ballard aball...@gmail.com
Date: Fri, Mar 9, 2012 at 12:53 PM
Subject: Re: [PHP] Function mktime() documentation question
To: Tedd Sperling tedd.sperl
Hi Andy,
Have you tried running it with valgrind? (See [1] for tips).
Otherwise, you might have more luck at php-internals mailing list,
since it is related to PHP development if you intend to fix either PHP
or the plugin.
Matijn
[1] https://bugs.php.net/bugs-getting-valgrind-log.php
Thanks
We've got a problem with PHP 5.3.8 and a third party (open source)
library (WSo2 SOAP).
At some point during the request to the PHP script, some structures seem
to be getting corrupted causing PHP to crash.
Depending on the code in the PHP script, it's either crashing during in
a
a large amount of other PHP classes
which it calls which obviously aren't prefixed with '\'
Is there a way i can tell PHP any class name that get's instanciated
with 'Sabre_' should resolve to '\Sabre' ?
Many thanks
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
;
/'
onmouseout=this.innerHTML='an angel'
an angel/span
YMMV
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to set both flags.
header('Set-Cookie: cookie_name=value; secure; HttpOnly');
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
know Gmail has both these options, and the client I use
(Evolution) does and is available for a variety of different platforms.
I don't see a Reply-to-List in Gmail, and haven't seen it any any of
the other mail clients I have used either. Reply-All is a pretty
standard option, though.
Andrew
the temporary digits table
DROP TABLE Digits
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
' LIKE '%article%'
would return a match even though the case is different.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. As for a workaround for
versions before that, I found this pretty quickly through Google:
http://stackoverflow.com/questions/36877/how-do-you-set-up-use-httponly-cookies-in-php
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Jamie
It should be pretty straight foward. Your fields would have name such as these:
name=addresses[0][id]
name=addresses[0][address1]
name=addresses[0][address2]
name=addresses[0][city]
name=addresses[0][state]
name=addresses[0][zip]
And so on.
Andrew
--
PHP General Mailing List (http
in the order they appear on
the form. If the numeric index is important, it's better to provide it
explicitly.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
else
like HTTP).
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think you are confusing scope visibility level of the variable within
method and the class.
Variable within the method is going to 1 because it was declare within the
test method and there no link to the one declared outside the test method.
The second case is referencing the varible of the
of input
on the server regardless of anything you are doing to make things
easier in the client. There are ways around using date selectors.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, regardless of the URI scheme.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is anyone else out there in the same boat?
Actually we have found the complete opposite so there might be some
people who are in the same boat as you but certainly not all.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are such a bit
performance boost. The corollary to that, of course, is that more files =
more IO and therefore more of a performance hit.
I'd just organise them how you think makes most sense and then
optimize if you run into issues.
Kind regards
Andrew M
--
PHP General Mailing List (http
, it sounded more like an interface than an abstract base class.
The concrete class doesn't have to implement handlers for all of the
commands, though, at a minimum, onStart() would be pretty much
essential.
[snip]
And then it didn't. :-/
Andrew
--
PHP General Mailing List (http://www.php.net
/No session found';
$_SESSION['name'] = 'My session';
}
phpinfo();
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are you sure session.cookie_secure is not turned on somewhere?
Andrew
--
PHP General Mailing List (http
]'.
The callback seems to be the only way I could get the regex to work.
How about preg_replace_callback()?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Oct 15, 2010 at 11:07 AM, Richard Quadling rquadl...@gmail.com wrote:
On 15 October 2010 15:45, Andrew Ballard aball...@gmail.com wrote:
On Fri, Oct 15, 2010 at 5:52 AM, Richard Quadling rquadl...@gmail.com
wrote:
On 15 October 2010 10:16, Ford, Mike m.f...@leedsmet.ac.uk wrote
accept your format directly,
unless you implement __toString I believe (not tested)
IMO, that would be a truly useful feature to add if you were extending
DateTime anyway.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Oct 1, 2010 at 6:44 AM, David Harkness
davi...@highgearmedia.com wrote:
While we don't use any 5.3 specific features such as namespaces yet, we set
up our continuous integration system to use Doxygen. It runs significantly
faster than phpDocumentor, though we put zero effort into tuning
pretty well guarantee
that the only objects created are the ones you intended.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
library to get data
from SQL Server. Since you are already running on Windows, Microsoft's
SQL Server Driver for PHP should be a great replacement for you. It
returns values as the correct native PHP type rather than wrapped
inside those COM variants.
Andrew
--
PHP General Mailing List (http
variables.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a redirect or
a manual form POST. If the values are getting into $_SESSION correctly
within this page, your issue is not related to the database at all.
Am I misunderstanding you?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is less than the session lifetime (maximum
duration of inactivity for that session). That way, each individual
user could have his or her own session timeout period if needed.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for whom the value will be obscure will be the humans
who actually try to read the HTML source code itself. Neither web
browsers nor harvesting scripts won't have any trouble reading it.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Sep 9, 2010 at 11:39 AM, Jack jacklistm...@gmail.com wrote:
-Original Message-
From: Andrew Ballard [mailto:aball...@gmail.com]
The only people for whom the value will be obscure will be the humans who
actually try to read the HTML source code itself. Neither web browsers
any of
the suggestions that have been discussed to determine how frequently
the featured items list is reseeded to help make caching practical.
Just a thought.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Aug 20, 2010 at 9:31 AM, Colin Guthrie gm...@colin.guthr.ie wrote:
'Twas brillig, and Andrew Ballard at 20/08/10 14:24 did gyre and gimble:
Would it work to return a list of some limited number of randomly
ordered featured listings/items on the page, while leaving the full
list ordered
On Fri, Aug 20, 2010 at 10:19 AM, Colin Guthrie gm...@colin.guthr.ie wrote:
The customer is always right - in his own mind (even if not in his RIGHT
mind) - after all!
Corrected that for you. ;-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does what your posting contain any content like '' '' my guess is
that you need to access the content using the filter_ functions.
Andrew
--
PHP General Mailing List (http://www.php.net
with that.
It seems variable variables can produce variables that do not follow
the same naming limitations as normal variables.
It would seem so. If eval() works, can you rearrange the strings a
little to make use of parse_str() and avoid the use of eval()?
Andrew
--
PHP General Mailing List
black;
}
table.my_table table,
table.my_table table th,
table.my_table table td
{
border: none;
}
As is often the case with CSS, that's a good bit more text to
accomplish the same effect as an older, smaller attribute. :-)
Andrew
chunk of an
Active Directory tree (just users and groups, not the full list of
attributes) into this pattern just to test the concept, and I found
that in that case the size of the transitive closure table did not get
out of hand.
Andrew
--
PHP General Mailing List (http://www.php.net
we settled on these items, things have been pretty stable.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
could try loading the values in that column into
an array in PHP and then time iterating the array to calculate the
Levenshtein distances for each value to see how it compares.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
freetds.conf file, though.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
');
var_dump($conn);
?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:\Program Files\EasyPHP 3.0\conf_files
Call this in a script running under your web server:
http://www.php.net/phpinfo
Alternatively, you could also look at these:
http://www.php.net/php-ini-loaded-file
http://www.php.net/php-ini-scanned-files
Andrew
--
PHP General Mailing List (http://www.php.net
of the
page. I also got 404 responses to the link that Richard posted, until
after viewing the root index page. Strange.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but still less than 100K) , and the default memory limit in
PHP is 128M. I'm not sure what else it could be, though, as I don't
see any limitations on file_get_contents() discussed in the manual.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On Tue, Jun 29, 2010 at 4:39 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Tue, 2010-06-29 at 16:37 -0400, Andrew Ballard wrote:
On Tue, Jun 29, 2010 at 4:21 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
Have you looked at the memory settings in php.ini?
I
.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. Just guessing, really.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Jun 28, 2010 at 10:04 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Mon, 2010-06-28 at 09:58 -0400, Andrew Ballard wrote:
On Mon, Jun 28, 2010 at 8:53 AM, Richard Quadling rquadl...@gmail.com wrote:
On 28 June 2010 13:44, Brandon Rampersad brandon.add...@gmail.com wrote
as you suggeted. However, given
that the OP stated he would like to select hiddenpanel only if there
is a corresponding value in DB_HIDDENPANELS, the INNER JOIN will do
that at the database query level, so an if (...) then test in PHP
isn't really necessary.
Andrew
--
PHP General Mailing List (http
On Fri, Jun 25, 2010 at 5:35 AM, Richard Quadling rquadl...@gmail.com wrote:
And the fact that a browser will transmit input type=password as
plain text isn't a security issue?
That's what SSL is for.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
. There are also the older
mssql and the newer PDO_MSSQL libraries, or even odbc or PDO_ODBC that
will work OK in many cases as well. Any of these are much simpler to
work with than COM variants in PHP.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
');
var_dump($x);
// int(-1062731775)
var_dump(long2ip($x));
// string(11) 192.168.0.1
var_dump(long2ip(abs($x)));
// string(13) 63.87.255.255
?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Jun 23, 2010 at 10:39 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Wed, 2010-06-23 at 10:35 -0400, Andrew Ballard wrote:
On Wed, Jun 23, 2010 at 6:01 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
That's what I'd use. You may also have to wrap it inside an abs
development with SQL Server, so I often just pass the
value as a 4-byte integer (or sometimes even in dotted notation) to a
stored procedure and then let T-SQL do the work.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
requests, this might help:
http://www.php.net/manual/en/function.ignore-user-abort.php
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of 20174
or a size of 'jpg'.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
';
$dom = new DOMDocument();
$dom-loadXML($html);
echo $dom-saveHTML();
?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or force uses to
add JavaScript to a separate file.
What do you think?
__
Raymond Irving
You didn't tell it to open the contents as HTML; you told it to open
the contents as XML.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, May 14, 2010 at 8:59 AM, Andrew Ballard aball...@gmail.com wrote:
This also has the side effect that the decision of whether to open a
link in the current window or a new window/tab belongs to the viewer
instead of the author, which some argue is exactly as it should be.
Andrew
to open a
link in the current window or a new window/tab belongs to the viewer
instead of the author, which some argue is exactly as it should be.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the nodes from the
rss feed into your aggregated document.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
document, she would need to use importNode()
instead of appendChild().
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not match the current session_id. That
ensures that users can have no more than one active session at a time.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)-childNodes-item(0)-nodeValue;
$item_desc=$x-item($i)-getElementsByTagName('description')
-item(0)-childNodes-item(0)-nodeValue;
echo (pa href=' . $item_link . ' . $item_title . /a);
echo (br /);
echo ($item_desc . /p);
}
}
?
Andrew
--
PHP General
warning message:
br /
bWarning/b: Deadbeat script. Your code does not do anything
useful in bteddscript.php/b on line b1/bbr /
:-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 1494 matches
Mail list logo