Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: > >> Nathan Rixham schreef: > >>> Ashley Sheridan wrote: > On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > > quite a few sites seem to have a very n

Re: [PHP] Re: Output to matrix printer

2008-10-14 Thread Per Jessen
Shawn McKenzie wrote: > Matrix printer? Is this an awesomely powerful matrix of multiple > printers high output printers? > > -Shawn http://en.wikipedia.org/wiki/Matrix_printer /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] pdo and dabase schema

2008-10-14 Thread Chris
Alain Roger wrote: Hi, is there a way with PDO class to not have: - to execute a simple SET search_path TO myschema; can you alter the postgres users path? alter user set search_path to new_schema, current_schemas(); or some variation on that. - and after to fletch another SQL request, li

[PHP] pdo and dabase schema

2008-10-14 Thread Alain Roger
Hi, is there a way with PDO class to not have: - to execute a simple SET search_path TO myschema; - and after to fletch another SQL request, like select to be sure that the SQL statement will be perform on this schema ? (basically i want to do it in 1 step) because i tried to specify the schema i

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:54 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> >> On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan > >> From: "Some Company" <[EMAIL PROTECTED]> >> Date: Tue, 14 Oct 2008 13:01:18 -0400 >> Date: Tue, 14 Oct 2008 13:01:18 -0400 > > maybe because you

Re: [PHP] searching by tags....

2008-10-14 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: > Nathan Rixham schreef: > > Ashley Sheridan wrote: > >> On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > >>> quite a few sites seem to have a very neat way of implementing this > >>> with (url rewriting?) something like > >>> http://sitename/

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Jochem Maas
Colin Guthrie schreef: > Jochem Maas wrote: >> Jason Pruim schreef: >>> Good morning everyone! >>> >>> I think I might be having a "to early in the morning/not enough >>> caffeine" moment... But I am down to 1 error on my timecard application >>> that I would like to clean up. It's a small undefine

Re: [PHP] searching by tags....

2008-10-14 Thread Jochem Maas
Nathan Rixham schreef: > Ashley Sheridan wrote: >> On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: >>> quite a few sites seem to have a very neat way of implementing this >>> with (url rewriting?) something like >>> http://sitename/blog/tags/tag-comes-here/ > >> As for getting those search terms,

[PHP] Re: Output to matrix printer

2008-10-14 Thread Shawn McKenzie
Dušan Novaković wrote: > I have some request to sent text to matrix printer to print ticket for > theater. Is it possible to do that whit some php functions? Main point > is how to control length of paper that will be drawn inside and to > print text on a specific place. It would be nice if somebod

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 17:06 -0400, Eric Butera wrote: > On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-10-14 at 15:55 -0500, Jay Moore wrote: > >> Eric Butera wrote: > >> > Has anyone ever had reports of problems with Outlook 2003 using utf-8 > >> > a

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 23:17 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > >> quite a few sites seem to have a very neat way of implementing this with > >> (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ > > >

Re: [PHP] Output to matrix printer

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 19:15 -0300, Miles Thompson wrote: > On Tue, Oct 14, 2008 at 6:23 PM, Dušan Novaković <[EMAIL PROTECTED]> wrote: > > > I have some request to sent text to matrix printer to print ticket for > > theater. Is it possible to do that whit some php functions? Main point > > is how

Re: [PHP] searching by tags....

2008-10-14 Thread Nathan Rixham
Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ As for getting those search terms, well a link in a page can contain GET

Re: [PHP] Output to matrix printer

2008-10-14 Thread Miles Thompson
On Tue, Oct 14, 2008 at 6:23 PM, Dušan Novaković <[EMAIL PROTECTED]> wrote: > I have some request to sent text to matrix printer to print ticket for > theater. Is it possible to do that whit some php functions? Main point > is how to control length of paper that will be drawn inside and to > print

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > Hey, > > this the first time I am actually working with "tags" but it seems quite > popular and am adding it on a clients requests. > > By tags I mean something like wordpress' implementation of it, for example > when an author writes an articl

[PHP] Re: searching by tags....

2008-10-14 Thread Nathan Rixham
Ryan S wrote: Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies, new

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Nathan Rixham
Eric Butera wrote: On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan From: "Some Company" <[EMAIL PROTECTED]> Date: Tue, 14 Oct 2008 13:01:18 -0400 Date: Tue, 14 Oct 2008 13:01:18 -0400 maybe because you have two dates in the headers? whats the mime type of the html block? if it's set to tex

[PHP] searching by tags....

2008-10-14 Thread Ryan S
Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies, new borns, cribs, na

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 17:36 -0400, Eric Butera wrote: > On Tue, Oct 14, 2008 at 5:36 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-10-14 at 17:26 -0400, Eric Butera wrote: > >> On Tue, Oct 14, 2008 at 5:24 PM, Ashley Sheridan > >> <[EMAIL PROTECTED]> wrote: > >> > I thought you

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:36 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 17:26 -0400, Eric Butera wrote: >> On Tue, Oct 14, 2008 at 5:24 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > I thought you just had to specify the multipart/alternative and use the >> > bou

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 17:26 -0400, Eric Butera wrote: > On Tue, Oct 14, 2008 at 5:24 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > I thought you just had to specify the multipart/alternative and use the > > boundary sequence to separate the two messages? I can't see more than > > one content

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:24 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > I thought you just had to specify the multipart/alternative and use the > boundary sequence to separate the two messages? I can't see more than > one content type on any emails in my inbox. > > I just looked at my inbox.

[PHP] Output to matrix printer

2008-10-14 Thread Dušan Novaković
I have some request to sent text to matrix printer to print ticket for theater. Is it possible to do that whit some php functions? Main point is how to control length of paper that will be drawn inside and to print text on a specific place. It would be nice if somebody can write the code about this

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 17:15 -0400, Eric Butera wrote: > On Tue, Oct 14, 2008 at 5:17 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-10-14 at 17:06 -0400, Eric Butera wrote: > >> On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan > >> <[EMAIL PROTECTED]> wrote: > >> > On Tue, 2008-1

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 15:55 -0500, Jay Moore wrote: >> Eric Butera wrote: >> > Has anyone ever had reports of problems with Outlook 2003 using utf-8 >> > and quoted printable? I've recently started getting complains from

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:17 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 17:06 -0400, Eric Butera wrote: >> On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > On Tue, 2008-10-14 at 15:55 -0500, Jay Moore wrote: >> >> Eric Butera wrote: >>

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 15:55 -0500, Jay Moore wrote: > Eric Butera wrote: > > Has anyone ever had reports of problems with Outlook 2003 using utf-8 > > and quoted printable? I've recently started getting complains from > > our clients that some of their subscribers are having problems with > > the

[PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Jay Moore
Eric Butera wrote: Has anyone ever had reports of problems with Outlook 2003 using utf-8 and quoted printable? I've recently started getting complains from our clients that some of their subscribers are having problems with the message coming through as raw html. The email client is always Outl

[PHP] utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
Has anyone ever had reports of problems with Outlook 2003 using utf-8 and quoted printable? I've recently started getting complains from our clients that some of their subscribers are having problems with the message coming through as raw html. The email client is always Outlook 2003 on XP of var

[PHP] PDO

2008-10-14 Thread Alain Roger
Hi, i'm currently using PDO as it seems better than any other pg_connect and so on... however, i experience issue testing it. for example the following code returns me the correct records (count and records themselve) > $sql ="SELECT * FROM sewe.languages;"; > > $result = DatabaseHandler::Pre

[PHP] App Question.

2008-10-14 Thread bruce
Hi list!! Got a question, and I can't find a good answer for, so I figured i'd post here. I'm working on a project that involves a number of smaller apps to be developed, and run. In order to build this overall application, I'm trying to find a web based app that I can use to manage the entire pro

Re: [PHP] PHP to get File Type

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 08:29 -0700, Yeti wrote: > > function get_file_extension($file) { > > http://us2.php.net/manual/en/function.pathinfo.php > > $path_parts = pathinfo('/www/htdocs/index.html'); > > echo $path_parts['dirname'], "\n"; > echo $path_parts['basename'], "\n"; > echo $path_parts[

Re: [PHP] Can't use copy() to copy files

2008-10-14 Thread Jim Lucas
Ben Stones wrote: > Ok, here is my code (mind it is a bit messy I was just testing to see if it > works first of without success): > > if($_GET['act'] == "update") { > $check_exists=file_exists($_GET['file']); > if($check_exists==1) { >if(copy($_GET['file'],$_GET['file'])) { > echo 5;

[PHP] Can't use copy() to copy files

2008-10-14 Thread Ben Stones
Ok, here is my code (mind it is a bit messy I was just testing to see if it works first of without success): if($_GET['act'] == "update") { $check_exists=file_exists($_GET['file']); if($check_exists==1) { if(copy($_GET['file'],$_GET['file'])) { echo 5; } else { echo $_GET['fil

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Boyd, Todd M. wrote: >> -Original Message- >> From: Jim Lucas [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, October 14, 2008 11:56 AM >> To: Boyd, Todd M. >> Cc: php php >> Subject: Re: [PHP] Output text status on a long class >> >> Boyd, Todd M. wrote: Also, a setting to check it to mak

RE: [PHP] Output text status on a long class

2008-10-14 Thread Boyd, Todd M.
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2008 11:56 AM > To: Boyd, Todd M. > Cc: php php > Subject: Re: [PHP] Output text status on a long class > > Boyd, Todd M. wrote: > >> > >> Also, a setting to check it to make sure that output_buff

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Boyd, Todd M. wrote: >> -Original Message- >> From: Jim Lucas [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, October 14, 2008 11:43 AM >> To: Chrome >> Cc: 'Stut'; 'Andrew Ballard'; 'Jay Moore'; php-general@lists.php.net >> Subject: Re: [PHP] Output text status on a long class >> >> Chrome wro

RE: [PHP] Output text status on a long class

2008-10-14 Thread Boyd, Todd M.
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2008 11:43 AM > To: Chrome > Cc: 'Stut'; 'Andrew Ballard'; 'Jay Moore'; php-general@lists.php.net > Subject: Re: [PHP] Output text status on a long class > > Chrome wrote: > >> On 14 Oct 2008, at

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Chrome wrote: >> On 14 Oct 2008, at 16:51, Chrome wrote: >>> For the record I have included a 256 char long whitespace string >>> along with any prospective output but still no joy >>> >>> Opera 9.60 reliably informs me it's received 258 bytes but displays >>> nothing >>> >>> I'll carry on with thi

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Chrome wrote: >> On 14 Oct 2008, at 16:51, Chrome wrote: >>> For the record I have included a 256 char long whitespace string >>> along with any prospective output but still no joy >>> >>> Opera 9.60 reliably informs me it's received 258 bytes but displays >>> nothing >>> >>> I'll carry on with thi

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> On 14 Oct 2008, at 16:51, Chrome wrote: > > For the record I have included a 256 char long whitespace string > > along with any prospective output but still no joy > > > > Opera 9.60 reliably informs me it's received 258 bytes but displays > > nothing > > > > I'll carry on with this for a little

Re: [PHP] Output text status on a long class

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 11:30 AM, Chrome <[EMAIL PROTECTED]> wrote: >> Stut wrote: >> > On 14 Oct 2008, at 15:56, Chrome wrote: >> >> I have a class that takes a while to run and am wanting to push some >> >> output >> >> to the browser while it's doing its stuff. Is that possible? >> >> >> >> Her

Re: [PHP] Output text status on a long class

2008-10-14 Thread Stut
On 14 Oct 2008, at 16:51, Chrome wrote: For the record I have included a 256 char long whitespace string along with any prospective output but still no joy Opera 9.60 reliably informs me it's received 258 bytes but displays nothing I'll carry on with this for a little before blaming the br

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> On Tue, Oct 14, 2008 at 11:30 AM, Chrome <[EMAIL PROTECTED]> wrote: > >> Stut wrote: > >> > On 14 Oct 2008, at 15:56, Chrome wrote: > >> >> I have a class that takes a while to run and am wanting to push > some > >> >> output > >> >> to the browser while it's doing its stuff. Is that possible? >

[PHP] Output text status on a long class

2008-10-14 Thread Chrome
Hi all I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get it to do is output all of the text at the end of

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> Stut wrote: > > On 14 Oct 2008, at 15:56, Chrome wrote: > >> I have a class that takes a while to run and am wanting to push some > >> output > >> to the browser while it's doing its stuff. Is that possible? > >> > >> Here's what I'd like: > >> > >> Connecting to server... Done! > >> Retrieving

Re: [PHP] PHP to get File Type

2008-10-14 Thread Yeti
> function get_file_extension($file) { http://us2.php.net/manual/en/function.pathinfo.php Secondly the MIME type can differ from the extension (file suffix) It's the same with uploaded files. Although the browser sends the MIME type it might not be the right one, since browsers obtain the MIM

Re: [PHP] Output text status on a long class

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 11:19 AM, Chrome <[EMAIL PROTECTED]> wrote: > > >> -Original Message- >> From: uaca man [mailto:[EMAIL PROTECTED] >> Sent: 14 October 2008 16:10 >> To: php-general@lists.php.net >> Subject: Re: [PHP] Output text status on a long class >> >> Dan, >> >> Try >> echo "so

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Yeti
Ok, so empty is faster. I appreciate the time you guys took to bench the thing. But I'm still gonna use array_key_exists. If you like it or not. Using it a couple of times in my scripts will slow them down a few nanoseconds. That's plain evil mwhahaha. //A yeti -- PHP General Mailing List (http:

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jay Moore
Stut wrote: On 14 Oct 2008, at 15:56, Chrome wrote: I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get i

Re: [PHP] Re: Csv issue

2008-10-14 Thread Shawn McKenzie
[EMAIL PROTECTED] wrote: > OKay now i am really stumped. > Notice: Undefined index: filename > When clearly I have it being set in the form with the file. > Any suggestions? > > > > [EMAIL PROTECTED] wrote: > >> I am using a form to select a csv file and then import it into mysql and >>

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> -Original Message- > From: uaca man [mailto:[EMAIL PROTECTED] > Sent: 14 October 2008 16:10 > To: php-general@lists.php.net > Subject: Re: [PHP] Output text status on a long class > > Dan, > > Try > echo "some text"; > ob_flush() ; >

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Jason Pruim
On Oct 14, 2008, at 11:05 AM, Wolf wrote: Does the ! reverse the empty in this case? such as !empty = not empty? You definitely have to go walk the plank now... You have to go back and re-write code and make it more compact now, right? tsk, tsk. I thought we taught you better then

Re: [PHP] Output text status on a long class

2008-10-14 Thread uaca man
Dan, Try echo "some text"; ob_flush() ; *flush()* ; also take a look at the documentation at: http://br2.php.net/manual/en/function.flush.php Angelo 2008/10/14 Chrome <[EMAIL PROTECTED]> > Hi all > > I have a class that takes a while to run a

Re: [PHP] Output text status on a long class

2008-10-14 Thread Stut
On 14 Oct 2008, at 15:56, Chrome wrote: I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get it to do is o

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Wolf
> Does the ! reverse the empty in this case? such as !empty = not empty? You definitely have to go walk the plank now... You have to go back and re-write code and make it more compact now, right? tsk, tsk. I thought we taught you better then that. ! is the NOT operator in many languages. So

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 10:29 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Andrew Ballard wrote: >> >> I've heard that a lot, but I just don't see it. I'm sure some of you >> can come up with better tests than this, but here is what I used: > > ... >> >> Based on these results, I'd hardly use the

Re: [PHP] New to this group....a continuation

2008-10-14 Thread Jochem Maas
Daniel Brown schreef: > On Tue, Oct 14, 2008 at 8:29 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: >> re-tread? Someone pulled off his old skin, and put new, younger looking skin >> on? Might work on the outside but nothing can change the fact that the tire >> is still old :P > > > With a little

Re: [PHP] New to this group....a continuation

2008-10-14 Thread Daniel Brown
On Tue, Oct 14, 2008 at 8:29 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > re-tread? Someone pulled off his old skin, and put new, younger looking skin > on? Might work on the outside but nothing can change the fact that the tire > is still old :P With a little Googling, I was able to find T

Re: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Bastien Koert
On Tue, Oct 14, 2008 at 9:56 AM, Alex Chamberlain <[EMAIL PROTECTED] > wrote: > Thanks for your suggestion!! Sounds like a good route to go down with the > API access. Really struggling with the pending 'list' at the moment. Suppose > I have got 2 tables `product` and `description`. `product` cont

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Colin Guthrie
Andrew Ballard wrote: I've heard that a lot, but I just don't see it. I'm sure some of you can come up with better tests than this, but here is what I used: ... Based on these results, I'd hardly use the "language construct versus function call" optimization argument to make my decision. I'm n

RE: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Mayer, Jonathan
Thanks for your suggestion!! Sounds like a good route to go down with the API access. Really struggling with the pending 'list' at the moment. Suppose I have got 2 tables `product` and `description`. `product` contains `EAN`, `name`, `last_modified` and `description` contains `EAN` and `descript

Re: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 9:56 AM, Alex Chamberlain <[EMAIL PROTECTED]> wrote: > Thanks for your suggestion!! Sounds like a good route to go down with the API > access. Really struggling with the pending 'list' at the moment. Suppose I > have got 2 tables `product` and `description`. `product` cont

Re: [PHP] PHP to get File Type

2008-10-14 Thread uaca man
There is a more elegant way: http://br2.php.net/manual/en/function.mime-content-type.php and the preferred way: http://br2.php.net/manual/en/function.finfo-file.php Angelo 2008/10/14 Aschwin Wesselius <[EMAIL PROTECTED]> > Manoj Singh wrote: > >> Hello All, >> Is there any function in PHP t

RE: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Per Jessen
Alex Chamberlain wrote: > Thanks for your suggestion!! Sounds like a good route to go down with > the API access. Really struggling with the pending 'list' at the > moment. Seems to me that 'pending' is just a flag - your list is then all of the codes with flag=pending. > Suppose someone at B

RE: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Alex Chamberlain
Thanks for your suggestion!! Sounds like a good route to go down with the API access. Really struggling with the pending 'list' at the moment. Suppose I have got 2 tables `product` and `description`. `product` contains `EAN`, `name`, `last_modified` and `description` contains `EAN` and `descript

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Colin Guthrie
Yeti wrote: Personally, I very rarely see the point in using array_key_exists... It's a function call and has overhead where as isset() and empty() are language constructs and (I would hope) are much more efficient (although I've not done any benchmarks) # i don't know what's wrong with this

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 8:52 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Yeti wrote: >> >> You might also want to try array_key_exists >> >> if (array_key_exists('loggedin', $_SESSION['userInfo'])) { >> // do something with $_SESSION['userInfo']['loggedin'] >> } > > You'd first need to check tha

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Yeti
> Personally, I very rarely see the point in using array_key_exists... It's a > function call and has overhead where as isset() and empty() are language > constructs and (I would hope) are much more efficient (although I've not done > any benchmarks) # i don't know what's wrong with this .. $f

[PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Colin Guthrie
Alex Chamberlain wrote: I wish to set up a similar website. Indexed on the modern EAN-13 (used across the world, and includes ISBNs), the database will store a barcode and name for *every* product. Additionally, the description of the product can be stored. In the future, I would like to implemen

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Colin Guthrie
Peter Ford wrote: You can probably short-circuit some of that - for example if $_SESSION['userInfo']['loggedIn'] is only ever set to TRUE (and is not set otherwise) then you might find that if (isset($_SESSION['userInfo']['loggedin'])) { As I mentioned elsewhere on this thread, !empty(..) is a

[PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Jason Pruim
Good morning everyone! I think I might be having a "to early in the morning/not enough caffeine" moment... But I am down to 1 error on my timecard application that I would like to clean up. It's a small undefined index error, and the program works jsut fine the way it is, but why leave an

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Colin Guthrie
Jason Pruim wrote: Or, seeing as I'm a stickler for compact code: if(!empty($_SESSION['userInfo']['loggedin'])) { empty() is like isset() but tests for all sorts of "empty" cases ('', false, null and 0 are all considered, "empty"). Hey Colin, Does the ! reverse the empty in this case? such

Re: [PHP] New to PHP

2008-10-14 Thread Ben Stones
There are many places to get help when you need it, but a good place is the unofficial PHP IRC channel. Search on Google for XChat, download it, and connect to ##PHP in irc.freenode.net. Great place and it seriously has helped me once or twice. If you don't know about how to use IRC, search on Goog

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Colin Guthrie
Yeti wrote: You might also want to try array_key_exists if (array_key_exists('loggedin', $_SESSION['userInfo'])) { // do something with $_SESSION['userInfo']['loggedin'] } You'd first need to check that the key 'userInfo' existed in the $_SESSION array too. Personally, I very rarely see the

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Peter Ford
Jason Pruim wrote: > Good morning everyone! > > I think I might be having a "to early in the morning/not enough > caffeine" moment... But I am down to 1 error on my timecard application > that I would like to clean up. It's a small undefined index error, and > the program works jsut fine the way i

Re: [PHP] returning array from commandline

2008-10-14 Thread Ian
This is resolved - I used serialize and unserialize which worked a treat. Thanks for the suggestion :) On Fri, Oct 10, 2008 at 8:17 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > Convert it to XML or JSON. > > Those port quite nicely to anything. > > For all-PHP, you can use serialize to make it

[PHP] BarcodeDB.com - a Barcode Database

2008-10-14 Thread Alex Chamberlain
Hi, I am looking to set up a new 'public' database for barcodes. There are a couple of barcode databases out there, namely http://www.upcdatabase.com/ and http//en.barcodepedia.com/. UPC Database is old fashioned and over run by Google ads, but does provide an (unsecure) XML-RPC interface. Barcode

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Jason Pruim
On Oct 14, 2008, at 8:38 AM, Colin Guthrie wrote: Jochem Maas wrote: Jason Pruim schreef: Good morning everyone! I think I might be having a "to early in the morning/not enough caffeine" moment... But I am down to 1 error on my timecard application that I would like to clean up. It's a sma

Re: [PHP] PHP to get File Type

2008-10-14 Thread Aschwin Wesselius
Manoj Singh wrote: Hello All, Is there any function in PHP to get the file/Mime type of any file? Any help will be appreciated. Hi, There are better and more elegant ways to do this, but I'm not aware of them. Here is what I use most of the time. You only use the filename as $value for get

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Yeti
You might also want to try array_key_exists if (array_key_exists('loggedin', $_SESSION['userInfo'])) { // do something with $_SESSION['userInfo']['loggedin'] } //A yeti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Colin Guthrie
Jochem Maas wrote: Jason Pruim schreef: Good morning everyone! I think I might be having a "to early in the morning/not enough caffeine" moment... But I am down to 1 error on my timecard application that I would like to clean up. It's a small undefined index error, and the program works jsut fi

Re: [PHP] PHP to get File Type

2008-10-14 Thread Yeti
> Is there any function in PHP to get the file/Mime type of any file? check this out: http://us2.php.net/manual/en/function.finfo-open.php //A yeti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Jason Pruim
On Oct 14, 2008, at 8:28 AM, Jochem Maas wrote: Jason Pruim schreef: Good morning everyone! I think I might be having a "to early in the morning/not enough caffeine" moment... But I am down to 1 error on my timecard application that I would like to clean up. It's a small undefined index err

Re: [PHP] New to this group....a continuation

2008-10-14 Thread Jason Pruim
On Oct 14, 2008, at 8:23 AM, Jay Blanchard wrote: [snip] ... oh and we're all a bunch of pirates, except for Tedd ... he's a retired pirate. [/snip] I thought he was semi-retired, or was it re-tread? Meh. re-tread? Someone pulled off his old skin, and put new, younger looking skin on? Migh

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Alan Boudreault
You should have a test like this: if ( ($_SESSION['userInfo']) && ($_SESSION['userInfo']['loggedin'] == TRUE)) { I'm not sure about your script, i just see a small part. Alan Jason Pruim wrote: Good morning everyone! I think I might be having a "to early in the morning/not enough caffein

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Jochem Maas
Jason Pruim schreef: > Good morning everyone! > > I think I might be having a "to early in the morning/not enough > caffeine" moment... But I am down to 1 error on my timecard application > that I would like to clean up. It's a small undefined index error, and > the program works jsut fine the way

RE: [PHP] New to this group....a continuation

2008-10-14 Thread Jay Blanchard
[snip] ... oh and we're all a bunch of pirates, except for Tedd ... he's a retired pirate. [/snip] I thought he was semi-retired, or was it re-tread? Meh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP to get File Type

2008-10-14 Thread Manoj Singh
Hello All, Is there any function in PHP to get the file/Mime type of any file? Any help will be appreciated. Regards, Manoj Kumar Singh

Re: [PHP] Sphinx Open Source Text Based Search

2008-10-14 Thread Stut
On 14 Oct 2008, at 08:03, Hemant Patel wrote: Hello Everyone, I want to configure my text based search with sphinx Search in PHP.Can anybody give any link to explore it other than its own site.(Other Than Documentation).I want to learn thorough process followed by

RE: [PHP] New to PHP

2008-10-14 Thread David Robley
Juan Jose Rosales Rodriguez wrote: > He i not speak very good englis, pliss can you tel me abaout list in > spanich? News version at news://news.php.net/php.general.es or via http at http://news.php.net/group.php?group=php.general.es Cheers -- David Robley Useless Invention: Self stick fryin

Re: [PHP] Little regex help please...

2008-10-14 Thread Richard Heyes
> /http:\/\/www\.asdf\.com\/blah\/foobar\.php/i ... looks like a zig-zaggy > mess. :) Perhaps it was meant to... :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Sphinx Open Source Text Based Search

2008-10-14 Thread Hemant Patel
Hello Everyone, I want to configure my text based search with sphinx Search in PHP.Can anybody give any link to explore it other than its own site.(Other Than Documentation).I want to learn thorough process followed by sphinx...How indexing and searching happen in sphinx