Re: [PHP] Ini files for CLI only on non Win32 platform

2013-09-14 Thread Richard Quadling
On 13 September 2013 20:06, Kevin Kinsey wrote: > Date: Fri, 13 Sep 2013 11:40:27 +0100 > From: Richard Quadling > To: PHP General list > Subject: [PHP] Ini files for CLI only on non Win32 platform. > > >I've got an instance of PHP that is looking for additional

[PHP] Ini files for CLI only on non Win32 platform.

2013-09-13 Thread Richard Quadling
still see the ini file. Is the -SAPI filtering performed on the additional files? It doesn't seem to and I can't really tell from the dox if it is supposed to. Regards, Richard. -- Richard Quadling

[PHP] Re: Stripe Connect in the UK + PHP Integration.

2013-08-06 Thread Richard Quadling
On 19 July 2013 16:22, Richard Quadling wrote: > Hi. > > Simple question. > > Has anyone got Stripe Connect, Stripe.js and Stripe PHP SDK operational in > the UK. > > I'm struggling getting the UK Beta to accept a new account/customer set > for a UK business or in

Re: [PHP] Quick Q.

2013-07-24 Thread Richard Quadling
On 24 July 2013 21:54, Matijn Woudt wrote: > > > > On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling wrote: > >> PHP 5.5+ is (from news) >> >>- Windows XP and 2003 support dropped. >> >> >> Does that mean no longer executes (as is seemingly

Re: [PHP] COM - Assigning to method.

2013-07-24 Thread Richard Quadling
fter that it was .NET and Java only. No COM. Having said that, I never got around to using http://uk1.php.net/manual/en/class.dotnet.php, so I don't know how this all worked. From memory the DOTNET layer of PHP was just a wrapper around COM and still required COM exposure in the lib. I think. Use a TypeLib Explorer to see exactly what interface is available - from memory, the right tool is all you need. I was able to code anything I needed with Crystal Reports. There is also a PHP function http://uk1.php.net/manual/en/function.com-load-typelib.php which I used to allow the various constants within the typelib to be exposed and usable within PHP. And also look at http://uk1.php.net/manual/en/function.com-print-typeinfo.php and the user notes. Not used it but "bucket loads of info" is a good thing to see normally. -- Richard Quadling Twitter : @RQuadling

[PHP] Quick Q.

2013-07-24 Thread Richard Quadling
drop back to PHP 5.4 to see if that's OK on the VM I have. -- Richard Quadling

[PHP] Stripe Connect in the UK + PHP Integration.

2013-07-19 Thread Richard Quadling
ff list if preferred. Regards, Richard Quadling.

Re: [PHP] COM - Assigning to method.

2013-07-13 Thread Richard Quadling
ites > > the $Record object. > > $_R = &$Record->Fields('BANK_fld_ACCOUNT_NAME'); > > $_R = 'Test Account'; > > > > > > Any ideas? Is it possible? > > > > > > Many Thanks > > Adam Nicholls > > > > That example isn't assigning values to method return value. Fields is a > collection of ADO Field objects. The default property of a Field object is > its Value property, so the shorthand is simply assigning the values of the > variables to the value of each field in a record within a Recordset. > > Andrew > So .. $oBank->BANK_fld_ACCOUNT_NAME = "Test account"; sort of thing. -- Richard Quadling Twitter : @RQuadling

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
eption processing. Load in XDebug and get a trace going, what is the code doing prior to failure? -- Richard Quadling Twitter : @RQuadling

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
splay_startup_errors. Try running the command line PHP ... php -r "echo 1;" With your config. Just to see if there is anything ultra obvious missing. -- Richard Quadling Twitter : @RQuadling

[PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Richard Quadling
Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was told "I've never worked on a web application where foreign keys were used in the database". As someone who has spent 25 years working on accounting/epos systems on MS SQL Server (yep, windows) and now in a web

Re: [PHP] What is the name of the pattern that will ...

2013-06-14 Thread Richard Quadling
On 13 June 2013 18:38, David Harkness wrote: > Hi Richard, > > On Thu, Jun 13, 2013 at 10:16 AM, Richard Quadling wrote: > >> I'm building a class which needs to have certain methods called by the >> subclass, but the subclass can extend but not obscure/override the

[PHP] What is the name of the pattern that will ...

2013-06-13 Thread Richard Quadling
rotected as it shouldn't be called from the public scope. 2 - The response is by ref, but I think having a AuthResponse class containing $i_State and $s_Message should be enough there, but no way to enforce return types in PHP. Any ideas? Thank you. -- Richard Quadling Twitter : @RQua

Re: [PHP] Seemingly incorrect strict standard.

2013-06-04 Thread Richard Quadling
On 4 June 2013 09:57, Richard Quadling wrote: > On 3 June 2013 20:37, shiplu wrote: > >> Show a short reproducible code. >> > And I can now see an interface is a much simpler mechanism! > getMessage(), PHP_EOL; } try { $o2 = new sub2('Stuffed2'); }

Re: [PHP] Seemingly incorrect strict standard.

2013-06-04 Thread Richard Quadling
On 3 June 2013 20:37, shiplu wrote: > Show a short reproducible code. > Short-ish ... getMessage(), PHP_EOL; } try { $o2 = new sub2('Stuffed2'); } catch(Exception $ex){ echo $ex->getMessage(), PHP_EOL; } ?> And I can now see an interface is a much simpler me

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread Richard Quadling
Aha! Don't make it abstract in my base class, but I can throw an exception (perfectly reasonable for me as the called class should implement the method). On 3 June 2013 18:36, Matijn Woudt wrote: > > On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling wrote: > >> Hi. >&g

Re: [PHP] Simple objective which always seems to make me think I'm doing it wrong.

2013-05-24 Thread Richard Quadling
On 23 May 2013 16:31, Stuart Dallas wrote: > On 23 May 2013, at 15:54, Richard Quadling wrote: > > > I'm building an XML file. > > > > It is within an OOP structure and is pretty simple. > > > > The method is ... > > > >/** > >

[PHP] Simple objective which always seems to make me think I'm doing it wrong.

2013-05-23 Thread Richard Quadling
an say _something_ like ... $s_XML = require_once __CLASS__ . DIRECTORY_SEPARATOR . 'normalisedError.xml'; and have the include be aware of the local scope (so $o_XML and $this are all happy). I know I can write a template parser, but I'm just missing an obvious solution that isn&

Re: [PHP] Trying to understand what I've broken to not allow mkdir() to work.

2013-05-16 Thread Richard Quadling
On 16 May 2013 15:42, Karim Geiger wrote: > Hi Richard, > > On 05/16/2013 04:33 PM, Richard Quadling wrote: > > Hi. > > > > I'm running on a Mac with a Centos VM (via VirtualBox). > > > > Was running from from our SVN server. > > > > New r

[PHP] Trying to understand what I've broken to not allow mkdir() to work.

2013-05-16 Thread Richard Quadling
Is there anyone who can give me definite help here? I can manually create the directories, but that's just daft. Nothing LOOKS any different between the two repos, but I don't know how to tell beyond comparing ls outputs. Any help would be good. -- Richard Quadling Twitter : @RQuadling

Re: [PHP] Having a problem with clone.

2013-05-11 Thread Richard Quadling
On 11 May 2013 09:52, Marco Behnke wrote: > 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-

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

2013-05-10 Thread Richard Quadling
x27;t reveal anything regarding cloning. I'm running this on a CentOS vm (not my speciality, so I can't diagnose any further, sorry). If anyone can shed some light on this, then that would be useful. Regards, Richard. -- Richard Quadling Twitter : @RQuadling

Re: [PHP] Having a problem with clone.

2013-05-10 Thread Richard Quadling
On 10 May 2013 12:18, Richard Quadling wrote: > > On 10 May 2013 12:08, Nick Whiting wrote: > >> >> Do you have a backtace for this? >> >> What is the gender class doing? >> >> Have u done a global search for keyword "clone"? >

Re: [PHP] Having a problem with clone.

2013-05-10 Thread Richard Quadling
On 10 May 2013 12:08, Nick Whiting wrote: > > Do you have a backtace for this? > > What is the gender class doing? > > Have u done a global search for keyword "clone"? > > > > On Friday, May 10, 2013, Richard Quadling wrote: > >> Hi. >> &

[PHP] Having a problem with clone.

2013-05-10 Thread Richard Quadling
server, so I can, within reason, follow instructions to run/wrap the code in any way needed. Any help would be GREATLY appreciated!!! Thanks in advance, Richard. -- Richard Quadling Twitter : @RQuadling

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

2013-05-01 Thread Richard Quadling
install yet. i just installed it and then i am able to view the > Korean's font. > Thanks anyway. > > Best regards, > > Marco > > On Tue, Apr 30, 2013 at 2:40 PM, Richard Quadling > wrote: > > > > > > > > On 29 April 2013 20:38, Morning Star &

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

2013-04-30 Thread Richard Quadling
On 29 April 2013 20:38, Morning Star wrote: > Thanks, Richard. It works in xterm, but it doesn't work in KDE konsole. > i don't know how to figure it out. help me > > Best regards, > > Marco > > On Mon, Apr 22, 2013 at 9:43 AM, Richard Quadling > wrote: &g

Re: [PHP] mysql_connect noob question

2013-04-24 Thread Richard Quadling
u'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 >>>

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

2013-04-22 Thread Richard Quadling
On 18 April 2013 08:06, Morning Star wrote: > $string = \uc548\ub155\ud558\uc138\uc694 outputs (at least for me) ... 안녕하세요 Based upon http://stackoverflow.com/questions/7274183/php-convert-unicode-to-character. Hope this helps. -- Richard Quadling Twitter : @RQuadling

[PHP] OAuth test server and help my slow brain understand what I'm doing.

2013-04-04 Thread Richard Quadling
Hi. I've been tasked to integrate some financial data into our site. The provider uses a 2 legged OAuth mechanism for the security. I have my consumer key and secret and the service end point, but I'm at a loss to even know if I'm doing anything right. Does anyone have a script that uses 2 legge

Re: [PHP] Reflecting Constants.

2013-03-12 Thread Richard Quadling
27;ve @todo'd it to refactor if PHP has a ReflectionConstant class at some stage in the future. Thanks. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Very Large File Splatter

2013-03-04 Thread Richard Quadling
On 22 February 2013 21:04, Brian Smither wrote: > PHP 5.4.4-TS-VC9 on Windows XP SP3 NTFS non-system drive with 18GB free. > > I dare not try to replicate this. As such, I cannot firmly place the blame on > PHP. > > I have peppered a PHP application with a call to a function which > appends-only

[PHP] Re: Holding "datetimes" in a DB.

2013-03-03 Thread Richard Quadling
On 1 March 2013 10:49, Richard Quadling wrote: > Hi. > > My heads trying to remember something I may or may not have known to start > with. > > If I hold datetimes in a DB in UTC and can represent a date to a user > based upon a user preference Timezone (not an offset,

[PHP] Using a stream filter to do a search and replace on an XML file.

2012-03-19 Thread Richard Quadling
this was possible, I'd be a LOT happier and could simply stream from the .gz files without needing to hold onto anything. Ideas/suggestions/examples/code gratefully received. Regards, Richard. -- Richard Quadling Twitter : EE : Zend : Fantasy Shopper @RQuadling : http://e-e.com/M_248814.ht

Re: [PHP] DOS CLI?

2011-12-08 Thread Richard Quadling
t OS? OOI, Using something like DosBox [1] can help with some development - a DOS emulator for Windows. I use it to run REALLY old games. Richard. [1] http://www.dosbox.com/ -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : b

Re: [PHP] PHP script won't run in the background

2011-11-21 Thread Richard Quadling
This has me stumped ... any ideas? > > TIA > Rich > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I've seen this ... php script.php 1>nul 2>nul Not sure how effective it is. But the code is tag

Re: [PHP] {} forms

2011-11-16 Thread Richard Quadling
es.string.php#example-71 shows the use. Oh. I've fixed the layout bug for http://docs.php.net/manual/en/language.types.string.php#example-70. -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea : fan.sh/6/370 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread Richard Quadling
On 15 November 2011 15:12, Mike Mackintosh wrote: > > > On Nov 15, 2011, at 8:25, Richard Quadling wrote: > >> On 15 November 2011 11:50, a dehqan wrote: >>> \n is for Linux >>> \r is for Windows >>> >>> On 11/14/11, Richard Quadling

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread Richard Quadling
On 15 November 2011 11:50, a dehqan wrote: > \n is for Linux > \r is for Windows > > On 11/14/11, Richard Quadling wrote: >> On 12 November 2011 20:02, a dehqan wrote: >>> dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox t

[PHP] Using SimpleXMLIterator with a Iterator Filter.

2011-11-15 Thread Richard Quadling
SimpleXMLIterator is causing the filter to examine every node. This is not what I want. Any ideas, suggestions, reading. I've got the manual but the iterator documentation isn't great. I don't know who knows this stuff inside out, or how to describe things in a useful way for the

Re: [PHP] problem with sending AT command in php

2011-11-14 Thread Richard Quadling
; A , .. > > On Sat, Nov 12, 2011 at 10:02 PM, Negin Nickparsa wrote: > >> are you sure about ATD03518726535\n? >> >>  can you try if ( dio_write($handle, 'AT') )? >> > Don't use \n, use \r. http://en.wikipedia.org/wiki/AT_commands#Example_session

Re: [PHP] json_encode confusion

2011-11-11 Thread Richard Quadling
l ' => '', 'Legal First Name ' => 'Marisa', 'Maiden/Other Name ' => '', 'Social Insurance No. ' => 123456789, 'Date of Birth ' => '2/1/1988', 'Gender ' => 'Female' ); ec

Re: [PHP] Regular Expression

2011-11-07 Thread Richard Quadling
website. > >> > > >> > Thanks > >> > > >> > Toni > >> > > >> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I use http://www.regular-expressions.info The site's author also has a book which I would recommend : http://www.regular-expressions.info/cookbook.html -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea : fan.sh/6/370

Re: [PHP] pcre little problem

2011-11-07 Thread Richard Quadling
r('/[^:][[:punct:]]/', '', $string)); >$inf_cpl = $nfe_factory->createElement('infCpl', > $this->inf_complementar); > > QUESTION: Why the preg_filter causes a end of the application, with no > error throwing (even in die don't appears not

Re: [PHP] Friday Distraction

2011-10-27 Thread Richard Quadling
://www.takethislollipop.com/ Sweet? SWEET!? What sort of sicko are you??? I've got a deranged nutter hunting me down. He looks a LOT like you!!!! Cool though. -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.

Re: [PHP] Convert Hours to Decimal

2011-10-27 Thread Richard Quadling
CAST(Out_1 AS Time), CAST(In_1 AS Time) ) AS Decimal(5,2) ) tHours FROM lm_tc_trans WHERE tc_trans_id = '42' Basically, CAST the result back to a decimal(5,2) -- Richard Quadling Tw

Re: [PHP] Processing newlines in a text area field

2011-10-14 Thread Richard Quadling
ewline. > > Thanks > Stephen What is the wrap attribute set to on the textarea? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CGI PHP vs. FastCGI vs. mod_php vs. application server?

2011-10-12 Thread Richard Quadling
low you to respond to PHP requests. See http://docs.php.net/manual/en/features.commandline.webserver.php for more details. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-12 Thread Richard Quadling
w > > *C:> php --ini* The following documentation links are all relevant. http://docs.php.net/manual/en/install.windows.manual.php http://docs.php.net/manual/en/install.windows.commandline.php http://docs.php.net/manual/en/configuration.file.php -- Richard Quadling Twitter : EE : Zend

Re: [PHP] newline and return issues in string

2011-10-11 Thread Richard Quadling
quot;, "\r"); > > str_replace($filter,’’,$string) ß this is useless in this situation I have > tried and it does not change the string at all. You don't want to remove them. You want to replace them with a constant. $lines = explode(PHP_EOL, str_replace($filter, PHP_EOL,

Re: [PHP] Namespaced code with SabreDAV

2011-10-07 Thread Richard Quadling
> D:\PHP\Includes\Zend\Loader.php [3] => D:\PHP\Includes\Sabre\DAV\FS\Directory.php [4] => D:\PHP\Includes\Sabre\DAV\FS\Node.php [5] => D:\PHP\Includes\Sabre\DAV\INode.php [6] => D:\PHP\Includes\Sabre\DAV\ICollection.php [7] => D:\PHP\Includes\Sabre\DAV\IQuota.php ) Regards, Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php on my pc, no go, FUBAR, thank you Bill Gates?

2011-10-04 Thread Richard Quadling
your particular web server. I would also pay attention to manual installation (http://docs.php.net/manual/en/install.windows.manual.php) and command line working (http://docs.php.net/manual/en/install.windows.commandline.php). -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.c

Re: [PHP] Re: php.ini setting

2011-10-03 Thread Richard Quadling
s[$key][stripslashes($k)] = stripslashes($v); } } } // All done, so remove $process also. unset($process); } ?> -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSS Feed Accented Characters

2011-09-30 Thread Richard Quadling
On 30 September 2011 18:22, Ron Piggott wrote: > > -Original Message- From: Richard Quadling > Sent: Friday, September 30, 2011 12:31 PM > To: Ron Piggott > Cc: php-general@lists.php.net > Subject: Re: [PHP] RSS Feed Accented Characters > > On 30 September 2011 1

Re: [PHP] RSS Feed Accented Characters

2011-09-30 Thread Richard Quadling
displayed as ? then it is an encoding issue. What encoding are you using? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSS Feed Accented Characters

2011-09-30 Thread Richard Quadling
line of the output. That tells the reader that the file is a UTF-8 encoded file. Also, if you ejecting HTTP headers, make sure that they say the encoding is UTF-8 and not a codepage. Go UTF-8 everywhere. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Friday] Tokyo / Kyoto.

2011-09-30 Thread Richard Quadling
Tokyo means "Eastern Capital" Kyoto means "Western Capital" -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Input variable from form help request

2011-09-30 Thread Richard Quadling
On 29 September 2011 23:28, PHProg wrote: > > Hello Richard, > > Your suggestion worked perfectly. > ... it works beautifully. Now that's what I like to hear! Glad to be of help. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bi

Re: [PHP] Getting meta data (of any type) for an XML file being from it's URL.

2011-09-30 Thread Richard Quadling
On 29 September 2011 23:34, Tommy Pham wrote: > On Thu, Sep 29, 2011 at 3:27 PM, Tommy Pham wrote: >> >> On Thu, Sep 29, 2011 at 9:09 AM, Richard Quadling >> wrote: >>> >>> Hi. >>> >>> I'm looking to process very large XML files w

[PHP] Getting meta data (of any type) for an XML file being from it's URL.

2011-09-29 Thread Richard Quadling
ms = $xml->count(); foreach($xml as $s_Tag => $o_Item) { ... } will the XML file be cached somewhere? Or will that depend upon the originating server supporting some sort of rewind/chunk mechanism? Any suggestions/ideas? Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @R

Re: [PHP] Input variable from form help request

2011-09-29 Thread Richard Quadling
r as the echo statement will not need to first build the concatenated string before echoing it. It will just push the values out the to the web server. I think. I've not done any metric testing on that. As for copying a file TO a http URL, you need to obey the rules of http. CURL or FTP will

Re: [PHP] Sequential access of XML nodes.

2011-09-28 Thread Richard Quadling
           } >            $text = ''; >            break; > >        case XMLReader::TEXT: >        case XMLReader::CDATA: >            // record value (or part value) of text or cdata node >            $text .= $xml->value; >            break; > >      

[PHP] Sequential access of XML nodes.

2011-09-26 Thread Richard Quadling
terator is only holding onto 1 array/fragment at a time and not caching the massive number of products per file. Thanks. Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net

Re: [PHP] Any free online tests to test my PHP knowledge?

2011-09-23 Thread Richard Quadling
de (http://www.phparch.com/books/phparchitects-zend-php-5-certification-study-guide-2nd-edition/) I have the first edition, so a little out of date now but I do get a free PDF of the 2nd edition. Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bi

Re: [PHP] PHP installations, usage, and popularity

2011-09-20 Thread Richard Quadling
nd. The whole nature of PHP is that it can fit anywhere. Web, Console, GUI (with appropriate bindings). Multii-platform, architecture, OS, etc. - probably preaching to the converted here. I would also recommend the inclusion of a nosql module and MAYBE some Windows specific elements (I use IIS

Re: Re: [PHP] Round with money_format

2011-09-17 Thread Richard Quadling
75 > rounds to 8. Your example seems to follow that rule. I've been looking to see if I can find the locale's rounding rules - I can't. Would be useful if anyone knows where they are defined. As far as I can find (pages similar to http://www.cl.cam.ac.uk/cgi-bin/manpage?7+loca

Re: [PHP] XML enabled but not working

2011-09-16 Thread Richard Quadling
On 16 September 2011 23:18, Matthew Pounsett wrote: > > On 2011/09/16, at 10:27, Richard Quadling wrote: > >> On 15 September 2011 21:20, Matthew Pounsett wrote: >>> Anyone have any thoughts on what to look at? >> >> php -m >> php --rf xml_parser_create

Re: [PHP] Round with money_format

2011-09-16 Thread Richard Quadling
define its own rules regarding the number of digits to show, but I can't see anything that covers the rounding. OOI. What do you get for 12.66999? I'm on windows and there's no money_format function (due to a lack of strfmon() function), -- Richard Quadling Twitter : EE

Re: [PHP] XML enabled but not working

2011-09-16 Thread Richard Quadling
On 15 September 2011 21:20, Matthew Pounsett wrote: > Anyone have any thoughts on what to look at? php -m look for XML php --rf xml_parser_create look for Function [ function xml_parser_create ] { - Parameters [1] { Parameter #0 [ $encoding ] } } -- Richard Quadling Twit

Re: [PHP] lost return value during a static call

2011-09-15 Thread Richard Quadling
tclass::getChild 34childA Object(   [a:childA:private] => 1)parentclass::getArray 24parentclass::getChild 42parentclass::getChild 44Z:\ppp.php 110Z:\ppp.php 112 Using PHP 5.3.9-dev on Win32. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY :

[PHP] Dereferencing an array.

2011-09-14 Thread Richard Quadling
records[] = $boundParams; $records[] = array_combine($columns, array_map(function($m_Value){return $m_Value;}, $boundParams)); print_r($records); ?> Is there a more efficient way? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

Re: Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Richard Quadling
On 14 September 2011 13:18, Tim Streater wrote: > On 14 Sep 2011 at 12:40, Richard Quadling wrote: > >> On 14 September 2011 01:23, tamouse mailing lists >> wrote: >>> On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings >>> wrote: >>>> I&

Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Richard Quadling
tor. EDLIN is the way to go. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Richard Quadling
Is the potential for cached pages to be returned for a user NOT logged in? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Richard Quadling
but not me. > > Thanks in advance. > > Paul How do you handle multiple logins? If I login using my laptop and get Session A for my account and then I login using my desktop and get Session B for my account, does Session A get killed? Do you allow multiple, simultaneous logins per account? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/ Soap issue

2011-09-01 Thread Richard Quadling
r the WSDL file. Without that, we don't know what is happening. The WSDL content you've supplied is not tied to a real server. It just uses the example.com domain as a way of showing you a placeholder where your real URLs would exist. -- Richard Quadling Twitter : EE : Zend : P

Re: [PHP] PHP/ Soap issue

2011-09-01 Thread Richard Quadling
right direction! > TIA > Rich > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Can you give me the URL for the WSDL file? Either online or by direct email. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuad

Re: [PHP] PHP/ Soap issue

2011-09-01 Thread Richard Quadling
On 1 September 2011 13:35, Richard Quadling wrote: > On 1 September 2011 13:27, richard gray wrote: >> On 01/09/2011 14:16, Richard Quadling wrote: >>> >>> Can you give me the URL for the WSDL file? Either online or by direct >>> email. >>> >> T

Re: [PHP] PHP/ Soap issue

2011-09-01 Thread Richard Quadling
On 1 September 2011 13:27, richard gray wrote: > On 01/09/2011 14:16, Richard Quadling wrote: >> >> Can you give me the URL for the WSDL file? Either online or by direct >> email. >> > Thanks for the quick response Richard -- I have just posted the WSDL in my >

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Richard Quadling
On 30 August 2011 23:25, Richard Quadling wrote: > On 30 August 2011 20:09, Robert Cummings wrote: >> You're just saying that so Tedd will be your friend!! Come now, let's be >> honest with everyone... Whitesmith's is -GLEE! ;) > > Beauty is in

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Richard Quadling
On 30 August 2011 20:09, Robert Cummings wrote: > You're just saying that so Tedd will be your friend!! Come now, let's be > honest with everyone... Whitesmith's is -GLEE! ;) Beauty is in the eye of the beholder. -- Richard Quadling Twitter : EE : Zend :

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Richard Quadling
ess it's a team effort or the clients demand). > > Cheers, > > tedd At last Someone's code I could read without having to reformat it every bloody time!!! http://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadlin

Re: [PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Richard Quadling
WSDL";; > > The second part between "< >" > ($web_service="http://url_of_the_webservice.asmx?WSDL<http://url_of_the_webservice.asmx/?WSDL>") > was Gmail who wrote it  (not me) when I forward the email. > > LoL > > By the way, Thanx fro the

Re: [PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Richard Quadling
2011/8/19 Ignacio Marín Hernández : > $web_service="http://url_of_the_webservice.asmx?WSDL<http://url_of_the_webservice.asmx/?WSDL> > "; Surely, that should be ... $web_service="http://url_of_the_webservice.asmx?WSDL";; And sorry for calling you Surely. Richa

[PHP] Re: [PHP-WEBMASTER] Sir i really need help immediatelly!

2011-08-18 Thread Richard Quadling
pting to bypass a captcha sort of defeats the object of a captcha. Whatever data you supply having examined the form, it will be highly unlikely to be the value that the server has generated for the image. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question. What is the best structure of a php-app?

2011-08-16 Thread Richard Quadling
B, I compare dev to test and upgrade test. I log the changeset into my version control system allowing me to reuse the changeset on the live dbs. If I need to make more changes to the DB. I issue a new changeset for those changes. No need to amend the previous changeset. Does this mean that sometimes I'm rolling back changes? Yes, but I'm doing so in a controlled and reportable/repeatable manner. No different to any other VCS. I hope these points help. Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread Richard Quadling
de.google.com/p/loginsystem-rd/ Whilst it is just a login system, the techniques here could be adapted and probably learned from (if you are new to security). -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-08-15 Thread Richard Quadling
-sql is an excellent fit for long-term, user-specific, cached session data. And if you have replication based upon geography (I assume that this is the most likely way to use replication beyond simply scaling/processing power), then as long as you tune your users to the right server, they will alway

Re: [PHP] form validation

2011-08-12 Thread Richard Quadling
> > Chris $_POST['market'] won't exist if you haven't chosen one. Turn on your error reporting and you should see something appropriate. At a bare minimum, adding ... isset($_POST['market']) as the first thing to test (before seeing if the value is in $mark

Re: Re: [PHP] pass text variables to next page

2011-08-09 Thread Richard Quadling
(1) and (2) will make it a damn sight easier to see what you are > *actually* creating. > > -- > Cheers  --  Tim > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > A single line of SQL is what things

Re: [PHP] PHP Security: Best Practices

2011-08-08 Thread Richard Quadling
to the DB is different to other user details and it is forced to a specific machine. All this sort of thing is setup once and done. It makes it very difficult for anyone to be able to fake the credentials, gain access to the DB tables or inject data outside of the constraints provided by the stor

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Richard Quadling
On 2 August 2011 16:11, Richard Quadling wrote: > On 2 August 2011 16:04, Donovan Brooke wrote: >> Hello!, >> >> I must not be understanding something as I would expect 'f_file' >> to show up in the print_r below.: >> >> ---form-- >> &g

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Richard Quadling
php-- > > --/index.php-- > > > > > The result I get is: > > Array > ( >    [f_ap] => upload >    [f_action] => doit > ) > --- > > Can someone enlighten me? Check out $_FILES for the file upload information. -- Richard Quadling Twitter :

Re: [PHP] put code into a function then the code dead,very strange.

2011-08-02 Thread Richard Quadling
On 2 August 2011 13:45, Sharl.Jimh.Tsin wrote: > 在 2011-08-02二的 13:33 +0100,Richard Quadling写道: > >> It is to do with variable scope. >> >> http://uk.php.net/manual/en/language.variables.scope.php / >> http://uk.php.net/manual/zh/language.variables.scope.php

Re: [PHP] put code into a function then the code dead,very strange.

2011-08-02 Thread Richard Quadling
function in one page? It is to do with variable scope. http://uk.php.net/manual/en/language.variables.scope.php / http://uk.php.net/manual/zh/language.variables.scope.php -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea --

Re: [PHP] Keyword Constructor

2011-08-02 Thread Richard Quadling
', 'age' => 36]); > > Right now this requires the trunk version of PHP to work.  I just > wanted to share this in case anyone finds it interesting and/or > useful. I use a similar technique when I need to populate a SOAP class on the server to coerce data from the DB in

[PHP] What is valid for a named parameter in a prepared query using PDO_SQLSRV.

2011-08-01 Thread Richard Quadling
I'm also going to be converting an old style coding mysql to mysqli prepared statements (I know very little mysql, so 2 lots of learning going on here). Would mysqli have the same behaviour? Is it driver specific? Regards, Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQu

Re: [PHP] Path question.

2011-07-28 Thread Richard Quadling
a about it, but I generally use realpath() to avoid any > such problems. Windows may have, because it uses backward slashes > instead of forward which are used in *nix (incl mac) For PHP on Windows, the / is fine. Obviously, if you are going to be calling OS based tools from PHP, you'll

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

2011-07-25 Thread Richard Quadling
ible? >> >> Thanks for the help. Depending upon your complexity, you could possible use the builtin streams mechanisms. I've used them to force all PHP requests through a NTLM authentication proxy server (network required NTLM authentication which was not handled by PHP). http:/

[PHP] Re: SimpleXMLElement, adding nodes that are SimpleXMLElement.

2011-07-25 Thread Richard Quadling
On 25 July 2011 13:47, Richard Quadling wrote: > Hello all. > > I've got 2 XML documents (one from a URL and another via MS SQL Server). > > The structure of these documents is the same, with just a difference > in attribute to identify things (the 'data' is di

  1   2   3   4   5   6   7   8   >