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
, 'ch', > 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cu', 'cv', 'cx', 'cy', 'cz', > 'de', 'dj', 'dk', 'dm', 'do

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

[PHP] A strange problem..

2005-04-03 Thread JoShQuNe \(TR\)
Hi, i have a strange problem. In my site i have to counters for file downloads. One is general, other is weekly. On the main page i display a list sorted according to weekly hits. The problem is there: i give this prompt mysql_query("SELECT * FROM table ORDER BY weekly_hits DESC LIMIT 15") to displ

Re: [PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
--- Richard Lynch <[EMAIL PROTECTED]> wrote: > On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said: > > Hi, i want to add my site a more specific download system. The redirecting > > is now done by directly > > giving the path of the file to variable. I want to

[PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php?rel=/files/somefile.zip, i want: dl.php?id=64b3j283) The file path and id is read from mysql table. System i

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread JoShQuNe \(TR\)
Thnx for yr answers. I fixed it. Problem was the places of codes. They were line under line now i took to the beginning and itz calculating correctly.. The code was: //Beginning $mtime = explode(" ",microtime()); $starttime = $mtime[1] + $mtime[0]; //Just before i print $mtime = explode(" ",microt

[PHP] How can i calculate total process time?

2005-03-15 Thread JoShQuNe \(TR\)
Hi, i wanna ask if anybody knows how to calculate the total process time of a script. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe tha

[PHP] How can i calculate total process time?

2005-03-05 Thread JoShQuNe \(TR\)
Hi, i wanna ask if anybody knows how to calculate the total process time. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe that it is equa

Re: [PHP] exec() function

2005-01-10 Thread tr
akshay wrote / napÃsal (a): exec() function is not working. Is there any setting in PHP.ini Do you use PHP5? If yes, use instead: example: $var=shell_exec('ls'); trobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advice for Experienced web developer newish to PHP

2005-01-09 Thread tr
Justin wrote / napísal (a): Hi all, I'm a experienced web programmer, that is taking on a PHP project. I'm really looking to get the tricks and tips that come with experience, the lazy way :-) Project Overview Its basically a corporate info website, with an admin section to add/change content. It

Re: [PHP] where can i find some tutorials aout sockets ?

2005-01-09 Thread tr
Serban Nicolae wrote / napísal (a): where can i find some tutorials aout sockets ? get a good book or search www.google.com trobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] From Poland

2005-01-09 Thread tr
Ewa Rubach Wardawy wrote / napísal (a): Dear Greg! This is Jarek.Wardawy. It's not a joke I promisse! This is my real name. Some time ago I found your name in internet I wrote an e-mail to you. No answer. Maybe this time. I' m from Poland, living in a city Ostrow Wielkopolski. I'm working as a j

Re: [PHP] How do I start at a specific position in an array? Is there a function?

2005-01-09 Thread tr
Brent Clements wrote / napísal (a): I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent next($array) prev(

Re: [PHP] PHP Help

2005-01-08 Thread tr
TonyC wrote / napísal (a): I have used Dreamweaver 4.0 for editing my html files and love its 'design view; so I know exactly what the file looks like before I upload to the server. We currently now are incorporating a shopping cart into our site and the files are in 'php' format. When I open a

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread tr
tr wrote / napísal (a): John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread tr
John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown o

[PHP] I really need help...

2004-12-19 Thread JoShQuNe \(TR\)
I really need help to solve this problem. Help me to solve, please do not say to ask someone else. My problem is i have .txt file size of 3-5 kb with long rows. I have a mysql table and a column type of longtext, name "html". What I have to do is: I have to open .txt and read inside and insert t

[PHP] RE: unserialize() unexpectedly returns a boolean

2001-01-19 Thread TR Henigson
uot;street\";s:1 8:\"8158 AA Avenue\";s:4:\"city\";s:11:\"Los Angeles\";s:5:\"state\";s:1:\"5\";s:7:\"zipcode\";s:5:\"0\";s:7:\"countr y\";s:13:\"United States\";s:5:\"phone\";s:14:\"(0

[PHP] unserialize() unexpectedly returns a boolean

2001-01-16 Thread TR Henigson
I built an e-commerce application using PHP4 session management. I store all data in an array, $SESSION, which I register with the session. Most of the time, $SESSION is restored as expected on the loading of a new page. Every now and then, however, $SESSION is restored as a boolean variable with

[PHP] serialized respresentations of variables

2001-01-11 Thread TR Henigson
I can see that "a" represents "Array", "s" represents "String", "i" represents "Index". What does "b" represent and is there any documentation for other representations? Ted -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma