Re: [PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Bastien Koert
[snip] > > I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get DomDocument to skip that

Re: [PHP] Flow chart tool

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 19:08 -0400, Haig Dedeyan wrote: > Ashley Sheridan wrote: > > On Wed, 2008-10-08 at 18:45 -0400, Haig Dedeyan wrote: > > > >> Hi everyone, > >> > >> is there a software that will create a flow chart indicating what php > >> pages are using what tables in a MySql dbase? > >

Re: [PHP] Flow chart tool

2008-10-08 Thread Haig Dedeyan
Ashley Sheridan wrote: On Wed, 2008-10-08 at 18:45 -0400, Haig Dedeyan wrote: Hi everyone, is there a software that will create a flow chart indicating what php pages are using what tables in a MySql dbase? Haig To my knowledge no such software exists. You could include an extra bi

Re: [PHP] Flow chart tool

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 18:45 -0400, Haig Dedeyan wrote: > Hi everyone, > > is there a software that will create a flow chart indicating what php > pages are using what tables in a MySql dbase? > > Haig > To my knowledge no such software exists. You could include an extra bit of code in each of y

[PHP] Flow chart tool

2008-10-08 Thread Haig Dedeyan
Hi everyone, is there a software that will create a flow chart indicating what php pages are using what tables in a MySql dbase? Haig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login

2008-10-08 Thread Stut
On 8 Oct 2008, at 22:32, Ashley Sheridan wrote: On Wed, 2008-10-08 at 22:15 +0100, Stut wrote: I don't disagree that it's not the best model, but it is the best paying I have to disagree. Each and every time I've come across this, I've gone elsewhere. The model doesn't work as far as I can te

Re: [PHP] Plotting Tool

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 17:37 -0400, Daniel Brown wrote: > On Wed, Oct 8, 2008 at 5:34 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > >> > > You probably wouldn't have wanted any cake, it was most likely spiked > > with laxatives to induce the obvious and cause a decline in programming > > time ;

Re: [PHP] Plotting Tool

2008-10-08 Thread Daniel Brown
On Wed, Oct 8, 2008 at 5:34 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > You probably wouldn't have wanted any cake, it was most likely spiked > with laxatives to induce the obvious and cause a decline in programming > time ;) Precisely one of the reasons I'm not the only one to take a

Re: [PHP] Plotting Tool

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 17:13 -0400, Daniel Brown wrote: > On Wed, Oct 8, 2008 at 5:09 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > > > I really meant standards when I said basics. IMHO, standards are the > [snip!] > > None of the list-newbies get smiley-less jokes here anymore. What >

Re: [PHP] Login

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 22:15 +0100, Stut wrote: > I don't disagree that it's not the best model, but it is the best > paying I have to disagree. Each and every time I've come across this, I've gone elsewhere. The model doesn't work as far as I can tell. I think the problem is the people who creat

Re: [PHP] Login

2008-10-08 Thread Stut
On 8 Oct 2008, at 22:05, Ashley Sheridan wrote: On Wed, 2008-10-08 at 21:45 +0100, Stut wrote: On 8 Oct 2008, at 21:44, Ashley Sheridan wrote: The only redirects that have p!ssed me off before are those ones that big sites put in to make room for their adverts. On more than one occassion I've

Re: [PHP] Plotting Tool

2008-10-08 Thread Daniel Brown
On Wed, Oct 8, 2008 at 5:09 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > > I really meant standards when I said basics. IMHO, standards are the [snip!] None of the list-newbies get smiley-less jokes here anymore. What is this world coming to?!? > ps, for those that don't know, I'm referr

Re: [PHP] Plotting Tool

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 16:51 -0400, Daniel Brown wrote: > On Wed, Oct 8, 2008 at 4:47 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > >> > > Obviously, I'm only advocating this as a last ditch alternative for a > > browser that can't get even the basics right yet ;) > > What do you mean, "b

Re: [PHP] Login

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 21:45 +0100, Stut wrote: > On 8 Oct 2008, at 21:44, Ashley Sheridan wrote: > > On Wed, 2008-10-08 at 16:33 -0400, Wolf wrote: > >> > >>> Redirects make sense IMO. IIRC the Yahoo guidelines say not to > >>> redirect after a form POST, but unless you have a ka-jillion page > >>

Re: [PHP] Plotting Tool

2008-10-08 Thread Daniel Brown
On Wed, Oct 8, 2008 at 4:47 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > Obviously, I'm only advocating this as a last ditch alternative for a > browser that can't get even the basics right yet ;) What do you mean, "basics"? When you're Microsoft, you don't invent software to match the

Re: [PHP] magic_quotes

2008-10-08 Thread Stut
On 8 Oct 2008, at 21:38, Bryan wrote: My web site consists of some hard-coded html but on the main, data is stored in MySQL and through the use of PHP I generate pages of html. Everything went well this year until around June/July time when I started noticing quotes (') were escaped in the gener

Re: [PHP] Login

2008-10-08 Thread Stut
On 8 Oct 2008, at 21:44, Ashley Sheridan wrote: On Wed, 2008-10-08 at 16:33 -0400, Wolf wrote: Redirects make sense IMO. IIRC the Yahoo guidelines say not to redirect after a form POST, but unless you have a ka-jillion page views a second (or, "a lot"), then I don't think it's a concern. Wai

Re: [PHP] Plotting Tool

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 21:35 +0100, Richard Heyes wrote: > >I think Richard Heyes was working on some of these, actually. Not > > positive if it was plotting or just display, though. If you check the > > archives, you might find something. I'm CC'ing him personally, too. > > > >Here's one

Re: [PHP] Login

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 16:33 -0400, Wolf wrote: > > > Redirects make sense IMO. IIRC the Yahoo guidelines say not to > > redirect after a form POST, but unless you have a ka-jillion page > > views a second (or, "a lot"), then I don't think it's a concern. > > Wait, Yahell has guidelines?!?!? > >

[PHP] magic_quotes

2008-10-08 Thread Bryan
My web site consists of some hard-coded html but on the main, data is stored in MySQL and through the use of PHP I generate pages of html. Everything went well this year until around June/July time when I started noticing quotes (') were escaped in the generated html, so "it's" would appear as

Re: [PHP] Plotting Tool

2008-10-08 Thread Richard Heyes
>I think Richard Heyes was working on some of these, actually. Not > positive if it was plotting or just display, though. If you check the > archives, you might find something. I'm CC'ing him personally, too. > >Here's one link of his I have from memory: > >http://www.phpguru.org

Re: [PHP] Login

2008-10-08 Thread Wolf
> Redirects make sense IMO. IIRC the Yahoo guidelines say not to > redirect after a form POST, but unless you have a ka-jillion page > views a second (or, "a lot"), then I don't think it's a concern. Wait, Yahell has guidelines?!?!? You always have to look at the User Experience. You don't want

Re: [PHP] Login

2008-10-08 Thread Richard Heyes
> I would recommend using the include method. Redirects should always >> be second choice, because they are just evil. > > In this case I would disagree. On successful login it's normal to redirect > to a useful page rather than just display a page that says "congratulations, > you're a real user".

Re: [PHP] sms interfaces?

2008-10-08 Thread Jignesh Thummar
www.frengo.com provides SMS alert service. - Jignesh On Thu, Oct 9, 2008 at 1:25 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Rene Veerman [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 08, 2008 2:33 PM > > To: php-general@lists.php.net > > Subjec

RE: [PHP] sms interfaces?

2008-10-08 Thread Boyd, Todd M.
> -Original Message- > From: Rene Veerman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 08, 2008 2:33 PM > To: php-general@lists.php.net > Subject: [PHP] sms interfaces? > > hi, i'd like my app to send sms warnings of some events. > > if you know of a free / cheap sms service that

Re: [PHP] sms interfaces?

2008-10-08 Thread Rene Veerman
thanks! Stut wrote: On 8 Oct 2008, at 20:33, Rene Veerman wrote: hi, i'd like my app to send sms warnings of some events. if you know of a free / cheap sms service that can be called from php, please let me/us know. u earn extra points if it can send to dutch phones / any phone in the worl

Re: [PHP] sms interfaces?

2008-10-08 Thread Stut
On 8 Oct 2008, at 20:33, Rene Veerman wrote: hi, i'd like my app to send sms warnings of some events. if you know of a free / cheap sms service that can be called from php, please let me/us know. u earn extra points if it can send to dutch phones / any phone in the world ;) Best I've fou

Re: [PHP] Re: Manipulating strings

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 11:37 -0700, Yeti wrote: > #let's say we got following string: > $some_string = 'blah blahblah blah'; > var_dump(explode('', $some_string)); > /* OUTPUT: > array(4) { > [0]=> > string(0) "" > [1]=> > string(9) "blah blah" > [2]=> > string(9) "blah blah" > [3]=>

[PHP] sms interfaces?

2008-10-08 Thread Rene Veerman
hi, i'd like my app to send sms warnings of some events. if you know of a free / cheap sms service that can be called from php, please let me/us know. u earn extra points if it can send to dutch phones / any phone in the world ;) -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Re: Manipulating strings

2008-10-08 Thread Yeti
blah blahblah blah'; var_dump(explode('', $some_string)); /* OUTPUT: array(4) { [0]=> string(0) "" [1]=> string(9) "blah blah" [2]=> string(9) "blah blah" [3]=> string(0) "" } */ #So as you see index 0 and index 3 are empty strings. Keep that in mind ?> -- PHP General Mailing List

Re: [PHP] Login

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 20:02 +0100, Stut wrote: > On 8 Oct 2008, at 19:52, Bernhard Kohl wrote: > > > # I would recommend using the include method. Redirects should always > > be second choice, because they are just evil. > > In this case I would disagree. On successful login it's normal to > re

Re: [PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 12:01 -0700, mike wrote: > On Wed, Oct 8, 2008 at 4:06 AM, ANR Daemon <[EMAIL PROTECTED]> wrote: > > > If you're using it to deal with possible empty input data, you'd better do > > it > > explicitly enstead. > > > > Something like this: > > > > if(!array_key_exists('from_y

Re: [PHP] Login

2008-10-08 Thread Stut
On 8 Oct 2008, at 19:52, Bernhard Kohl wrote: In this case I would disagree. On successful login it's normal to redirect to a useful page rather than just display a page that says "congratulations, you're a real user". In the case of an unsuccessful login why would you need to include ano

Re: [PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-08 Thread mike
On Wed, Oct 8, 2008 at 4:06 AM, ANR Daemon <[EMAIL PROTECTED]> wrote: > If you're using it to deal with possible empty input data, you'd better do it > explicitly enstead. > > Something like this: > > if(!array_key_exists('from_year', $_POST) >|| !array_key_exists('from_month', $_POST) >|

Re: [PHP] Login

2008-10-08 Thread Ashley Sheridan
On Wed, 2008-10-08 at 11:52 -0700, Bernhard Kohl wrote: > # I would recommend using the include method. Redirects should always > be second choice, because they are just evil. > # Example code below > $password = md5('swordfish'); > $user = 'Trucker Joe'; > if ($_POST['user'] == $user && md5($_POS

Re: [PHP] Login

2008-10-08 Thread Bernhard Kohl
http://us.php.net/manual/en/function.include.php # http://en.wikipedia.org/wiki/Code_injection#PHP_Injection ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Selecting all records between a date range

2008-10-08 Thread Eric Butera
On Thu, Oct 2, 2008 at 12:35 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I am working on a app where I need to be able to select all the values from > a database where the 'timein' field is between a certain date range... > Essentially the last 7 days... > > here is the code that

Re: [PHP] Re: Prefered Method for User authetification on VHosts

2008-10-08 Thread Per Jessen
Michelle Konzack wrote: > Am 2008-10-07 08:34:42, schrieb Per Jessen: >> > I like to know, whether this is good enough or is there a >> > better solution? >> >> Good enough depends entirely on your security requirements, i.e. how >> safe do you need the authenticated access to be? Are you

Re: [PHP] Selecting all records between a date range

2008-10-08 Thread Andrew Ballard
On Tue, Oct 7, 2008 at 9:16 PM, Chris <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: >> >> On Thu, Oct 2, 2008 at 12:35 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: >> >>> SQLTEST: SELECT * FROM `timeStore` WHERE`timein` BETWEEN >>> 1222315200 AND 122292 >>> Could not perform query:

Re: [PHP] Missing Env. Variables when called by AT Scheduler

2008-10-08 Thread Thodoris
JJB wrote: We regularly send out massive mail blasts to our customers. Recently several mail blasts failed to transmit. After a serious amount of research we found the snippet of code below to be the place where it was breaking down. The issue it seems is that the Environment Variables HOST

Re: [PHP] strtotime problem

2008-10-08 Thread Thodoris
From your function name I assume you want to use it in MySQL. In that case, why don't you have MySQL do all the magic for you? eg. INSERT INTO table (col) VALUES (FROM_UNIXTIME($timestamp)); (using FROM_UNIXTIME($timestamp) will give you the date-time in "mysql format" (-MM-DD HH:MM:SS)

Re: [PHP] strtotime problem

2008-10-08 Thread Maciek Sokolewicz
Thodoris wrote: Actually strtotime accepts all kinds of things... "Last week Thursday midnight" for example works perfectly. You could do an explode on the field and then reorder the array anyway that you want... Or something like that :) That wasn't tested but should give you an idea

Re: [PHP] strtotime problem

2008-10-08 Thread Jason Pruim
On Oct 8, 2008, at 7:58 AM, Thodoris wrote: Actually strtotime accepts all kinds of things... "Last week Thursday midnight" for example works perfectly. You could do an explode on the field and then reorder the array anyway that you want... Or something like that :) That wasn't te

[PHP] Re: Prefered Method for User authetification on VHosts

2008-10-08 Thread Michelle Konzack
Am 2008-10-07 08:34:42, schrieb Per Jessen: > > I like to know, whether this is good enough or is there a > > better solution? > > Good enough depends entirely on your security requirements, i.e. how > safe do you need the authenticated access to be? Are you protecting > something that is

Re: [PHP] strtotime problem

2008-10-08 Thread Stut
On 8 Oct 2008, at 12:58, Thodoris wrote: Actually this means that strtotime() was made with Americans *only* in mind... :-) . As far as I know it uses the configured timezone to decide between ambiguous formats. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] strtotime problem

2008-10-08 Thread Thodoris
Actually strtotime accepts all kinds of things... "Last week Thursday midnight" for example works perfectly. You could do an explode on the field and then reorder the array anyway that you want... Or something like that :) That wasn't tested but should give you an idea... php.net/expl

Re: [PHP] strtotime problem

2008-10-08 Thread Jason Pruim
On Oct 8, 2008, at 7:08 AM, Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($webda

Re: [PHP] Re: strtotime problem

2008-10-08 Thread Stut
On 8 Oct 2008, at 12:42, Nathan Rixham wrote: Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($

[PHP] Re: strtotime problem

2008-10-08 Thread Nathan Rixham
Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($webdate); return date($format,$timestam

Re: [PHP] strtotime problem

2008-10-08 Thread Jason Pruim
On Oct 8, 2008, at 7:24 AM, Thodoris wrote: On Oct 8, 2008, at 7:08 AM, Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y

Re: [PHP] strtotime problem

2008-10-08 Thread Thodoris
On Oct 8, 2008, at 7:08 AM, Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($webdate);

[PHP] strtotime problem

2008-10-08 Thread Thodoris
I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($webdate); return date($format,$timestamp);

[PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-08 Thread ANR Daemon
Greetings, ""Crash" Dummy". In reply to Your message dated Tuesday, October 7, 2008, 15:54:14, >>> mike schreef: Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown <[EMAIL PROTECTED] wrote: >> I will get an error, but if I prefix the value with '@', >> [EMAIL PROTECTED]"q"]; > Th

Re: [PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Nathan Rixham
Ron Rademaker wrote: Nathan Rixham wrote: Ron Rademaker wrote: Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is th

Re: [PHP] Prefered Method for User authetification on VHosts

2008-10-08 Thread Per Jessen
Jochem Maas wrote: > seems like a lot of pain to go through, what with all that shell'ing > out to grep data. I'd personally go for a simple DB table and > use/store sha1() hashes. My thoughts exactly. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Re: php framework vs just php?

2008-10-08 Thread Aschwin Wesselius
Luke wrote: I can't say I've ever used a framework. I like to be in control of all of my code, plus it's much more satisfying when you write everything yourself (I've found anyway)... If I want to make use of existing code, I rather have a good understanding and a grasp of the philosophy behind

Re: [PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Ron Rademaker
Nathan Rixham wrote: Ron Rademaker wrote: Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get

Re: [PHP] Re: php framework vs just php?

2008-10-08 Thread Luke
I can't say I've ever used a framework. I like to be in control of all of my code, plus it's much more satisfying when you write everything yourself (I've found anyway)... 2008/10/8 paragasu <[EMAIL PROTECTED]> > > PHP framework vs just php ? > > http://paul-m-jones.com/?p=315 > > according to t

[PHP] UTF-8 errors in RSS feed

2008-10-08 Thread Ron Rademaker
Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get DomDocument to skip that part of the feed.

[PHP] Re: Manipulating strings

2008-10-08 Thread Nathan Rixham
Ron Piggott wrote: I have a series of questions. How do I count the number of 's in a string? How do I add text in the middle of a string, let's say after the 3rd Ron simplest way from experience is to simply explode('', $the_string) you can then count the array -1 for number of br's; and

[PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Nathan Rixham
Ron Rademaker wrote: Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get DomDocument to skip th

Re: [PHP] PHP and getting part of URL

2008-10-08 Thread Per Jessen
Jason ML wrote: > Hi PHP'ers, > > PHP 4.4.8 and 5. > > say I have a url like: > > http://www.mydomain.tld/jason/index.php > > In that index.php I want to have a piece of code that runs that tells > me the 'jason' part of the URL so that I can run some custom read only > queries for 'jason' >

[PHP] UTF-8 errors in RSS feed

2008-10-08 Thread Ron Rademaker
Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get DomDocument to skip that part of the feed.