Re: [PHP] PHP and XML/XLST/WDDX etc

2002-03-29 Thread Rich Buggy

 I am in a dilemma right now between If it ain't broke, don't fix it and
Looking
 over my shoulder.  I am trying to determine whether it makes more sense
to use
 ML for maintaining configuration files.

  Compiled program == ML configuration file
  Interpreted program (i.e PHP) == included configuration file with
variables set

  For most interpreted programs I can't see any advantage in adding extra
code and processing time just to store the config file in a ML.

 As far as content management, we use static include files or MySQL
databases to
 store site content.   I am not sure where the advantage of using XML/XLST
for this
 functionality.

  I'm currently working on a class library/application framework for PHP
(similar to Delphi's VCL) in which I'm using XML/XSLT for the templates.
It's working great with development not taking very long at all. The two
main advantages of using XML/XSLT for content management that I can see are:
1. It's easier to enforce a common look and feel on a site.
2. It's easier to re-target content (different transformations for
different browsers).
.

  Rich



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache virtualhosts with different user

2002-01-08 Thread Rich Buggy


 if I define 'user' in virtualhost section of apache's httpd.conf, then my
 cgi scripts will be running as 'user' if suexec has been set up correctly.
 It's okay. But how can I tell apache to run the whole virtualhost as
 'user'? Including accessing html files, and especially php.

  In 1.3 you can't. Last I heard version 2 was supposed to include something
that would let you do this.

 Is it possible somehow? Having read the apache docs, I haven't found
 anything useful, but there must be a solution if I don't want my users to
 run php scripts as www-data.

  Run PHP as a cgi instead of a module. The PHP docs tell you how

 Rich




-- 
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] Store locator / postcode proximity

2001-12-10 Thread Rich Buggy

 I'm wondering if anyone has any information about how to get the
 proximity data for postcodes in Australia? Or is it safe to assume
 that if a postcode is, say, 3107, that 3120 or 3110 (for example)
 are nearby as well as 3108 (so, perhaps, 10 above and 10 below could
 be safely assumed to be nearby?)

  Don't even bother trying that for Sydney. There's a border around Western
Sydney where the Eastern suburbs are 21xx and the Western ones are 27xx. For
example 2148 and 2767 are next to each other.

Rich




-- 
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]