[PHP] character conversion problem

2002-05-17 Thread darcy w . christ

hi,

   i'm in a bit of a bind and i'm hoping someone can help me.  i'm 
working on a project in which some data was saved into a postgresql 
database.  It was copied from quark express and entered through a php 
interface.  Unfortunately some of the records have a strange character 
encoding.  For example, apostrophes were converted to %u2019.  All the 
charactes seenm to begin with %u and have 4 numbers after that.  i've 
seen this kind of thing in word documents.  i don't know what it is, but 
i think it's the extended ascii character set.  Anyway, i'm not sure 
what to do about it.  i would like to find a way to convert this to 
simple ascii permanently or else find a way for it to display correctly 
in html and i'm hoping to do this in php.  i would also like to find a 
way to prevent this from creeping into the system.  i'm sorry i don't 
understand the problem well enough, and i'm sorry if i'm using the wrong 
words to describe this problem.  Anyway i really appreciate the help.


~darcy w. christ
1000camels in a courtyard


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




[PHP] appending to include_path

2002-02-27 Thread darcy w. christ

hi,

  i'm hoping to find a way to append to the include_path set in my
php.ini file.  i've got several virtual servers that each require
different include_paths which are defined using the php_admin_value line
in my apache conf file.  Since the documentation says that include_path
is like the UNIX PATH variable, i assumed (or maybe hoped) that i would
be able to use a syntax like this:

  php_admin_value include_path "$include_path:/some/other/path"

unfortunately, it doesn't work.  Is there a way to append to the path?

-- 
~darcy w. christ
Elegant Communications Inc.
416.362.9772 x222 | 416.362.8324 fax

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




Re: [PHP] appending to include_path

2002-02-27 Thread darcy w. christ

Hi Jason,

  i think you misunderstood what i was asking.  i am doing exactly what
you described below.  My question is whether there is a way to not
overwrite the include_path variable, but instead to append certain paths
within my virtual server's setup to the master include_path that is
setup in my php.ini file.

Jason Wong wrote:
> 
> On Thursday 28 February 2002 01:50, darcy w. christ wrote:
> > hi,
> >
> >   i'm hoping to find a way to append to the include_path set in my
> > php.ini file.  i've got several virtual servers that each require
> > different include_paths which are defined using the php_admin_value line
> > in my apache conf file.  Since the documentation says that include_path
> > is like the UNIX PATH variable, i assumed (or maybe hoped) that i would
> > be able to use a syntax like this:
> >
> >   php_admin_value include_path "$include_path:/some/other/path"
> >
> > unfortunately, it doesn't work.  Is there a way to append to the path?
> 
> One way to allow each virtual server to have their own php config is to set
> the values from within httpd.conf:
> 
> 
>   ServerAdmin [EMAIL PROTECTED]
>   DocumentRoot /home/www/www.domain.com
>   ServerName www.domain.com
> 
>  
>   Allow from All
>   php_value include_path .:/home/www/www.domain.com
>  
> 

-- 
~darcy w. christ
Elegant Communications Inc.
416.362.9772 x222 | 416.362.8324 fax

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




Re: [PHP] appending to include_path

2002-02-27 Thread darcy w. christ

Jason Wong wrote:
> 
> On Thursday 28 February 2002 02:30, darcy w. christ wrote:
> > Hi Jason,
> >
> >   i think you misunderstood what i was asking.  i am doing exactly what
> > you described below.  My question is whether there is a way to not
> > overwrite the include_path variable, but instead to append certain paths
> > within my virtual server's setup to the master include_path that is
> > setup in my php.ini file.
> 
> My apologies :)
> 
> Not sure how you can do it from the setup. But from within php there are
> functions to retrieve and set the include path.

i see the get_cfg_var, but i'm not sure what to use to set that
variable.  Any suggestions?

-- 
~darcy w. christ
Elegant Communications Inc.
416.362.9772 x222 | 416.362.8324 fax

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