[PHP] Installing PHP on HP
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
[PHP] echo
I can't get this code, pasted from the documentation, to work properly. The new lines don't occur where they should. Any help will be greatly appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: echo
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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, 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 file. Is this the best way of going about it? Can it be done without actually writing the HTML to the disk? How do I actually open the page once it's been created? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Date Manipulation
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spawning new pages
Here's what I've got In first php file include second.php; createPage("withThis"); createPage("withThat"); In second php file function createPage { echo ""; echo ""; echo "more stuff here"; echo ""; echo ""; } Here's the problem. I get only one page, not two. I want a new page each time the function is called. Any ideas? "Brent Clements" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This is simple. > > echo ""; > echo ""; > echo "Hello World"; > echo ""; > echo ""; > > There are many ways to do what you want to do. It's at the core of PHP. > > -Brent > - 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, 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 file. >> >> Is this the best way of going about it? >> >> Can it be done without actually writing the HTML to the disk? >> >> How do I actually open the page once it's been created? >> >> -- >> 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] Spawning new pages
> Of all the correct answers that you received you had to pick and use the > wrong > answer! What?! I only see one answer, Brent Clements. How is it that I could miss some of the messages? I'm reading these through MS Outlook Express with 'Show All Messages' selected. Anyway, is there any way 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 >> >> In first php file >> >> include second.php; >> >> createPage("withThis"); >> createPage("withThat"); > > ... > > Of all the correct answers that you received you had to pick and use the > wrong > answer! PHP can't spawn new pages. Read your other responses. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > -- > /* > Carson's Observation on Footwear: > If the shoe fits, buy the other one too. > */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date Manipulation
This code: echo strtotime("now"); echo mktime("Ymd", strtotime("now")); is producing this result: 1101945775 Warning: mktime(): Windows does not support negative values for this function ... -1 What am I doing wrong? Thanks again. "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL 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. > > mktime() or strtotime() > > -- > > ---John Holmes... > > Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ > > php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date Manipulation
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: mktime(): Windows does not support negative values for this >> function ... >> -1 >> >> What am I doing wrong? > > Using the wrong function, or providing the wrong arguments. From the > arguments you're giving mktime, I suspect you actually want date(), > which would yield a string in the format 'YYYMMDD'. However, if you > really want to use mktime, you should be be using it as follows: > > int mktime ( [int $hour], [int $minute], [int $second], [int $month], >[int $day], [int $year], [int $is_dst] ) > > Please read the manual entries for the functions you're using before > posting to the list. > >> "John Holmes" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL 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. >> > >> > mktime() or strtotime() > > -- > Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] > Webmaster and IT Specialist | http://www.garden.org > National Gardening Association| http://www.kidsgardening.com > 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php