[PHP] Re: SimpleXML/array duality (like particles & waves)

2010-09-29 Thread Erik L. Arneson
On Tue, 28 Sep 2010, Brian Dunning wrote:
> I am kind of jacked here. I have a SimpleXML object that's been
> converted to an array. In one of the nodes, for no reason I can see,
> the array is populated differently if there is only one 
> than if there are multiple s.
>
> [...]
>
> In case it matters, here is that snip of what the original XML looks
> like, it's all good: 
> 
> http://.com/"; version="1.0">
>   
> 
>   1060
>   4x5.3 trueDigital 
> print(s)
> 
> 
>   1300
>   4x8 photo cards (set of 
> 20)
> 
>   
> 

What does the XML look like if there's only one order item?  Maybe
you're losing a level of nesting there?

-- 
Erik Arneson 
  GPG Key ID : 1024D/62DA1D25   BitCoin : 1LqvuGUqJ4ZUSoE7YE9ngETjwp4yZ2uSdP
  Office : +1.541.291.9776Skype : callto://pymander
http://www.leisurenouveau.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] reporting spam in PHP manual?

2010-09-29 Thread MikeB

Came across this entry as a user comment in the php.net manual.

http://www.php.net/manual/en/language.exceptions.php#100089

Couldn't see how to report it so it could be removed.

Maybe someone that knows how can tell me, or report it themselves?

Thanks,


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] reporting spam in PHP manual?

2010-09-29 Thread Daniel P. Brown
On Wed, Sep 29, 2010 at 12:12, MikeB  wrote:
> Came across this entry as a user comment in the php.net manual.
>
> http://www.php.net/manual/en/language.exceptions.php#100089
>
> Couldn't see how to report it so it could be removed.
>
> Maybe someone that knows how can tell me, or report it themselves?

I was just getting ready to do it, but Richard Quadling beat me to
the punch.  Thanks for pointing it out though, Mike.

-- 

Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Which PHP 5.3 documentation generators have you found?

2010-09-29 Thread Adam Richardson
Hi all,

Anybody know of a documentation generator which plays nicely with PHP 5.3?

Thanks,

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com


Re: [PHP] Which PHP 5.3 documentation generators have you found?

2010-09-29 Thread a...@ashleysheridan.co.uk
Does phpDocumenter not do the trick? I must admit, I've not tried anything 
specific to 5.3 (i can imagine the namespace thing would be a major part if the 
documentation) but its served me well with other php5 code.

Thanks,
Ash
http://www.ashleysheridan.co.uk

- Reply message -
From: "Adam Richardson" 
Date: Wed, Sep 29, 2010 19:36
Subject: [PHP] Which PHP 5.3 documentation generators have you found?
To: "PHP-General" 

Hi all,

Anybody know of a documentation generator which plays nicely with PHP 5.3?

Thanks,

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com


Re: [PHP] Which PHP 5.3 documentation generators have you found?

2010-09-29 Thread Adam Richardson
On Wed, Sep 29, 2010 at 2:54 PM, a...@ashleysheridan.co.uk <
a...@ashleysheridan.co.uk> wrote:

> Does phpDocumenter not do the trick? I must admit, I've not tried anything
> specific to 5.3 (i can imagine the namespace thing would be a major part if
> the documentation) but its served me well with other php5 code.
>
>
>
In the past I've been really pleased using phpDocumentor, however I'm afraid
the namespaces in 5.3 cause it to choke :(

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com


[PHP] converting a mysql date value

2010-09-29 Thread David Mehler
Hello,
I've got dates stored in a mysql database. The field is of type date
so the value is something like: "2010-09-29" I'm wanting to display
them as in U.S. dates as in month, day, year. I had a function that
did this, now it is not working and I am perplexed as to why. Here's
my echo statement:



The $row['date'] is coming out of the mysql database. Here's the
sqlDateFormat function:

function sqlDateFormat($value) {
$date = $value;
$date = strtotime($date);
$date = date('m-d-y', $date);
return $date;
}

I'd appreciate any suggestions as to why this isn't working.
Thanks.
Dave.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] converting a mysql date value

2010-09-29 Thread Adam Richardson
On Wed, Sep 29, 2010 at 3:11 PM, David Mehler  wrote:

> Hello,
> I've got dates stored in a mysql database. The field is of type date
> so the value is something like: "2010-09-29" I'm wanting to display
> them as in U.S. dates as in month, day, year. I had a function that
> did this, now it is not working and I am perplexed as to why. Here's
> my echo statement:
>
> 
>
> The $row['date'] is coming out of the mysql database. Here's the
> sqlDateFormat function:
>
> function sqlDateFormat($value) {
> $date = $value;
> $date = strtotime($date);
> $date = date('m-d-y', $date);
> return $date;
> }
>
> I'd appreciate any suggestions as to why this isn't working.
> Thanks.
> Dave.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
What's being echoed out?

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com


Re: [PHP] converting a mysql date value

2010-09-29 Thread Steve Staples
http://www.w3schools.com/sql/func_date_format.asp

when you do your select,  "SELECT DATE_FORMAT(`field_name`,'%b %d %Y %h:
%i %p') AS 'field_name'"

which would yield you the field "field_name":
'Nov 04 2008 11:45 PM'

would be easier to do it there, rather than in your PHP... and you can
change the date_format in your query via PHP if you need to change it on
the fly... 

if the dates were in UNIX TIME, you can do it like:
SELECT DATE_FORMAT(FROM_UNIXTIME(`field_name_in_unix_timestamp`),'%b %d
%Y %h:%i %p');


Steve

On Wed, 2010-09-29 at 15:11 -0400, David Mehler wrote:
> Hello,
> I've got dates stored in a mysql database. The field is of type date
> so the value is something like: "2010-09-29" I'm wanting to display
> them as in U.S. dates as in month, day, year. I had a function that
> did this, now it is not working and I am perplexed as to why. Here's
> my echo statement:
> 
> 
> 
> The $row['date'] is coming out of the mysql database. Here's the
> sqlDateFormat function:
> 
> function sqlDateFormat($value) {
> $date = $value;
> $date = strtotime($date);
> $date = date('m-d-y', $date);
> return $date;
> }
> 
> I'd appreciate any suggestions as to why this isn't working.
> Thanks.
> Dave.
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RES: [PHP] converting a mysql date value

2010-09-29 Thread Alejandro Michelin Salomon
David :

Try this :

$a = explode('-', '2010-01-23');
$b = array( $a[1], $a[2], $a[0] );

echo implode( '/', $b);

// 01/23/2010 

Alejandro M.S.

-Mensagem original-
De: David Mehler [mailto:dave.meh...@gmail.com] 
Enviada em: quarta-feira, 29 de setembro de 2010 16:12
Para: php-general
Assunto: [PHP] converting a mysql date value

Hello,
I've got dates stored in a mysql database. The field is of type date
so the value is something like: "2010-09-29" I'm wanting to display
them as in U.S. dates as in month, day, year. I had a function that
did this, now it is not working and I am perplexed as to why. Here's
my echo statement:



The $row['date'] is coming out of the mysql database. Here's the
sqlDateFormat function:

function sqlDateFormat($value) {
$date = $value;
$date = strtotime($date);
$date = date('m-d-y', $date);
return $date;
}

I'd appreciate any suggestions as to why this isn't working.
Thanks.
Dave.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Email Question

2010-09-29 Thread Joe Jackson
Hi

I am trying the following snippet as Bostjan  suggested, and an email is
getting sent when I submit the form however in the body of the email I am
getting none of the form data in the body of the email.  All I am getting is
the letter 'z' ?  Also in the from field of the email this is showing as my
email address and not the email address of the user who has sent the form

Any ideas on where I am going wrong with this snippet?  Any advice would be
much appreciated


$msgContent = "Name: ". $values['name'] ."\n";
$msgContent .= "Address: ". $values['address'] ."\n";
$msgContent .= "Telephone: ". $values['telephone'] ."\n";
$msgContent .= "Email Address: ". $values['emailaddress'] ."\n";
$msgContent .= "Message: ". $values['message'] ."\n";

function ProcessForm($values)
{
mail('myemail:domain.com', 'Website Enquiry', $msgContent, "From:
\"{$values['name']}\" <{$values['emailaddress']}>");

 // Replace with actual page or redirect :P
echo "Thank you!Thank
you!";


[PHP] Open Source Website Flowchart and Wireframe Software?

2010-09-29 Thread Daniel Kolbo
Hello,

This is not strictly a PHP question, though i do think some members that
subscribe to this list might be able to answer this question.

Is there an open source website flowchart and wireframe software.  My
google searches are not quite pulling up what I'm looking for.

I would like a piece of software that let's me layout the wireframes for
various pages of a site.  I would like to create a unique number for
each page.  On each wireframe, next to the links on that page, I would
like to reference the destination of that link by the unique number of
the page to which it is directed.  When I'm all done with the
wireframes, I would like the software to create a flowchart for the site.

Other than the above, I'm looking for a very simple piece of software.
Any ideas?

Thanks in advance,
dK
`

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php