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, "{imap.

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

2012-07-30 Thread TR Shaw
> turned off at some not so obvious point just waiting to be restored. > > I originally sent 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 tha

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. >> >> everyo

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"" 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

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 wrote: > >> >> On Apr 20, 2012, at 4:18 PM, Stuart Dallas wrote: >> &

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 behaviou

[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] 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 whol

[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 al

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

2012-01-23 Thread TR Shaw
johannes > > On Mon, 2012-01-23 at 13:37 -0500, 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] 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 > onli

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

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.

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 undefined

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

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 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 ab

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

[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] 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 log

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 m

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 c

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 ende

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

2010-12-08 Thread TR Shaw
On Dec 8, 2010, at 5:50 PM, Moses wrote: > Hi Everyone, > > I am trying to run a python script in php using exec or system command, but > there is > no answer. > > musa I agree we need to see what you have done and on what OS but something like this is what you should be looking at: $data_fro

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 wrote: >> I tried this: >> > class=\"safety\">sss>a/> a>"; >> ?> >> and css: >> .safety { direction:rtl; unicode-bidi: bidi-override; } >> for the address jocplus@gmail.com >> but I haven't m

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 Temp

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, wrote: >>>> >>>> Is there any other function which checks whether this >>>>

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: >>

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 25, 2010, at 6:46 PM, Daniel P. Brown wrote: > On Mon, Oct 25, 2010 at 18:38, 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 be associa

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 wrote: >> >>> Anyone have an idea how to work around this? I tried: >>> >>

[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 ('®', '®'); can't figure how to override the entity table. Errors follw: Warning: simplexml_load_string(): o.cc/46/e53d68e007fd45c2fccb502f2e7ccad5.php?user_id=47&sub_id=61862469® in checkifup.php on line 5119

Re: [PHP] Re: zip and mac safari

2010-10-09 Thread TR Shaw
ng solution let me know. > > Best Martin > > On Oct 8, 2010, at 17:18, TR Shaw 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, >&

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 n

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] Auto-generating HTML

2010-09-20 Thread TR Shaw
On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: > Hey folks, > > I have the feeling this is a stupid question, but I can't even find > anything about it. Maybe I'm just not searching for the right things. > > Here's the problem. I'm writing a lot of pages, and I hate going in > and out of

Re: [PHP] PHP Email Question

2010-09-20 Thread TR Shaw
> I am getting PHP errors, what would be the correct syntax I would need to > use to get the following form field values into the email body. > > I greatly appreciate all your expert advice and help. > > > On Sun, Sep 19, 2010 at 11:37 PM, TR Shaw wrote: > >> >>

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-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, b

Re: [PHP] 1984 (Big Brother)

2010-09-18 Thread TR Shaw
If you mean "not logoff properly" as, for instance, getting up and leaving his office for the day without logging off you can run a script when the machine "sleeps" or the screen saver runs and runs again when the machine transitions back to run. If your talking about powering off, same scripti

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 >>

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: >>>> >>>&

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 >&g

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

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 l

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"" wrote in message > news:1f.27.30333.1d5e3...@pb1.pair.com... >> Is there