Re: [PHP] COM - Assigning to method.

2013-07-15 Thread Andrew Ballard
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

Re: [PHP] COM - Assigning to method.

2013-07-14 Thread Andrew Ballard
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

Re: [PHP] COM - Assigning to method.

2013-07-12 Thread Andrew Ballard
the values of the variables to the value of each field in a record within a Recordset. Andrew

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Andrew Ballard
. 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

Re: [PHP] Saving session to database

2013-05-17 Thread Andrew Ballard
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

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

2013-05-08 Thread Andrew Ballard
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

Re: [PHP] Load testing an app

2013-04-24 Thread Andrew Ballard
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

Re: [PHP] Load testing an app

2013-04-23 Thread Andrew Ballard
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

[PHP] Load testing an app

2013-04-22 Thread Andrew Ballard
, and the database is SQL Server 2008 (previously 2000). So, any ideas we can try? Andrew

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread Andrew Ballard
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

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Andrew Ballard
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

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Andrew Ballard
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

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Andrew Ballard
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

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Andrew Ballard
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

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Andrew Ballard
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

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Andrew Ballard
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

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Andrew Ballard
solution? Without knowing the intent of the code, it could be a headache to maintain. Just my 2 cents. Andrew

Re: [PHP] Session data lost in Firefox

2012-10-26 Thread Andrew Ballard
- does this depend on using third party cookies between your site and PayPal? If so, do you have them disabled in Firefox? Andrew

Re: [PHP] Session data lost in Firefox

2012-10-26 Thread Andrew Ballard
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

RE: [PHP] MS SQL server connection problem.

2012-09-05 Thread Andrew Ballard
installation. (Threaded, non-threaded, etc.) Andrew

Re: [PHP] Help with MSSQL and Stored Procs

2012-08-29 Thread Andrew Ballard
.) 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

Re: [PHP] MSSQL Stored Proc

2012-08-28 Thread Andrew Ballard
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

Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-19 Thread Andrew Ballard
, 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

Re: [PHP] Two ways to obtain an object property

2012-08-15 Thread Andrew Ballard
with unserialize.) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP session variables

2012-08-15 Thread Andrew Ballard
(); ? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP session variables

2012-08-15 Thread Andrew Ballard
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

Re: [PHP] Creating drop-down menus

2012-07-17 Thread Andrew Ballard
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

Re: [PHP] Unexpected Notice message

2012-07-05 Thread Andrew Ballard
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

Re: [PHP] Simple XML, (x)html, and xpath

2012-05-25 Thread Andrew Ballard
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

Re: [PHP] Sunset/Sunrise

2012-03-20 Thread Andrew Ballard
(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

Re: [PHP] Sunset/Sunrise

2012-03-20 Thread Andrew Ballard
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

Re: [PHP] fgetcsv doesn't return an array?

2012-03-15 Thread Andrew Ballard
= fgetcsv($csvFilePointer)) { // ... process the row } ? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: [PHP] Function mktime() documentation question

2012-03-09 Thread Andrew Ballard
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

RE: [PHP] debugging PHP memory corruption

2012-01-05 Thread Andrew Morum
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

[PHP] debugging PHP memory corruption

2012-01-04 Thread Andrew Morum
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

[PHP] Namespaced code with SabreDAV

2011-10-06 Thread Andrew Mason
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

Re: [PHP] innerHTML triple quotes issue

2011-09-15 Thread Andrew Ballard
; /' 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

Re: [PHP] Secure vs httpOnly cookie flag: is one better?

2011-08-16 Thread Andrew Ballard
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

Re: Fwd: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Andrew Ballard
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

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Andrew Ballard
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

Re: [PHP] Struggling with MySQL query

2011-08-09 Thread Andrew Ballard
' 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

Re: [PHP] PHP Security: Best Practices

2011-08-08 Thread Andrew Ballard
. 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

Re: [PHP] Complex (or not so) array data form submission?

2011-08-04 Thread Andrew Ballard
. 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

Re: [PHP] Complex (or not so) array data form submission?

2011-08-04 Thread Andrew Ballard
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

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Andrew Ballard
else like HTTP). Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] static variables inside static methods

2011-07-06 Thread Andrew Williams
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

Re: [PHP] Re: Date validation

2011-05-23 Thread Andrew Ballard
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

Re: [PHP] PHP intreprets trailing slashes incorrectly?

2011-05-20 Thread Andrew Ballard
, regardless of the URI scheme. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is 5.3.5 really that much slower than 5.2?

2011-03-06 Thread Andrew Mason
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

Re: [PHP] Disk IO performance

2010-11-28 Thread Andrew Mason
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

Re: [PHP] Implementing optional methods in a concrete class, but calling them from an abstract class.

2010-11-01 Thread Andrew Ballard
, 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

Re: [PHP] Sessions only work in SSL

2010-10-19 Thread Andrew Ballard
/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

Re: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Andrew Ballard
]'. 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

Re: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Andrew Ballard
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

Re: [PHP] Casting from parent class to child

2010-10-08 Thread Andrew Ballard
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

Re: [PHP] Re: Which PHP 5.3 documentation generators have you found?

2010-09-30 Thread Andrew Mason
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

Re: [PHP] Database Administration

2010-09-24 Thread Andrew Ballard
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

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Andrew Ballard
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

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Andrew Ballard
variables. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Andrew Ballard
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

Re: [PHP] Adjusting Session Times

2010-09-14 Thread Andrew Ballard
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

Re: [PHP] Show text without converting to html

2010-09-09 Thread Andrew Ballard
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

Re: [PHP] Show text without converting to html

2010-09-09 Thread Andrew Ballard
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

Re: [PHP] Re: Dear Lazy Web: Pseudo Randomisation Strategies on Listing Websites

2010-08-20 Thread Andrew Ballard
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

Re: [PHP] Re: Dear Lazy Web: Pseudo Randomisation Strategies on Listing Websites

2010-08-20 Thread Andrew Ballard
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

Re: [PHP] Re: Dear Lazy Web: Pseudo Randomisation Strategies on Listing Websites

2010-08-20 Thread Andrew Ballard
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

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Andrew Mason
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

Re: [PHP] Variable variables into an array.

2010-08-10 Thread Andrew Ballard
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

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Andrew Ballard
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

Re: [PHP] Question about SQL and Graph nodel trees

2010-07-21 Thread Andrew Ballard
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

Re: [PHP] access violation

2010-07-19 Thread Andrew Ballard
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

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-19 Thread Andrew Ballard
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

Re: [PHP] ldap_search filter filter?

2010-07-16 Thread Andrew Ballard
Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML parser

2010-07-13 Thread Andrew Ballard
. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSQL failing.

2010-07-09 Thread Andrew Ballard
freetds.conf file, though. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSQL failing.

2010-07-08 Thread Andrew Ballard
'); var_dump($conn); ? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() + localhost

2010-07-01 Thread Andrew Ballard
:\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

Re: [PHP] PHP QPay

2010-06-29 Thread Andrew Ballard
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

Re: [PHP] file_get_contents limit

2010-06-29 Thread Andrew Ballard
, 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

Re: [PHP] file_get_contents limit

2010-06-29 Thread Andrew Ballard
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

Re: [PHP] mysql case statement

2010-06-28 Thread Andrew Ballard
. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Andrew Ballard
. Just guessing, really. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Andrew Ballard
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

Re: [PHP] mysql case statement

2010-06-28 Thread Andrew Ballard
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

Re: [PHP] Making a Password Confirmation in PHP

2010-06-25 Thread Andrew Ballard
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

Re: [PHP] Returning a Recordset from a Funtion

2010-06-25 Thread Andrew Ballard
. 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

Re: [PHP] $_SERVER['REMOTE_ADDR'] and sql injection

2010-06-23 Thread Andrew Ballard
'); 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

Re: [PHP] $_SERVER['REMOTE_ADDR'] and sql injection

2010-06-23 Thread Andrew Ballard
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

Re: [PHP] $_SERVER['REMOTE_ADDR'] and sql injection

2010-06-23 Thread Andrew Ballard
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

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Andrew Ballard
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

Re: [PHP] SQL Syntax

2010-06-16 Thread Andrew Ballard
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

Re: [PHP] DOMDocument::loadXML() failed when parsing comments inside a script tag

2010-06-08 Thread Andrew Ballard
'; $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

Re: [PHP] DOMDocument::loadXML() failed when parsing comments inside a script tag

2010-06-07 Thread Andrew Ballard
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

Re: [PHP] opening a link in a new window

2010-05-15 Thread Andrew Ballard
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

Re: [PHP] opening a link in a new window

2010-05-14 Thread Andrew Ballard
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

Re: [PHP] Append Dom Document

2010-05-14 Thread Andrew Ballard
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

Re: [PHP] Append Dom Document

2010-05-14 Thread Andrew Ballard
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

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-14 Thread Andrew Ballard
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

Re: [PHP] Append Dom Document

2010-05-14 Thread Andrew Ballard
)-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

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Andrew Ballard
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   2   3   4   5   6   7   8   9   10   >