Re: [PHP-DB] Re: [PHP] Apache to compile PHP and Ruby languages in the same document?
At 02:56 PM 6/11/2003 -0300, Miles Thompson wrote: Don't know, but it doesn't make sense to me -- Apache executes scripts based on the file extension, how can it process both languages? A possible work around would be to have the Ruby program exec()'d within PHP. Alternately, do Ruby pages, but embed PHP as PHP is presently embedded in HTML with opening closing tags. How you tell Ruby to exec the PHP I don't know. The PHP is executed on the server before the HTML is sent to the browser. A possible difficulty is if the PHP is being executed in *SAFE* mode. Miles At 12:19 PM 6/11/2003 -0500, you wrote: Hello, I'm trying to create one document with PHP and Ruby scripts in the same document. Is this possible? I've tried to configure mod_ruby to compile php documents as well but when I do that PHP doesn't work. Is it possible to have 2 languages in the same document? -- Keith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Date Formatting in PHP
At 05:23 PM 6/10/2003 -0400, David Shugarts wrote: I have a simple need to reformat a variable coming in as $DatePick, brought forward from a MySQL select in the format: 2003-11-18 I need to convert it to the format November 18, 2003 try the dice-n-slice method. use substr and concatenation to build $DayReport from the current value of $DatePick. I am trying to avoid having to mess with the MySQL select statement, as the output is being passed through several documents. So I need to do it within PHP. I tried making a conversion like $DayReport = date (F d, Y, $DatePick); But the value of $DayReport is neither correct nor does it change when $DatePick changes. For instance, in this example, the $DatePick value of 2003-11-18 gets converted to December 31, 1969. TIA Dave Shugarts -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php