php-general Digest 14 Jan 2010 13:26:14 - Issue 6538
Topics (messages 301086 through 301100):
Re: header(Location:...) fails
301086 by: Shawn McKenzie
php mail() function and ezmlm
301087 by: Bob Strasser
301088 by: vikash.iitb.gmail.com
Re: Need Idea to make
php-general Digest 15 Jan 2010 01:46:58 - Issue 6539
Topics (messages 301101 through 301123):
Re: header(Location:...) fails
301101 by: haliphax
Re: Need Idea to make Backup
301102 by: haliphax
301104 by: Robert Cummings
php/ruby drb adapter
301103 by: Pete
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263391167.5952.62.ca...@localhost...
On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
Hello Ashley,
yes rsync is a good idea, but does this also work if there is only a
internet conection to may SERVER ?
Kind
How do I parse a date field from mysql?
I was hoping this would work:
$mydata-birthday = 2007-02-13;
#What month is it?
echo date(F, $mydata-birthday);
#What year is it?
echo date(Y, $mydata-birthday);
What am I missing? All I get is December 1969. Hmmm?
I am looking at the manual:
Use strttotime() function. This will work as intended.
$mydata-birthday = strtotime(2007-02-13);
#What month is it?
echo date(F, $mydata-birthday);
#What year is it?
echo date(Y, $mydata-birthday);
-
--
Vikash Kumar
http://vika.sh
On Thu, Jan 14, 2010 at 3:31 PM, John Taylor-Johnston
On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263391167.5952.62.ca...@localhost...
On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
Hello Ashley,
yes rsync is a good idea, but does this also work if
John Taylor-Johnston wrote:
How do I parse a date field from mysql?
I was hoping this would work:
$mydata-birthday = 2007-02-13;
This just stores a string to the variable $mydata-birthday - where did you
define $mydata-birthday as a data object?
$mydata-birthday = date(2007-02-13);
#What
Super, thanks. 5:14 a.m. - My head is fogging :p
vikash wrote:
Use strttotime() function. This will work as intended.
$mydata-birthday = strtotime(2007-02-13);
#What month is it?
echo date(F, $mydata-birthday);
#What year is it?
echo date(Y, $mydata-birthday);
On Thu, Jan 14, 2010 at 3:31 PM,
On 01/14/2010 11:01 AM, John Taylor-Johnston wrote:
How do I parse a date field from mysql?
I was hoping this would work:
$mydata-birthday = 2007-02-13;
#What month is it?
echo date(F, $mydata-birthday);
#What year is it?
echo date(Y, $mydata-birthday);
What am I missing? All I get is
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263463572.5952.71.ca...@localhost...
On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263391167.5952.62.ca...@localhost...
On Wed, 2010-01-13 at
On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263463572.5952.71.ca...@localhost...
On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
Hi All,
I am writing module to display recent Wordpress blog posts in drupal.
I am taking RSS feeds of blog. I am using simple xml library of PHP to parse
xml.
Now the problem is I get weird tag in XML.
dc:creatorJason Bourne/dc:creator
when i convert this xml into object by using
On Thu, 2010-01-14 at 18:00 +0530, Devendra Jadhav wrote:
Hi All,
I am writing module to display recent Wordpress blog posts in drupal.
I am taking RSS feeds of blog. I am using simple xml library of PHP to parse
xml.
Now the problem is I get weird tag in XML.
dc:creatorJason
Hi Ashley,
Thank you very much for your help.
simplexml handles namespace.
here is the link for reference
http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/
I am very happy.
Thank you very much again. :D
On Thu, Jan 14, 2010 at 6:06 PM, Ashley Sheridan
On Wed, Jan 13, 2010 at 7:02 PM, Shawn McKenzie nos...@mckenzies.netwrote:
Robert Cummings wrote:
Just make your life easy and create a redirect() function that generates
the header instruction, makes a relative URL into an absolute URL and
does the exit call. Then you just need to do:
On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263463572.5952.71.ca...@localhost...
On Thu, 2010-01-14 at 10:12 +0100, Jens Geier
Hi,
I'll be honest: php is not my favorite programming language. That honor
goes to ruby. And I don't mean ruby-on-rails; just straight, pure
unfettered ruby. I use ruby to write web applications and just about
everything else.
However, there are obviously very many web applications and
haliphax wrote:
On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263463572.5952.71.ca...@localhost...
On Thu, 2010-01-14 at 10:12
I am working on designing an documenting a process for our team to use to
manage code updates/changes.
What we've been doing has been ghastly: a bunch of developers using
dreamweaver's 'check in/out' functions, all using the same FTP login, to FTP
files to the production server.
It turns out the
I do not see the reason why you would need an absolute URL like var base_url
= '
http://mysite.com' in your javascript code.
If only this is giving you problems, use: *window.location.hostname* to get
the hostname in javascript.
---
Vikash Kumar
http://vika.sh
On Thu, Jan 14, 2010 at 9:40 PM,
Hello,
In a mysql date() field, I set the default to -00-00.
Therefore, $mydata-birthday = -00-00;
But when I run this next line, $then = 1969.
$then=date(Y, strtotime($mydata-birthday));
Why 1969, and not 0 or nothing?
If I echo strtotime(-00-00);
Nothing appears. So $then
On Thu, 2010-01-14 at 13:14 -0500, John Taylor-Johnston wrote:
Hello,
In a mysql date() field, I set the default to -00-00.
Therefore, $mydata-birthday = -00-00;
But when I run this next line, $then = 1969.
$then=date(Y, strtotime($mydata-birthday));
Why 1969, and not 0 or
When you set the date to -00-00, you start the following sequence:
1. strtotime returns false, because -00-00 isn't a date it can
parse into a timestamp.
2. date returns 1969, because it's not passed a valid timestamp and it
works from December 31, 1969 for any invalid date.
John Corry wrote:
I am working on designing an documenting a process for our team to use to
manage code updates/changes.
What we've been doing has been ghastly: a bunch of developers using
dreamweaver's 'check in/out' functions, all using the same FTP login, to FTP
files to the production
Hi guys
I have a question:
snip
Ashley Sheridan wrote on 14/01/2010 19:20:
MySQL uses a default -00-00 value for date fields generally, but
when converted into a timestamp, the string equates to a false value. In
PHP, timestamps are numerical values indicating the seconds since
Midnight of
I've not read this, but if the first valid date is Jan. 1st, 1970, then
passing that date back in the case of errors would lead to ambiguity. Is it
a valid date or is it an error. Passing back the date of the day just
before (in terms of time, I think it's the second before) the first valid
date
On Thu, Jan 14, 2010 at 2:53 PM, Adam Richardson simples...@gmail.comwrote:
I've not read this, but if the first valid date is Jan. 1st, 1970, then
passing that date back in the case of errors would lead to ambiguity. Is
it
a valid date or is it an error. Passing back the date of the day
Hey
Haven't had the time to read up on the maillist, but here's my input.
Mattias Thorslund wrote on 09/01/2010 02:26:
To my eyes, ? means look there is more content coming, which seems
kind of silly when there isn't.
To mine it means, no more PHP code for now. I don't wanna make it
John Corry wrote on 12/01/2010 17:04:
I leave ? out.
I'm pretty careful about my code formatting and whitespace.
It's my opinion that if I can eliminate a potential problem by not including
an optional closing tag...there's really no reason why I shouldn't.
What is the difference between:
?
On Thu, 2010-01-14 at 23:30 +0100, Kim Madsen wrote:
John Corry wrote on 12/01/2010 17:04:
I leave ? out.
I'm pretty careful about my code formatting and whitespace.
It's my opinion that if I can eliminate a potential problem by not including
an optional closing tag...there's
Ashley Sheridan wrote on 14/01/2010 23:30:
What is the difference between:
?
print hello PHPeople;
?WHITESPACE
and
?
print hello PHPeople;
WHITESPACE
Same shit when I look at it, a sloppy developer is what it is :-)
--
Kind regards
Kim Emax - masterminds.dk
Plenty of differences, if you
On Thu, 2010-01-14 at 23:37 +0100, Kim Madsen wrote:
Ashley Sheridan wrote on 14/01/2010 23:30:
What is the difference between:
?
print hello PHPeople;
?WHITESPACE
and
?
print hello PHPeople;
WHITESPACE
Same shit when I look at it, a sloppy developer is what it is :-)
Hello,
on 01/14/2010 12:51 PM Pete Yadlowsky said the following:
I'll be honest: php is not my favorite programming language. That honor
goes to ruby. And I don't mean ruby-on-rails; just straight, pure
unfettered ruby. I use ruby to write web applications and just about
everything else.
My thanks to all!
Adam Richardson wrote:
I've not read this, but if the first valid date is Jan. 1st, 1970,
then passing that date back in the case of errors would lead to
ambiguity. Is it a valid date or is it an error. Passing back the
date of the day just before (in terms of time, I
Ashley Sheridan wrote on 14/01/2010 23:36:
What has been said on this thread a few times is it is not always a
developer error, but a bug with the editor, which is not something that
will be picked up until it occurs.
Once again I love my VIm :-) (with whitespace highlight if needed)
--
On Fri, 2010-01-15 at 00:04 +0100, Kim Madsen wrote:
Ashley Sheridan wrote on 14/01/2010 23:36:
What has been said on this thread a few times is it is not always a
developer error, but a bug with the editor, which is not something that
will be picked up until it occurs.
Once again I
Wait, Kim, whats your last name?
On Thu, Jan 14, 2010 at 5:04 PM, Kim Madsen php@emax.dk wrote:
Ashley Sheridan wrote on 14/01/2010 23:36:
What has been said on this thread a few times is it is not always a
developer error, but a bug with the editor, which is not something that will
Kim Madsen wrote:
Mattias Thorslund wrote on 09/01/2010 02:26:
A neat thing with pairing every ?php with a ? when mixed in HTML is
that these are valid XML processing instructions. If your HTML
satisfies XML well-formedness, your PHP document will also be valid
XML. Not that I've ever had any
Op 1/14/10 11:37 PM, Kim Madsen schreef:
Ashley Sheridan wrote on 14/01/2010 23:30:
What is the difference between:
?
print hello PHPeople;
?WHITESPACE
and
?
print hello PHPeople;
WHITESPACE
Same shit when I look at it, a sloppy developer is what it is :-)
--
Kind regards
Kim
On 1/14/2010 7:15 PM, alexus wrote:
What's the best way to extract HTML out of $var?
example of $var
$var = a href=http://http://stackoverflow.com/Stack Overflow/a
I want
$var2 = http://starckoverflow.com/;
example: preg_match();
what else?
Actually what it looks like you want
haliphax halip...@gmail.com schrieb im Newsbeitrag
news:952625161001140625x31d03ed5oef8216064da13...@mail.gmail.com...
On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
Ashley Sheridan
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263469507.5952.75.ca...@localhost...
On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk schrieb im Newsbeitrag
news:1263463572.5952.71.ca...@localhost...
On Thu, 2010-01-14 at
Robert Cummings rob...@interjinn.com schrieb im Newsbeitrag
news:4b4f40d3.3010...@interjinn.com...
haliphax wrote:
On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
Ashley Sheridan a...@ashleysheridan.co.uk
43 matches
Mail list logo