For learning purposes, can I install and run PHP on my XP Home Edition
machine? If not that, how about an NT 4.0 Workstation?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I can't get this code, pasted from the documentation, to work properly. The
new lines don't occur where they should.
?php
echo Hello World;
echo This spans
multiple lines. The newlines will be
output as well;
echo This spans\nmultiple lines. The newlines will be\noutput as well.;
echo END
OK, I get it now.
I had forgotten that PHP output is text, as opposed to the result produced
by HTML. When the documentation states that the newlines will be output as
well it means that literally -- not that the browser will output the
newlines.
Thanks for jumping onto this.
Chris.
--
I want one of my functions to create and open a new page. I know how to
call an existing page from PHP ala form action, but in this case I want to
dynamically create and then display several pages. I'm thinking that
perhaps I should assemble some HTML, write it out to a files, then open the
HTML
I've looked at the date functions in the manual but can't find what I need.
All I want to do is add and subtract days without ending up with bogus date
values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36.
Just a nod in the write direction would be great.
Thanks.
--
PHP General Mailing List
- Original Message -
From: Christopher Weaver [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 6:54 PM
Subject: [PHP] Spawning new pages
I want one of my functions to create and open a new page. I know how to
call an existing page from PHP ala form action
that I can 'imitate' the effect of a user clicking
on a link that would open another page? Maybe this is a javascript thing?
Thanks.
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Wednesday 01 December 2004 15:02, Christopher Weaver wrote:
Here's what I've got
PROTECTED]
Christopher Weaver wrote:
I've looked at the date functions in the manual but can't find what I
need. All I want to do is add and subtract days without ending up with
bogus date values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36.
Just a nod in the write direction would be great
Sorry about that. Works great with date.
Thanks.
Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Christopher Weaver [EMAIL PROTECTED]:
This code:
echo strtotime(now);
echo mktime(Ymd, strtotime(now));
is producing this result:
1101945775
Warning
9 matches
Mail list logo