Re: [PHP] imap_open use to read the sent mail using gmail

2013-03-13 Thread TR Shaw
On Mar 13, 2013, at 10:20 AM, Kevin Peterson wrote: Hi, I am using imap_open ({imap.gmail.com:993/imap/ssl/novalidate-cert/norsh}Inbox, $user, pass) but want to access gmail sent box not the inbox. Please suggest how to proceed. Use $mboxes = imap_getmailboxes($imap,

Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP

2012-07-30 Thread TR Shaw
the following as a PM to TR Shaw... The OS is 10.7 Lion Server! (I'm really emphisising server, because when I presented my situation to our IT and a call to Apple I was told that it was there! By the end of the call Apple said, sorry (after a nearly 20min hold, suppose he asked someone more

Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP

2012-07-28 Thread TR Shaw
Actually, adding extensions (even normally bundled ones) to the stock Snow Leopard PHP is quite easy: 1) Download the source tarball of php and unpack it 2) cd into ext/name_of_the_extension (like ext/intl in your case) 3) run phpize 4) run ./configure with appropriate flags 5) make install

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread TR Shaw
On Jun 26, 2012, at 3:28 PM, Steven Staples wrote: -Original Message- From: Govinda [mailto:govinda.webdnat...@gmail.com] Sent: June 26, 2012 3:25 PM To: PHP-General List Subject: Re: [PHP] What's happened to our newsgroup? No postings for days. everyone RTFM? :-)

Re: [PHP] Re: Variables via url

2012-05-12 Thread TR Shaw
On May 12, 2012, at 9:47 AM, Ashley Sheridan wrote: On Sat, 2012-05-12 at 09:21 -0400, Jim Giner wrote: Ashley M. Kirchner ash...@pcraft.com wrote in message news:4fad9d8b.4020...@pcraft.com... Can someone point me at examples or directions on how I can pass a variable via a URL in

[PHP] preg_replace_callback

2012-04-20 Thread TR Shaw
It appears that preg_replace_callback has a memory leak at least in version 5.3.8. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace_callback

2012-04-20 Thread TR Shaw
On Apr 20, 2012, at 4:18 PM, Stuart Dallas wrote: On 20 Apr 2012, at 21:00, TR Shaw wrote: It appears that preg_replace_callback has a memory leak at least in version 5.3.8. Based on what? If you have a repeatable test that demonstrates this behaviour please create a bug report

Re: [PHP] preg_replace_callback

2012-04-20 Thread TR Shaw
Bug #61792: preg_replace_callback memory leak On Apr 20, 2012, at 4:43 PM, Igor Konforti wrote: Please reply here with bug #number :) On Fri, Apr 20, 2012 at 23:21, TR Shaw ts...@oitc.com wrote: On Apr 20, 2012, at 4:18 PM, Stuart Dallas wrote: On 20 Apr 2012, at 21:00, TR Shaw

Re: [PHP] insteadof considered harmful

2012-04-09 Thread TR Shaw
On Apr 9, 2012, at 7:15 AM, Szczepan Hołyszewski wrote: I must admit with embarrassment that after months of googling and posting questions to various forums I still fail to understand the purpose of the insteadof keyword and the insteadof clause. As I currently see it, the whole

[PHP] file url access funniness

2012-03-10 Thread TR Shaw
This is weird. This statement fails: $tlds = file(http://www.surbl.org/tld/three-level-tlds;, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); Warning: file(http://www.surbl.org/tld/three-level-tlds): failed to open stream: HTTP request failed! HTTP/1.0 502 Bad Gateway also tried the

Re: [PHP] basic captcha

2012-02-17 Thread TR Shaw
On Feb 17, 2012, at 12:36 AM, Patrick Hafner wrote: Hi, have you tried reCAPTCHA by Google? You can find the PHP library on the website. Easy to use, customizable and free, but nothing to install on your server (no open source) But it aid OCR to Text activities at google and all

Re: [PHP] php.net problems?

2012-01-23 Thread TR Shaw
From here is US everthing is hosed. Also hosed in CA mirrors. Additionally site says last updated today at 15:20:19 MST bit it is 11:40 MST! On Jan 23, 2012, at 1:36 PM, Dpto Ingeniería y Desarrollo wrote: I can access to php.net, but in the 'Documentation', it doesn't show the View

[PHP] Status from secur...@php.net

2012-01-23 Thread TR Shaw
, TR Shaw wrote: None of the US and CA sites work anymore Some pages even generate errors on main page others give semi blank pages when searching for a function. Running dual stack from OSX. (I reverted to IPv4 only with no change) Please advise Tom

Re: [PHP] ip2long and ipv6

2012-01-09 Thread TR Shaw
On Jan 9, 2012, at 4:44 AM, Arno Kuhl wrote: My dev and test tools are windows based and the apps deployed on linux, and it's been working well. But moving to win7 created problems because it uses ipv6 and code for ratings is for ipv4. Specifically, using ip2long to save the ip as an int (to

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread TR Shaw
On Jan 4, 2012, at 9:09 AM, Richard Quadling wrote: Hi. Where do I put my php.ini file for a MacBook Air? I've only had it 2 days and having trouble with the date.timezone setting. Open terminal type php -i search for php.ini you will find it in /etc where is should be on unix. If

Re: [PHP] phpsadness

2011-05-28 Thread TR Shaw
Well the argument has both sides. Division by zero on many platforms resulted in zero. Then came IBM360 and it generated an exception causing big time issues in legacy code so a OS patch was written to intercept the interrupt, jam the result to zero and return. Although mathematically

Re: [PHP] Command line PHP

2011-01-08 Thread TR Shaw
On Jan 7, 2011, at 8:50 PM, David Hutto wrote: On Fri, Jan 7, 2011 at 8:44 PM, TR Shaw ts...@oitc.com wrote: On Jan 7, 2011, at 8:36 PM, David Hutto wrote: I'm with some of the others above on using Python. Writing a command line app is about as simple as: import subprocess word

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread TR Shaw
On Jan 8, 2011, at 12:09 PM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9])

Re: [PHP] Command line PHP

2011-01-07 Thread TR Shaw
On Jan 7, 2011, at 12:08 PM, Nicholas Kell wrote: On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: Hi folks. I have a project coming up that will involve writing a non-trivial command line PHP application. Most of it will be

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread TR Shaw
On Dec 29, 2010, at 12:56 PM, Joshua Kehn wrote: On Dec 29, 2010, at 12:37 PM, tedd wrote: At 11:06 AM +0200 12/29/10, Dotan Cohen wrote: Also, change them {passwords} frequently. I've always wondered about that -- if your password works, then why change it? Where's the logic in that?

[PHP] IPV6

2010-12-29 Thread TR Shaw
IPV6 support needs to be incorporated ASAP as the network is moving fast that way. We are adding IPV6 this year yet all network functions (http://us2.php.net/manual/en/ref.network.php) still are only IPV4. Given the transition pain to come, early IPV6 support would help ease the transition.

Re: [PHP] sending emails

2010-12-09 Thread TR Shaw
On Dec 9, 2010, at 1:36 PM, Marc Fromm wrote: We have web forms that send the user an email confirmation after submission, like most forms do. The emails are being delivered to the users' junk folder. The main campus IT staff claim it is because our server is sending the emails. The

Re: [PHP] sending emails

2010-12-09 Thread TR Shaw
On Dec 9, 2010, at 2:06 PM, Ashley Sheridan wrote: On Thu, 2010-12-09 at 14:03 -0500, TR Shaw wrote: On Dec 9, 2010, at 1:36 PM, Marc Fromm wrote: We have web forms that send the user an email confirmation after submission, like most forms do. The emails are being delivered

Re: [PHP] zip_entry_read buggy? runs endless on file with crc-error - freezes on corrupt file

2010-12-08 Thread TR Shaw
On Dec 8, 2010, at 6:42 PM, Merlin Morgenstern wrote: Hi there, I am running a php file via cron where zip files will be extracted with the help of zip_entry_read. This worked great until I had a corrupted zip file to extract. This braught the server down as the php script never ended.

Re: [PHP] protecting email addresses on a web site

2010-11-16 Thread TR Shaw
On Nov 16, 2010, at 4:02 PM, Bastien Koert wrote: On Tue, Nov 16, 2010 at 3:36 PM, Grega Leskovšek legr...@gmail.com wrote: I tried this: ?php echo span class=\safety\sssa/moc.li...@ood.sulpcoj\moc.li...@ood.sulpcoj:otliam\=ferh a/span; ? and css: .safety { direction:rtl; unicode-bidi:

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-01 Thread TR Shaw
It looks like someone is using a very old copy of the winnow unofficial clamav files. There was a pastie that contained a zeus injection some time ago but it has been removed and the former signature was removed from our database at that time. Tom Begin forwarded message: From: Tamara

Re: [PHP] Check for existence of mail address

2010-10-26 Thread TR Shaw
On Oct 25, 2010, at 6:46 PM, Daniel P. Brown wrote: On Mon, Oct 25, 2010 at 18:38, web...@blaettner.com wrote: Is there any other function which checks whether this address really exists? Of course not! Can you imagine the implications, insecurities, and privacy concerns that would

Re: [PHP] Check for existence of mail address

2010-10-26 Thread TR Shaw
On Oct 25, 2010, at 6:38 PM, web...@blaettner.com wrote: Hi, folks, I'm wondering how to checking existence of a given mail address like f...@bar.com . At 1st I tried: if f (filter_var ($maddr, FILTER_VALIDATE_EMAIL) === false) { /* some sort of error handling code here */ }

Re: [PHP] Check for existence of mail address

2010-10-26 Thread TR Shaw
On Oct 26, 2010, at 8:49 AM, TR Shaw wrote: On Oct 25, 2010, at 6:38 PM, web...@blaettner.com wrote: Hi, folks, I'm wondering how to checking existence of a given mail address like f...@bar.com . At 1st I tried: if f (filter_var ($maddr, FILTER_VALIDATE_EMAIL) === false

Re: [PHP] Check for existence of mail address

2010-10-26 Thread TR Shaw
On Oct 26, 2010, at 9:28 AM, Bob McConnell wrote: From: TR Shaw On Oct 25, 2010, at 6:46 PM, Daniel P. Brown wrote: On Mon, Oct 25, 2010 at 18:38, web...@blaettner.com wrote: Is there any other function which checks whether this address really exists? Of course not! Can you

[PHP] Entity 'reg' not defined

2010-10-22 Thread TR Shaw
Anyone have an idea how to work around this? I tried: define ('reg', '®'); define ('reg;', '®'); can't figure how to override the entity table. Errors follw: Warning: simplexml_load_string(): o.cc/46/e53d68e007fd45c2fccb502f2e7ccad5.php?user_id=47amp;sub_id=61862469reg; in checkifup.php on

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread TR Shaw
On Oct 22, 2010, at 1:56 PM, Ashley Sheridan wrote: On Fri, 2010-10-22 at 12:03 -0400, Adam Richardson wrote: On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw ts...@oitc.com wrote: Anyone have an idea how to work around this? I tried: define ('reg', '®'); define ('reg;', '®'); can't

Re: [PHP] Re: zip and mac safari

2010-10-09 Thread TR Shaw
. Best Martin On Oct 8, 2010, at 17:18, TR Shaw ts...@oitc.com wrote: I don't have any problem in this regard. On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote: M. Reuter wrote: Hi, does anyone know how to use a php script to zip a folder (with a subfolder) so that safari can open

Re: [PHP] Re: zip and mac safari

2010-10-08 Thread TR Shaw
I don't have any problem in this regard. On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote: M. Reuter wrote: Hi, does anyone know how to use a php script to zip a folder (with a subfolder) so that safari can open it and not decompresses forever? if it works in other browsers, and not in

Re: [PHP] which one is faster

2010-10-05 Thread TR Shaw
On Oct 5, 2010, at 3:23 PM, saeed ahmed wrote: $a = 'hey'; $b = 'done'; $c = $a.$b; $c = $a$b; which one is faster for echo $c. Depends upon the platform its running on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and SpatiaLite

2010-10-01 Thread TR Shaw
Anyone succeeded in geting php and SpatiaLite to work together?

Re: [PHP] Re: GD Watermark Question-

2010-09-19 Thread TR Shaw
On Sep 19, 2010, at 11:50 AM, tedd wrote: At 12:36 AM +0100 9/18/10, Ashley Sheridan wrote: I know this is getting a little off-topic here, but surely the way a jpeg destroys data in an image would destroy the stenography information too? To the human eye all would appear normal, but the

Re: [PHP] PHP Email Question

2010-09-19 Thread TR Shaw
On Sep 19, 2010, at 6:00 PM, Joe Jackson wrote: Hi Sorry for the simple question but I am trying to get my head around PHP. I have a sample PHP script that I am trying to use to send a php powered email message. The snippet of code is shown below mail('em...@address.com',

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
Gary you do realize that if you display the image in a browser without the watermark, simple drag and drop can copy the image as is (eg without the watermark) Tom On Sep 17, 2010, at 6:21 PM, Gary wrote: Gary gp...@paulgdesigns.com wrote in message

Re: [PHP] 1984 (Big Brother)

2010-09-17 Thread TR Shaw
I guess I need to chime in. Besides the fact that his is a moron - the customer is always right - at least as long as he is paying OK simplest way to handle this is: 1) Set the_db ownership and permissions to chown theboss:employees the_db chmod 0700 the_db 2) Attach a script to his

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
On Sep 17, 2010, at 6:49 PM, Ashley Sheridan wrote: On Fri, 2010-09-17 at 18:41 -0400, TR Shaw wrote: Gary you do realize that if you display the image in a browser without the watermark, simple drag and drop can copy the image as is (eg without the watermark) Tom On Sep 17

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
On Sep 17, 2010, at 6:58 PM, Ashley Sheridan wrote: On Fri, 2010-09-17 at 18:56 -0400, TR Shaw wrote: On Sep 17, 2010, at 6:49 PM, Ashley Sheridan wrote: On Fri, 2010-09-17 at 18:41 -0400, TR Shaw wrote: Gary you do realize that if you display the image in a browser without

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
On Sep 17, 2010, at 7:25 PM, Ashley Sheridan wrote: On Fri, 2010-09-17 at 19:20 -0400, TR Shaw wrote: On Sep 17, 2010, at 6:58 PM, Ashley Sheridan wrote: On Fri, 2010-09-17 at 18:56 -0400, TR Shaw wrote: On Sep 17, 2010, at 6:49 PM, Ashley Sheridan wrote: On Fri, 2010-09-17 at 18

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
On Sep 17, 2010, at 7:36 PM, Ashley Sheridan wrote: Even the stenography has its flaws. Opening the image in an image editor, then doing a select all and pasting as a new image would remove any hidden meta info, and saving a couple of times as a jpeg would destroy any detailed