Re: [PHP] User-friendly URI's

2002-01-17 Thread Jonathan David Edwin Wright
d. > >Any thoughts? > >At 09:06 AM 1/4/2002, Jonathan David Edwin Wright wrote: >>It's actually alot easier that you think! >> >>for the news file, just create a file called 'news' (minus ' of course! >>;) in your http root, then create

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Jonathan David Edwin Wright
Hiya, Personally, I use the following bit of code. All it does is take a 14 digit timestamp and convert it into a unix timestamp: function date($date) { //Extract the parts from the date $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2);

Re: [PHP] User-friendly URI's

2002-01-03 Thread Jonathan David Edwin Wright
It's actually alot easier that you think! for the news file, just create a file called 'news' (minus ' of course! ;) in your http root, then create (or append) a .htaccess with the following lines: ForceType application/x-httpd-php That tells Apache to parse news via PHP. As what you'v