[PHP] SimpleXML

2009-02-24 Thread Alex Chamberlain
[1]= string(32) Amazon.com -- Science -- General } } } } Notice that I lose the attribute subject_id from the Subject tag. Why is this?? Is there any way from preventing it from happening?? Thanks in advance, Alex Chamberlain -- PHP General Mailing

RE: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alex Chamberlain
Have you considered using some type of templating system, which can use class_exists?? Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.11/1820 - Release Date: 29/11/2008 18:52 -- PHP General

RE: [PHP] Open Project

2008-11-23 Thread Alex Chamberlain
Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically

RE: [PHP] Re: Open Project

2008-11-23 Thread Alex Chamberlain
Nathan Rixham wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm,

RE: [PHP] Open Project

2008-11-22 Thread Alex Chamberlain
Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything

RE: [PHP] Open Project

2008-11-22 Thread Alex Chamberlain
Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically

[PHP] preg_match

2008-10-27 Thread Alex Chamberlain
Hi, I don’t understand regular expressions at all – I will make an effort to learn about them one day, but I need a solution today. I want to use the __autoload function, but not for all my class only those that finish in ‘Controller’. So for instance, ‘ErrorController’ should load

RE: [PHP] preg_match

2008-10-27 Thread Alex Chamberlain
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: 27 October 2008 15:21 To: Alex Chamberlain Cc: PHP General list Subject: Re: [PHP] preg_match On 27 Oct 2008, at 15:08, Alex Chamberlain wrote: I don’t understand regular expressions at all – I will make an effort

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

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

[PHP] Closing a website (mod_redirect)

2008-08-26 Thread Alex Chamberlain
Hi, From time to time, I will need to update my website. During this time, I would like to forward all traffic to a ‘closed for site maintenance’ page. This page will have an image. I’ve had a go using mod_redirect: RewriteEngine on RewriteRule ^.*/splash.png$

RE: [PHP] Closing a website (mod_redirect) SOLVED

2008-08-26 Thread Alex Chamberlain
: 900px; img src=http://localhost/kayaknames/closed/closed.png; alt=Kayak Names / /div /body /html -Original Message- From: Alex Chamberlain [mailto:[EMAIL PROTECTED] Sent: 26 August 2008 17:33 To: PHP General list Subject: [PHP] Closing a website (mod_redirect) Hi, From time

[PHP] Image Generation

2008-08-20 Thread Alex Chamberlain
of the problem?? Thanks, Alex Chamberlain No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1621 - Release Date: 19/08/2008 18:53 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] More math fun

2008-08-13 Thread Alex Chamberlain
1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We had this discussion a few weeks ago, the solution being to decide to what accuracy you want the answer. Upto 14 decimal places will give you 0 here!! Alex -Original Message- From: Robert Cummings [mailto:[EMAIL

RE: [PHP] OpenID

2008-07-18 Thread Alex Chamberlain
This one time, at band camp, Alex Chamberlain [EMAIL PROTECTED] wrote: Has anybody had any success implementing an OpenID server in PHP?? Sure, I had mine all set up on oceania.net and then the domain got stolen. So, all my OpenID info went with it.. not as good an idea as it first

[PHP] OpenID

2008-07-17 Thread Alex Chamberlain
Hi, Has anybody had any success implementing an OpenID server in PHP?? Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread Alex Chamberlain
-Original Message- From: Rod Clay [mailto:[EMAIL PROTECTED] Sent: 15 July 2008 22:36 To: php-general@lists.php.net Subject: [PHP] is there a problem with php script pulling HTML out of database as it writes the page?? Hello. Again, I'm fairly new to php so please forgive me if

RE: [PHP] Math Weirdness

2008-07-14 Thread Alex Chamberlain
I am totally buffaloed by a set of very simple calculations that I am doing; /* calculate total balance with payments and adjustments */ $totalBalance = $acct['BALANCE'] + $adjBalance; echo number_format($totalBalance, 2, '.', '').\t; /* calculate total charges

RE: [PHP] Math Weirdness

2008-07-14 Thread Alex Chamberlain
On Mon, Jul 14, 2008 at 3:51 PM, Daniel Brown [EMAIL PROTECTED] wrote: You're performing math to get the result for $totChargeDiff by subtracting $totalCharges from $endingBal. That will give you -0.10 in this case, because 0.10 - 0.20 = -0.10. You want the difference, not the

RE: [PHP] Math Weirdness - Can it be done with integers alone??

2008-07-14 Thread Alex Chamberlain
[quote] I don't quite understand your problem, but I use integers for any monetary workings as you can guarantee it is accurate (obviously, you work in pence or cents rather than GBP or USD). Alex Hello Alex, I was reading through this thread, and I was curious about what methods you use

RE: [PHP] Math Weirdness - Can it be done with integers alone??

2008-07-14 Thread Alex Chamberlain
On Mon, 2008-07-14 at 16:25 -0400, Daniel Brown wrote: On Mon, Jul 14, 2008 at 4:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Nope, banks can't round like that when calculating your daily interest :) If it works in their favor, you'd be surprised what they do. That's why

[PHP] Re: Shared Authentication Scheme - the reason for the Redirect and POST mailing

2008-07-13 Thread Alex Chamberlain
Alex Chamberlain wrote: The server and client will initially be programmed in PHP, so I wanted to gather some opinion on whether people wanted another SAS, and what would make them use it over any other?? The company will be there, not only to serve the end user, but to serve

RE: [PHP] Relocating and POSTing

2008-07-11 Thread Alex Chamberlain
Ahh, but they are on different webservers At the moment, I am just using a query string. How long is the limit of the query string?? Alex -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 11 July 2008 17:12 To: Alex Chamberlain; PHP General list Subject: Re: [PHP

RE: [PHP] Pear DB

2008-07-10 Thread Alex Chamberlain
Hi Folks, I have just successfully lobbied for the company I work for to use PHP/MySQL for our next website. My Question is regarding DB abstraction . I know there is a Pear DB module, is this the best to use ? I have a vague memory of reading somewhere that there is a newer lib or

[PHP] Relocating and POSTing

2008-07-10 Thread Alex Chamberlain
I need to send a header('Location:') and send some data along with it - how would I do this?? Thanks, Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.4.7/1544 - Release Date: 10/07/2008 07:37

FW: [PHP] Relocating and POSTing

2008-07-10 Thread Alex Chamberlain
To: Daniel Brown Cc: [EMAIL PROTECTED]; Alex Chamberlain; PHP General list Subject: Re: [PHP] Relocating and POSTing On Thu, Jul 10, 2008 at 2:58 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Thu, Jul 10, 2008 at 2:32 PM, Richard Heyes [EMAIL PROTECTED] wrote: 1. Use the query string. Eg