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

Re: [PHP] Ambiguous?

2013-08-09 Thread richard gray
On 09/08/2013 14:00, Karl-Arne Gjersøyen wrote: 1) query foreach($varenr_inn_pa_lager as $vnr){ include('../../tilkobling.php'); $sql = "SELECT * FROM exan,dynamit WHERE varenr = '$vnr' LIMIT 1"; $resultat = mysql_query($sql, $tilkobling) or die(mysql_error

[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

Re: [PHP] How to extract php source code from joomla

2013-07-23 Thread richard gray
On 23/07/2013 16:54, Yoinier Hernandez Nieves wrote: El 22/07/13 15:49, elk dolk escribió: Thank you for the quick response ! What I am trying to do : I have to complete two university projects for my professor ! project One : Make an online shop and must use the following components in i

[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
to get an understanding and not go off on one!). No definitive answers, and I hope I get some wide experiences here. Thanks for looking. Richard.

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: AW: [PHP] PHP is Zero

2013-06-13 Thread richard gray
On 13/06/2013 11:44, BUSCHKE Daniel wrote: Hi, thanks for your answer. Especially the answer "42" made me laughing :) My "Why" questions should be understand as "Why must it be like that" questions. On 13/06/13 08:59, BUSCHKE Daniel wrote: 5. Thats a bug I have opend: https://bugs.php.net/bug

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
On 30 April 2013 18:56, Morning Star wrote: > Hi Richard, > i am sure my KDE konsole is set to UTF-8. fortunately, i got a answer > from the Debian mailing list. someone told me to verify if i had > installed the ttf-baekmuk (Korean's font) or not. i see that it is not >

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
ipt that uses 2 legged OAuth I can use to make sure I'm doing it right and to be able to just substitute my keys and end point as a test to the service I need. Alternatively, if any one has done a 2 legged OAuth using pecl/oauth, then please can you give me a few pointers! Any help would be great! Regards, Richard.

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread richard gray
On 15/03/2013 22:00, Ashley Sheridan wrote: On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: For my money, `is_numeric()` does just what I want. The thing is, is_numeric() will not check if a string is a valid int, but any valid number, including a float. For something like th

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] XML to Array

2013-03-10 Thread richard gray
On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this may help -> http://stackoverflow.com/questions/1156957

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,

Re: [PHP] Wrong time being displayed by PHP!

2012-10-22 Thread Richard S. Crawford
On Thu, Oct 18, 2012 at 2:12 AM, Ford, Mike wrote: > > From: underp...@gmail.com [mailto:underp...@gmail.com] On Behalf Of > > Richard S. Crawford > > Sent: 17 October 2012 19:29 > > To: PHP-General > > > > You can see the current output

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Richard S. Crawford
t; be set to PDT. You can easily override this with a local php.ini file, an > .htaccess directive, or by placing date_default_timezone_set() near the top > of the code. You can see the current output of the above code here: http://projectbench.extensiondlc.net I've confirmed that the server is set to PDT. The value of date.timezone in php.ini is "America/Los_Angeles", which should be (currently) -8 hours from UTC, but it looks like the PDT offset is only set to -4. Does that even make sense? -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
On Tue, Oct 16, 2012 at 2:05 PM, Daniel Brown wrote: > On Tue, Oct 16, 2012 at 4:19 PM, Richard S. Crawford > wrote: > > > > Thanks for the suggestion. Unfortunately the problem seems to be that PHP > > thinks the America/Los_Angeles timezone is the same as EDT. I'm

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
a specific GMT > offset <http://www.php.net/manual/en/timezones.others.php>. > > Hope it helps :) > > Hi Enrico, Thanks for the suggestion. Unfortunately the problem seems to be that PHP thinks the America/Los_Angeles timezone is the same as EDT. I'm not sure how to approach

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
I double checked the server time. It is set to "America/Los_Angeles" as well. On Tue, Oct 16, 2012 at 11:07 AM, Adam Richardson wrote: > On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford > wrote: > > The value of date.timezone in php.ini is set to "America/Los_

[PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
The value of date.timezone in php.ini is set to "America/Los_Angeles". The local time is 11:02 a.m. Yet the output of date("h:i a e") is: 02:02 pm America/Los_Angeles which is three hours ahead of the real time. Why is this? What's going on? -- Sláinte,

Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Richard S. Crawford
net/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

[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] Re: MySQL and PHP weirdness - RESOLVED

2012-02-15 Thread Richard S. Crawford
This has been resolved. A previous programmer had snuck in a function that would convert the value of the "description" field to a date value if it contained the word "Date". This has been fixed. On Tue, Feb 14, 2012 at 5:44 PM, David Robley wrote: > Richard S. Crawford

[PHP] MySQL and PHP weirdness

2012-02-14 Thread Richard S. Crawford
up how PHP is displaying the text. I've tried changing the field type from "mediumtext" to "text" but this didn't work. If anyone has any ideas as to why this might be happening -- or if I just wasn't clear -- please let me know. -- Sláinte, Richard S. Crawf

Re: [PHP] How to find where class is used?

2012-01-06 Thread richard gray
On 06/01/2012 12:11, Dotan Cohen wrote: In a large application that I am tasked with maintaining (vBulletin) there is a particular class that is used: vB_ProfileBlock_VisitorMessaging. I know the file that it is defined in, but I cannot find the file that actually creates a vB_ProfileBlock_Visito

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-30 Thread richard gray
On 23/11/2011 18:49, Alain Williams wrote: On Wed, Nov 23, 2011 at 06:14:07PM +0100, richard gray wrote: Reading symbols for shared libraries + done 0x000101d057ee in __ioctl () Any clues? To me it looks like PHP cli is trying to do some I/O but I'm just a dumb developer... :) ioctl

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

2011-11-30 Thread richard gray
On 29/11/2011 17:16, Daniel Brown wrote: On Sat, Nov 19, 2011 at 09:33, richard gray wrote: This happens because PHP is writing to STDOUT, of course, and then the command line redirection grabs that information and puts it into the file. Unfortunately, by itself, this won't work i

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

2011-11-23 Thread richard gray
On 23/11/2011 11:05, Laruence wrote: Hi: I mean, do you built your php with readline support, or do you load readline.so into PHP? if so, remove it, then try again. and you also can use: gdb --pid={the pid of the stopped php} then you will find where the php hangs. thanks I d

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

2011-11-22 Thread richard gray
On 22/11/2011 05:51, Laruence wrote: did you run php with readline? try run the script without php-readline. thanks No - the script was just a basic string echo - no readline was involved. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-11-21 Thread Richard Quadling
On 19 November 2011 14:33, richard gray wrote: > Hi all > > Hope someone can help me with a weird issue I have... > > I am trying to run a php CLI script in the background and it just won't run > - it has a status of Stopped SIGTOU (Trying to write output) - Here are the &g

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

2011-11-19 Thread richard gray
x27;t know, especially as it's not a PHP thing, it's a Unix command thing. Richard, some more info on the command Laruence mentioned can be found at http://docstore.mik.ua/orelly/unix/upt/ch12_07.htm which explains it in more detail. not sure this is relevant as my script is not trying to wr

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

2011-11-19 Thread richard gray
On 19/11/2011 16:09, Laruence wrote: $ stty -tostop makes no difference # stty -tostop # php -f test.php >test.log 2>&1 & # jobs # [1]+ Stopped(SIGTTOU)php -f test.php > test.log 2>&1 Any other ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

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

2011-11-19 Thread richard gray
Hi all Hope someone can help me with a weird issue I have... I am trying to run a php CLI script in the background and it just won't run - it has a status of Stopped SIGTOU (Trying to write output) - Here are the details OS Mac OS X Lion 10.7.2 PHP PHP 5.3.6 with Suhosin-Patch (cli) (built:

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
and fast, and will do the job you want albeit > without the nice foreach(...) loop Richard spec's. You just loop over > reading the XML and checking the node type, watching the state of your > stream to see how to handle each iteration. > > e.g. (assuming $xml is an open XM

[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
Hi. Based upon ... &$name, 'age' => &$age); $records = array(); $name = 'Richard'; $age = 43; $records[] = $boundParams; $name = 'Sally'; $age = 37; $records[] = $boundParams; print_r($records); ?> outputs Sally twice. Whilst that is t

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
On 1 September 2011 13:25, richard gray wrote: > On 01/09/2011 14:07, Louis Huppenbauer wrote: >> >> I think it would be best if you could provide us with the .wsdl (and >> possibly with the server-code). >> > Thanks for the quick response Louis.. We need the URL fo

Re: [PHP] PHP/ Soap issue

2011-09-01 Thread Richard Quadling
On 1 September 2011 13:02, richard gray wrote: > I am hoping there's a SOAP expert on the list as this is driving me mad and > Google doesn't come up with much help ... > > I am trying to build a fairly simple web service in SOAP -- the client sends > a string SKU to

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

  1   2   3   4   5   6   7   8   9   10   >