Re: [PHP] Problems w/ goto

2010-12-17 Thread Richard Quadling
/unsub.php And have you seen all the sad faces ... : { on http://docs.php.net/manual/en/control-structures.goto.php#92763 Can't be good for them. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net

Re: [PHP] array_multisort into Natural order?

2010-12-14 Thread Richard Quadling
the rows to supply to the sorter. If you like it and find any issues with it, or enhancements, then I'd be grateful if you could pass them back to me. Richard. [1] http://www.php.net/manual/en/function.array-multisort.php#68452 [2] http://pastebin.com/8JsMX7yS -- Richard Quadling Twitter : EE : Zend

Re: [PHP] array_multisort into Natural order?

2010-12-14 Thread Richard Quadling
On 14 December 2010 10:50, Richard Quadling rquadl...@gmail.com wrote: On 13 December 2010 19:59, George Langley george.lang...@shaw.ca wrote: Hi all. Can use natsort($array1) to sort a single array of filenames into a natural alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc

Re: [PHP] PDO: good, popular?

2010-12-14 Thread Richard Quadling
functions to issue queries and fetch data. PDO does not provide a database abstraction; it doesn't rewrite SQL or emulate missing features. You should use a full-blown abstraction layer if you need that facility. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html

Re: [PHP] PDO: good, popular?

2010-12-14 Thread Richard Quadling
that. If you can recycle others code into new and interesting ways, then go for it. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A general discussion of libraries and frameworks

2010-12-10 Thread Richard Quadling
On 10 December 2010 12:07, Tommy Pham tommy...@gmail.com wrote: Ironically, both projects are started by the same person. So that old adage of there being at least 2 PHP frameworks per PHP developer still holds true! -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-08 Thread Richard Quadling
a warning so I'll leave it alone until I've tidied up all the other issues. Regards, Tom I'd go with ... function _getTable($cached=true) { return new TableClass($this-_getTableName()); } -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General

Re: [PHP] how can one run python script in php

2010-12-08 Thread Richard Quadling
/install.windows.commandline.php contain all the details I've ever needed for a manual installation of PHP. Using the same rules for Python would allow you to simply run the .py script or the .pyc script just as easily as you can run PHP or a .BAT/.CMD script. -- Richard Quadling Twitter : EE : Zend

Re: [PHP] How can I call GD's imagepng() directly from my class?

2010-12-07 Thread Richard Quadling
file. Write out the HTML using img src=./badges/{$md5BadgeData}.png / If a user's stats change, they'll have a new badge. Sure, there will be orphaned badges, but they are tiny little things and I don't have gazillion users. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Richard Quadling
(assuming it is coming from a DB). If not, you could use a simple file_put_contents($filename, date('r') . $text . PHP_EOL, FILE_APPEND); That would append 1 line of text at a time to the file. Using tail on that file would show you the last work done (and when it was done). -- Richard Quadling

Re: [PHP] Barcode Reader

2010-12-06 Thread Richard Quadling
). It supports COM so, you can do this on windows easily enough. If you aren't using windows (why not? Its the best OS around you know ... oh. sorry. It's not Friday ...) -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net

Re: [PHP] code quest

2010-12-04 Thread Richard Quadling
/function.include.php -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-03 Thread Richard Quadling
On 3 December 2010 11:13, Da Rock php-l...@herveybayaustralia.com.au wrote: On 12/03/10 16:33, Tamara Temple wrote: On Dec 2, 2010, at 11:33 PM, Da Rock wrote: On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rockphp-l...@herveybayaustralia.com.au  wrote: On 11/27

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-03 Thread Richard Quadling
On 3 December 2010 11:13, Da Rock php-l...@herveybayaustralia.com.au wrote: On 12/03/10 16:33, Tamara Temple wrote: On Dec 2, 2010, at 11:33 PM, Da Rock wrote: On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rockphp-l...@herveybayaustralia.com.au  wrote: On 11/27

[PHP] Iterators.

2010-12-03 Thread Richard Quadling
place that can describe the SPL in a different way. I know it's probably just me, but it really seems like I'm only just scratching the surface. And not really getting anywhere. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing

Re: [PHP] Iterators.

2010-12-03 Thread Richard Quadling
On 3 December 2010 16:56, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Dec 3, 2010 at 6:09 AM, Richard Quadling rquadl...@gmail.com wrote: Hi. OK. I'm stuck. I just can't work this out. I like SPL. I like the re-usability. It seems right. But I just can't work it out. I want

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
the data for POST-ing and your script would receive these correctly. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
://www.site.com/script.php?var1=val1var2=val2 then $_GET will contain the result. The same $_GET would hold the values from a form method=get $_POST is for POST-d data (either via form method=post or cURL/Streams). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
start reading http://docs.php.net/manual/en/reserved.variables.php -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] EE1 plugin code/htmlentities() question

2010-11-30 Thread Richard Quadling
anything too special outside of the closing tag. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-28 Thread Richard Quadling
On 27 November 2010 04:45, Da Rock php-l...@herveybayaustralia.com.au wrote: On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rockphp-l...@herveybayaustralia.com.au  wrote

Re: [PHP] Problem with RegEx for BBCode

2010-11-28 Thread Richard Quadling
can't match the string, so nothing is returned. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fw: Spoofing user_agent

2010-11-26 Thread Richard Quadling
Please don't top post. On 25 November 2010 15:38, Ron Piggott ron.pigg...@actsministries.org wrote: Is User Agent suppose to have a hyphen  -  ?   Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -Original Message- From: Richard Quadling

Re: [PHP] Fw: Spoofing user_agent

2010-11-26 Thread Richard Quadling
User-Agent = User-Agent : 1*( product | comment ) Example: User-Agent: CERN-LineMode/2.15 libwww/2.17b3 -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Richard Quadling
, the sendmail_path used is /usr/sbin/sendmail -t -i, which is a regular Postfix sendmail. [1] http://stackoverflow.com/questions/1906403 -- Kind regards,        Tom Hendrikx Are you logging your emails via the ini setting mail.log? Maybe this is the issue. -- Richard Quadling Twitter : EE : Zend

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Richard Quadling
. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Richard Quadling
On 26 November 2010 15:12, Tom Hendrikx t...@whyscream.net wrote: On 26/11/10 15:54, Richard Quadling wrote: On 25 November 2010 21:30, Tom Hendrikx tom+php@whyscream.net wrote: Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux triggers a warning when used. A simple

Re: [PHP] Can't find existing file

2010-11-25 Thread Richard Quadling
snip so how are we to know?); (h) some other PEBKAC issue; snip It's been almost a decade since I've seen 'PEBKAC' used  :) I prefer PICNIC. So you can now have a Senior Picnic or a Kiddies Picnic and it all sounds quite pleasant. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Richard Quadling
an NTLM authentication proxy server because PHP doesn't deal with NTLM authentication. See my user notes on http://docs.php.net/manual/en/function.stream-context-get-default.php. Don't bother with the link at the bottom of the user note- it's not live. Richard. -- Richard Quadling Twitter : EE

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Richard Quadling
? Aren't namespaces handled by the autoloader? If not autoload(), how about spl_autoloading? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I am trying to install PHP on a Windows box, but the PHPINFO page does not load up. Where could I be going wrong?

2010-11-18 Thread Richard Quadling
FastCGI and then PHP (I'd also add WinCache and RewriteURL). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-18 Thread Richard Quadling
different to just editing a plain text config file, but IIS does use an XML file for its config, so, once you know the xsd, you can do that by hand also. Full docs on the xsd are available online, so really, I'd guess in terms of ability, IIS and Apache are on-par. Richard. -- Richard Quadling

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Richard Quadling
instructions. http://docs.php.net/manual/en/install.windows.manual.php : General instructions for installing PHP manually. http://docs.php.net/manual/en/install.windows.commandline.php : Additional instructions for better integration of PHP into the commandline. -- Richard Quadling Twitter : EE

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Richard Quadling
On 16 November 2010 13:21, Jay Blanchard jblanch...@pocket.com wrote: [snip] Hi Folks, is it possible to install PHP on IIS? If yes, can someone please guide me on how to go about doing it? Thanks [/snip] http://www.wampserver.com/en/ Jay, if that had been wimpserver ... -- Richard

Re: FW: [PHP] Why the PEAR hate?

2010-11-16 Thread Richard Quadling
that is used by the typical PHP developer? It depends what you want to use. I use PEAR's Console_CommandLine_Parser and Zend Framework's autoloader, config and SOAP/WSDL classes. Mix'n'match is the name of the game. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html

Re: [PHP] Retrieving function values

2010-11-15 Thread Richard Quadling
use ... string_parse_tool($string_source, $string_to_parse, $string_to_display, $continue_parsing); Depending upon your code, you could drop the first parameter completely, but that would always overwrite the supplied value with the return value. -- Richard Quadling Twitter : EE : Zend @RQuadling

Re: [PHP] php running as module or cgi?

2010-11-11 Thread Richard Quadling
. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php running as module or cgi?

2010-11-11 Thread Richard Quadling
/isapi and fast-cgi. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pros/Cons of using mysqli prepared statments

2010-11-05 Thread Richard Quadling
it is. Using the right tool for the job, AND getting the balance right is what being an experienced developer is all about. Start with what you can understand. Ask questions. Learn. Refactor. Improve. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
with Is this not the same on unix? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:43, Richard Quadling rquadl...@gmail.com wrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
) } intval() operates as standard on base 10, so no need to worry about leading zeros' being thought of as base8/octal. What is your code? Can you reduce it to something as small like the above to see if you can repeat the issue? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
On 4 November 2010 10:33, Richard Quadling rquadl...@gmail.com wrote: ?php // Create test file. $s_TabbedFilename = './test.tab'; file_put_contents($s_TabbedFilename, 0\t0002 . PHP_EOL . 4\t0004 . PHP_EOL); // Open test file. $fp_TabbedFile = fopen($s_TabbedFilename, 'rt') or die

Re: [PHP] Pros/Cons of using mysqli prepared statments

2010-11-04 Thread Richard Quadling
times it is used. You only need to supply the data which will be type appropriate. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pros/Cons of using mysqli prepared statments

2010-11-04 Thread Richard Quadling
On 4 November 2010 10:42, Richard Quadling rquadl...@gmail.com wrote: On 4 November 2010 08:19, Shreyas Agasthya shreya...@gmail.com wrote: Tamara, In one of the earlier threads, it was mentioned mysqli APIs are more secure, faster, and actually maintained. Also, if you use some

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
, Richard Quadling rquadl...@gmail.com wrote: On 3 November 2010 21:42, Alexander Holodny alexander.holo...@gmail.com wrote: To exclude unexcepted behavior in case of wrongly formated input data, it would be much better to use such type-casting method: intval(ltrim(trim($inStr), '0')) 2010

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
, In your opinion what would be the safest way to read and explode (using \t) a text file encoded in UTF-8? On Thu, Nov 4, 2010 at 11:22 AM, Richard Quadling rquadl...@gmail.com wrote: On 4 November 2010 15:11, robert mena robert.m...@gmail.com wrote: Hi, The core of the code is simply $fp

Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?

2010-11-04 Thread Richard Quadling
line and body. I keep getting the emails though. That will unsubscribe you from the digest. Are you getting digest messages or individual messages? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net

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

2010-11-01 Thread Richard Quadling
at all times). Using __call() can be documented using @method, but pretty much only a single line of description. What would you all do? Regards, Richard Quadling. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- 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 Richard Quadling
On 1 November 2010 16:27, Nathan Nobbe quickshif...@gmail.com wrote: On Mon, Nov 1, 2010 at 9:13 AM, Richard Quadling rquadl...@gmail.com wrote: Hi. I have an abstract base class (call it genericServiceHandler). I have concrete classes (FaxService, EmailService

Re: [PHP] Array problem

2010-10-28 Thread Richard Quadling
and that the browser isn't doing something unpredictably bizarre when submitting the form. Just checked the card file, today's cause is: Sunspots. KDK I always believed that cosmic radiation was the cause. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Richard Quadling
On 22 October 2010 13:59, Andy McKenzie amckenz...@gmail.com wrote: There are already a few people on the list whose posts I just glance at to see if there's code, and skip if there's not. ?php echo 'Have I been skipped?', PHP_EOL; ? -- Richard Quadling Twitter : EE : Zend @RQuadling : e

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Richard Quadling
/Godwin's_Law -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Richard Quadling
on line 2 at column 8: CharRef: invalid decimal value Below is a rendering of the page up to the first error. The only thing I could do was ... ?xml version=1.0? tagamp;reg;/tag -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing

Re: [PHP] My truth comes out [1]

2010-10-21 Thread Richard Quadling
]  Mask, Henry Rollins [1] Ugh! Ugly Houses, Chumbawamba. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My truth comes out [1]

2010-10-21 Thread Richard Quadling
when the string is NOT TRUE or FALSE? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My truth comes out [1]

2010-10-21 Thread Richard Quadling
On 21 October 2010 12:42, Richard Quadling rquadl...@gmail.com wrote: On 21 October 2010 10:39, Gary php-gene...@garydjones.name wrote: Is there any nice way to convert a string containing either TRUE or FALSE to a bool with the appropriate value? I know I can just if (strcmp

Re: [PHP] A mysql question...

2010-10-21 Thread Richard Quadling
WHERE B.BlockedByID = x ) The Subselect finds all the user ids blocked by x. The main select finds all users who are NOT in the subselects list. I'm pretty sure a subselect isn't as efficient as it could be though. -- Richard Quadling

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Richard Quadling
On 21 October 2010 15:53, Bastien Koert phps...@gmail.com wrote: Parenting ruins everything ;-) Ideally, yes. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Richard Quadling
On 21 October 2010 21:01, Jay Blanchard jblanch...@pocket.com wrote: [snip] Orwellian! [/snip] Nazi's did it! !Godwin! -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Firs Day Of Week UNIX

2010-10-20 Thread Richard Quadling
date('r', strtotime('-1 week', strtotime('next saturday'))); // Sat, 16 Oct 2010 00:00:00 +0100 ? Take 1 week off the next day that they want. If today is the start of the week, then today will be returned. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly

Re: [PHP] Re: strtotime

2010-10-18 Thread Richard Quadling
On 17 October 2010 20:34, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Yaay, I'm 45 now :). Happy Birthday. ;-) -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Help with sending credentials?

2010-10-15 Thread Richard Quadling
... https://myUsername:mypassw...@http://servername.com/script work? Is this a SOAP based web service? Are they expecting the SOAPHeader to contain the authentication? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http

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

2010-10-15 Thread Richard Quadling
/preg_replace). Something like:  $subject = preg_replace(/^re\[(\d+)\:](.+?)$/eusi, 're['.(\\1+1).']:\\2', $f['Subject']); Cheers! Mike Watch out for the missing '[1]'. This needs to become '[2]' and not '[1]'. The callback seems to be the only way I could get the regex to work. -- Richard

Re: [PHP] Help with sending credentials?

2010-10-15 Thread Richard Quadling
On 15 October 2010 10:51, Tommy Pham tommy...@gmail.com wrote: -Original Message- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: Friday, October 15, 2010 1:47 AM To: Brian Dunning Cc: PHP-General List Subject: Re: [PHP] Help with sending credentials? On 14 October 2010

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

2010-10-15 Thread Richard Quadling
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: -Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: 14

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread Richard Quadling
, I was doing my own output buffering. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread Richard Quadling
On 14 October 2010 15:09, Richard Quadling rquadl...@gmail.com wrote: then that is _PROBABLY_ of for a small one of script or a very very ... _PROBABLY_ ok ... -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http

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

2010-10-14 Thread Richard Quadling
]: A dummy subject. Re[7]: A dummy subject. Re[8]: A dummy subject. Re[9]: A dummy subject. Re[10]: A dummy subject. Re[11]: A dummy subject. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Zend studio location Cross-Domain Scripting Vulnerability

2010-10-13 Thread Richard Quadling
time. Created the scenario for this vulnerability. Get an exception. MS Visual Studio shows a HTML block with the script tag in it and that is highlighted as the error. Microsoft JScript runtime error: Automation server can't create object. -- Richard Quadling Twitter : EE : Zend @RQuadling

Re: [PHP] Scripts running twice

2010-10-12 Thread Richard Quadling
manually, then they still run the twice.sorry about missing that bit out... On 11/10/10 14:27, Richard Quadling wrote: On 11 October 2010 21:20, Alexisphplis...@antonakis.co.uk  wrote: Thanks for the quick response...checked and no duplicates Richard On 11/10/10 14:14, Richard Quadling

Re: [PHP] Problem with DATE 2010-10-31

2010-10-12 Thread Richard Quadling
00:00:00 BST date+1h: 2010-10-31 01:00:00 BST date+2h: 2010-10-31 02:00:00 BST date+3h: 2010-10-31 02:00:00 GMT date+4h: 2010-10-31 03:00:00 GMT date+5h: 2010-10-31 04:00:00 GMT date+6h: 2010-10-31 05:00:00 GMT -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly

Re: [PHP] Scripts running twice

2010-10-12 Thread Richard Quadling
On 12 October 2010 17:16, Alexis phplis...@antonakis.co.uk wrote: If you mean how am I triggering the script, then I am simply opening it up in my web browser... On 12/10/10 04:21, Richard Quadling wrote: On 11 October 2010 21:37, Alexisphplis...@antonakis.co.uk  wrote: Thanks

Re: [PHP] Scripts running twice

2010-10-11 Thread Richard Quadling
/) To unsubscribe, visit: http://www.php.net/unsub.php Take a look in C:\windows\tasks. Do you have a load of Copy of versions? If you see multiple versions, just delete them. You may need to do this via a command prompt to see the copies. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com

Re: [PHP] Scripts running twice

2010-10-11 Thread Richard Quadling
On 11 October 2010 21:20, Alexis phplis...@antonakis.co.uk wrote: Thanks for the quick response...checked and no duplicates Richard On 11/10/10 14:14, Richard Quadling wrote: On 11 October 2010 21:10, Alexisphplis...@antonakis.co.uk  wrote: Hi, A very vague question here I am afraidI

Re: [PHP] What other languages do you use?

2010-10-09 Thread Richard Quadling
(other than work/day-job/client requires it) (2) about to jump in to another language Best, Nathan 私の名前はリチャードであり、私は日本語を学んでいる。 -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php5 - website development - what next

2010-10-08 Thread Richard Quadling
in .BAT with some .EXEs. The SysOps are happier as it is just a normal windows services (so they can stop/start/pause it). Shutdown/bootup server - all OK. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-05 Thread Richard Quadling
The issue _WAS_ the firewall. All sorted. Thank you. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Filesystem path creation function

2010-10-05 Thread Richard Quadling
. DIRECTORY_SEPARATOR . $f;} -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Filesystem path creation function

2010-10-05 Thread Richard Quadling
= 'bar'; $path = createPathString($d, $f); ? on *n*x would also result in 'foo/bar' (i.e. the path would only contain one /). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php http://www.php.net/manual/en/dir.constants.php -- Richard

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread Richard Quadling
? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little Parsing help...

2010-10-04 Thread Richard Quadling
out ;-) Thanks again for the feedback. Don On Oct 1, 2010, at 7:02 AM, Richard Quadling wrote: Changing the NormalKeyID and using that ID with NoteSequenceNumber should give you the new note to play. I think. /** * Transpose a chord sequence. * * @param $s_Sequence The chord sequence

Re: [PHP] Little Parsing help...

2010-10-04 Thread Richard Quadling
On 4 October 2010 11:26, Richard Quadling rquadl...@gmail.com wrote: On 1 October 2010 16:20, Don Wieland d...@pointmade.net wrote: The logic I need is pretty straight forward, but I am having a hard time replicating it using PHP functions. I will try to break it down to it's simplest form

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread Richard Quadling
On 4 October 2010 11:24, Richard Quadling rquadl...@gmail.com wrote: On 4 October 2010 10:48, kranthi kranthi...@gmail.com wrote: http_proxy or HTTP_PROXY i m not sure Thanks. Passing it on (and learning a bit). http://docs.php.net/manual/en/function.stream-context-get-default.php#72086

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread Richard Quadling
On 4 October 2010 10:48, kranthi kranthi...@gmail.com wrote: http_proxy or HTTP_PROXY i m not sure Thanks. Passing it on (and learning a bit). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net

Re: [PHP] Little Parsing help...

2010-10-04 Thread Richard Quadling
On 4 October 2010 16:10, Adam Richardson simples...@gmail.com wrote: On Mon, Oct 4, 2010 at 6:29 AM, Richard Quadling rquadl...@gmail.comwrote: http://pastebin.com/rsV35czb Code with tests and output. Nice code, Richard. Adam Thank you. -- Richard Quadling Twitter : EE : Zend

Re: [PHP] Little Parsing help...

2010-10-01 Thread Richard Quadling
, NoteSequenceNumber) - Which notes are played. Changing the NormalKeyID and using that ID with NoteSequenceNumber should give you the new note to play. I think. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http

[PHP] file_get_contents() failing on CentOS.

2010-09-30 Thread Richard Quadling
to read/try/etc. Regards, Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2010-09-30 Thread Richard Quadling
and supplied patches. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-09-30 Thread Richard Quadling
On 30 September 2010 20:27, Adam Richardson simples...@gmail.com wrote: On Thu, Sep 30, 2010 at 5:02 AM, Richard Quadling rquadl...@gmail.com wrote: Hi. I'm trying to help a friend with a CentOS setup. He's installed PHP and SOAP using yum install php-soap and he is having problems. I

Re: [PHP] Php Newsletter script

2010-09-28 Thread Richard Quadling
On 28 September 2010 11:29, a...@ashleysheridan.co.uk a...@ashleysheridan.co.uk wrote: Still hit and miss though, outlook is just one if many email clients out there. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Richard Quadling rquadl...@gmail.com Date

Re: [PHP] Auto-generating HTML

2010-09-21 Thread Richard Quadling
to build the pages, then a templating system compatible with the designer's tools would be a good option. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: 1984 (Big Brother)

2010-09-14 Thread Richard Quadling
/unsub.php Hmm. I think there is a really easy, cost free, way to deal with this. You get all the employees in a room, with the boss. And then you tell them that when the boss isn't in, they don't have to do any work. I'm pretty sure the employees will be your new BFFs. -- Richard Quadling

Re: [PHP] Disabling an extension on a perdir basis.

2010-09-13 Thread Richard Quadling
On 12 September 2010 09:19, David Robley robl...@aapt.net.au wrote: Richard Quadling wrote: On 11 September 2010 20:24, Jim Lucas li...@cmsws.com wrote: As I thought, looking through the docs, it looks like the only way to set the options that are only settable via the php.ini file is to use

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Richard Quadling
. Do they have a clock card system for clocking in/out the building? Could you read the database that the clockings are logged in? An odd number for the day = he's in, even = he's out, missed clocking = screwed/guess. Ideally you want to hook into his normal activity if you can. -- Richard

Re: [PHP] Disabling an extension on a perdir basis.

2010-09-12 Thread Richard Quadling
for that. FastCGI. Will do some more work on it now. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Disabling an extension on a perdir basis.

2010-09-11 Thread Richard Quadling
Hi. Can't seem to see a way to do this. Is there a way to do this? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disabling an extension on a perdir basis.

2010-09-11 Thread Richard Quadling
On 11 September 2010 17:56, Jim Lucas li...@cmsws.com wrote: Richard Quadling wrote: Hi. Can't seem to see a way to do this. Is there a way to do this? Are you talking about a PHP extension or a file extension? I sat there for about a minute reading Ashley's comment, thinking what

Re: [PHP] Zend framework

2010-09-10 Thread Richard Quadling
learn the code I need to use rather than jumping in at the deep end and struggle trying to do everything. Regards, -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Show text without converting to html

2010-09-09 Thread Richard Quadling
;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#00046;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   >