[PHP] Including Google Ads

2006-08-10 Thread C.F. Scheidecker Antunes
Hello all, How do I include Google Ads on my PHP script? I do not want to include it only but to be able to set the keywords for the add. Maybe even have it to change from time to time, probably using AJAX. Any good pointers on Google Ads? Thanks, C.F. -- PHP General Mailing List

Re: [PHP] Including Google Ads

2006-08-10 Thread Chris
C.F. Scheidecker Antunes wrote: Hello all, How do I include Google Ads on my PHP script? Read the google website. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Including Google Ads

2006-08-10 Thread Manuel Lemos
Hello, on 08/10/2006 03:07 AM C.F. Scheidecker Antunes said the following: How do I include Google Ads on my PHP script? You need to apply to an AdSense account. When you are approved you configure your ads in the AdSense site. The site gives you the necessary HTML with Javascript code that you

[PHP] Re: Cron running 'Hello world' script dies with Could not startup.

2006-08-10 Thread Ivo F.A.C. Fokkema
On Wed, 09 Aug 2006 11:14:11 +0100, Colin Guthrie wrote: Ivo F.A.C. Fokkema wrote: SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure about other distros. Thanks guys, for all of your suggestions! Ahh

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Ivo F.A.C. Fokkema
In case anyone's interested, here's the function I use in the open source project LOVD to undo Magic Quoting on all GPC arrays: function lovd_magicUnquote ($var = '') { if (!$var) { if (count($_GET)) { lovd_magicUnquote( $_GET); } if (count($_POST)) {

[PHP] a quick one - case insensitive string comparison

2006-08-10 Thread Ross
I want to get a positive resuly comparing Apple with aPPLE or CaR with car anyone know if there is a built in php function? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a quick one - case insensitive string comparison

2006-08-10 Thread Andries Seutens
Ross schreef: I want to get a positive resuly comparing Apple with aPPLE or CaR with car anyone know if there is a built in php function? R. if (strtolower('Apple') === strtolower('aPPLE')) { echo 'compared successfull case insensitive'; } Regards, Andriesss -- PHP General

Re: [PHP] Best way to get PHP5

2006-08-10 Thread Jochem Maas
Jack Gates wrote: On Wednesday 09 August 2006 19:24, Jochem Maas wrote: Jonathan Duncan wrote: On Wed, 9 Aug 2006, Chris W. Parker wrote: Jack Gates mailto:[EMAIL PROTECTED] ... FUD-tastic! Jonathan Chris, Jochem just proved what I said earlier. Every one has their own

Re: [PHP] a quick one - case insensitive string comparison

2006-08-10 Thread Stut
Ross wrote: I want to get a positive resuly comparing Apple with aPPLE or CaR with car anyone know if there is a built in php function? http://php.net/strcasecmp -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_match

2006-08-10 Thread Peter Lauri
Hi there, You are correct that I am stupid to call the manual bad, it was not meant like that. It was that it was not suited to me, and that I actually just wanted to find a solution to my problem directly, and it did not give me that. I have never worked with Regular Expressions before, so I

RE: [PHP] Including Google Ads

2006-08-10 Thread mwestern
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 August 2006 3:43 PM To: C.F. Scheidecker Antunes Cc: php-general@lists.php.net Subject: Re: [PHP] Including Google Ads C.F. Scheidecker Antunes wrote: Hello all, How do I include Google Ads on

Re: [PHP] Greek Characters from MySQL to PHP to the Browser: ??????

2006-08-10 Thread John Wells
Thanks to everybody's suggestions, problem solved. Yes, the default encoding for PHP's mysql client is latin1. So a quick query of: SET NAMES 'utf8' *per connection* works it all out. The articles and links were very helpful in alluminating some of the other particulars of working with

Re: [PHP] preg_match

2006-08-10 Thread Dave Goodchild
On 10/08/06, Peter Lauri [EMAIL PROTECTED] wrote: Hi there, You are correct that I am stupid to call the manual bad, it was not meant like that. It was that it was not suited to me, and that I actually just wanted to find a solution to my problem directly, and it did not give me that. I have

Re: [PHP] Best way to get PHP5

2006-08-10 Thread Robin Vickery
On 10/08/06, Chris W. Parker [EMAIL PROTECTED] wrote: Jonathan Duncan mailto:[EMAIL PROTECTED] on Wednesday, August 09, 2006 3:55 PM said: If you want to really learn Linux, try Gentoo. If you just want a very good and easy to use Linux, go with SuSE. To keep this related to the

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
hm. good idea. actually, it's, at least, the most safe way. :) thanks. -afan [EMAIL PROTECTED] wrote: Hi to all. Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
This is what I found and started to use: created magic_quotes_off.php if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);

RE: [PHP] Including Google Ads

2006-08-10 Thread bruce
umm chris... do you really think he didn't read the google website.. was there a section of the site you wanted him to pay attention to... or were you trying to add to the entropy of the universe?? -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09,

[PHP] loop in horizontal direction (php-html)

2006-08-10 Thread Reinhart Viane
Hey, I've been wondering. I know it's possible to make a php loop that each time generates a new tr. In that case the results are stored under eachother. Now I want to know if I can do the same in a horizontal direction. The result should be something like this, I loop through available

RE: [PHP] Best way to get PHP5

2006-08-10 Thread Jonathan Duncan
On Wed, 9 Aug 2006, Chris W. Parker wrote: Jonathan Duncan mailto:[EMAIL PROTECTED] on Wednesday, August 09, 2006 3:55 PM said: If you want to really learn Linux, try Gentoo. If you just want a very good and easy to use Linux, go with SuSE. To keep this related to the question I

[PHP] Re: preg_match

2006-08-10 Thread Al
Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); The text has Charges then a variable amount of spaces a previously picked decimal number x (and the data I want) is this correct or am I missing something? It seems to work sometimes and not others and I

Re: [PHP] Including Google Ads

2006-08-10 Thread Jochem Maas
bruce wrote: umm chris... do you really think he didn't read the google website.. was there a section of the site you wanted him to pay attention to... or were you trying to add to the entropy of the universe?? do the answers to these questions really interest you? are you not adding to the

RE: [PHP] Including Google Ads

2006-08-10 Thread bruce
hey jochem... i had thought of that as i was flying across the keyboard!!! but i figured hey!! what the heck.. go with it... thanks for the laugh... back to work! -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 6:28 AM To: [EMAIL

Re: [PHP] Best way to get PHP5

2006-08-10 Thread David Tulloh
Chris W. Parker wrote: Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use PHP5. I know

RE: [PHP] Re: Including Google Ads

2006-08-10 Thread KermodeBear
I do not want to include it only but to be able to set the keywords for the add. You do not define that. Google scans your pages and shows relevant ads according to your pages content. Actually, you can. I'm doing this for an advertising system with the company I work for right now. You set

Re: [PHP] Best way to get PHP5

2006-08-10 Thread Robert Cummings
On Fri, 2006-08-11 at 00:29 +1000, David Tulloh wrote: Chris W. Parker wrote: Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd

[PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Al
Reinhart Viane wrote: Hey, I've been wondering. I know it's possible to make a php loop that each time generates a new tr. In that case the results are stored under eachother. Now I want to know if I can do the same in a horizontal direction. The result should be something like this, I loop

Re: [PHP] List Meeting NNOT

2006-08-10 Thread Adam Zey
Paul Scott wrote: On Wed, 2006-08-09 at 18:54 -0500, Jay Blanchard wrote: Yes, but not everyone can get to or goes to conferences. And this would stand on its own don'tcha think? I think that Chicago is perfect, because it is centrally located (kinda') and a neat place to boot.

RE: [PHP] List Meeting NNOT

2006-08-10 Thread Jay Blanchard
[snip] It's still a bit of a drive when you live in Montreal and don't have a car. About an 18 hour drive, plus a few hours for bus stops and border crossings. [/snip] That is why the Wright Brothers did what they did. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Including Google Ads

2006-08-10 Thread Adam Zey
KermodeBear wrote: I do not want to include it only but to be able to set the keywords for the add. You do not define that. Google scans your pages and shows relevant ads according to your pages content. Actually, you can. I'm doing this for an advertising system with the company I work for

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Marcus Bointon
On 10 Aug 2006, at 16:39, Al wrote: tds don't need to be terminated with /tds That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently encountered a site that contained 3500 unclosed font tags on a

RE: [PHP] List Meeting NNOT

2006-08-10 Thread Paul Scott
That is why the Wright Brothers did what they did. ;) I prefer the Zeppelin personally... --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Greek Characters from MySQL to PHP to the Browser: ??????

2006-08-10 Thread Colin Guthrie
John Wells wrote: Thanks to everybody's suggestions, problem solved. Yes, the default encoding for PHP's mysql client is latin1. So a quick query of: SET NAMES 'utf8' *per connection* works it all out. The articles and links were very helpful in alluminating some of the other particulars of

[PHP] calendar Q

2006-08-10 Thread William Stokes
Hello, I have a calendar script that displays a simple mini calendar view one month at a time. User can click any date and the calendar opens another page that displays that date's events. I would like to highlight to the mini calendar view dates that have an event in database. So what would

Re: [PHP] List Meeting NNOT

2006-08-10 Thread John Nichel
Adam Zey wrote: snip It's still a bit of a drive when you live in Montreal and don't have a car. About an 18 hour drive, plus a few hours for bus stops and border crossings. Canadians are welcome to come? That's it, count me out! :-p -- John C. Nichel IV Programmer/System Admin

Re: [PHP] calendar Q

2006-08-10 Thread Brad Bonkoski
Really depends on how you display the calendar... if you go day by day building the table cells, then it should be easy enough because you should already have the date you are working with... so a query like select count(*) from events where date='date' and if count is 0 then display it

[PHP] INPUT

2006-08-10 Thread Jo�o C�ndido de Souza Neto
Hi everyone, Excuse me by off-topic. I´ve been a little trouble in showing data in html form. e.g.: In a e-commerce my client have a Sony 29 TV that when i put it in a input value, it seems just Sony 29 it´s caused by the quote in the data, someone knows how can i fix it? Thanks all. --

RE: [PHP] INPUT

2006-08-10 Thread Warren Vail
http://us3.php.net/manual/en/function.addslashes.php Good luck, Warren Vail -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:11 AM To: php-general@lists.php.net Subject: [PHP] INPUT Hi everyone, Excuse me by

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
João Cândido de Souza Neto wrote: Hi everyone, Excuse me by off-topic. why; are you writing the app in ASP or something? ;-) I´ve been a little trouble in showing data in html form. e.g.: In a e-commerce my client have a Sony 29 TV that when i put it in a input value, it seems just

RE: [PHP] Re: Including Google Ads

2006-08-10 Thread KermodeBear
Modifying Google's javascript code even in the slightest (such as messing around with variables) is against the AdSense terms of service, and is a good way to get your account revoked really fast. Only premium publishers that get express permission from Google are allowed to mess with

RE: [PHP] INPUT

2006-08-10 Thread Warren Vail
Just happened to think of one other thing you might want to be aware of; When a query behaves like this, your site is usually vulnerable to the Sql Injection Hack. Basically this is where someone sticks an insert query into one of your data form fields (quotes are involved), and the additional

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
Warren Vail wrote: http://us3.php.net/manual/en/function.addslashes.php adding a slash to a quote char that is part of an html tag's attribute's value is not the correct way to encode the quote (actually it's not correct anywhere in an html document) - although I wouldn't be surprised if it

RE: [PHP] INPUT

2006-08-10 Thread Warren Vail
Many of the older PHP implementations don't have the mysql_escape_string function, if not addslashes should work I would be interested to know what might get past the addslashes function that the mysql_escape_string function catches. Warren Vail -Original Message- From: Jochem

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Al
Marcus Bointon wrote: On 10 Aug 2006, at 16:39, Al wrote: tds don't need to be terminated with /tds That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently encountered a site that contained 3500

[PHP] Re: INPUT

2006-08-10 Thread Jo�o C�ndido de Souza Neto
Thanks a lot by your answers everyone. Tomorow i´ll be back in this system and i´ll test it. João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi everyone, Excuse me by off-topic. I´ve been a little trouble in showing data in html form. e.g.: In a

[PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Hello, I have about 90 customers who have created accounts but not yet activated them in the past 11 months. That's less than one every 3.6 days but compared to our total number of customers, it's right at the edge of being a significant number. I'm curious to find a way to determine if the mail

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
Warren Vail wrote: Just happened to think of one other thing you might want to be aware of; When a query behaves like this, your site is usually vulnerable to the Sql Injection Hack. Basically this is where someone sticks an insert query into one of your data form fields (quotes are

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
Warren Vail wrote: Many of the older PHP implementations don't have the mysql_escape_string function, if not addslashes should work this is true. I would be interested to know what might get past the addslashes function that the mysql_escape_string function catches. not sure about

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Al
Marcus Bointon wrote: On 10 Aug 2006, at 16:39, Al wrote: tds don't need to be terminated with /tds That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently encountered a site that contained 3500

[PHP] Re: INPUT

2006-08-10 Thread Jo�o C�ndido de Souza Neto
By the last answers i saw that someone do not understand wath i wanted to say. My strigs are always rightly escaped, but when i get it into a html form like input type=text value=? echo $field;? it gets input type=text value=Sony 29 TV that is, the value of my input field lost part of the

RE: [PHP] Re: INPUT

2006-08-10 Thread Jim Moseby
By the last answers i saw that someone do not understand wath i wanted to say. My strigs are always rightly escaped, but when i get it into a html form like input type=text value=? echo $field;? it gets input type=text value=Sony 29 TV that is, the value of my input field lost

Re: [PHP] OT? Verifying mail was received

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 1:48 pm, Chris W. Parker wrote: I have about 90 customers who have created accounts but not yet activated them in the past 11 months. That's less than one every 3.6 days but compared to our total number of customers, it's right at the edge of being a significant number.

Re: [PHP] INPUT

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 1:54 pm, Jochem Maas wrote: Warren Vail wrote: Many of the older PHP implementations don't have the mysql_escape_string function, if not addslashes should work this is true. I would be interested to know what might get past the addslashes function that the

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 11:15 pm, Richard Lynch wrote: On Wed, August 9, 2006 11:20 am, Dave M G wrote: How do I create a file that the user saves, and is not stored on the server? http://richadlynch.blogger.com Curses! Foiled again! Can't even type my own name :-v

Re: [PHP] [ATTN: Kevin W] Comment form spammer

2006-08-10 Thread Micky Hulse
Ack, your email provider thinks my email is spam... not sure why. I got a bounce-back with this link: Permanent Failure: 553_5.3.0_[EMAIL PROTECTED]'s domain].net..._REJECT:550_Spam_filter_activated_see_http://[kevin's domain].net/spam/ Sorry to hit the PHP list, but I really wanted to

Re: [PHP] calendar Q

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 12:14 pm, William Stokes wrote: I have a calendar script that displays a simple mini calendar view one month at a time. User can click any date and the calendar opens another page that displays that date's events. I would like to highlight to the mini calendar view

Re: [PHP] loop in horizontal direction (php-html)

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 8:32 am, Reinhart Viane wrote: I've been wondering. I know it's possible to make a php loop that each time generates a new tr. In that case the results are stored under eachother. Now I want to know if I can do the same in a horizontal direction. The result should be

Re: [PHP] [ATTN: Kevin W] Comment form spammer

2006-08-10 Thread Robert Cummings
On Thu, 2006-08-10 at 13:38 -0700, Micky Hulse wrote: Ack, your email provider thinks my email is spam... not sure why. I got a bounce-back with this link: Permanent Failure: 553_5.3.0_[EMAIL PROTECTED]'s domain].net..._REJECT:550_Spam_filter_activated_see_http://[kevin's

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 11:40 pm, Dave M G wrote: Robert said: It's all about the headers... header( Content-type: text/csv ); This only forces a download if the browser has not been configured to do something special with text/csv application/octet-stream is the correct answer to

Re: [PHP] Comment form spammer

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 11:33 pm, Micky Hulse wrote: Yeah, I would prefer to not setup a CAPTCHA too (although, I would like to learn how to script one)... hopefully implementing your (and everyone else's) great suggestions will really make my script hard to spam. I rolled my own, because I

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
Richard Lynch wrote: On Thu, August 10, 2006 1:54 pm, Jochem Maas wrote: Warren Vail wrote: Many of the older PHP implementations don't have the mysql_escape_string function, if not addslashes should work this is true. I would be interested to know what might get past the addslashes

Re: [PHP] Comment form spammer

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 11:42 pm, Micky Hulse wrote: Micky Hulse wrote: I just commented-out all of the PHP in the old script and added one line: die(#%$#@ off!); Actually... is there anything more I can do at this point to fight back? Can I use something better than die()? Or, is it best

[PHP] Re: INPUT

2006-08-10 Thread Jo�o C�ndido de Souza Neto
Ok guys. I used htmlentities and everything work fine. Thanks gang. João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi everyone, Excuse me by off-topic. I´ve been a little trouble in showing data in html form. e.g.: In a e-commerce my client have

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 9:07 am, [EMAIL PROTECTED] wrote: Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new setting? Are we talking about major

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
good idea! :) thanks richard! -afan On Wed, August 9, 2006 9:07 am, [EMAIL PROTECTED] wrote: Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 7:54 am, [EMAIL PROTECTED] wrote: This is what I found and started to use: created magic_quotes_off.php if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ?

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
My thought was to use this until I do all changes. Once the changes are done - turn off magic_quote_gpc in php.ini. but, agree, redo whole site on separate place (under 'new' or on other box) is much better solution. -afan On Thu, August 10, 2006 7:54 am, [EMAIL PROTECTED] wrote: This is

Re: [PHP] returning to the same page after log in

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 8:18 am, Sjef wrote: Hello all! This is a bit difficult to explain. On a site I am building I sometimes use the GET method to forward values to the next page. There are certain pages that you need to be logged in to to be able to see data. So you arrive at the page,

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 1:30 am, Dave M G wrote: This regular expression stuff is way tricky. Thanks to help from this list, I have an expression that will select the first word of a string, up to the first white space: #^(.*)\s#iU But after some consideration, I realized that I wanted to

Re: [PHP] List Meeting NNOT

2006-08-10 Thread Jochem Maas
Jay Blanchard wrote: Here is a thought that a couple of us have shared off-list; why don't we list denizens plan a get together? A face-to-face with the good, the bad and the ugly. A mano y' mano curly brace holy war. Beers and meat. The whole 9.2 Mb's. So, what say you? Shall we start a

Re: [PHP] sessions no longer work

2006-08-10 Thread Richard Lynch
Wild Guess Theory [These are assuming that the normal attempts to debug have failed] One of the problems with header(Location: ) in conjuction with session_start() is this: The browser is sent 2 things as a result of these calls: 1. An HTTP response code involving a 302 and a new URL 2. A

Re: [PHP] Cron running 'Hello world' script dies with Could not startup.

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 3:14 am, Ivo F.A.C. Fokkema wrote: SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure about other distros. Probably because the PATH to the GTK.so file is not absolute in your

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 5:07 am, Dave M G wrote: The brackets indicate a sub-expression. The parens indicate that you want to CAPTURE the matched characters. Inside of [ ] the parens would be a sub-expression, however. First question, why is there an extra backslash before the space marker

Re: [PHP] Comment form spammer

2006-08-10 Thread Micky Hulse
Richard Lynch wrote: You can tie up their connection, wasting your connection... If it were my own site, I might think about doing something like wasting my connection... I suppose you could do: header(Location: 127.0.0.1); and then they'd be trying to surf to their own computer, if they

Re: [PHP] Multiple Includes vs. One Long Include (Functions)

2006-08-10 Thread Richard Lynch
On Tue, August 8, 2006 3:30 pm, Kevin Murphy wrote: I was just wondering if there was any thought one way or another on the best practice for doing this. Lets say I have 10 functions that I want to reuse on my site. Not every page needs every function. So I move the function to an external

Re: [PHP] Re: Multiple Includes vs. One Long Include (Functions)

2006-08-10 Thread Richard Lynch
On Tue, August 8, 2006 3:45 pm, Adam Zey wrote: From a performance standpoint, if you're not using an opcode cache, modularizing it will be faster, since PHP won't have to compile functions that won't be used (PHP recompiles scripts every time they are run). However, if you're using an

Re: [PHP] Including Google Ads

2006-08-10 Thread Chris
bruce wrote: umm chris... do you really think he didn't read the google website.. was there a section of the site you wanted him to pay attention to... or were you trying to add to the entropy of the universe?? It's all documented on their website, why would anyone on this list (or any other

Re: [PHP] Multiple Includes vs. One Long Include (Functions)

2006-08-10 Thread Rasmus Lerdorf
Kevin Murphy wrote: I was just wondering if there was any thought one way or another on the best practice for doing this. Lets say I have 10 functions that I want to reuse on my site. Not every page needs every function. So I move the function to an external page and then require it for the

Re: [PHP] Comment form spammer

2006-08-10 Thread Micky Hulse
Richard Lynch wrote: I rolled my own, because I thought it would be a useful learning experience. Sounds like what I am thinking. :) And, I kinda sorta documented it. Well, I put the source up on-line anyway. :-) So here's one crude hack way to do it, if you just want the basics of how it's

RE: [PHP] break up variable and put each element in an array

2006-08-10 Thread Richard Lynch
On Tue, August 8, 2006 3:47 pm, Fokkema, I.F.A.C. \(HKG\) wrote: try this: $string = 3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006 1/01/2007 15/02/2007; $array = explode(' ', $string); foreach ($array as $value) echo Date: $valuebr /; If the user separates the dates by an enter in

[PHP] b4nl() - What, Why, Where...

2006-08-10 Thread Micky Hulse
b4nl($foo); Could not find info on php.net maybe I did not look hard enough. Tia, Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] b4nl() - What, Why, Where...

2006-08-10 Thread Chris
Micky Hulse wrote: b4nl($foo); Could not find info on php.net maybe I did not look hard enough. It's not a php function. Assuming you're on *nix or *bsd, you can grep your source code for it: grep -ilr 'function b4nl' * Your text editor may also have a search function that will do

RE: [PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, August 10, 2006 1:14 PM said: Keep in mind that for many mere mortals, the process of dealing with your email confirmation goes like this: 1. surf to site, put in email 2. check email, find nothing. 3. go back to site, use

Re: [PHP] b4nl() - What, Why, Where...

2006-08-10 Thread Micky Hulse
Hi Chris. Chris wrote: It's not a php function. Assuming you're on *nix or *bsd, you can grep your source code for it: grep -ilr 'function b4nl' * Your text editor may also have a search function that will do something similar. Ahhh... strange. I think I have seen a few PHP scripts that use

Re: [PHP] b4nl() - What, Why, Where...

2006-08-10 Thread Chris
Micky Hulse wrote: Hi Chris. Chris wrote: It's not a php function. Assuming you're on *nix or *bsd, you can grep your source code for it: grep -ilr 'function b4nl' * Your text editor may also have a search function that will do something similar. Ahhh... strange. I think I have seen a few

RE: [PHP] List Meeting NNOT

2006-08-10 Thread tedd
At 7:22 AM +0200 8/10/06, Paul Scott wrote: On Wed, 2006-08-09 at 18:54 -0500, Jay Blanchard wrote: Yes, but not everyone can get to or goes to conferences. And this would stand on its own don'tcha think? I think that Chicago is perfect, because it is centrally located (kinda') and a neat

Re: [PHP] List Meeting NNOT

2006-08-10 Thread tedd
At 1:57 PM -0400 8/10/06, John Nichel wrote: Adam Zey wrote: snip It's still a bit of a drive when you live in Montreal and don't have a car. About an 18 hour drive, plus a few hours for bus stops and border crossings. Canadians are welcome to come? That's it, count me out! :-p LOL,

Re: [PHP] OT? Verifying mail was received

2006-08-10 Thread tedd
At 11:48 AM -0700 8/10/06, Chris W. Parker wrote: Hello, I have about 90 customers who have created accounts but not yet activated them in the past 11 months. That's less than one every 3.6 days but compared to our total number of customers, it's right at the edge of being a significant number.

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread tedd
At 2:42 PM -0400 8/10/06, Al wrote: Marcus Bointon wrote: On 10 Aug 2006, at 16:39, Al wrote: tds don't need to be terminated with /tds That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Larry Garfield
On Thursday 10 August 2006 13:42, Al wrote: Marcus Bointon wrote: On 10 Aug 2006, at 16:39, Al wrote: tds don't need to be terminated with /tds That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently

Re: [PHP] calendar Q

2006-08-10 Thread William Stokes
Ok. Thanks. One more question. I have dates as a datetime in DB. Like 2006-08-11 08:20:00 and I'm playing only with date part in the calendar 2006-08-11. So how to compare this date to the datetime info in DB? Do I need to use DATE_FORMAT or someting like this in the query? Thanks -Will