[PHP] Re: Friday's Question

2013-09-22 Thread Jonesy
On Fri, 20 Sep 2013 12:51:49 -0400, Tedd Sperling wrote:

 Do you use a Mousepad?

Age: 70
Mousepad: No.  Been using trackballs since 1993...
(No room for a mousepad on _my_ desktop!)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: What the hell is Begacom?

2013-08-04 Thread Jonesy
On Sun, 4 Aug 2013 14:02:07 +0200, Camilo Sperberg wrote:

 Sent from my iPhone 6 Beta [Confidential use only]

You need not apologize. :-)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Some Advice

2013-06-25 Thread Jonesy
On Tue, 25 Jun 2013 09:40:04 -0300, Samuel Lopes Grigolato wrote:
 --047d7b2e430e0b34d004dff9d47c
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable

 Just be cautious if going to check IP, because:

 1) The two users could be in the same house or cybercaf=E9, which gives the=
 m
 the same IP.
 2) The user could be traveling with a wireless card, his IP would change
 quite a lot in this scenario.

Or, it could be an AOL user and requess could be routed through
who knows how many different requestors.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Jonesy
On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote:
 I'm adding some minification to our cache.class.php and am running into an
 edge case that is causing me grief.

 I want to remove all comments of the // variety, HOWEVER I don't want to
 remove URLs...

KISS.

To make it simple, straight-forward, and understandable next year when I 
have to re-read what I've written:

I'd change all :// to QqQ  -- or any unlikely text string.

Then I'd do whatever needs to be done to the // occurances.

Finally, I'd change all QqQ back to ://.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Jonesy
On Wed, 23 May 2012 00:24:25 -0400, admin wrote:
 -Original Message-
 From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] 
 Sent: Wednesday, May 23, 2012 12:13 AM
 To: php-general@lists.php.net
 Subject: [PHP] w.r.t. mail() function

 Hi ,

 I have a query w.r.t. mail() function in php.

 I have hosted my site and i have created an email account as well.

 when i am sending mail to different recipient from my php script using above
 function it is getting delivered to respective recipients as expected.

 However if I want to see those mail in the sent folder of my email account ,
 i can not see those mails there.

 How can I achieve this.

 Any suggestions.

 Bad quoting above by the below: 

 You can change the settings of sendmail
 http://www.devshed.com/c/a/Administration/Getting-Started-with-Sendmail/12/

 OR
 You can log text or database each email.
 $query = INSERT INTO mail_log (`subject`,`to`,`from`,`message`,`mail_date`)
 values ('.mysql_real_escape_string( $subject ).',
 '.mysql_real_escape_string( $to ).', '.mysql_real_escape_string( $from
 ).', '.mysql_real_escape_string( $message ).', '.date(Y-m-d H:i:s).')
 ;


Or, you can Bcc: yourself and filter (procmail) the email into your 
sent-mail folder.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Time zone in date function

2012-01-31 Thread Jonesy
On Tue, 31 Jan 2012 14:57:41 +1300, Simon J Welsh wrote:
 On 31/01/2012, at 2:55 PM, Ron Piggott wrote:

 
 On my clients account when I use ?echo date(?D, d M Y H:i:s');? the output 
 is 5 hours ahead of us.  How do I change it to my local time?  Is there a 
 way to specify ?Eastern? time zone?
 
 I expect this would work:
 
 echo date(?D, d M Y H:i:s' , ( strtotime( date(?D, d M Y H:i:s') ? 21600  ) 
 ) );
 
 I would prefer to specify Eastern time, so if the web host changes a server 
 setting it will remain in Eastern time zone.  Ron

 You can set the timezone for your script using date_default_timezone_set() 
 http://php.net/manual/en/function.date-default-timezone-set.php

(wrap your lines, folks!)

Is there a reason _not_ to use viz:

putenv(TZ=America/Anguilla);  
 ??

Or, is it simple Just The Linux Way(tm) , i.e. there's 
always more than one way to do a 'thing'?

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Time zone in date function

2012-01-31 Thread Jonesy
On Tue, 31 Jan 2012 17:15:48 +0100, Matijn Woudt wrote:
 On Tue, Jan 31, 2012 at 4:22 PM, Jonesy gm...@jonz.net wrote:

 Is there a reason _not_ to use viz:

        putenv(TZ=America/Anguilla);
  ??

 Or, is it simple Just The Linux Way(tm) , i.e. there's
 always more than one way to do a 'thing'?

 From the PHP Manual:
 every call to a date/time function will generate a E_NOTICE if the
 timezone isn't valid, and/or a E_WARNING message if using the system
 settings or the TZ environment variable.

 So that will generate E_WARNING messages.

Ya, but...  I am using that _very_ statement and get no E_WARNING.
The timezone illustrated _is_ valid.  IWFM.
I believe the PHP manual is 'awkwardly' written in this case.
Better would be if that *whole* sentence above was re-written beginning 
with If the timezone is invalid, every call  , and/or an 
E_WARNING ...  
As written, it could be construed to mean an E_WARNING is _always_
generated for setting the TZ environment variable.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: http_referer. what's wrong with that?

2012-01-12 Thread Jonesy
On Thu, 12 Jan 2012 17:11:25 +1100, Ross McKay wrote:
 On Wed, 11 Jan 2012 21:27:58 -0800, Haluk Karamete wrote:

[...]
Notice: Undefined index: HTTP_REFERER in
D:\Hosting\5291100\html\blueprint\bp_library.php on line 16
die;
[...]
But I'm still curious, what configuration am I missing so that
http_referer is treated like that?

 You only get an HTTP_REFERER when you link to a page from another page.
 If you go directly to the page, e.g. by typing / pasting the URL into
 the location bar, ...

 ... or linking from an email, then there is no HTTP_REFERER.

Not so.It depends. A number of email programs of the 
HTML-email-abomination ilk send referrers.  I just completed
some log scans to verify an 'issue' with AOL sessions, and their 
email contraption _does_ send a referrer.  I've seen others, as well.

74.93.226.126 - - [14/Oct/2011:21:08:50 +] GET /UBSC/ HTTP/1.1 
   200 4502 http://mail.aol.com/34188-111/aol-6/en-us/Suite.aspx; 
  Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; 

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Need Part-time Coder

2011-12-28 Thread Jonesy
On Tue, 27 Dec 2011 17:29:27 -0500, John R. Cornell II wrote:

 Email PHP sample for consideration

Thanks for (perhaps) the last LMAOROFL Posting of 2011!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Curl cost

2011-09-28 Thread Jonesy
On Wed, 28 Sep 2011 01:28:19 -0700, muad shibani wrote:

 what are the costs of using PHP Curl to show another websites on my 
 site as stumbleon do ..  traffic, memory or what?

One cost might be legal expenses and penalties for copyright 
infringement.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: What would you like to see in most in a text editor?

2011-09-14 Thread Jonesy
On Wed, 14 Sep 2011 14:08:09 +0100, Richard Quadling wrote:
 On 14 September 2011 13:18, Tim Streater t...@clothears.org.uk wrote:
 On 14 Sep 2011 at 12:40, Richard Quadling rquadl...@gmail.com wrote:
 On 14 September 2011 01:23, tamouse wrote:
 On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings wrote:
 I'm a big fan of editors that work in the terminal.

 You'll get my emacs when you pry it out of my cold dead hands.

 Pah! You and your full screen editor.

 EDLIN is the way to go.

 Is that more or less terse than TECO?


 TECO - OUCH.

heh.  I built my first website with WordStar 6.0 under OS/2.

Jonesy -- yup, I've used TECO, too -- on an ASR-35 TTY
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: using wget in shell for download(snort)

2011-07-10 Thread Jonesy
On Sun, 10 Jul 2011 17:57:26 +0300 (IDT), Geoff Shang wrote:
 On Sun, 10 Jul 2011, Tamara Temple wrote:

 On Jul 10, 2011, at 5:38 AM, Negin Nickparsa wrote:

 I want to make a batch file and then exec it in php
 I have a problem in batch file
 wget have been installed in Yast I want to download a RuleFile from
 snort.org
 
 I used this on shell:
 
 $ wget
 http://www.snort.org/reg-rules/snortrules-snapshot-2900.tar.gz/c0e9480af637e53c7aae823a40a131edc1343db5\-O
 snortrules-snapshot-2900.tar.gz
 
 that string is an oinkcode from the site
 
 this commandline has error and I don't know why

 What is the error?

 This: b5\-O at the end of URL looks suspicious.

 That's the problem.  The \ should be a space.

As a Good Practice, a 'raw' URL in a wget command should always be 
enclosed in 'single quotes'.  For URLs with internal, variable 
substitutions ... well ... you just have to roll up your sleeves a 
little further.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: this newsgroup and OE

2011-06-24 Thread Jonesy
On Wed, 22 Jun 2011 11:38:22 -0400, Jim Giner wrote:

 Well - it's a secret until one asks I guess.  Thanks Shawn for the info.
 Since you say it's been happening for years, I guess there's no hope for
 resolution.

 Can  you or someone else recommend a newsgroup client that functions better
 with this group?

slrn has worked for me with Gmane ng's for many years.
Currently using slrn 0.9.9p1 under FreeBSD.

HTH,
Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Found this and I thought of you.

2011-06-05 Thread Jonesy
On Sun, 5 Jun 2011 00:34:30 +0100, Richard Quadling wrote:
 http://www.exxcire.com/login.php

 If nothing more than a good bad example.

ROTFLMAO!!!  Where Experts Exchange
Sweet Jeezuz!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: smart auto download file

2011-06-01 Thread Jonesy
On Tue, 31 May 2011 21:01:09 +0100, Stuart Dallas wrote:

 Sometimes I miss the way the web was before javascript :/

  Sometimes???

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Contract Example

2011-05-23 Thread Jonesy
On Mon, 23 May 2011 10:39:10 -0400, Floyd Resler wrote:

 I landed my first big PHP contract (yeah!) and am need of a contract 
 or agreement example.  Does anyone have, or know of a good source for, 
 contract/agreement examples?   Thanks!  Floyd  

Enforceable in what country/province?

http://www.sloperama.com/advice/entry65.html


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Flattery will get you nowhere

2011-04-29 Thread Jonesy
On Thu, 28 Apr 2011 19:18:29 -0400, Robert Cummings wrote:

 Flirting will get you everywhere *bats eyelids*

  Dinna know bats even _had_ eyelids


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: $$var

2011-03-06 Thread Jonesy
On Sun, 6 Mar 2011 21:12:34 +0600, shiplu wrote:

 Just being curious, I have a question.
 How many times PHP interpreter will replace this variables? I mean how deep
 it will be?

 If I use variable variables like
 $a
 how long it will be evaluated?

What were your results when you tried it?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: root of PHP found!

2011-02-17 Thread Jonesy
On Thu, 17 Feb 2011 08:33:16 -0500, Steve Staples wrote:
 On Wed, 2011-02-16 at 19:04 -0500, Daniel Brown wrote:
 On Wed, Feb 16, 2011 at 18:15, Daevid Vincent dae...@daevid.com wrote:
  Aha!  I am working for the company that was the root of PHP!
 
  http://www.panasonic.net/history/founder/chapter3/story3-02.html
 
  ;-)
 
 I'm surprised you found that.  Very few people know that PHP is
 actually just a cover-up for Pan-Asian culture influence operations
 conducted regularly by the CIA.
 
 Unfortunately, now that you do know, you know what we have to do to 
 you
 

 Wow... I knew PHP4 was old, but since 1946?   It's amazing people still
 use PHP4, and it's 65 years old now.

I've been coding PHP since 1948.
Start on an ol' teletype.   :-)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Code formatter

2011-01-31 Thread Jonesy
On Mon, 31 Jan 2011 13:27:42 -0700, Hansen, Mike wrote:

 I've got an application that I'm fixing up and I'd like to run it 
 through a code formatter. 

 Is there something like Perl Tidy for PHP? 

Something _like_ ??!!!http://www.google.com/search?q=tidy+php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: HTML in emails

2010-07-05 Thread Jonesy
On Sun, 4 Jul 2010 23:12:22 -0400, Paul M Foster wrote:
 On Sun, Jul 04, 2010 at 11:44:29PM +0100, Ashley Sheridan wrote:

snip

It is nice to be able to format emails nicely, but you have to realise
when to restrain yourself. I've been getting loads of emails from Adobe
lately that haven't been formatted well at all, and appear awfully in my
email client (Evolution, which I consider to be a very good client) until
I download all the images they've used as backgrounds. It's situations
like this that give HTML emails an awful name.

 Isn't this a popular exploit these days? I don't really watch these
 things since I use Linux and view mail as straight text. But isn't there
 some current exploit where images which can be downloaded as part of an
 email actually contain code which can be used to sniff your system or
 somesuch?

If nothing else, it is useful as a tracking tool.  When the request to 
download the images occurs, it tells the spammer mothership that the 
email _was_ received and *actually* read.  
Ergo, it's a 'live' email addy.

The image URIs are usually encoded with unique-by-email-address text.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: HTML in emails

2010-07-04 Thread Jonesy
On Sun, 04 Jul 2010 11:43:59 -0400, Al wrote:
 I know this is a bit off-topic; but close enough.

 I'm starting to update the email feature of one of my DB applications and 
 noticed that it appears most of the fancy emails I receive are using just 
 plain 
 old, simple html pages, with a note about not being able to see, go here with 
 a 
 link.

 It use to be that we specified content-type text/html, etc. and sent both the 
 plain ASCII and the html with boundaries and so forth.

 Seems like, from my preliminary Google searching, I should not waste time 
 with 
 the standard's way and just go straight to sending simple html pages since 
 all 
 modern browsers handle it well. And, it appears to be the way web is going.

 What are you folks doing?

In general, I simply do _not_ read fancy emails.Alpine 2.00 here.
I *browse* with a browser -- nothing more.

html in email seems to be all about eye candy -- not content.
I don't waste time looking for the 'content' in an email where it 
appears more effort was applied to the dancing elephants and 
flying pigs than was put into the message.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2010-06-14 Thread Jonesy
On Mon, 14 Jun 2010 08:02:02 -0400, David Mehler wrote:
 
 I've got a site that is needing to have two email addresses on it, one
 for general contact and information and the other for webmaster for
 site problems. I do not want these addresses to become harvested by
 spammers yet i want to make it possible for people to email if needed.
 I can not use javascript for this solution.

One way I do it at times is v-a-v what is seen in my .sig below.
It usually requires a fixed pitch font -- depending on how it's laid out.

I also use the image technique as described by others.

I also use the obfuscator technique with acceptable success.  
One reference
at:
http://www.healyourchurchwebsite.com/obfuscator/

I would not use _all three_ on the same email addy  :-)

HTH
Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mirroring website

2009-06-21 Thread Jonesy
On Sun, 21 Jun 2009 16:39:18 +0100, Richard Heyes wrote:

 I have the following issue! I want to develop my website on my local
 machine, and then upload the entire developed site to a production
 server. What is the best strategy to do that?
 I have been looking at a php mirroring script but that was about 5 years
 old! Is'nt there a better/newer approach?

 I used to use rsync (with a bunch of options) whenever I did this.
 With you being on Linux, it would be trivial to automate it with a
 script.

And, if you don't have ssh access to the web server -- but rather, just 
ftp -- there's `ftpsync` which I use.  When Googling for `ftpsync` , 
ignore the windo$ hits.  There's a name collison there.  You want the 
linux program.

Be carefull with .htaccess.  heh heh  Mine are different for the local 
machine -- mainly for testing and local lan purposes.  Now and then I 
screw up and upload an .htaccess from the local web server to the 
World-Wide-Web server.  Big snafu - that!  :-)

HTH
Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Zebra Striped Table Example

2009-06-01 Thread Jonesy
On Mon, 1 Jun 2009 08:10:04 -0700 (PDT), Raymond Irving wrote:

 Hello,
=A0=A0=A0=20
 There are many different ways and techniques that we can use to add alterna=
 te colors to table rows. Here's another solution that's very simple and str=
 aight forward. For example:

 $page['table tr:even']-css('background:#eee');

 Check out the full example code at 
   http://raxanpdi.com/zebra-striped-table.html

W3C:
53 Errors, 13 warning(s)

The example at:

http://raxanpdi.com/zebra-striped-table

W3C:
45 Errors, 13 warning(s)

 Quickly build and maintain PHP Ajax applications

chuckle


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Suggestion on .htaccess

2009-04-13 Thread Jonesy
On Mon, 13 Apr 2009 02:13:35 +0600, 9el wrote:
 This is a .htaccess for a MU blog
 the index file is kept at :   public_html/
 And main blog is kept at: public_html/blog

 It is causing severe cache issue. SuperCache plugin is not working.
 The blog is running out of memory most of times and consuming huge CPU.  

 Any suggestions?

Yes.  I suggest you post this somewhere else (gmane.comp.apache.user ?) 
instead of a PHP group.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Hello, I have a question about php array max number

2009-04-09 Thread Jonesy
On Thu, 9 Apr 2009 10:08:12 -0700, PeterDu wrote:
 Hello,

 I have an array including 2000 records in database,

 but when fetch all of them, why just get 1500 records? 

 Does that depend on my computer?

Well, at least you hi-jacked a thread that did not pertain to PHP and 
put it back On Topic!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Reverse IP lookup

2009-02-16 Thread Jonesy
On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote:
 On Mon, 2009-02-16 at 10:11 -0500, tedd wrote:
 At 9:17 PM -0500 2/15/09, Andrew Ballard wrote:
 You mean like this one?
 
 http://www.yougetsignal.com/tools/web-sites-on-web-server/
 
 I don't know how reliable or up-to-date it is.
 
 Now that's something I would like to know how it works.
 
 Anyone have any ideas as to how that works?

 It tells you how it's done.

And, it does a poor job.  My web host's IP where numerous domains 
are VHOST'ed (including several of my domains)  - TAA DAA - _only_ 
the web hosting server.domain.name.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Reverse IP lookup

2009-02-16 Thread Jonesy
On Mon, 16 Feb 2009 15:47:19 + (UTC), Jonesy wrote:
 On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote:
 On Mon, 2009-02-16 at 10:11 -0500, tedd wrote:
 At 9:17 PM -0500 2/15/09, Andrew Ballard wrote:
 You mean like this one?
 
 http://www.yougetsignal.com/tools/web-sites-on-web-server/
 
 I don't know how reliable or up-to-date it is.
 
 Now that's something I would like to know how it works.
 
 Anyone have any ideas as to how that works?

 It tells you how it's done.

 And, it does a poor job.  My web host's IP where numerous domains 
 are VHOST'ed (including several of my domains)  - TAA DAA - _only_ 
 the web hosting server.domain.name (EDIT: was listed.)

Well, now...  Mea culpa.

After I saw those results, I clicked away from that desktop and back 
here to the destop running slrn -- posted the above -- and then moved 
on through other ng's.

Later, I returned to the desktop with the active browser.  And staring 
me in the face was a two-column, screenfull+ list of domain names hosted 
by my web host -- including all of mine.

So, it would appear to work 'well'.  It just doesn't let on how it's 
doing the processing -- or, that it's processing in the background.
It may be a browser quirk (konqueror) dealing with an IE-centric web 
server.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Countries and Timezones

2008-12-01 Thread Jonesy
On Mon, 01 Dec 2008 23:02:50 +0100, franzemmanuel wrote:

 For those who are interested in Countries and timezones.

 I needed to have the list of all the countries in the world and the 
 timezones by country without redundancy.

I don't see Bonaire.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: HTML5 canvas tag

2008-10-12 Thread Jonesy
On Sun, 12 Oct 2008 14:15:10 -0400, Daniel Brown wrote:
 On Sun, Oct 12, 2008 at 1:50 PM, Ashley Sheridan
[EMAIL PROTECTED] wrote:

 Hmm, it doesn't mention which versions of the browsers it lists are
 capable of displaying the canvas tag. I'm still using Firefox 2 on this
 computer, and all I got was 5 horizontal bands of grey and blue.

 Check your addons and such, Ashley.  Gecko itself (the HTML
 rendering engine used in Firefox) has supported canvas since 1.8 I
 believe, which equated to Firefox 1.5.

Probably not Firefox 1.5.  I have FF 1.5 without _any_ add-ons here and 
all I got were the same 5 horizontal bands of grey and blue.

Opera 9.5 works ok.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google  banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Jonesy
On Thu, 14 Aug 2008 00:47:39 +1000, Ross McKay wrote:
 On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote:

 NSW Australia

North, South, West? Can't you make up your mind? :-)

:) we move around a bit... though not so much for a while now!

 Good to see you backup. I mean, back up!

 (NSW is the state of New South Wales, on the East Coast of Australia, or
 IOW somewhat to the left of Kalifornia and down a bit)

I'd've thought with Aussie, Southern Cross-oriented globes, it would be 
to the _right_ of Kalifornia and _up_ a bit.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: What font/size do you use for programming?

2008-07-09 Thread Jonesy
On Tue, 8 Jul 2008 19:23:49 -0400, tedd wrote:

 I'm running a Mac (so I know mine is a bit different size wise) but 
 I'm currently using Veranda at 14 point for coding.

 Just out of curiosity, what font and size do you ppls use for your 
 programming?

I've always found that my bash and php scripts run fastest when written 
in Nimbu Mono at 10 pt.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Strategy to protect images

2008-06-16 Thread Jonesy
On Sun, 15 Jun 2008 14:07:14 -0400, tedd wrote:
 At 4:11 PM +0100 6/15/08, Richard Heyes wrote:
But, a sophisticated user will find a way around that.

A less sophisticated one will use the PrintScr key... :-)

 Must be a windozes thing.  :-)

Nope.  Works a treat in KDE in linux.

Jonesy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Jonesy
On Sun, 23 Mar 2008 18:08:19 -0700, Greg Sims wrote:
 Hey There,

 I looked at the ob_start manual and found a segment of code that can be used
 to capture the output of a shell script and place it into a log file.  One
 of the entries indicates this should work for both STDOUT and STDERR
 (29-Mar-2007).  I wrote the following piece of code to test it out.

 function logger($buffer)
   {
   $handle = fopen('/var/log/test.log', 'a');
   fwrite($handle, $buffer);
   fclose($handle);
   }

   ob_start(logger);

ob_start(logger 21);

???

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http://jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: how can make like http://wallpaper.pc86.com ?

2008-02-02 Thread Jonesy
On Sun, 3 Feb 2008 04:33:57 +0800, RandMan wrote:
 how can make like http://wallpaper.pc86.com ?

Hell!  Why would you want to?

http://validator.w3.org/#validate_by_uri
Validation Output: 26 Errors

Pretty much renders as crap in 4 different browsers here.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to secure Flash Video?

2008-01-04 Thread Jonesy
On Fri, 4 Jan 2008 13:29:04 -0500, tedd wrote:
   I have all of that logic in place now.

 My question was specifically how to stop a remote viewer from viewing 
 the video once the url is known.

You can't.  Just last night I viewd a video (flv) out of a video hosting 
site with Opera and with its cache set Very High -- just for this 
exercise.  While the video was displaying in the Opera window, I fired up 
a linux konsole and navigated down into the .opera/ directory to the 
cache sub-directory.  Seeing the most recent entries and picking off the 
largest of them, I rightly guessed that was the video and I copied it -- 
with rename -- to another directory.

Rule 1 on the web:
If you send it to them to see, read, or hear, they have it.


OBTW, if you're curious:
The 'loaded' URL is:
  http://dailymotion.alice.it/video/x3wrzo_fabrication-dune-lampe-triode_tech

The simpler, flv-only URL is:
  http://www.dailymotion.com/swf/x3wrzo

A pretty kewl video for some of us..


Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http://jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: for loop inside a switch

2007-09-02 Thread Jonesy
On Fri, 31 Aug 2007 22:05:11 -0700, jekillen wrote:

You can run a switch inside a for loop and when a case is matched set 
a variable to true.
the break statement will break out of the switch, then inside the 
iteration code, after the switch block, test the variable for true. If 
it is true the use another break instruction.
That should break out of the loop altogether at the end on that 
particular iteration.

A  The *GoTo* solution.  :-)

Jonesy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread Jonesy
On Fri, 29 Jun 2007 09:03:53 +0200, Paul Scott wrote:
 On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote:
 I no longer have a need for this list and My mailbox is getting flooded, 
 Can someone assist ?

 Read the footer on every single mail posted to this list to unsubscribe

And, a really curious and 'desparate' person might've thought to look at 
the headers.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: I cannot figure out why this is not working?

2007-06-03 Thread Jonesy
On Sat, 2 Jun 2007 18:34:36 -0400, Brad Sumrall queried:

  I cannot figure out why this is not working?

Just as soon as the Crack gmane.comp.php.general Mind Reading Team
revealss your meaning of not working, someone will get back to you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: link counting

2007-04-06 Thread Jonesy
On Fri, 06 Apr 2007 09:01:20 -0400, Sebe wrote:
 i thought of an idea of counting the number of links to reduce comment spam.

 unfortunately my methods is not reliable, i haven't tested it yet 
 though.. anyone have maybe a better solution using some regexp?

 $links = array('http://', 'https://', 'www.');

 $total_links = 0;
 foreach($links as $link)
 {
  $total_links = substr_count($string, $link);
 }

 if($total_links  X)
 {
 .
 }

What I use:


 function check_bad_content($string)
 {
  // Stuff that spammers post with:
  $bad_strings =  array('www.','/url]','ttp://','ttps://') ;

  foreach( $bad_strings as $bad_string )
  {
   if ( ereg( $bad_string, $string ) ) return false ;
  }

  return true;

 }  // E-O- function check_bad_content


I permit _*NO*_ URL's on my message board.  I guess you could just as 
easily count them in the function above -- versus setting TRUE/FALSE.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http://jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Getting domain out of a URL

2007-01-17 Thread Jonesy
 [snip]
 I receive posts from an open moderated forum that need to be filtered
 for urls. I've successfully managed to trap any entires that use 
 'http://' 'www.' with the standard '.com' '.org', '.net' endings.

 What I need to do is to strip the prefix part ('http:// or http://www.
 or 'www') and suffix as well (the .com, etc.) I need only the domain 
 name.
 I can't seem to trim away the suffix part.
 [/snip]

What I've done in situations like this is reverse the text and tackle it 
from the _back_ end.  It's a simpler approach to first trim off the TLD, 
and then to extract only the (reversed) domain name.  (Tho', it's not a 
domain name without the TLD.)
Then, obviously, reverse your results.

HTH
Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http://jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: php redirection..

2006-12-16 Thread Jonesy
On Fri, 15 Dec 2006 21:07:44 -0800, Casey Chu wrote:
 Well... They skip all  !-- --'s, so they skip script!-- //--/script's.

Wow!  You get The Prize for the best non sequitor of the day.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http//jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: date() and timezone

2006-12-14 Thread Jonesy
On Thu, 14 Dec 2006 16:56:55 -0200 (BRST), Fernando M. M. wrote:
 --=_20061214165655_35409
 Content-Type: text/plain; charset=iso-8859-1
 Content-Transfer-Encoding: 8bit

 I´m using php5 here.

 But like i said i have lots of scripts inside this
 folder, is there a way to set something on .htaccess to change the timezone?

Please don't top post.

RTFM you were pointed to: Instead of using this function to set the 
default timezone in your script, you can also use the INI setting 
date.timezone to set the default timezone.

What you were pointed to before + 
 http://us3.php.net/manual/de/ini.php#ini.list

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http//jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: taking a one off payment

2006-12-07 Thread Jonesy
On Thu, 07 Dec 2006 07:14:12 +, Lester Caine wrote:
 Mark R. Cervarich wrote:
 http://checkout.google.com -- Google's answer to PayPal.
 Best part is, they are taking NO FEES from now through 12/31/2007.
 So you can use them to receive credit card payments for just over a year 
 for FREE.

 At 2% + $20 per transaction they needed to do something to get take-up

 I've used it, and once account was setup, I was paid within 2-3 days.
 
 Best part is, you can, from inside the webpage, click Send Invoice and 
 it will ask you for an email addy, and a description of what you are 
 billing 'em for.  You don't have to create a full shopping cart system!!!

 I'm assuming that this is US only?
 An international alternative to Paypal would be nice if only to ensure 
 that rates are kept competitive.

Look at ClickBuy (aka, or formerly ka: FirstGate):

http://clickandbuy.com/

I use them from here in the North American Colonies to pay my 
subscription to individual.de -- my usenet server.  WFM.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http//jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Jonesy
On Wed, 06 Dec 2006 10:49:52 +, Colin Guthrie wrote:
 Al wrote:
 Anyone having problems connecting the last few days? Or, is there
 something wrong on my end. Al other sites are working just fine.

 Newsgroup? I presume you are using Gmane (as I am).

I can't determine by the OP's headers how he is reading the ng, but I am 
reading gmane.comp.php.general from the news.gmane.org server using 
slrn.  (I'll have to double check _my_ headers after posting -- lots of 
noise in those headers) 

It _may_ be a little less snappy' than in the past (but then, my 
broadband service (sic) provider is on and off snafu here.)
I would _not_ call it slow.

Similar results with about 8 other Gmane ng's I read.

 Seems fine for me.

I'm happy.  I don't see a problem.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http//jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Preg_match - Find URL and convert to lower case

2006-12-01 Thread Jonesy
On Fri, 1 Dec 2006, Kevin Murphy wrote:
 On Nov 30, 2006, at 7:50 PM, Jonesy wrote:
 On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote:

 I have some text that comes out of a database all in uppercase (old
 IBM Mainframe that only supports uppercase characters).

 I see via other followups that you have your kludge working.  *But* ,

 What do you mean by old IBM Mainframe that only supports uppercase
 characters?  The EBCDIC codes X'81'  X'89' (a-i), X'91'  X'99' (j-r),
 and X'A2'  X'A9' (s-z) have been defined and used since probably before
 you were born.  I have in front of me my first IBM Green Card (IBM
 System/360 Reference Data, GX20-1703-3) from 1966 which debunks that
 urban legend.

 If the data in the mainframe database is all upper case, it was sloppy
 programming or sloppy design that got it there.  If it _is_ stored in
 the mainframe database in proper UC/lc form, then it is probably a
 sloppy extraction procedure that is to blame for your input.

 Yeah, that would be the problem. My website and its MySQL database are totally
 seperate from this data (its class schedule data). All the data in the 
 database
 is uppercase and I've been told that all the data must remain as uppercase
 only. Why? I have no idea. Can I change that? Nope. Welcome to my world and 
 the
 joys of working with governmental institutions.

 So I did misspeak before. The mainframe itself probably supports UC/lc, but
 whatever program is on it, or maybe its just a procedure issue (its _always_
 been done this way so we _must_ continue doing it that way). But, the data
 I see in my extract is all upper case and that's what I am dealing with.

Ahhh...  So, it was sloppy design -- Way Back Then.  Except, in
MainFrame years, the arrival of the WWW and URL's was only weeks ago.
There is no excuse for that DB design to be all uppercase, since that
would pollute the data (URL's) and 'they' had to know it even then.

Gov. work + lowest bidder .

Good luck with the project.
And, Happy Shopping Season.
Jonesy
-- 
  Marvin L Jones | jonz | W3DHJ  |  linux
   Pueblo, Colorado  |  @   | Jonesy |   OS/2 __
38.24N  104.55W  |   config.com | DM78rf |SK

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Preg_match - Find URL and convert to lower case

2006-11-30 Thread Jonesy
On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote:

 I have some text that comes out of a database all in uppercase (old  
 IBM Mainframe that only supports uppercase characters).

I see via other followups that you have your kludge working.  *But* ,

What do you mean by old IBM Mainframe that only supports uppercase 
characters?  The EBCDIC codes X'81'  X'89' (a-i), X'91'  X'99' (j-r), 
and X'A2'  X'A9' (s-z) have been defined and used since probably before 
you were born.  I have in front of me my first IBM Green Card (IBM 
System/360 Reference Data, GX20-1703-3) from 1966 which debunks that 
urban legend.

If the data in the mainframe database is all upper case, it was sloppy 
programming or sloppy design that got it there.  If it _is_ stored in 
the mainframe database in proper UC/lc form, then it is probably a 
sloppy extraction procedure that is to blame for your input.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http//jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Little script that might help against some email-/webcrawlers

2006-11-22 Thread Jonesy
On Mon, 20 Nov 2006 13:37:29 +, Brynjar Guðnason wrote:

 I saw a clever solution to this once.

 There was a line of names: name1, name2, name3 etc.
 And then at the end stood all these are at someurl.com.

 That is the best way, I think.

If they're all in the same domain, I guess.

See my .sig for another tactic -- which I also employ on web pages.

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
*** Killfiling google posts: http//jonz.net/ng.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: find out ip address [beginner]

2004-05-24 Thread Jonesy
On Mon, 24 May 2004 23:09:04 +0200, Tobes hath writ:
 hi, i need some code to find out the ip address of a server. just a simple
 dns query.

WFM:
   |$ ping ibm.com
   |PING ibm.com (129.42.18.99) 56(84) bytes of data.
   :

Jonesy
-- 
  | Marvin L Jones   | jonz |  W3DHJ   |  OS/2
  |  Gunnison, Colorado  |  @   |  Jonesy  |  linux   __
  |   7,703' -- 2,345m   |   config.com |  DM68mn SK

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php