Re: [PHP] A basic question
because the time.php is parsed by php before it's sent to the client. the time.html is not it's assumed to be a static webpage and just sent as-is to the client. On Sunday 27 November 2005 12:46, Oil Pine wrote: > Hi, > > I am new to php scripting and would like to ask you a basic question. > > Could you kindly explain to me why "time.php" works but "time.html" does > not? > > pine > > > > time.php > -- > > $serverdate = date("l, d F Y h:i a"); > print ("$serverdate"); > print (" "); > > ?> > - > > > time.html > --- > "http://www.w3.org/TR/html4/loose.dtd";> > > > > Local Time > > > > > This is a test. > $serverdate = date("l, d F Y h:i a"); > print ("$serverdate"); > print (" "); > ?> > This is the end. > > > --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A basic question
Hi, I am new to php scripting and would like to ask you a basic question. Could you kindly explain to me why "time.php" works but "time.html" does not? pine time.php -- "); ?> - time.html --- http://www.w3.org/TR/html4/loose.dtd";> Local Time This is a test. "); ?> This is the end. --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A Basic Question!
Hi Hth, I just tried two programs with the same name to display echo phpinfo(). One with php3 extention and another with php extention and both brings in php 3.0.12 Is there anything else I should check? Thanks in advance. -Unni Kurt Lieber wrote: > If it's set up according to defaults, a file named .php will be > processed by php4 and one named .php3 will be processed by php3. > > You can test this out by creating two files, one with a .php extension > and one with a .php3 extension. Then, just place an "echo phpInfo();" > in the file and you'll see which version each file gets processed by. > > hth > > --kurt > >> -Original Message- >> From: Unni [mailto:[EMAIL PROTECTED]] >> Sent: Friday, July 27, 2001 8:58 AM >> To: Php (E-mail) (E-mail) >> Subject: [PHP] A Basic Question! >> >> >> Hello, >> >> This is a very basic question. My server admin said, the PHP is >> available in the server to use it. PHP3 available in the >> server and PHP4 >> is available as CGI-Wrapper. Now my question is, how can I >> make use of >> PHP4 over riding PHP3? >> >> Thanks. >> -Unni >> >> >> -- >> PHP General 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] >> >> -- PHP General 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]
RE: [PHP] A Basic Question!
If it's set up according to defaults, a file named .php will be processed by php4 and one named .php3 will be processed by php3. You can test this out by creating two files, one with a .php extension and one with a .php3 extension. Then, just place an "echo phpInfo();" in the file and you'll see which version each file gets processed by. hth --kurt > -Original Message- > From: Unni [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 27, 2001 8:58 AM > To: Php (E-mail) (E-mail) > Subject: [PHP] A Basic Question! > > > Hello, > > This is a very basic question. My server admin said, the PHP is > available in the server to use it. PHP3 available in the > server and PHP4 > is available as CGI-Wrapper. Now my question is, how can I > make use of > PHP4 over riding PHP3? > > Thanks. > -Unni > > > -- > PHP General 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] > > -- PHP General 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]
[PHP] A Basic Question!
Hello, This is a very basic question. My server admin said, the PHP is available in the server to use it. PHP3 available in the server and PHP4 is available as CGI-Wrapper. Now my question is, how can I make use of PHP4 over riding PHP3? Thanks. -Unni -- PHP General 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]