php-general Digest 14 Oct 2008 09:43:21 -0000 Issue 5734

2008-10-14 Thread php-general-digest-help
php-general Digest 14 Oct 2008 09:43:21 - Issue 5734 Topics (messages 281837 through 281848): Pure PHP Templating Class/AJAX Problem 281837 by: Tom Shaw 281844 by: Yeti Re: How to know what current system is? 281838 by: Shawn McKenzie 281839 by: Tom Shaw

Re: [PHP] Pure PHP Templating Class/AJAX Problem

2008-10-14 Thread Yeti
Well after looking at the template thing you posted with your link it seems to me like PHP is used to create working XML. So i wonder why you are using AJAX here. Now could it be that you use appendChild() ? That function would simply add the XML again. It's not easy to tell if you are not

[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

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:

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?

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

[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 as

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 it is,

[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: 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

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 that the key

[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

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

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

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 to get

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` contains

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

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` contains

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 Googling,

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 language

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

2008-10-14 Thread Wolf
!-- SNIP -- 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

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

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

2008-10-14 Thread uaca man
Dan, Try echo some text; ob_flush() http://br2.php.net/manual/en/function.ob-flush.php; *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 and am

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: !-- SNIP -- 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

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() http://br2.php.net/manual/en/function.ob-flush.php; *flush()* ;

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 categories... Done! ...

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

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 before blaming

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 this for a little before

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_buffering, in

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 make sure that

[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

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] 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

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

[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

[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

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 ?php $path_parts = pathinfo('/www/htdocs/index.html'); echo $path_parts['dirname'], \n; echo $path_parts['basename'], \n; echo

[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

[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 =

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 caffeine

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 wrote: On 14 Oct

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? Here's what I'd like:

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? Here's what I'd

[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

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 16:51,

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 this for a little before

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

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

[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

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 message

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 ?php $path_parts = pathinfo('/www/htdocs/index.html'); echo $path_parts['dirname'], \n; echo $path_parts['basename'], \n; echo $path_parts['extension'], \n; echo $path_parts['filename'], \n; // since PHP

[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] 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: Has anyone ever

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 a

[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 it is,

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 our

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 Tedd's

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-10-14 at 15:55

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] 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

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. I

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] 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 type on

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 .. $foo

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 some text; ob_flush()

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

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 boundary sequence

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

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 just had to

[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

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

[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,

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

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

[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] 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 article on

[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

[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.

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 text

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 maybe im

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/ As for

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 frying

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 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 to

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 and quoted

[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 somebody

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, well a link

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 undefined index error, and

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

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

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 have two dates in

[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