php-general Digest 2 Jul 2012 11:59:05 - Issue 7874
Topics (messages 318359 through 318361):
Re: Hello again
318359 by: tamouse mailing lists
Re: php form action breaks script
318360 by: Ford, Mike
Destructor not called when extending SimpleXMLElement
318361 by:
php-general Digest 3 Jul 2012 02:15:19 - Issue 7875
Topics (messages 318362 through 318381):
Re: Destructor not called when extending SimpleXMLElement
318362 by: Erwin Poeze
318368 by: Matijn Woudt
Re: log tailing
318363 by: Mihamina Rakotomandimby
318366
On Sun, Jul 1, 2012 at 6:21 PM, RGraph.net support supp...@rgraph.net wrote:
Just thought I'd say hello again. Back to brush up on my PHP a little
after a bit of a break - more reading than replying I'd imagine. I
have some pretty bad jokes too that I might surreptitiously insert
here and
-Original Message-
From: Tim Dunphy [mailto:bluethu...@gmail.com]
Sent: 28 June 2012 01:18
Hey guys,
It's been a little while since I've toyed with this, and I hope you
don't mind my coming back to you for some more advice. But I've
enjoyed some limited success with David R's
Afternoon all.
I seem to be having a little trouble with extending the
SimpleXMLElement class. I would like to add a destructor to the
subclass, but am finding that it is not called.
Attached is a minimal demonstration of the problem. The XMLConfig
class extends SimpleXMLElement, and its
Interesting problem. I would expect it to work too. I assume it is a bug.
2012/7/2 Nick Chalk n...@loadbalancer.org
Afternoon all.
I seem to be having a little trouble with extending the
SimpleXMLElement class. I would like to add a destructor to the
subclass, but am finding that it is not
On 06/30/2012 09:32 PM, Daniel Brown wrote:
?php
$ssh_entries = explode(PHP_EOL,trim(`tail /var/log/syslog | awk
{'print $1,$2,$3 | $5 | $11'}`));
This will tail a default number of lines.
I'm looking for a way to identify the last line, and when launching the
PHP script I get the added line
On Sat, Jun 30, 2012 at 8:00 PM, Tim Dunphy bluethu...@gmail.com wrote:
Hello,
I am trying to get the hang of php using some examples that I found
in a book. I've been making progress lately, but one thing has me a
bit stumped.
In an HTML form that I am echoing through PHP I would like to
Greetings,
I have a site that I am developing and I am looking to partner/
developer with great php/mySQL skills (for share of potential profits)
to assist me in finishing this site. I am looking for someone who can
invest (like myself) their time and skills to complete the site in
On Mon, Jul 2, 2012 at 3:23 PM, Mihamina Rakotomandimby
miham...@rktmb.org wrote:
On 06/30/2012 09:32 PM, Daniel Brown wrote:
?php
$ssh_entries = explode(PHP_EOL,trim(`tail /var/log/syslog | awk
{'print $1,$2,$3 | $5 | $11'}`));
This will tail a default number of lines.
I'm looking for a
Hi,
rant
First a message to the ones that have responded before me:
You're correct about the nested php tags that are not doing what the
OP wanted, but you might want to take a closer look at the error
that's in the logs. In ANY CASE PHP SHOULD NOT CRASH. What if the OP
really wanted to print PHP
On Mon, Jul 2, 2012 at 1:58 PM, Nick Chalk n...@loadbalancer.org wrote:
Afternoon all.
I seem to be having a little trouble with extending the
SimpleXMLElement class. I would like to add a destructor to the
subclass, but am finding that it is not called.
Attached is a minimal demonstration
On Mon, Jul 2, 2012 at 2:54 PM, Ron Piggott
ron.pigg...@actsministries.org wrote:
Is there a way to test a variable contains a valid date
- 4 digits for the year
- 2 digits for the month (including leading 0)
- 2 digits for the day (including leading 0)
OR
- a function?
You may want
On Mon, Jul 2, 2012 at 2:54 PM, Ron Piggott
ron.pigg...@actsministries.org wrote:
Is there a way to test a variable contains a valid date
- 4 digits for the year
- 2 digits for the month (including leading 0)
- 2 digits for the day (including leading 0)
OR
- a function?
You may want to
Hello everyone,
I know php time() gives the current unix time which you can format out to
a normal date and time. Is there a way to format a specific date and time
back to unix time?
Thanks for any help.
On Mon, Jul 2, 2012 at 4:00 PM, Rob Weissenburger r...@fiberuplink.com wrote:
Hello everyone,
I know php time() gives the current unix time which you can format out to
a normal date and time. Is there a way to format a specific date and time
back to unix time?
Yup. Look at strtotime()
On Mon, 2 Jul 2012, Rob Weissenburger wrote:
I know php time() gives the current unix time which you can format out to
a normal date and time. Is there a way to format a specific date and time
back to unix time?
mktime() and strtotime() will do it, depending on the form your time is
in.
That worked just perfectly. Thank you.
-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: Monday, July 02, 2012 3:02 PM
To: Rob Weissenburger
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Time
On Mon, Jul 2, 2012 at 4:00 PM, Rob
$sql = SELECT First, Last, Age, 'Foobar' AS Last;;
This is a simplified example of a SQL query where we're returning two
fields with the same name (Last). When I do a fetch_assoc with this
query I only get three fields, as the second Last field over writes
the first one.
I was hoping there was
On Tue, Jul 3, 2012 at 12:25 AM, Scott Baker bak...@canbytel.com wrote:
$sql = SELECT First, Last, Age, 'Foobar' AS Last;;
This is a simplified example of a SQL query where we're returning two
fields with the same name (Last). When I do a fetch_assoc with this
query I only get three fields,
On 07/02/2012 03:34 PM, Matijn Woudt wrote:
Why the would you want to return 2 columns with the same name?
To be short, there's no such function, so you have to:
1) Rename one of the columns
2) or, use fetch_row with numerical indexes instead of fetch_assoc.
My real world scenario was
On Tue, Jul 3, 2012 at 12:38 AM, Scott Baker bak...@canbytel.com wrote:
On 07/02/2012 03:34 PM, Matijn Woudt wrote:
Why the would you want to return 2 columns with the same name?
To be short, there's no such function, so you have to:
1) Rename one of the columns
2) or, use fetch_row with
On 07/02/2012 03:38 PM, Scott Baker wrote:
On 07/02/2012 03:34 PM, Matijn Woudt wrote:
Why the would you want to return 2 columns with the same name?
To be short, there's no such function, so you have to:
1) Rename one of the columns
2) or, use fetch_row with numerical indexes instead of
I found this code in a user comment in the PHP docs for htmlentities():
?php
function xml_character_encode($string, $trans='') {
$trans = (is_array($trans)) ? $trans :
get_html_translation_table(HTML_ENTITIES, ENT_QUOTES);
foreach ($trans as $k=$v)
$trans[$k]= #.ord($k).;;
return
On 7/2/2012 7:15 PM, Robert Williams wrote:
I found this code in a user comment in the PHP docs for htmlentities():
?php
function xml_character_encode($string, $trans='') {
$trans = (is_array($trans)) ? $trans :
get_html_translation_table(HTML_ENTITIES, ENT_QUOTES);
foreach ($trans as $k=$v)
25 matches
Mail list logo