[PHP] simplexml_load_file and proxy auth

2007-06-29 Thread Paul Scott
Does anyone know of a way to pass proxy auth to simplexml_load_*? Previously, I have used cURL to return the XML string from remote, but this seems kind of hacky to me, and was wondering if anyone had a better solution? Thanks --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] Currency Exchange Database?

2007-06-29 Thread Jochem Maas
Andy B. wrote: You could have a look at the Euro foreign exchange reference rates rom the European Central Bank. They also provide a regularly updated XML file: http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html /* pass this func a 3 letter currency code */ function

[PHP] HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread -Patrick
I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? TIA -Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread Paul Scott
On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread Chris
-Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Click the unsubscribe link that appears at the bottom of every email. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] HELP - I have tried to unsubscribe from this listmutiple times but cannot.

2007-06-29 Thread M. Sokolewicz
Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul

Re: [PHP] PHP Brain Teasers

2007-06-29 Thread clive
ok this one should be easy: ? $animal = array (pig,cow,bat,chicken,dog); for ($i = 0; $i sizeof($animal); $i++) { $sighted = ($animal[$i] != bat ? see : blind); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP - I have tried to unsubscribe from this listmutiple times but cannot.

2007-06-29 Thread Chris
M. Sokolewicz wrote: Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul

RE: [PHP] Re: Swear filter ideas

2007-06-29 Thread Ryan A
Humans are such a strange bunch :) That's why I live with computers and cats - No fucking cats! Kill all of them...keep only dogs and whales (to protect them) The only cat I like is a pussy. Damn... used up a bit of my swear words quota of the day... -- - The faulty interface

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-29 Thread Ryan A
Thanks! Dont know if it will help but its nice of you to share becausei always feel good reading someone elses ways of doing things. Might help if I get bogged down somewhere. Cheers! R Guillaume Theoret [EMAIL PROTECTED] wrote: This isn't exactly what was asked for but when I TA'd the

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-29 Thread Ryan A
Hey Nathan, Cool! Thanks for taking the time to find and fix that error and your suggestions below... Will give you a buzz if I run into a programming stonewall. Cheers! R Nathan Nobbe [EMAIL PROTECTED] wrote: Ryan, if you want to port the java code to php it wouldnt be very difficult since

[PHP] shuffle or mt_rand

2007-06-29 Thread Ryan A
Hey, Have a quick question about which is better to get real random values, shuffle or mt_rand. I am trying to shuffle a deck of cards and reading another thread I saw that after a couple of thousand random generations patterns have been observed using rand()... so its better to use

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Richard Heyes
Ryan A wrote: Hey, Have a quick question about which is better to get real random values, shuffle or mt_rand. I am trying to shuffle a deck of cards and reading another thread I saw that after a couple of thousand random generations patterns have been observed using rand()... so its

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Tijnema
On 6/29/07, Ryan A [EMAIL PROTECTED] wrote: Hey, Have a quick question about which is better to get real random values, shuffle or mt_rand. I am trying to shuffle a deck of cards and reading another thread I saw that after a couple of thousand random generations patterns have been observed

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread M. Sokolewicz
Chris wrote: M. Sokolewicz wrote: Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul

[PHP] mail function problem

2007-06-29 Thread web2
Hi, I'm running PHP 5.2.3 on Solaris 10 (AMD64). My mail function doesn't send any mail, the return value of mail function is false... But sendmail_path value is OK in php.ini, and I've tried to send a mail with sendmail on console with the same user (the apache user), and everything's ok...

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Fredrik Thunberg
snip Just did a quick benchmark for 10.000 hands (making a full deck on your code, 23.5 players): Microtime difference: Ryan's code:15.725826978683 Tijnema's code:0.40006709098816 Unique decks out of 1: Ryan's code:1 Tijnema's code:1 When making a full deck my code is 40 times

[PHP] Address book - LDAP or MySQL?

2007-06-29 Thread Timothy Murphy
I'm thinking of setting up an address-book on my server, but I'm not sure whether to use LDAP or MySQL. As I see it, LDAP is actually designed for this, and seems to have a more-or-less standard address-book format. On the other hand, I'm already using MySQL for several things, eg gallery2. But

RE: [PHP] Address book - LDAP or MySQL?

2007-06-29 Thread Jay Blanchard
[snip] I'm thinking of setting up an address-book on my server, but I'm not sure whether to use LDAP or MySQL. As I see it, LDAP is actually designed for this, and seems to have a more-or-less standard address-book format. On the other hand, I'm already using MySQL for several things, eg

[PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Timothy Murphy
Jay Blanchard wrote: I'm thinking of setting up an address-book on my server, but I'm not sure whether to use LDAP or MySQL. First of all LDAP is not a database, it is a connection protocol that can connect to many things, most notably Active Directory seems to be the most popular usage.

Re: [PHP] PHP Brain Teasers [SPOILER]

2007-06-29 Thread Daniel Brown
On 6/29/07, clive [EMAIL PROTECTED] wrote: ok this one should be easy: ? $animal = array (pig,cow,bat,chicken,dog); for ($i = 0; $i sizeof($animal); $i++) { $sighted = ($animal[$i] != bat ? see : blind); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Jay Blanchard
[snip] As I understand it, LDAP and MySQL offer two different ways of setting up a networked address book. So I take it they can be compared as far as that is concerned. Actually, I normally run Linux, so Active Directory would not be a priority for me. I didn't say LDAP was a database. However,

[PHP] Re: Address book - LDAP or MySQL?

2007-06-29 Thread Colin Guthrie
Jay Blanchard wrote: First of all LDAP is not a database, it is a connection protocol that can connect to many things, most notably Active Directory seems to be the most popular usage. Well I don't disagree with you - LDAP = Lightweight Directory Access Protocol. Therefore you cannot compare

RE: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread bruce
umm... not sure who posted that ldap isn't a database... ldap isn't a database like oracle, mysql, sybase, etc.. it's meant to be a kind of lightweight database/protocol for establishing user address book kinds of information, normally used for user id/auth processes. peace.. -Original

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Ryan A
Just did a quick benchmark for 10.000 hands (making a full deck on your code, 23.5 players): Microtime difference: Ryan's code:15.725826978683 Tijnema's code:0.40006709098816 Unique decks out of 1: Ryan's code:1 Tijnema's code:1 When making a full deck my code is 40 times faster, and

[PHP] Flash / Ajax / PHP

2007-06-29 Thread David Giragosian
I've recently been using some limited free time to explore the Freemovie (Flash-PHP API) and Ajax technologies. Can anyone help me to understand whether these can be used together? Can I, for example, pull data from MySQL, dynamically alter Flash function parameters, then use Ajax to deliver the

Re: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Nathan Nobbe
i havent worked w/ LDAP and PHP together as of yet; but maybe i can jump in the conversation and share some of my thoughts on the topic.. in terms of options for Timothy's address book the data for the address book will need to be stored somewhere. since Timothy is already using MySQL that

RE: [PHP] Re: Address book - LDAP or MySQL?

2007-06-29 Thread Jay Blanchard
[snip] Erm, have you heard of OpenLDAP? It's probably the widest used one. AFAIK it's on all OSX machines (used interanlly from what I can gather) and is very widely used on Linux. [/snip] Yes, and I use it extensively. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Jay Blanchard
[snip] umm... not sure who posted that ldap isn't a database... ldap isn't a database like oracle, mysql, sybase, etc.. it's meant to be a kind of lightweight database/protocol for establishing user address book kinds of information, normally used for user id/auth processes. [/snip] Twas me.

[PHP] simple OCR in php

2007-06-29 Thread Ray
Hello all, I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image will then be renamed, and be organized into a directory and the file name

[PHP] Re: HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread Jonesy
On Fri, 29 Jun 2007 09:03:53 +0200, Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe And, a really

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Tijnema
On 6/29/07, Ryan A [EMAIL PROTECTED] wrote: Just did a quick benchmark for 10.000 hands (making a full deck on your code, 23.5 players): Microtime difference: Ryan's code:15.725826978683 Tijnema's code:0.40006709098816 Unique decks out of 1: Ryan's code:1 Tijnema's code:1 When

RE: [PHP] simple OCR in php

2007-06-29 Thread Jay Blanchard
[snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image will then be renamed, and be organized into a directory and the file name will

Re: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Nathan Nobbe
Ed, Im not sure if OpenLDAP or other can use a different backed, such as MySQL. I suspect there would be a server to support this, but it would almost certainly define the table structure in the database of choice. From the sound of it there are ways to change the information model of X.500

RE: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Edward Kay
On 6/29/07, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] As I understand it, LDAP and MySQL offer two different ways of setting up a networked address book. So I take it they can be compared as far as that is concerned. Actually, I normally run Linux, so Active Directory would

Re: [PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Nathan Nobbe
On 6/29/07, Jay Blanchard [EMAIL PROTECTED] wrote: Twas me. LDAP is not a database it is a protocol for accessing a directory service which is the abstraction layer for the actual data repository namespace. And an LDAP server will typically house said repository namespace. Like OpenLDAP using

Re: [PHP] simple OCR in php

2007-06-29 Thread Ray
On Friday 29 June 2007 10:32 am, you wrote: [snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image will then be renamed, and be

RE: [PHP] simple OCR in php

2007-06-29 Thread Robert Cummings
On Fri, 2007-06-29 at 11:32 -0500, Jay Blanchard wrote: [snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image will then be

Re: [PHP] simple OCR in php

2007-06-29 Thread Crayon Shin Chan
On Saturday 30 June 2007 00:32, Jay Blanchard wrote: In short PHP cannot perform OCR functions. Why? PHP provides all requisite functions/features so if someone was sadistic enough and talented enough there's nothing to stop them writing an OCR app using it. You could insert an OCR

[PHP] Problem extending mysqli - No database connected

2007-06-29 Thread Lee PHP
Hi, I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I try and query it. Here's my class: -- BEGIN DATABASE CLASS -- require_once('Configuration.php'); require_once('RSFSException.php'); class Database extends mysqli {

Re: [PHP] Problem extending mysqli - No database connected

2007-06-29 Thread Stut
Lee PHP wrote: I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I try and query it. Here's my class: -- BEGIN DATABASE CLASS -- require_once('Configuration.php'); require_once('RSFSException.php'); class Database extends mysqli {

Re: [PHP] Problem extending mysqli - No database connected

2007-06-29 Thread Stut
Lee PHP wrote: public static function getInstance($url = null) { // Set the URL if one is provided. if (isset($url)) { $this-setUrl($url); } // Instantiate the Singleton if not already instantiated. if(empty(self::$INSTANCE)) {

Re: [PHP] Problem extending mysqli - No database connected

2007-06-29 Thread Stut
Please always include the list when replying. Lee PHP wrote: Yup, that was it - thanks! Coming from a Java OO background, I find it frustrating that PHP doesn't warn me about stuff like that. Oh well, I guess I'll know next time. End the frustration, turn notices on. This reminds me of a

[PHP] Re: Problem extending mysqli - No database connected

2007-06-29 Thread Lee PHP
Actually, the post by hans at lintoo dot dk (22-Mar-2005 11:33) @ http://theserverpages.com/php/manual/en/ref.mysqli.php show why. Weird. On 6/29/07, Lee PHP [EMAIL PROTECTED] wrote: Hi, I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I

Re: [PHP] simple OCR in php

2007-06-29 Thread M. Sokolewicz
Robert Cummings wrote: On Fri, 2007-06-29 at 11:32 -0500, Jay Blanchard wrote: [snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image

[PHP] Re: Address book - LDAP or MySQL?

2007-06-29 Thread Colin Guthrie
Nathan Nobbe wrote: On 6/29/07, Jay Blanchard [EMAIL PROTECTED] wrote: Twas me. LDAP is not a database it is a protocol for accessing a directory service which is the abstraction layer for the actual data repository namespace. And an LDAP server will typically house said repository

Re: [PHP] simple OCR in php

2007-06-29 Thread Tijnema
On 6/29/07, M. Sokolewicz [EMAIL PROTECTED] wrote: Robert Cummings wrote: On Fri, 2007-06-29 at 11:32 -0500, Jay Blanchard wrote: [snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at

Re: [PHP] simple OCR in php

2007-06-29 Thread Robert Cummings
On Fri, 2007-06-29 at 22:57 +0200, M. Sokolewicz wrote: Robert Cummings wrote: On Fri, 2007-06-29 at 11:32 -0500, Jay Blanchard wrote: [snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
M. Sokolewicz wrote: Chris wrote: M. Sokolewicz wrote: Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Jim Lucas
-Patrick wrote: M. Sokolewicz wrote: Chris wrote: M. Sokolewicz wrote: Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
Simon wrote: Don't be jackasses - I specifically stated I have tried to unsubscribe What does that mean to you? That I just 'said i did' and didn't actually try it??? I used the official unsubscribe link at the bottom . IT DIDNT WORK FOR ME! Call an ambulance too, just in case! Wow, have

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
Yes, I am still having a problem,after trying to unsubscribe AGAIN, it sends me a confirm message. I reply to it then it sends me back the confirm-identity message, I reply with the text block it requires and still no positive result. I must mention that in the past when I have tried to do

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
this message below should not have gone through as I tried to unsubscribe shortly before this reply -Patrick wrote: Yes, I am still having a problem,after trying to unsubscribe AGAIN, it sends me a confirm message. I reply to it then it sends me back the confirm-identity message, I reply with

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Stut
-Patrick wrote: this message below should not have gone through as I tried to unsubscribe shortly before this reply You do not need to be subscribed to post to this list. -Patrick wrote: Yes, I am still having a problem,after trying to unsubscribe AGAIN, it sends me a confirm message. I

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Edward Krack
To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: [EMAIL PROTECTED] I'm done with you -- Edward Krack

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
Stut wrote: I've never known an unsubscribe request to need identity confirmation. Are you sure you're asking the system to unsubscribe you not subscribe you? I'm really not sure how, or even if it's possible, to escalate this to the next level. I've subscribed and unsubscribed to PHP

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
Edward Krack wrote: To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] I'm done with

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Janet Valade
Here's a page with more info about unsubscribing and problems. Have you seen this? http://www.php.net/unsub.php Janet -Patrick wrote: Stut wrote: I've never known an unsubscribe request to need identity confirmation. Are you sure you're asking the system to unsubscribe you not subscribe

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Jim Lucas
-Patrick wrote: Stut wrote: I've never known an unsubscribe request to need identity confirmation. Are you sure you're asking the system to unsubscribe you not subscribe you? I'm really not sure how, or even if it's possible, to escalate this to the next level. I've subscribed and

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
Yes, I've seen that page on php.net And no Jim, I'm not sure this is the 'exact' same problem. I understand what you are saying and it's not working. Ok, I am done for now with this list. Thanks for trying anyways. -Patrick Jim Lucas wrote: -Patrick wrote: Stut wrote: I've never known an

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread David Wonderly
-Patrick wrote: Yes, I've seen that page on php.net And no Jim, I'm not sure this is the 'exact' same problem. I understand what you are saying and it's not working. Ok, I am done for now with this list. Thanks for trying anyways. -Patrick Jim Lucas wrote: -Patrick wrote: Stut wrote:

[PHP] implementation of guest book

2007-06-29 Thread Shiv Prakash
Sir, I have implemented the guest book in web site successfully and its working also without any problem but administration side is asking for ID and Password, my request is how do I get that because I have tried my level best to find it in the site but I couldn’t get it ,there was not

[PHP] Re: Handling animated GIFs with GD?

2007-06-29 Thread Manuel Lemos
Hello, on 06/26/2007 06:38 AM Tijnema said the following: Is it possible to parse animated GIFs with GD, just frame by frame? Try Laszlo Zsidi GIF animation classes: http://www.phpclasses.org/gifmerge http://www.phpclasses.org/gifsplit -- Regards, Manuel Lemos Metastorage - Data object

[PHP] Re: simple OCR in php

2007-06-29 Thread Manuel Lemos
Hello, on 06/29/2007 01:24 PM Ray said the following: Hello all, I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image will then be

[PHP] Selecting Rows Based on Row Values Being in Array

2007-06-29 Thread kvigor
Hello All, I'm attempting to return rows from a mysql DB based on this criteria: I have a list, in the form of an array that I need to compare against each row in the table. Where theres a match I need that entire row returned. e.g.$varListof 3outOf_10Fields = array(6blue40lbs,