php-windows Digest 27 Mar 2001 06:28:51 -0000 Issue 512 Topics (messages 6306 through 6312): Re: Easy question 6306 by: patso.goatheckler.com 6307 by: Ermanno Iannacci Re: PHP4 and WIN2k IIS 6308 by: James Brash (should be) easy questions from a beginner 6309 by: Jim Witt Mail submisison of form data 6310 by: Randall Barber 6311 by: Flint Doungchak How to setup the GD Library for Apache+php 6312 by: Evan Chang Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I mean, what's an easy way to get a formatted date in php? On Mon, 26 Mar 2001 [EMAIL PROTECTED] wrote: > Hey all, > I was just wondering, what's the easiest, quickest way in php to > get a formatted date to enter into a database? Thanks > Patrick > > >
strftime. I always use this. http://www.php.net/manual/en/function.strftime.php > I mean, what's an easy way to get a formatted date in php? > > On Mon, 26 Mar 2001 [EMAIL PROTECTED] wrote: > > > Hey all, > > I was just wondering, what's the easiest, quickest way in php to > > get a formatted date to enter into a database? Thanks > > Patrick > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Tom, I had the same problem recently but I was kindly helped - heres the solution email -----Original Message----- From: Flint Doungchak [mailto:[EMAIL PROTECTED]] Sent: 24 March 2001 20:36 To: 'James Brash'; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Error in CGI Application in IIS James, I don't know if this applies to you, but I recently had the same problem. I assume you are using the CGI version. When you define the mime mapping in IIS, there is a checkbox that says: "Check for File Exists" If you do not have this checked and the file is non-existant, you will get this error. I don't know if this is your problem. If not, let me know. There are couple of more instances where this error could pop us. -Flint Thanks again Flint
1. Why when I use $PHP_SELF, I get the file referenced twice? Ex: in file hello.php I have <?php echo $PHP_SELF ; ?> and the result is: /cgi-bin/hello.phpcgi-bin/hello.php 2. I set up the following right from PHP.net FAQ: <?php while (list($var, $value) = each($HTTP_POST_VARS)) { echo "$var = $value<br>\n"; } ?> but this does nothing. The FORM that is posted has four text INPUT's. This script is called from a JavaScript function that is called from an HTML FORM submit as follows: function SubmitIt() { top.frames["myframe"].location = '/cgi-bin/hello.php' ; } I understand that php4.0.4pl1 automatically track system variable ... ? 3. I cannot get the form submit to work with the above if I set: ACTION="<?php echo /cgi-bin/hello.php ?>" And I have tried every combination of: echo /cgi-bin/hello.php echo '/cgi-bin/hello.php' echo hello.php echo 'hello.php' etc, etc, .... For reference: Athlon 1 GHz, Win98 SE, PHP 4.0.4pl1, Xitami server, Netscape 4.7 Thanks in advance, Jim Witt [EMAIL PROTECTED]
I have taken over a web page that submits form information to an email = address. I was wondering if there is a way in the mailto: tag to carbon copy the = message. If there is it saves me time. Otherwise, I was going to submit the results to a PHP page that simply = echo'd something like this: --------------------------------------------- Our mail center has received the following information: . . info here . . Click here to return to the Mail Center. ---------------------------------------------- I would use PHPs mail() function to email it to the center. Having it carbon copied would save me the step of writing another page. Any suggestions? Thanks RDB
Randall, I'm not sure on this so I may need some correction, in theory, you should be able to put two addrees in the first argument, but I have never gotten it to work. But try this. I might be wrong on the syntax. mail("[EMAIL PROTECTED]","Subject: I'm an idiot","Message body here","From:[EMAIL PROTECTED],Cc:[EMAIL PROTECTED]"); Somewhere care to check on my syntax? Sorry Randall at not being absolutely clear. -Flint -----Original Message----- From: Randall Barber [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 5:11 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Mail submisison of form data I have taken over a web page that submits form information to an email = address. I was wondering if there is a way in the mailto: tag to carbon copy the = message. If there is it saves me time. Otherwise, I was going to submit the results to a PHP page that simply = echo'd something like this: --------------------------------------------- Our mail center has received the following information: . . info here . . Click here to return to the Mail Center. ---------------------------------------------- I would use PHPs mail() function to email it to the center. Having it carbon copied would save me the step of writing another page. Any suggestions? Thanks RDB
Hello, Every Superman, Please help me to setup the GD Library for Apache+PHP4 at Win32 platform . Thanks ! Evan Chang