Re: [PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
Richard, Found this: http://www.phpclasses.org/browse/package/2263.html Real small and works in PHP4. Time for a little CSS tweaking ;) and it will look great! Thanks, John http://jtjohnston.ca/news/news.php Richard Lynch wrote: I'm willing to bet that if you check Google or even just http://

[PHP] Rasmus: [PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
Thanks. P.S. excellent interview with Leo Laporte! http://www.twit.tv/floss12 Your interview made me think of Cathedrals & Bazaars and the notion of free riders. I've been much of a php free rider myself, but try to find ways to give back, usually through phpmyadmin.net Thanks to everyone who g

Re: [PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
I've gotten some excellent responses. Thanks! Anything I can implement in PHP 4 - until i get IT to update to PHP 5? John Dave Goodchild wrote: Yep. The PEAR XML_RSS class.

[PHP] proxy server

2006-08-12 Thread John Taylor-Johnston
I have a bulk emailing list to a select group (I never spam, only to those who want it). Sometimes their imap/pop servers block my mail. I know I can assign another smtp over-riding what is in the php.ini file. I can likely find enough code here: http://ca3.php.net/manual/en/ref.mail.php So, whe

Re: [PHP] Parsing RSS

2006-08-12 Thread Rasmus Lerdorf
John Taylor-Johnston wrote: Is there something already created to open an rss file, parse it, and include() the useful stuff into an html file? Not all my students have an rss reader. http://jtjohnston.ca/jtjohnston.rss RSS is just XML. Use SimpleXML to map it to a PHP object and just print

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Rasmus Lerdorf
IE doesn't actually support XHTML, so if your primary target for something is IE, you really shouldn't be using XHTML. Even IE7 doesn't fully support it. Setting the charset in the response header like you did is the best approach. You can do it for all your pages in your php.ini file with:

[PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Jonny Bergström
It's me again. I might have solved it... in a way. Still quite puzzled about why IE don't give a dime about the meta encoding line in the html head tag. Here's what I did. The aforementioned header file now adds a header() statement sending a content-type that also tells the charset, utf-8. : --

[PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Jonny Bergström
...btw, I have been thinking, does IE only display UTF8 pages if the source file is saved using UTF8 *including* the BOM? I save all pages without the BOM because using BOM is impossible when you need to set cookies on client.

[PHP] Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Jonny Bergström
but Firefox does. this is the page: http://shiinaringo.se/guestbook.php You can see that a lot of characters (Swedish, Japanese) are totally garbled when using IE. Works fine in FF. If you try to look at some of the other pages linked to in the menu, they will work with IE as well. So I just

Re: [PHP] Unicode

2006-08-12 Thread Gerry D
Tedd, Interesting that nobody knows the answer... I am struggling with this very issue for an international lily register... http://www.lilyregister.com/ Gerry On 6/5/06, tedd <[EMAIL PROTECTED]> wrote: At 7:08 PM -0700 6/4/06, Rasmus Lerdorf wrote: >Larry Garfield wrote: >>In C or C++, yes.

Re: [PHP] A way to stop spam on this list

2006-08-12 Thread Gerry D
They're not Jap but Chi. And they drove me crazy on my websites until I fixed them. http://www.lilyregister.com/page/?p=contact is what stopped the idiots. Gerry On 6/19/06, Denis Gerasimov <[EMAIL PROTECTED]> wrote: Hello List Members, I am very tired of deleting spam messages received fro

Re: [PHP] Comment form spammer

2006-08-12 Thread Gerry D
My implementation of captcha eliminated chinese spam. See http://www.lilyregister.com/page/?p=contact Gerry On 8/9/06, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi, Recently, a client of mine was getting a ton of spam email from a site called hotbox.com. I updated her form to one with more spam

Re: [PHP] Chicago PHP Conference

2006-08-12 Thread Gerry D
Richard, Within the US that might be ok, but given latest developments, who wants to fly into the US from elsewhere? I could drive from Canada if I take 2 weeks vacation... I don't want to be a show stopper, but I think you need to explain what your target audience is re global travel, not just

Re: [PHP] List Meeting NNOT

2006-08-12 Thread Richard Lynch
On Wed, August 9, 2006 6:26 pm, 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. >

Re: [PHP] List Meeting NNOT

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 8:08 am, David Robley wrote: > Ligaya Turmelle wrote: > >> tedd wrote: >>> 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 >

Re: [PHP] suphp problem

2006-08-12 Thread Richard Lynch
On Sat, July 22, 2006 4:05 pm, Michelle Konzack wrote: > I have around 8000 VHosts and normaly do not use "suphp" for security > reason. All VHosts have there own UID/GID and the Apache VHosts are > setup with > > User$UID > Group $GID Does that actually work? Last I heard,

[PHP] New Large Scale Project.

2006-08-12 Thread Wesley Acheson
I'm looking to do a fairly large scale project. The problem is I don't know how much of it to write myself how much I could get away with using existing components (modified as necessary). Basically the different areas I would need are authentication, galleries (for images), permission levels.

[PHP] Chicago PHP Conference

2006-08-12 Thread Richard Lynch
It may have started as a joke on PHP-General, but this just isn't funny anymore. I'm in the pre-planning phase of organizing a PHP Conference in Chicago. Due to Chicago weather patterns, the ideal time would be Spring or Autumn. Given that cheap airfare generally requires significant advance not

Re: [PHP] Re: Comment form spammer

2006-08-12 Thread Richard Lynch
On Sat, August 12, 2006 7:39 am, Colin Guthrie wrote: > Micky Hulse wrote: >> Richard Lynch wrote: >>> The web2 dictionary is Webster's older dictionary, now in the >>> public >>> domain, and is installed on my server by the webhost -- so >>> presumably >>> is readily available. >> >> Nice, was not

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

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote: > Well, if it's true that some browsers on some platforms ignore the W3C > standard, I guess we could use: Or perhaps these browsers pre-date W3C standards. :-) > $datelist = > str_replace(array("\r\n","\n","\r"),'',$_POST['datelist']);

RE: [PHP] SETCOOKIE

2006-08-12 Thread Richard Lynch
On Sat, August 12, 2006 8:00 am, Peter Lauri wrote: > When you just use time() you tell the cookie to just live until now, > so it > dies directly. You have to add some seconds to determine how long the > cookie > will live. Unfortunately, no... The above solution relies on the USER computer cloc

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

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 2:40 am, Reinhart Viane wrote: > Actually, I know that it's browser/OS dependent, cuz I had a bunch of > Mac users who sent only \r all the time. > > This may be true only of OS 9, and you may not care about them > anymore, but there it is. > > I also would not be so quick t

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

2006-08-12 Thread Richard Lynch
On Thu, August 10, 2006 5:48 pm, Micky Hulse wrote: > b4nl($foo); > > Could not find info on php.net maybe I did not look hard enough. Arooo? Maybe you are thinking of: http://php.net/nl2br -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] OT? Verifying mail was received

2006-08-12 Thread Richard Lynch
On Thu, August 10, 2006 9:59 pm, tedd wrote: > Not a php solution, but send them all a buck via PayPal. For $90 > you'll learn if their email addresses are correct. This assumes a much higher market penetration for PayPal than it has, I think... I know I definitely would not get the email from Pa

Re: [PHP] calendar Q

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 12:23 am, William Stokes wrote: > 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 som

Re: [PHP] problem with Firefox print preview?

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 7:58 am, Angelo Zanetti wrote: > I've developed this site in PHP and its basically finished, now I have > a > problem with the printing and print preview. > I have a dynamic table that can span various pages depending on the > number of records pulled from the database. > >

Re: [PHP] script to check if form is submitted from the same page?

2006-08-12 Thread Richard Lynch
On Sat, August 12, 2006 1:55 pm, Afan Pasalic wrote: > could I use this code to check if form is submitted from the same > page/same domain > > if ($_POST['form_submitted'] == 'Yes') > { > if (preg_match($_SERVER['HTTP_HOST'], $_SERVER["HTTP_REFERER"]) == > 0) > { > die ('^&[EMAIL P

Re: [PHP] IMAGE LOADED...

2006-08-12 Thread Richard Lynch
On Sat, August 12, 2006 3:18 pm, BBC wrote: > I build a small site in which some images are loaded in all pages. I > concern if the client have slow connection to internet. > Does any one can tell me how to send such images to client's computer? > I want to increase the speed connection by taking s

Re: [PHP] Re: A way to stop spam on this list

2006-08-12 Thread BBC
> Hey, > > > > Late answer, > > > > but I was coming back yesterday from Palestine, > > after the Israelien > > Terror Authority had arrest me for making tonns of > > photos and Videos > > about Israeli military crime... (shooting children > > and pregnant women) > > > Lets keep religion, conf

[PHP] IMAGE LOADED...

2006-08-12 Thread BBC
I build a small site in which some images are loaded in all pages. I concern if the client have slow connection to internet. Does any one can tell me how to send such images to client's computer? I want to increase the speed connection by taking such image from client's computer when it's already

Re: [PHP] script to check if form is submitted from the same page?

2006-08-12 Thread BBC
> could I use this code to check if form is submitted from the same > page/same domain > > if ($_POST['form_submitted'] == 'Yes') > { > if (preg_match($_SERVER['HTTP_HOST'], $_SERVER["HTTP_REFERER"]) == 0) > { > die ('^&[EMAIL PROTECTED]'); > } > } I prefer to use 'session_s

[PHP] script to check if form is submitted from the same page?

2006-08-12 Thread Afan Pasalic
could I use this code to check if form is submitted from the same page/same domain if ($_POST['form_submitted'] == 'Yes') { if (preg_match($_SERVER['HTTP_HOST'], $_SERVER["HTTP_REFERER"]) == 0) { die ('^&[EMAIL PROTECTED]'); } } thanks -afan -- PHP General Mailing List (http:/

Re: [PHP] SETCOOKIE

2006-08-12 Thread Al
Peter Lauri wrote: When you just use time() you tell the cookie to just live until now, so it dies directly. You have to add some seconds to determine how long the cookie will live. /Peter -Original Message- From: BBC [mailto:[EMAIL PROTECTED] Sent: Saturday, August 12, 2006 7:48 PM

[PHP] Re: requests from 2nd window breaks my program

2006-08-12 Thread Tony Marston
I had a similar problem in my framework some while ago, but I fixed it to allow multiple sessions from the same client. Read about it in http://www.tonymarston.net/php-mysql/client-clones.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org <[EMAIL PROTECTED]> wrote in messa

Re: [PHP] Parsing RSS

2006-08-12 Thread Dave Goodchild
On 12/08/06, John Taylor-Johnston < [EMAIL PROTECTED]> wrote: Is there something already created to open an rss file, parse it, and include() the useful stuff into an html file? Not all my students have an rss reader. http://jtjohnston.ca/jtjohnston.rss Yep. The PEAR XML_RSS class. for

[PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
Is there something already created to open an rss file, parse it, and include() the useful stuff into an html file? Not all my students have an rss reader. http://jtjohnston.ca/jtjohnston.rss jt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Re: A way to stop spam on this list

2006-08-12 Thread Ryan A
Hey, > Late answer, > > but I was coming back yesterday from Palestine, > after the Israelien > Terror Authority had arrest me for making tonns of > photos and Videos > about Israeli military crime... (shooting children > and pregnant women) Lets keep religion, conflicts, politics and crappy/s

RE: [PHP] SETCOOKIE

2006-08-12 Thread Peter Lauri
When you just use time() you tell the cookie to just live until now, so it dies directly. You have to add some seconds to determine how long the cookie will live. /Peter -Original Message- From: BBC [mailto:[EMAIL PROTECTED] Sent: Saturday, August 12, 2006 7:48 PM To: PHP Subject: [PHP]

[PHP] SETCOOKIE

2006-08-12 Thread BBC
Hi List, I want to set the cookie in which that cookie would be deleted automatically as visitor closes the browser. I have read an article from www.php.net/manual/en/function.setcookie and it is told me that we can set that cookie by unset the value time, but it doesn't work. Example: Setcooki

[PHP] Re: Comment form spammer

2006-08-12 Thread Colin Guthrie
Micky Hulse wrote: Richard Lynch wrote: The web2 dictionary is Webster's older dictionary, now in the public domain, and is installed on my server by the webhost -- so presumably is readily available. Nice, was not aware of that dictionary, googling now. :) Also if you just want some random