Re: [PHP] Browser could not get mp3 files from http site

2008-09-13 Thread hce
Thanks Dan and Ash. I've tried object tag, it crashed my firefox. The audio.php file generates a simple following html. You need media player plugin to test it. The web server http://www.myweb.com/audio.php is my home server. Let me further discribe the problems, it is not the embed tag problem, it

RE: [PHP] php image and javascript include

2008-09-13 Thread Tom Shaw
I'm a big fan of Zend Studio 5. It's pretty hard to beat considering how fast you can code load up the page refresh, and the editor itself is very clean plus it works in linux. I know a lot of people like to soft tab but I just don’t have the patience. Hard tabs all the way for me. Tom Shaw [EM

RE: [PHP] 2 Questions.

2008-09-13 Thread Tom Shaw
-Original Message- From: Tom Shaw [mailto:[EMAIL PROTECTED] Sent: Saturday, September 13, 2008 9:52 PM To: 'Jochem Maas' Subject: RE: [PHP] 2 Questions. iamjochem wrote: >> My second question is I've designed a very simple Postgres database > wrapper. >> The methods are exactly what you

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-13 Thread Eric Gorr
On Sep 13, 2008, at 12:12 PM, Robert Cummings wrote: On Sat, 2008-09-13 at 10:09 -0400, Eric Gorr wrote: On Sep 12, 2008, at 5:13 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:51 -0400, Eric Gorr wrote: On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:11

Re: [PHP] 2 Questions.

2008-09-13 Thread Jochem Maas
Tom Shaw schreef: I should have mentioned that I use a *normalized* database wharehousing pattern where each row represents a distinct item being purchased. There could be fifty rows corresponding to a single order transaction like what you would see in something like an itunes music purchase. So

Re: [PHP] 2 Questions.

2008-09-13 Thread tedd
value appended to a date string. For example: From the above, you'd get an order number similar to 20080913-1048. This means that it's not only unique, regardless of how many orders come through in the same second, but ordering by time and date is easier, and on paper, you can eas

Re: [PHP] 2 Questions.

2008-09-13 Thread Daniel Brown
e string. For example: From the above, you'd get an order number similar to 20080913-1048. This means that it's not only unique, regardless of how many orders come through in the same second, but ordering by time and date is easier, and on paper, you can easily tell when an order w

Re: [PHP] 2 Questions.

2008-09-13 Thread tedd
At 5:38 PM -0500 9/13/08, Tom Shaw wrote: Can anybody give me any good reasons not to use a time stamp as an order number in my shopping cart. It seems to me that the number is guaranteed to be random and it saves having to make an extra time column to keep track of the order. The only small conc

RE: [PHP] 2 Questions.

2008-09-13 Thread Tom Shaw
I should have mentioned that I use a *normalized* database wharehousing pattern where each row represents a distinct item being purchased. There could be fifty rows corresponding to a single order transaction like what you would see in something like an itunes music purchase. So using the auto incr

Re: [PHP] 2 Questions.

2008-09-13 Thread Jochem Maas
Tom Shaw schreef: Can anybody give me any good reasons not to use a time stamp as an order number in my shopping cart. It seems to me that the number is guaranteed to be random and it saves having to make an extra time column to keep track of the order. The only small concern I have is the chance

Re: [PHP] 2 Questions.

2008-09-13 Thread Ashley Sheridan
On Sat, 2008-09-13 at 17:38 -0500, Tom Shaw wrote: > Can anybody give me any good reasons not to use a time stamp as an order > number in my shopping cart. It seems to me that the number is guaranteed to > be random and it saves having to make an extra time column to keep track of > the order. The

[PHP] 2 Questions.

2008-09-13 Thread Tom Shaw
Can anybody give me any good reasons not to use a time stamp as an order number in my shopping cart. It seems to me that the number is guaranteed to be random and it saves having to make an extra time column to keep track of the order. The only small concern I have is the chance that somebody order

Re: [PHP] php image and javascript include

2008-09-13 Thread Ashley Sheridan
On Sat, 2008-09-13 at 23:24 +0200, Børge Holen wrote: > On Saturday 13 September 2008 01:34:41 Ashley Sheridan wrote: > > I've never been a huge fan of Vi or Vim, but I am a fan of coding in a > > text editor, not a GUI, I just guess I prefer Kate. I know for certain > > that one thing that really

Re: [PHP] php image and javascript include

2008-09-13 Thread Børge Holen
On Saturday 13 September 2008 01:34:41 Ashley Sheridan wrote: > I've never been a huge fan of Vi or Vim, but I am a fan of coding in a > text editor, not a GUI, I just guess I prefer Kate. I know for certain > that one thing that really bugs me about Dreamweaver is the fact that it > has a tendency

Re: [PHP] check if a file is included

2008-09-13 Thread Eric Butera
On Sat, Sep 13, 2008 at 2:16 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> Please stop top-posting. > > Lest you be smitten with a vengeance reserved only for top-posters. A > nasty one. :-) > > -- > Richard Heyes > > HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: > http://www.phpguru.org/

Re: [PHP] localization folder for web site

2008-09-13 Thread Maciek Sokolewicz
Alain R. wrote: Maciek Sokolewicz wrote: 2. google "apache mod_rewrite", that way you can rewrite urls of the form www.example.org/de/whatever to www.example.org/whatever?lang=de or even stick the de part into an environment variable $_ENV['lang'] = 'de' - Tul the mod_rewrite is possibl

Re: [PHP] localization folder for web site

2008-09-13 Thread Alain R.
Maciek Sokolewicz wrote: 2. google "apache mod_rewrite", that way you can rewrite urls of the form www.example.org/de/whatever to www.example.org/whatever?lang=de or even stick the de part into an environment variable $_ENV['lang'] = 'de' - Tul the mod_rewrite is possible only if i own/ma

Re: [PHP] check if a file is included

2008-09-13 Thread Richard Heyes
> Please stop top-posting. Lest you be smitten with a vengeance reserved only for top-posters. A nasty one. :-) -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] localization folder for web site

2008-09-13 Thread Maciek Sokolewicz
Alain R. wrote: so how can i do the same ? i mean to have 1 single PHP page and to localize, but to have the URI with /en, or /fr or /de ? i know how to localize the complete website i already done it, but what you told ? > One would hope that unless it's a pretty small static site those "

Re: [PHP] localization folder for web site

2008-09-13 Thread Alain R.
how can i do the same ? Jochem Maas wrote: Alain R. schreef: Hi, mostly (90%) websites are designed to include localization (made in php) folder like following: www.mywebsite.com/en/ www.mywebsite.com/de/ www.mywebsite.com/fr/ why do they not use only 1 folder and use dynamically PHP to cha

Re: [PHP] localization folder for web site

2008-09-13 Thread Alain R.
so how can i do the same ? i mean to have 1 single PHP page and to localize, but to have the URI with /en, or /fr or /de ? i know how to localize the complete website i already done it, but what you told ? > One would hope that unless it's a pretty small static site those "folders" actually

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-13 Thread Robert Cummings
On Sat, 2008-09-13 at 10:09 -0400, Eric Gorr wrote: > On Sep 12, 2008, at 5:13 PM, Robert Cummings wrote: > > > On Fri, 2008-09-12 at 16:51 -0400, Eric Gorr wrote: > >> On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: > >> > >>> On Fri, 2008-09-12 at 16:11 -0400, Eric Gorr wrote: > On Sep

Re: [PHP] localization folder for web site

2008-09-13 Thread Jochem Maas
Alain R. schreef: Hi, mostly (90%) websites are designed to include localization (made in php) folder like following: www.mywebsite.com/en/ www.mywebsite.com/de/ www.mywebsite.com/fr/ why do they not use only 1 folder and use dynamically PHP to change localization of website ? who says the

[PHP] localization folder for web site

2008-09-13 Thread Alain R.
Hi, mostly (90%) websites are designed to include localization (made in php) folder like following: www.mywebsite.com/en/ www.mywebsite.com/de/ www.mywebsite.com/fr/ why do they not use only 1 folder and use dynamically PHP to change localization of website ? has this something to do with se

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-13 Thread Eric Gorr
On Sep 12, 2008, at 5:13 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:51 -0400, Eric Gorr wrote: On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:11 -0400, Eric Gorr wrote: On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: I don't see how that in any wa