[PHP] Re: simple, but missing something?

2004-03-26 Thread Geir Pedersen - Activio AS
> $cfg['hostname'] = "www.server.com"; // Server domain or ip address > $cfg['username'] = "username";// Database user name > $cfg['password'] = "password";// Database password > $cfg['bugemail'] = "[EMAIL PROTECTED]"; > > Then do something like this: > > function database_conne

[PHP] Re: hide php extension...

2004-03-24 Thread Geir Pedersen - Activio AS
Hi, John! There is an easy way to achieve what you are looking for without modifying webserver configuration files. Say you want to support an URL like http://www.example.com/search?foo=bar Create a new subdirectory named "search" and place a default PHP script named index.php in the new direct

[PHP] Re: PHP and GD

2004-03-24 Thread Geir Pedersen - Activio AS
Patrik, to split an uploaded image, I suggest you use "pamdice" which is one of the programs in the Netpbm toolkit. You can read all about Netpbm here: http://netpbm.sourceforge.net/. --- Geir Pedersen http://www.activio.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: Example of good PHP coding

2004-03-23 Thread Geir Pedersen - Activio AS
Terence, do a search for "php coding standard" in Google and you'll find documents describing coding guidlines suitable for projects. --- Geir Pedersen http://www.activio.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Any Ideas?

2004-03-22 Thread Geir Pedersen - Activio AS
Matt, this is not a direct answer to your question, more a tip on how you design your database: You should avoid storing the same information twice. You only risk inconsistencies. In your case I suggest you compute the textual ID from the primary key value using the PHP sprintf function whenever

[PHP] Re: Zend Optimiser -- wide spread??

2004-03-21 Thread Geir Pedersen - Activio AS
Justin, > Is Zend Optimiser (required to run encoded PHP files) part of > a base installation, or at the very least, is it widely spread > in use (available on most hosts)? >From looking around earlier my impression is that most good commercial web hosting providers have the Zend Optimiser ins