RE: [PHP-DB] Adding 's

2008-09-01 Thread Simcha
It is not clear if all four words are one string separated by line breaks, or if they are stored separately. If you have one long string, with linebreaks, use: $ anagram = preg_replace("/^(.)/mi", "$1", $ anagram); Simcha Younger p.s. I think you meant an acronym. -Original Message-

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Evert Lammerts
It's usually easy as that. Good to hear you got it to work. On Mon, Sep 1, 2008 at 2:59 PM, Jack van Zanen <[EMAIL PROTECTED]> wrote: > Funny you should mention that. > > Could not load the extension. > > I tried putting c:\php\ext as extension_dir but that resulted in apache > being unable to s

RE: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Jack van Zanen
Funny you should mention that. Could not load the extension. I tried putting c:\php\ext as extension_dir but that resulted in apache being unable to start at all. Than I remembered that on this particular machine we were running as a different user and not local system. When I changed that it

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Evert Lammerts
No interesting entries in the logs? On Mon, Sep 1, 2008 at 2:27 PM, Jack van Zanen <[EMAIL PROTECTED]> wrote: > I have the phpinidir directive set in apache so it loads the exact same > php.ini as the cli > > Jack > > 2008/9/1 Evert Lammerts <[EMAIL PROTECTED]> >> >> I see that in both cases c:\PH

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Jack van Zanen
I have the phpinidir directive set in apache so it loads the exact same php.ini as the cli Jack 2008/9/1 Evert Lammerts <[EMAIL PROTECTED]> > I see that in both cases c:\PHP\php.ini is loaded. Are you sure that > after trying the command line you didn't cut - paste the file to > c:\windows? What

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Evert Lammerts
I see that in both cases c:\PHP\php.ini is loaded. Are you sure that after trying the command line you didn't cut - paste the file to c:\windows? What do apache's and PHP's logs say? On Mon, Sep 1, 2008 at 1:25 PM, Jack van Zanen <[EMAIL PROTECTED]> wrote: > Attached is phpinfo() both from the com

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Jack van Zanen
Attached is phpinfo() both from the command line and from apache on the same machine I have done the exact same setup on my laptop and it works fine from apache and cli. I even copied over the httpd.conf and the php.ini file from my laptop as all paths and versions were identical. Oracle 10.2.0.

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Jack van Zanen
at home now, will log on maybe later and get these Thanks so far 2008/9/1 Evert Lammerts <[EMAIL PROTECTED]> > Can you send your and the output of phpinfo when run from the command > line and when run from the browser? > > On Mon, Sep 1, 2008 at 6:35 AM, Jack van Zanen <[EMAIL PROTECTED]> wrote:

Re: [PHP-DB] OCI8 , PHP and APACHE issue

2008-09-01 Thread Evert Lammerts
Can you send your and the output of phpinfo when run from the command line and when run from the browser? On Mon, Sep 1, 2008 at 6:35 AM, Jack van Zanen <[EMAIL PROTECTED]> wrote: > Hi List, > > > I have installed Oracle, PHP and apache on my windows machine and have the > following issue > > If I

Re: [PHP-DB] Adding 's

2008-09-01 Thread Evert Lammerts
$loopsize = mysql_num_rows(); $anagram = ""; for ($i = 0; $i < $loopsize; $i++) { $cell = mysql_result($anagram_result, $i, "anagram"); $anagram .= "" . $cell{0} . "" . substr($cell, 1) . "\n"; } On Mon, Sep 1, 2008 at 2:09 AM, Ron Piggott <[EMAIL PROTECTED]> wrote: > I have the following save