[PHP-DB] problem with some functions & MYSQL in LINUX
HI I'm having a problem using some php functions in LINUX machines. I'm trying the "header" function to redirect my visitiors to a specific page & i want to generate the pages dynamically , using arguments (For ex. redir.php?img=1.jpg). It is working fine in Windows machine , but not in LINUX/UNIX .It is giving me error that headers are already sent .I don't know why it is happening. I tried many things like (1) I checked the configuration file (Php.ini) . some of the configurations r like that :*** arg_separator.input = "&" arg_separator.output = "&" output_buffering = off (2) i tried changing the code . As i was found that the argument isn't coming from the previous page.The code i used there is : *** redir.php *global $link;if($link=="")die("error"); header("Location: $link"); ** now if a link is like that : redir.php?link=http://www.yahoo.com , then it should redirect the visitor to the YAHOO! , but it is working in Windows & not in LINUX. In Windows , i saw this problem when the output_buffering is set to off. So i turned it on , & it is working fine in windows, but in LINUX , the same problem persists. Using "ob_start() " function , i tuned this function on (manually).I don't know how to solve this problem. I'm also unable to use MYSQL database in LINUX . It is saying that the built in PHP functions for mysql (like mysql_connect() etc.) are unknown functions. Can anybody please help me ? please help me . Thanking u NILASHIS http://www.geocities.com/cnilashis IncrediMail - Email has finally evolved - Click Here
Re: [PHP-DB] subtracting dates...
> In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users > date of births. I need to calculate in a PHP script, the users age from this > DOB. I get a PHP date in the same format as the mySQL and subtract, which > returns the year rounded off. ie, it doesnt matter if your birthdays in june > of 1983 and the date is januray 2003, your age is still returned as 20, when > it should be 19. > > Does anyone know how can i get the right age? Okay, so you just want to know the age in years. Must you use php? Here is a solution using mysql : SELECT name, dob, CURDATE() as today, ( YEAR(CURDATE()) - YEAR(dob) ) + LEAST( SIGN( DAYOFYEAR(CURDATE()) - DAYOFYEAR(dob) ), 0) as age_in_years FROM test_age; Here is the output : +--+++--+ | name | dob| today | age_in_years | +--+++--+ | jim | 1990-08-02 | 2003-08-03 | 13 | | paul | 1990-08-03 | 2003-08-03 | 13 | | tom | 1990-08-04 | 2003-08-03 | 12 | | matt | 1990-09-01 | 2003-08-03 | 12 | | sam | 1990-12-31 | 2003-08-03 | 12 | | sam | 1991-01-01 | 2003-08-03 | 12 | | sam | 1991-07-02 | 2003-08-03 | 12 | | sam | 1991-08-02 | 2003-08-03 | 12 | | sam | 1991-09-02 | 2003-08-03 | 11 | +--+++--+ 9 rows in set (0.01 sec) Here is how I generated my test data : DROP TABLE IF EXISTS test_age; CREATE TABLE test_age ( id int(6) NOT NULL auto_increment, name varchar(20) default NULL, dob date default NULL, PRIMARY KEY (id) ) TYPE=MyISAM; INSERT INTO test_age (id, name, dob) VALUES ('', 'jim', '1990-08-02'); INSERT INTO test_age (id, name, dob) VALUES ('', 'paul', '1990-08-03'); INSERT INTO test_age (id, name, dob) VALUES ('', 'tom', '1990-08-04'); INSERT INTO test_age (id, name, dob) VALUES ('', 'matt', '1990-09-01'); INSERT INTO test_age (id, name, dob) VALUES ('', 'sam', '1990-12-31'); INSERT INTO test_age (id, name, dob) VALUES ('', 'sam', '1991-01-01'); INSERT INTO test_age (id, name, dob) VALUES ('', 'sam', '1991-07-02'); INSERT INTO test_age (id, name, dob) VALUES ('', 'sam', '1991-08-02'); INSERT INTO test_age (id, name, dob) VALUES ('', 'sam', '1991-09-02'); > -Original Message- > From: John Ryan [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 02, 2003 2:31 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP-DB] subtracting dates... > > > Hi, > > In mySQL, I store dates as -MM-DD, a standard DATE type. It stores > users date of births. I need to calculate in a PHP script, the users age > from this DOB. I get a PHP date in the same format as the mySQL and > subtract, which returns the year rounded off. ie, it doesnt matter if > your birthdays in june of 1983 and the date is januray 2003, your age is > still returned as 20, when it should be 19. > > Does anyone know how can i get the right age? > > > > -- > 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 > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.506 / Virus Database: 303 - Release Date: 01/08/2003 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] query works fine on console but not with PHP - why?
Hi guys, I have the following query which returns FINE through the console but not in PHP select t.id, t.colour, t.colourID, t.price, t.type, g.thread_index, g.groupNameUrl FROM kcs_threads t LEFT JOIN kcs_threadgroups g ON t.id = g.thread_index WHERE g.groupNameUrl = '0-500' The error I am getting on the browser is: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 Anyone have an idea as to what it up? Thanks! Aaron
Re: [PHP-DB] query works fine on console but not with PHP - why?
- Original Message - From: "Aaron Wolski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 03, 2003 9:59 AM Subject: [PHP-DB] query works fine on console but not with PHP - why? > The error I am getting on the browser is: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 > > Anyone have an idea as to what it up? Try: echo mysql_error(); and see what mysql says. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] query works fine on console but not with PHP - why? SOLVED
Hi and thanks, Actually.. there was a typo in an if() statement just prior to it that checked to see if a variable was set before proceeding with the query. What a dumb-ass I am. You know you've been working way to long when you can't do simple things. Thanks for your comments! Aaron -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: August 3, 2003 10:11 AM To: Aaron Wolski; [EMAIL PROTECTED] Subject: Re: [PHP-DB] query works fine on console but not with PHP - why? - Original Message - From: "Aaron Wolski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 03, 2003 9:59 AM Subject: [PHP-DB] query works fine on console but not with PHP - why? > The error I am getting on the browser is: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 > > Anyone have an idea as to what it up? Try: echo mysql_error(); and see what mysql says. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] query works fine on console but not with PHP - why?
> The error I am getting on the browser is: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 line 52 is the following return statement in the db_fetch function : function db_fetch($results) { return mysql_fetch_array($results); } it's a php error, not mysql. I don't know the answer to the problem but FYI I find it easier to use $result and $link as globals in my php functions. - Original Message - From: "Aaron Wolski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 03, 2003 2:59 PM Subject: [PHP-DB] query works fine on console but not with PHP - why? > Hi guys, > > I have the following query which returns FINE through the console but > not in PHP > > > select t.id, t.colour, t.colourID, t.price, t.type, g.thread_index, > g.groupNameUrl FROM kcs_threads t LEFT JOIN kcs_threadgroups g ON t.id = > g.thread_index WHERE g.groupNameUrl = '0-500' > > > The error I am getting on the browser is: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 > > > > Anyone have an idea as to what it up? > > Thanks! > > Aaron > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.506 / Virus Database: 303 - Release Date: 01/08/2003 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] query works fine on console but not with PHP - why?
You have an error in your PHP code, just as the error says. Including only the query, which you've already tested, isn't very helpful. The error message is telling you that the result "link identifier" used in your fetch statement isn't the same as returned by the query statement OR there was an error returned by the query. It's all in the manual. Doug On Sun, 3 Aug 2003 09:59:42 -0400, Aaron Wolski wrote: >Hi guys, > >I have the following query which returns FINE through the console but >not in PHP > > >select t.id, t.colour, t.colourID, t.price, t.type, g.thread_index, >g.groupNameUrl FROM kcs_threads t LEFT JOIN kcs_threadgroups g ON t.id = >g.thread_index WHERE g.groupNameUrl = '0-500' > > >The error I am getting on the browser is: > >Warning: mysql_fetch_array(): supplied argument is not a valid MySQL >result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 > > > >Anyone have an idea as to what it up? > >Thanks! > >Aaron > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] ***SOLVED *** query works fine on console but not with PHP ***SOLVED***
Hi, Seem to still be getting responses to this question. I don't want people to take time out from what their doing to answer a question that is now solved. Just trying to help save some people the time and effort from their own development. Much appreciated answers though. They'll help me in future debugging. Thanks again to all. Aaron -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: August 3, 2003 10:08 AM To: 'Matt'; '[EMAIL PROTECTED]' Subject: RE: [PHP-DB] query works fine on console but not with PHP - why? SOLVED Hi and thanks, Actually.. there was a typo in an if() statement just prior to it that checked to see if a variable was set before proceeding with the query. What a dumb-ass I am. You know you've been working way to long when you can't do simple things. Thanks for your comments! Aaron -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: August 3, 2003 10:11 AM To: Aaron Wolski; [EMAIL PROTECTED] Subject: Re: [PHP-DB] query works fine on console but not with PHP - why? - Original Message - From: "Aaron Wolski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 03, 2003 9:59 AM Subject: [PHP-DB] query works fine on console but not with PHP - why? > The error I am getting on the browser is: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in http://www.martekbiz.com/KCS/utils.inc on line 52 > > Anyone have an idea as to what it up? Try: echo mysql_error(); and see what mysql says. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Free php editor!!
There is eClipse, it can be found at http://sourceforge.net. It is a modular IDE, and there is a plugin for php. It is Java based, so it works on any platform. phpEdit is also free: http://www.phpedit.com Those are the best two editors I've found. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] make 2 queries into one?
Hi All, Been trying to come up with a way to make the following queries into one which would speed up the processing I think. Code: $mQuery = db_query("SELECT manufacturer FROM kcs_threads GROUP BY manufacturer ORDER BY manufacturer"); while ($mResult = db_fetch($mQuery)) { $query = "select t.type, t.newUrlType, g.threadType, g.groupName, g.groupNameUrl FROM kcs_threads t LEFT JOIN kcs_threadgroups g ON t.type = g.threadType WHERE t.manufacturer = ".escapeQuote($mResult['manufacturer'])." ORDER BY t.type, g.groupName"; $result = db_query($query); while($thread = db_fetch($result)) { } } In the first query I am grabbing the Manufacturer from the threads table. Then in the second query I am making a LEFT JOIN to match up some stuff based on the t.manufactuer equalling the manufacturer of the first query. ANY possibilities here or is this it? Thanks! Aaron
[PHP-DB] pg_lo_read_all(resource connection) bug?
I think I wrote to the list before but I unfortunately didn't see a response on this. The functions in PHP to upload a large object work fine, and I can take out the object using the psql command line interface, but downloading a file with the php functions over the web the downloaded file is somehow changed. Here is a download function which has the problem: function send_object() { $db = do_db_connect(); cdb_query($db, "begin"); $res = pg_lo_open($db, $_POST['object_id'], 'r'); header("Content-type: " . $_POST['file_type']); header("Content-Disposition: file; filename=" . $_POST['filename']); header("Content-Transfer-Encoding: binary"); pg_lo_read_all($res); pg_lo_close($res); cdb_query($db, "end"); exit(); } cdb_query(db, string) is just a simple sql wrapper function that I wrote. The cmp command clearly shows that the downloaded file is different: bash-2.05a$ cmp kat_y_justin.jpg kat_y_justin_dl.jpg kat_y_justin.jpg kat_y_justin_dl.jpg differ: char 1, line 1 I can send the verbose output from cmp if anyone wants more details. PHP version information: PHP 4.3.2 (cli) (built: Jun 27 2003 03:24:40) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies Apache version information: su-2.05a# httpd -v Server version: Apache/1.3.27 (Darwin) Server built: 11/12/02 04:24:22 As you can see above, it's running on Mac OS X: su-2.05a# uname -a Darwin roc-24-169-140-246.rochester.rr.com 6.3 Darwin Kernel Version 6.3: Wed Jan 8 19:14:49 PST 2003; root:xnu/xnu-344.16.8.obj~5/RELEASE_PPC Power Macintosh powerpc Any ideas or should I start digging through the PHP source code? Thanks! Justin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] pg_lo_read_all(resource connection) bug?
The file sizes of the original file (kat_y_justin.jpg) and the downloaded file (kat_y_justin_dl.jpg) are only slightly different: -rw-r--r-- 1 justin staff 30877 Aug 3 14:37 kat_y_justin.jpg -rw-r--r-- 1 justin staff 30884 Aug 3 15:15 kat_y_justin_dl.jpg I'll do the bug report tomorrow morning at php.net if nobody else does it first. Thanks! Justin > Hi Justin > > Would you please write a bug-report at php.net? > > My problem is similar: scripts which run properly with PHP 4.2.2 don't > display anything with PHP 4.3.x. > >> The functions in PHP to upload a large object work >> fine, > ... >> The cmp command clearly shows that the downloaded file is different: > > I found that pg_lo_import() doesn't upload the whole file but only a > few bytes. Are you sure that the filesize of your pg_largeobject > entries is the same than the filesize of your uploaded file? > > pg_lo_open() doesn't return a valid handler if running on Win2000. So > uploaded files are not displayed. (See the bugs database at php.net.) > >> Any ideas or should I start digging through the PHP source code? > Thanks! > Sorry, no ideas but the same problem ;-) > > Regards > Conni > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Renaming .htm pages to .php
I'm just about ready to publish my first "professionally" designed website, but there's a catch - all the pages end in .htm extensions, but I'm hoping to eventually learn how to use php and add some technical functions. Thus, I'd have to go back and change the .htm extensions to .php. So, could I change all the extensions to .php NOW, so search engines will register them in the first place - even though I'm not currently using php? Will a page that has no server side includes, database management functions, etc. act just the same with a .php extension as it would with a .htm extension? In other words, is there a DISADVANTAGE to giving a page a .php extension if I'm not actually using any php functions on it? Also, I like to name my pages index and place them inside folders, so I can access them easier on the Internet. For example, I can access www.geobop.com/birds/index.htm by typing www.geobop.com/birds/ into a browser. Does it work the same with php, or would I have to type in www.geobop.com/birds/index.php? I recently downloaded a preconfigured package with Apache, PHP and MySQL, but I haven't had a chance to work with it yet. I'm really racing the clock to get my websites revised, so I'll probably try to get them online first, then go back and try to learn php and add server side includes and databases as I find time. Thanks. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Renaming .htm pages to .php
This doesn't have much to do with PHP and databases, but here's a thought: You can leave them all .htm and have apache treat .htm files as .php files. Just check out httpd.conf for configuration. If your box is sufficiently zippy, you will see now slow down by running pure html files through PHP. --Dave David Blomstrom wrote: I'm just about ready to publish my first "professionally" designed website, but there's a catch - all the pages end in .htm extensions, but I'm hoping to eventually learn how to use php and add some technical functions. Thus, I'd have to go back and change the .htm extensions to .php. So, could I change all the extensions to .php NOW, so search engines will register them in the first place - even though I'm not currently using php? Will a page that has no server side includes, database management functions, etc. act just the same with a .php extension as it would with a .htm extension? In other words, is there a DISADVANTAGE to giving a page a .php extension if I'm not actually using any php functions on it? Also, I like to name my pages index and place them inside folders, so I can access them easier on the Internet. For example, I can access www.geobop.com/birds/index.htm by typing www.geobop.com/birds/ into a browser. Does it work the same with php, or would I have to type in www.geobop.com/birds/index.php? I recently downloaded a preconfigured package with Apache, PHP and MySQL, but I haven't had a chance to work with it yet. I'm really racing the clock to get my websites revised, so I'll probably try to get them online first, then go back and try to learn php and add server side includes and databases as I find time. Thanks. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Renaming .htm pages to .php
At 05:58 PM 8/3/2003 -0600, David Smith wrote: This doesn't have much to do with PHP and databases, but here's a thought: You can leave them all .htm and have apache treat .htm files as .php files. Just check out httpd.conf for configuration. If your box is sufficiently zippy, you will see now slow down by running pure html files through PHP. So if I understand you correctly, I can turn a page into a .php page through one of two methods: 1. Change the extension to .php 2. Instruct Apache to treat .htm extensions as .php extensions. That sounds really interesting. Would that create any problems with pages that I never use .php functions on? Or if I have websites on my computer that don't use php? Thanks. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Renaming .htm pages to .php
If you change you Apache configs, it wouldn't create a "problem" with .htm pages that don't use any PHP, but the pages will still be sent through the PHP parser. If you don't have a very high-traffic site and there's no other sites on the box, then you probably won't see any real performance hit - but understand that if you do start getting a ton of traffic, every .htm page will be parsed for PHP content. Even if none is found, there is some CPU cycles burned in that initial parsing. -Original Message- From: David Blomstrom [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 9:49 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Renaming .htm pages to .php So if I understand you correctly, I can turn a page into a .php page through one of two methods: 1. Change the extension to .php 2. Instruct Apache to treat .htm extensions as .php extensions. That sounds really interesting. Would that create any problems with pages that I never use .php functions on? Or if I have websites on my computer that don't use php? Thanks. -- 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] Renaming .htm pages to .php
On Sun, 3 Aug 2003 21:58:42 -0400 "Mike Brum" <[EMAIL PROTECTED]> wrote: > If you change you Apache configs, it wouldn't create a "problem" with > .htm pages that don't use any PHP, but the pages will still be sent > through the PHP parser. > > If you don't have a very high-traffic site and there's no other sites > on the box, then you probably won't see any real performance hit - but > understand that if you do start getting a ton of traffic, every .htm > page will be parsed for PHP content. Even if none is found, there is > some CPU cycles burned in that initial parsing. > The other problem with parsing all .htm or .html as php pages is you lose portability of the site should you change the server that the web site is on. I suggest that changing the extension to .php would be the better way to go. Anything else is a compromise. George Patterson > -Original Message- > From: David Blomstrom [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 03, 2003 9:49 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Renaming .htm pages to .php > > So if I understand you correctly, I can turn a page into a .php page > through one of two methods: > > 1. Change the extension to .php > 2. Instruct Apache to treat .htm extensions as .php extensions. > > That sounds really interesting. Would that create any problems with > pages that I never use .php functions on? Or if I have websites on my > computer > > that don't use php? > > Thanks. > > > > > -- > 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 > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Renaming .htm pages to .php
Thanks for all the tips. Incidentally, I just noticed that I'm getting e-mails in triplicates - the same e-mail three times. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Renaming .htm pages to .php
Same here. I get it all the time. Aaron -Original Message- From: David Blomstrom [mailto:[EMAIL PROTECTED] Sent: August 3, 2003 10:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Renaming .htm pages to .php Thanks for all the tips. Incidentally, I just noticed that I'm getting e-mails in triplicates - the same e-mail three times. -- 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] Renaming .htm pages to .php
Also, You would be best off changing only the one you thing you might need to use PHP later with, changing Apache to phase all .htm pages can get really slow is a insect comes about. -Original Message- From: David Blomstrom [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 10:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Renaming .htm pages to .php Thanks for all the tips. Incidentally, I just noticed that I'm getting e-mails in triplicates - the same e-mail three times. -- 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] Renaming .htm pages to .php
At 01:42 AM 8/4/2003 -0400, Dennis Cole wrote: Also, You would be best off changing only the one you thing you might need to use PHP later with, changing Apache to phase all .htm pages can get really slow is a insect comes about. I'll probably use server side includes for footers and other elements on all pages, so I might go ahead and change all the extensions to .php. But you're referring to Plan B - leaving the .htm extensions and just modifying Apache to treat them as .php extensions, right? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php