OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 1 Jul 2004 10:40:53 -0000 Issue 2851

php-general-digest-helplists.php.net
Date: Thu Jul 01 2004 - 05:40:53 CDT


php-general Digest 1 Jul 2004 10:40:53 -0000 Issue 2851

Topics (messages 189397 through 189446):

Re: Protecting database passwords
        189397 by: zeus.ix.netcom.com
        189398 by: Chris W. Parker
        189430 by: - Edwin -
        189432 by: - Edwin -
        189435 by: - Edwin -
        189438 by: Curt Zirzow

Re: install/config error - please help
        189399 by: Curt Zirzow
        189445 by: David Robley

Re: Earliest PHP/FI
        189400 by: Curt Zirzow

Re: Is PEAR worth the effort?
        189401 by: Curt Zirzow

Re: Regular Expression Help
        189402 by: Curt Zirzow

Re: Messages to List Being Truncated
        189403 by: Curt Zirzow
        189421 by: Curt Zirzow

Re: Problem with pspell module
        189404 by: Curt Zirzow
        189405 by: Shannon Werb
        189406 by: Shannon Werb
        189407 by: Curt Zirzow
        189408 by: Shannon Werb
        189409 by: Shannon Werb
        189410 by: Shannon Werb
        189414 by: Curt Zirzow
        189415 by: Shannon Werb
        189416 by: Shannon Werb
        189418 by: Shannon Werb
        189420 by: Curt Zirzow

> Problems with php_domxml and his xslt support (output settings not used)
        189411 by: Weyert de Boer
        189413 by: Weyert de Boer

Re: safe mode/open basedir not working ?
        189412 by: robert mena
        189427 by: Justin Patrin

Is that a PECL in your pants?
        189417 by: John W. Holmes
        189424 by: Curt Zirzow
        189425 by: John W. Holmes
        189426 by: Curt Zirzow
        189436 by: - Edwin -
        189437 by: John W. Holmes
        189440 by: - Edwin -

imagerotate - lossless?
        189419 by: CSN
        189439 by: - Edwin -

MATCH ... AS relevancy FROM
        189422 by: John Taylor-Johnston
        189423 by: John W. Holmes

Re: sql statement help needed
        189428 by: Binay

Re: suexec in php
        189429 by: Binay

Re: What do I need in order to do the following with php.
        189431 by: - Edwin -
        189441 by: Gabriel Birke
        189442 by: Justin Patrin

Re: Converting strings to match multiple charsets
        189433 by: - Edwin -
        189443 by: Torsten Roehr

Re: Web live radio
        189434 by: ascll

Re: problem with embeded objects and reference
        189444 by: Daniel Kullik

Session file problem?
        189446 by: Info.Best-IT

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


> argh. just make the file readable by root and the user that runs
> apache/php and you're done.

Which unfortunately is installation specific. I.e., if I am distributing a program
and want to install a file which the user modifies to contain the passwords, I have to direct
the user to manually update the permissions of that file to suit his site.

> p.s. btw hashes will help you (keep the contents of the file secure
> which is your ultimate goal is it not?).

How can I use a password hash to log on to a database server (or for any other login
for that matter)?

-Bob

attached mail follows:


zeusix.netcom.com <mailto:zeusix.netcom.com>
    on Wednesday, June 30, 2004 4:15 PM said:

> How can I use a password hash to log on to a database server (or for
> any other login for that matter)?

i apologize. i completely misunderstood your original post.

in which case, i can think of only two things (not to say there aren't
more): 1. restricting access to the file via permissions, and 2. putting
the file outside of the web root so that it can not be requested via the
web.

chris.

attached mail follows:


Hi,

On Wednesday 30 June 2004 09:58, Bob Hockney wrote:
> Hi there,
>
> I wrote a php script that accesses a database, and I am
> wondering about securing the password to the database. I
> could prompt the user for the password every session, but
> I don't necessarily want the user to have the password.

You mean the password for the database? Why would the user
need that? If the users need a password to access the site,
then create one for the *site*. Only you and your scripts
need to know what the password for the database is...

> Unless I'm missing something, any on-disk place I store
> the password needs to be readable by PHP, and therefore
> isn't very secure. I have restricted the rights of the
> database user, but I'm wondering how others have dealt
> with this, or maybe I'm completely missing the point.

Or, am I missing the point? :)

- E -

attached mail follows:


On Thursday 01 July 2004 02:17, Chris W. Parker wrote:
> Red Wingate <mailto:redeyeerisx.de>
>
> on Wednesday, June 30, 2004 9:33 AM said:
> > Hashing ... but i guess he wants to protected the
> > password needed to access the DB not a PW stored in the
> > DB.
>
> you probably understand this already but for those who
> don't i would like to say:
>
> right, but the point with hashing is that even if the
> hashes are retrieved/stolen it will take time (possibly
> too long) for the password itself to be
> recovered/discovered.

And why would they need to recover/discover them?

If other users of the server can "see" your script(s) that
holds the information (username/password) for your db,
then they don't even have to know the real password--
they can just used the hashed ones to access your db.

Or, maybe you want to explain more? :)

- E -

attached mail follows:


On Thursday 01 July 2004 08:25, Chris W. Parker wrote:
> zeusix.netcom.com <mailto:zeusix.netcom.com>
>
> on Wednesday, June 30, 2004 4:15 PM said:
> > How can I use a password hash to log on to a database
> > server (or for any other login for that matter)?
>
> i apologize. i completely misunderstood your original
> post.
>
> in which case, i can think of only two things (not to say
> there aren't more): 1. restricting access to the file via
> permissions, and 2. putting the file outside of the web
> root so that it can not be requested via the web.

If you're on a shared environment and if all the users are
running under the same UID then permissions wouldn't
really matter...

- E -

attached mail follows:


* Thus wrote - Edwin -:
> On Thursday 01 July 2004 02:17, Chris W. Parker wrote:
> > Red Wingate <mailto:redeyeerisx.de>
> >
> > on Wednesday, June 30, 2004 9:33 AM said:
> > > Hashing ... but i guess he wants to protected the
> > > password needed to access the DB not a PW stored in the
> > > DB.
> >
> > you probably understand this already but for those who
> > don't i would like to say:
> >
> > right, but the point with hashing is that even if the
> > hashes are retrieved/stolen it will take time (possibly
> > too long) for the password itself to be
> > recovered/discovered.
>
> And why would they need to recover/discover them?
>
> If other users of the server can "see" your script(s) that
> holds the information (username/password) for your db,
> then they don't even have to know the real password--
> they can just used the hashed ones to access your db.

Well, at this point there is no need for those hashes.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


* Thus wrote Nguyen, Long P (Mission Systems):
> I tried what you suggested and got the following:
>
> [rootseahawk root]# "main(){return(0);}" > test.c
> -bash: main(){return(0);}: command not found

You missed the 'echo'..

bash$ echo "main(){return(0);}" > test.c

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


On Wed, 30 Jun 2004 23:01, Long P Nguyen wrote:

> any ideas with this install/config error?
>
> [rootseahawk php-4.3.7]# ./configure --with-mysql=/usr/local/mysql
> creating cache ./config.cache
> checking host system type... i686-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.

Do you have gcc installed? If so, does the user running configure have
permissions to write to the current directory?

--
David Robley

"I'm as busy as a bee," Tom droned.

attached mail follows:


* Thus wrote Jeff Loiselle:
> Does anyone know where I would be able to find the earliest version of
> PHP/FI or PHP possible? I am looking for the earliest possible version
> for academic reasons.

You can checkout php/fi from the cvs

  http://cvs.php.net/phpfi/

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


* Thus wrote Will Merrell:
> I don't mean to start a flame war here, but I have been working in PHP for a
> while now and am about to start a more extensive aplication. Some of the
> PEAR modules look good and I just wanted to hear what the collected wisdom
> out here thinks about it.

Since '97 i've yet to use PEAR in any one of my applications.

>
> When I try to read the installation instructions my eyes glaze over and roll
> up into my head. Before I fight my way through this learning curve I want to
> know if its worth it? Is this the wave of the future or just a flash in the
> pan?

The basic pear installation is installed with php by default, if
you want another package its as easy as:

  pear install <packagename>

see pear --help for other options, like the nifty upgrade feature.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


* Thus wrote Pablo Gosse:
>
> Here's the working regular expresssion:
>
> /^[a-zA-Z0-9\(\)]{1}[ a-zA-Z0-9\(\)_\,\.\-\'\"]{1,999}$/

for starters, that doesn't give me a warning at all.

also, all those escapes arn't needed:

  $reg = '/^[a-zA-Z0-9()]{1}[ a-zA-Z0-9()_,.\'"-]{1,999}$/';

The ' is only escaped for php, not the expression. And moving the -
to the end or beginning, you don't need to escape it.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


* Thus wrote John W. Holmes:
> Red Wingate wrote:
>
> Sorry I've been absent from the list for a while guys and gals. Now I
> see what I've been missing!! :)

And well missed :)

I can't always come up with those nifty code tricks like you do :D

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


* Thus wrote Curt Zirzow:
> * Thus wrote John W. Holmes:
> > Red Wingate wrote:
> >
> > Sorry I've been absent from the list for a while guys and gals. Now I
> > see what I've been missing!! :)
>
> And well missed :)

You're absense not what you've been missing :D

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


* Thus wrote Shannon Werb:
> Hi all, I filed a PHP bug related to others I found online, but thought I
> would throw it by the list also...
> You can find the bug at:
> http://bugs.php.net/bug.php?id=28967
 
You're going to need to get some sort of backtrace, either from the
core dump or ran interactivly.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


Curt, how do I do this?
I have the httpd.core that apache produced, how should I send it in?

Regards,
Shannon

> -----Original Message-----
> From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> Sent: Wednesday, June 30, 2004 8:10 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] Problem with pspell module
>
> * Thus wrote Shannon Werb:
> > Hi all, I filed a PHP bug related to others I found online, but
> > thought I would throw it by the list also...
> > You can find the bug at:
> > http://bugs.php.net/bug.php?id=28967
>
> You're going to need to get some sort of backtrace, either
> from the core dump or ran interactivly.
>
>
> Curt
> --
> First, let me assure you that this is not one of those shady
> pyramid schemes you've been hearing about. No, sir. Our
> model is the trapezoid!
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Following is my backtrace, I found how to do it at:
http://bugs.php.net/bugs-generating-backtrace.php

BACKTRACE:
batt3# gdb /usr/local/apache/bin/httpd /usr/local/apache/httpd.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so...
(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols
found)...
done.
#0 0x0 in ?? ()
(gdb) bt
#0 0x0 in ?? ()
#1 0x28519319 in _init ()
   from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
#2 0x28524595 in _fini ()
   from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
#3 0x280c6e59 in find_symdef () from /usr/libexec/ld-elf.so.1
#4 0x28171f94 in exit () from /usr/lib/libc.so.4
#5 0x80781bc in clean_parent_exit ()
#6 0x807b529 in main ()
#7 0x804f905 in _start ()
(gdb)

I have updated my bug report to include this...

Now I wish I knew how to read the darn thing?

Regards,
Shannon

http://www.battcave.com/

> -----Original Message-----
> From: Shannon Werb [mailto:shannonswerb.com]
> Sent: Wednesday, June 30, 2004 8:34 PM
> To: 'Curt Zirzow'
> Cc: 'php-generallists.php.net'
> Subject: RE: [PHP] Problem with pspell module
>
> Curt, how do I do this?
> I have the httpd.core that apache produced, how should I send it in?
>
> Regards,
> Shannon
>
> > -----Original Message-----
> > From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> > Sent: Wednesday, June 30, 2004 8:10 PM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] Problem with pspell module
> >
> > * Thus wrote Shannon Werb:
> > > Hi all, I filed a PHP bug related to others I found online, but
> > > thought I would throw it by the list also...
> > > You can find the bug at:
> > > http://bugs.php.net/bug.php?id=28967
> >
> > You're going to need to get some sort of backtrace, either from the
> > core dump or ran interactivly.
> >
> >
> > Curt
> > --
> > First, let me assure you that this is not one of those
> shady pyramid
> > schemes you've been hearing about. No, sir. Our model is the
> > trapezoid!
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit:
> > http://www.php.net/unsub.php
> >
> >

attached mail follows:


* Thus wrote Shannon Werb:
> Following is my backtrace, I found how to do it at:
> http://bugs.php.net/bugs-generating-backtrace.php

>
> BACKTRACE:
> (gdb) bt
> #0 0x0 in ?? ()
> #1 0x28519319 in _init ()
> from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
> #2 0x28524595 in _fini ()
> from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
> #3 0x280c6e59 in find_symdef () from /usr/libexec/ld-elf.so.1
> #4 0x28171f94 in exit () from /usr/lib/libc.so.4
> #5 0x80781bc in clean_parent_exit ()
> #6 0x807b529 in main ()
> #7 0x804f905 in _start ()
> (gdb)

Disable php accelerator and see if it happens. You'll most likely
need to reinstall php accelerator.

>
> I have updated my bug report to include this...
>
> Now I wish I knew how to read the darn thing?

a backtrace simply shoes the calling stack of functions, very
helpful in seeing why and where its crashing.

#0 is where the program crashed, and the 0x0 means that execution
tried to access a NULL pointer which is illegal, thus the crash.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


I disabled it, still happened...

But as soon as I remove the --with-pspell from the php configure it works
fine.

So are you saying I should try and reinstall php-accelerator after I build
with pspell enabled?

Regards,
Shannon

> -----Original Message-----
> From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> Sent: Wednesday, June 30, 2004 9:31 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] Problem with pspell module
>
> * Thus wrote Shannon Werb:
> > Following is my backtrace, I found how to do it at:
> > http://bugs.php.net/bugs-generating-backtrace.php
>
> >
> > BACKTRACE:
> > (gdb) bt
> > #0 0x0 in ?? ()
> > #1 0x28519319 in _init ()
> > from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
> > #2 0x28524595 in _fini ()
> > from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
> > #3 0x280c6e59 in find_symdef () from /usr/libexec/ld-elf.so.1
> > #4 0x28171f94 in exit () from /usr/lib/libc.so.4
> > #5 0x80781bc in clean_parent_exit ()
> > #6 0x807b529 in main ()
> > #7 0x804f905 in _start ()
> > (gdb)
>
> Disable php accelerator and see if it happens. You'll most
> likely need to reinstall php accelerator.
>
> >
> > I have updated my bug report to include this...
> >
> > Now I wish I knew how to read the darn thing?
>
> a backtrace simply shoes the calling stack of functions, very
> helpful in seeing why and where its crashing.
>
>
> #0 is where the program crashed, and the 0x0 means that
> execution tried to access a NULL pointer which is illegal,
> thus the crash.
>
>
> Curt
> --
> First, let me assure you that this is not one of those shady
> pyramid schemes you've been hearing about. No, sir. Our
> model is the trapezoid!
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


> > (gdb)
>
> Disable php accelerator and see if it happens. You'll most
> likely need to reinstall php accelerator.
>
> >

SHIT, that did it...
I didn't disable it in php.ini like I had thought, but once I did everything
is fine...
So why is this causing it?

To re-install it maybe I just need to rebuild it?

I don't remember if I had source on it, trying now...

>

attached mail follows:


> -----Original Message-----
> From: Shannon Werb [mailto:shannonswerb.com]
> Sent: Wednesday, June 30, 2004 9:27 PM
> To: 'Curt Zirzow'; php-generallists.php.net
> Subject: RE: [PHP] Problem with pspell module
>
> > > (gdb)
> >
> > Disable php accelerator and see if it happens. You'll most
> likely need
> > to reinstall php accelerator.
> >
> > >
>
> SHIT, that did it...
> I didn't disable it in php.ini like I had thought, but once I
> did everything is fine...
> So why is this causing it?
>
> To re-install it maybe I just need to rebuild it?
>
> I don't remember if I had source on it, trying now...

OK, I found that PHPA is delivered pre-built with an .so for each platform
and has not been modified in a long time... Is this a bug in PHPA from
ZEND? Can I somehow get it to work? I would hate to have to run with PHPA
off to offer pspell...

What do you recommend?

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

attached mail follows:


* Thus wrote Shannon Werb:
> > -----Original Message-----
> > From: Shannon Werb [mailto:shannonswerb.com]
> > Sent: Wednesday, June 30, 2004 9:27 PM
> > To: 'Curt Zirzow'; php-generallists.php.net
> > Subject: RE: [PHP] Problem with pspell module
> >
> > > > (gdb)
> > >
> > > Disable php accelerator and see if it happens. You'll most
> > likely need
> > > to reinstall php accelerator.
> > >
> > > >
> >
> > SHIT, that did it...
> > I didn't disable it in php.ini like I had thought, but once I
> > did everything is fine...
> > So why is this causing it?
> >
> > To re-install it maybe I just need to rebuild it?
> >
> > I don't remember if I had source on it, trying now...
>
>
> OK, I found that PHPA is delivered pre-built with an .so for each platform
> and has not been modified in a long time... Is this a bug in PHPA from
> ZEND? Can I somehow get it to work? I would hate to have to run with PHPA
> off to offer pspell...

Well, you could use an alternative accelerater, one I would
recomend is APC, and happens to be called "Alternative PHP Cache" :)

The biggest advantage is that you can upgrade you're php without
waiting for a third party to make the binary for you. And does
come highly recommended by many.

Home page (seems outdated):
http://apc.communityconnect.com/

Extension page:
http://pecl.php.net/apc

You can install it with the pear utility:

  pear install apc

That will fetch the code, compile it against your installed
version of php and install it.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


> -----Original Message-----
> From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> Sent: Wednesday, June 30, 2004 10:02 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] Problem with pspell module
>
> * Thus wrote Shannon Werb:
> > > -----Original Message-----
> > > From: Shannon Werb [mailto:shannonswerb.com]
> > > Sent: Wednesday, June 30, 2004 9:27 PM
> > > To: 'Curt Zirzow'; php-generallists.php.net
> > > Subject: RE: [PHP] Problem with pspell module
> > >
> > > > > (gdb)
> > > >
> > > > Disable php accelerator and see if it happens. You'll most
> > > likely need
> > > > to reinstall php accelerator.
> > > >
> > > > >
> > >
> > > SHIT, that did it...
> > > I didn't disable it in php.ini like I had thought, but once I did
> > > everything is fine...
> > > So why is this causing it?
> > >
> > > To re-install it maybe I just need to rebuild it?
> > >
> > > I don't remember if I had source on it, trying now...
> >
> >
> > OK, I found that PHPA is delivered pre-built with an .so for each
> > platform and has not been modified in a long time... Is
> this a bug in
> > PHPA from ZEND? Can I somehow get it to work? I would
> hate to have
> > to run with PHPA off to offer pspell...
>
> Well, you could use an alternative accelerater, one I would
> recomend is APC, and happens to be called "Alternative PHP Cache" :)
>
> The biggest advantage is that you can upgrade you're php
> without waiting for a third party to make the binary for you.
> And does come highly recommended by many.
>
> Home page (seems outdated):
> http://apc.communityconnect.com/
>
> Extension page:
> http://pecl.php.net/apc
>
> You can install it with the pear utility:
>
> pear install apc

I tried, no luck:
batt3# pear install apc
downloading APC-2.0.4.tgz ...
Starting to download APC-2.0.4.tgz (44,606 bytes)
............done: 44,606 bytes
35 source files, building
running: phpize
aclocal: not found
`phpize' failed

So I then tried to do it manually and the INSTALL recommend I run phpsize,
which I don't have on my system in my php directory???

Thoughts?

>
> That will fetch the code, compile it against your installed
> version of php and install it.
>
>
> Curt
> --
> First, let me assure you that this is not one of those shady
> pyramid schemes you've been hearing about. No, sir. Our
> model is the trapezoid!
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


I found phpize...
It is complaining about aclocal
I edited to find aclocal in /usr/local/share
Now I get /usr/local/bin/phpize: /usr/local/share/aclocal: permission denied

Do I need to run phpize?

Regards,
Shannon

> -----Original Message-----
> From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> Sent: Wednesday, June 30, 2004 10:02 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] Problem with pspell module
>
> * Thus wrote Shannon Werb:
> > > -----Original Message-----
> > > From: Shannon Werb [mailto:shannonswerb.com]
> > > Sent: Wednesday, June 30, 2004 9:27 PM
> > > To: 'Curt Zirzow'; php-generallists.php.net
> > > Subject: RE: [PHP] Problem with pspell module
> > >
> > > > > (gdb)
> > > >
> > > > Disable php accelerator and see if it happens. You'll most
> > > likely need
> > > > to reinstall php accelerator.
> > > >
> > > > >
> > >
> > > SHIT, that did it...
> > > I didn't disable it in php.ini like I had thought, but once I did
> > > everything is fine...
> > > So why is this causing it?
> > >
> > > To re-install it maybe I just need to rebuild it?
> > >
> > > I don't remember if I had source on it, trying now...
> >
> >
> > OK, I found that PHPA is delivered pre-built with an .so for each
> > platform and has not been modified in a long time... Is
> this a bug in
> > PHPA from ZEND? Can I somehow get it to work? I would
> hate to have
> > to run with PHPA off to offer pspell...
>
> Well, you could use an alternative accelerater, one I would
> recomend is APC, and happens to be called "Alternative PHP Cache" :)
>
> The biggest advantage is that you can upgrade you're php
> without waiting for a third party to make the binary for you.
> And does come highly recommended by many.
>
> Home page (seems outdated):
> http://apc.communityconnect.com/
>
> Extension page:
> http://pecl.php.net/apc
>
> You can install it with the pear utility:
>
> pear install apc
>
> That will fetch the code, compile it against your installed
> version of php and install it.
>
>
> Curt
> --
> First, let me assure you that this is not one of those shady
> pyramid schemes you've been hearing about. No, sir. Our
> model is the trapezoid!
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


> -----Original Message-----
> From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> Sent: Wednesday, June 30, 2004 10:02 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] Problem with pspell module
>
> * Thus wrote Shannon Werb:
> > > -----Original Message-----
> > > From: Shannon Werb [mailto:shannonswerb.com]
> > > Sent: Wednesday, June 30, 2004 9:27 PM
> > > To: 'Curt Zirzow'; php-generallists.php.net
> > > Subject: RE: [PHP] Problem with pspell module
> > >
> > > > > (gdb)
> > > >
> > > > Disable php accelerator and see if it happens. You'll most
> > > likely need
> > > > to reinstall php accelerator.
> > > >
> > > > >
> > >
> > > SHIT, that did it...
> > > I didn't disable it in php.ini like I had thought, but once I did
> > > everything is fine...
> > > So why is this causing it?
> > >
> > > To re-install it maybe I just need to rebuild it?
> > >
> > > I don't remember if I had source on it, trying now...
> >
> >
> > OK, I found that PHPA is delivered pre-built with an .so for each
> > platform and has not been modified in a long time... Is
> this a bug in
> > PHPA from ZEND? Can I somehow get it to work? I would
> hate to have
> > to run with PHPA off to offer pspell...
>
> Well, you could use an alternative accelerater, one I would
> recomend is APC, and happens to be called "Alternative PHP Cache" :)
>
> The biggest advantage is that you can upgrade you're php
> without waiting for a third party to make the binary for you.
> And does come highly recommended by many.
>
> Home page (seems outdated):
> http://apc.communityconnect.com/
>
> Extension page:
> http://pecl.php.net/apc
>
> You can install it with the pear utility:
>
> pear install apc

Well I still fail at aclocal, permission denied, trying to figure out why so
I can try this package out. Fails through pear install and through manual
build???

>
> That will fetch the code, compile it against your installed
> version of php and install it.
>
>
> Curt
> --
> First, let me assure you that this is not one of those shady
> pyramid schemes you've been hearing about. No, sir. Our
> model is the trapezoid!
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


* Thus wrote Shannon Werb:
> > -----Original Message-----
> > From: Curt Zirzow [mailto:php-generalzirzow.dyndns.org]
> >
> > You can install it with the pear utility:
> >
> > pear install apc
>

> I tried, no luck:
> batt3# pear install apc
> downloading APC-2.0.4.tgz ...
> Starting to download APC-2.0.4.tgz (44,606 bytes)
> ............done: 44,606 bytes
> 35 source files, building
> running: phpize
> aclocal: not found
> `phpize' failed

well, crap.. this is getting more complicated than i had expected
:)

If you're willing to take this all the way, you're going to need to
install some dependencies (that I forgot to mention)

You're going to need the tools:

  autoconf (version 2.13)
  automake (version 1.4+)

Once those are installed, the phpize tool *should* work.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


Hi

I am using the domxml php extension for transforming XSLT, only I have
the problem that it doesnt take some of my <XSL:output> settings into
acocunt. For example when I set ident="yes" it doesn't ident the
output, and when I enabled the "omit-xml-declaration"-attribute this
<?xml> declaration is this availabe, which should not in the output.

The XSL:Output I use:

<xsl:output
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"

doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
        encoding="UTF-8"
        method="xml"
        indent="yes"
        omit-xml-declaration="yes"
    />

When I use the exact same XSLT file with php_xslt extension/Sablotron
the output is as expected both settings are taken into account. Does
anyone know if I am doing something wrong in my code? (see code below)
I think it's a bug in the php_xmldom extension, because when I use
xsltproc.exe (standalone version libxsl) the output is okay too.

I also tried it in PHP5RC3 using DOMXSLT (well, the DomDocument and
xsltprocessor classes) and in this one it also works as expected!

I am really clueless, anyone able to help me out?

The code I use for transforming the xml file can be find below:

//
// Process the XML file together with the XSLT file to generate the
apporiate XHTML page...
$xml = domxml_open_mem( $result ); // create a XmlDocument-object
with the return xml file...
if ( !$xml ) {
    die( "Error while parsing the XML document. Application has
aborted." );
}

// assign the XSLT stylesheet for this XML document...
$xsl = domxml_xslt_stylesheet_file( $xsl_file );

// process the XSLT stylesheet with the assigned XML document...
$result = NULL;
$result = $xsl->process( $xml );

if ( DEBUG_MODE ) {
    $result->dump_file( $output_file );
}
echo $result->dump_mem();
$xml->free(); // dispose the object

Yours,

Weyert de Boer (meweyert.com)

Check out my blog: http://www.weyert.com/

attached mail follows:


Hi

I am using the domxml php extension for transforming XSLT, only I have
the problem that it doesnt take some of my <XSL:output> settings into
acocunt. For example when I set ident="yes" it doesn't ident the
output, and when I enabled the "omit-xml-declaration"-attribute this
<?xml> declaration is this availabe, which should not in the output.

The XSL:Output I use:

<xsl:output
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"

doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
        encoding="UTF-8"
        method="xml"
        indent="yes"
        omit-xml-declaration="yes"
    />

When I use the exact same XSLT file with php_xslt extension/Sablotron
the output is as expected both settings are taken into account. Does
anyone know if I am doing something wrong in my code? (see code below)
I think it's a bug in the php_xmldom extension, because when I use
xsltproc.exe (standalone version libxsl) the output is okay too.

I also tried it witht he latest stable release of PHP v5.0 (PHP5RC3)
and this version the result is also as expected. I made use of
DomDocument and xsltprocessor as classes to do the transform, the
phpinfo() page mentions nothing about Sablotron so I suppose it's also
using libxsl (which is mentioned!). This page gives the same versions
as PHP4.0 extension.... Anyone happen to have any idea what might be
the problem? I am CLUELESS :(

The code I use for transforming the xml file can be find below:

//
// Process the XML file together with the XSLT file to generate the
apporiate XHTML page...
$xml = domxml_open_mem( $result ); // create a XmlDocument-object
with the return xml file...
if ( !$xml ) {
    die( "Error while parsing the XML document. Application has
aborted." );
}

// assign the XSLT stylesheet for this XML document...
$xsl = domxml_xslt_stylesheet_file( $xsl_file );

// process the XSLT stylesheet with the assigned XML document...
$result = NULL;
$result = $xsl->process( $xml );

if ( DEBUG_MODE ) {
    $result->dump_file( $output_file );
}
echo $result->dump_mem();
$xml->free(); // dispose the object

Yours,

Weyert de Boer (me_n0sp4mweyert.c0m)

Check out my blog: http://www.weyert.com/

attached mail follows:


Marek, Justin,

am I doing something wrong with the setup because I saw the logs and a
redeye.php was used to system("perl -xxxx") and was not supposed to.

On Thu, 01 Jul 2004 00:32:07 +0200, Marek Kilimajer <listskilimajer.net> wrote:
>
> Justin Patrin wrote --- napísal::
> > On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer <listskilimajer.net> wrote:
> >
> >>robert mena wrote --- napísal::
> >>
> >>>Hi,
> >>>
> >>>I host a few virtual domains in apache 2 and use php.
> >>>
> >>>The virtual domain is something like
> >>>
> >>><VirtualHost a.b.c.d:80>
> >>> ServerAdmin webmasterdomain.com
> >>> DocumentRoot /home/httpd/html/domain.com
> >>> ServerName www.domain.com
> >>> ErrorLog logs/domain.com-error_log
> >>> CustomLog logs/domain.com-access_log combined
> >>> ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> >>> <Directory /home/httpd/html/domain.com/>
> >>> AllowOverride AuthConfig Limit
> >>> php_admin_value doc_root "/home/httpd/html/domain.com/"
> >>> php_admin_flag safe_mode on
> >>> php_admin_value open_basedir "/home/httpd/html/domain.com:/tmp/"
> >>> </Directory>
> >>></VirtualHost>
> >>>
> >>>Recently I had a minor problem with a user that uploaded via ftp a php
> >>>script in his domain and this domain used exec/system etc to call
> >>>perl, read files.
> >>>
> >>>Shouldn't the settings above retrict such thing ?
> >>>
> >>
> >>no, this setting affects only php, not programs executed from php
> >
> >
> > If you have safe mode on, you can set various things to stop this. One
> > is safe_mode_exec_dir.
>
> Actualy you have to if you want to use any of the exec functions:
>
>

attached mail follows:


YES. You need to set the safe_mode_exec_dir path to be some path
without binaries. Such as: /etc, although that's a bad example. Make a
directory with only root write access and point that config option to
it.

On Wed, 30 Jun 2004 22:31:27 -0400, robert mena <robert.menagmail.com> wrote:
>
> Marek, Justin,
>
> am I doing something wrong with the setup because I saw the logs and a
> redeye.php was used to system("perl -xxxx") and was not supposed to.
>
>
> On Thu, 01 Jul 2004 00:32:07 +0200, Marek Kilimajer <listskilimajer.net> wrote:
> >
> > Justin Patrin wrote --- napísal::
> > > On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer <listskilimajer.net> wrote:
> > >
> > >>robert mena wrote --- napísal::
> > >>
> > >>>Hi,
> > >>>
> > >>>I host a few virtual domains in apache 2 and use php.
> > >>>
> > >>>The virtual domain is something like
> > >>>
> > >>><VirtualHost a.b.c.d:80>
> > >>> ServerAdmin webmasterdomain.com
> > >>> DocumentRoot /home/httpd/html/domain.com
> > >>> ServerName www.domain.com
> > >>> ErrorLog logs/domain.com-error_log
> > >>> CustomLog logs/domain.com-access_log combined
> > >>> ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> > >>> <Directory /home/httpd/html/domain.com/>
> > >>> AllowOverride AuthConfig Limit
> > >>> php_admin_value doc_root "/home/httpd/html/domain.com/"
> > >>> php_admin_flag safe_mode on
> > >>> php_admin_value open_basedir "/home/httpd/html/domain.com:/tmp/"
> > >>> </Directory>
> > >>></VirtualHost>
> > >>>
> > >>>Recently I had a minor problem with a user that uploaded via ftp a php
> > >>>script in his domain and this domain used exec/system etc to call
> > >>>perl, read files.
> > >>>
> > >>>Shouldn't the settings above retrict such thing ?
> > >>>
> > >>
> > >>no, this setting affects only php, not programs executed from php
> > >
> > >
> > > If you have safe mode on, you can set various things to stop this. One
> > > is safe_mode_exec_dir.
> >
> > Actualy you have to if you want to use any of the exec functions:
> >
> >
>
>
> !DSPAM:40e37582309468563245817!
>
>

--
paperCrane --Justin Patrin--

attached mail follows:


Can anyone explain the purpose of PECL to me besides what it says on the
web page (http://pecl.php.net)?

For instance, the XSLT extension has been moved to PECL, but the
experimental XSL functions are included by default with PHP5. This would
lead me to favor the XSL functions over the XSLT functions since they
would be available more. Does this imply one is "better" than the other?

Is this just simply the PHP-dev team wishing to not bundle as much with
PHP? Can I expect any decent ISP to support enabling an extension listed
in PECL?

Thanks for any info and have a good night!

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

attached mail follows:


* Thus wrote John W. Holmes:
> Can anyone explain the purpose of PECL to me besides what it says on the
> web page (http://pecl.php.net)?

PECL provides a way to keep a repository of all the extensions that
are built for php, while keeping the core php clean. So basically
its a code seperation.

>
> For instance, the XSLT extension has been moved to PECL, but the
> experimental XSL functions are included by default with PHP5. This would
> lead me to favor the XSL functions over the XSLT functions since they
> would be available more. Does this imply one is "better" than the other?

No. if you take, for example, tidy, you'll see that there is a PECL
version and one that comes bundled in your php code. They are
infact one in the same.

When php is released, it will include a selected few of the latest
stable PECL modules to include in the bundling of php.

IIRC, the goal is to keep the code base of php to a minimal and
include extensions that are favored (or widely used).

As far as XSLT and XSL, the one is prefered over the other.

>
> Is this just simply the PHP-dev team wishing to not bundle as much with
> PHP? Can I expect any decent ISP to support enabling an extension listed
> in PECL?

Hopefully ISP's will be able to support enabling extensions. There
has been more publicity towards the promotion toward PECL, and
hopefully it will be known more than it is presently.

The key really is education for the ISP, since this is relativly a
new thing. If we could convince them that a 'pear install peclpackage'
is much easier than a recompile of php with a 1000 character long
configure line :)

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


Curt Zirzow wrote:

Thanks for the explanation Curt. I'll do my best to educate! :)

> As far as XSLT and XSL, the one is prefered over the other.

What do you mean by this? XSLT is preferred over XSL? Any reasons why
you can point me to? Thanks again.

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

attached mail follows:


* Thus wrote John W. Holmes:
> Curt Zirzow wrote:
>
> Thanks for the explanation Curt. I'll do my best to educate! :)
>
> >As far as XSLT and XSL, the one is prefered over the other.
>
> What do you mean by this? XSLT is preferred over XSL? Any reasons why
> you can point me to? Thanks again.

I probably should have edited that part out, I only know that
through rumors. I'm unfamiliar with all the XSL(T) stuff.

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


On Thursday 01 July 2004 13:56, Curt Zirzow wrote:
> * Thus wrote John W. Holmes:
> > Curt Zirzow wrote:
> >
> > Thanks for the explanation Curt. I'll do my best to
> > educate! :)
> >
> > >As far as XSLT and XSL, the one is prefered over the
> > > other.
> >
> > What do you mean by this? XSLT is preferred over XSL?
> > Any reasons why you can point me to? Thanks again.
>
> I probably should have edited that part out, I only know
> that through rumors. I'm unfamiliar with all the XSL(T)
> stuff.

If my understanding is correct, it should NOT be XSLT vs XSL
--it shouldn't be :)

I guess it's more on the underlying library. (i.e. Sablotron
vs libxslt)

- E -

attached mail follows:


- Edwin - wrote:

> I guess it's more on the underlying library. (i.e. Sablotron
> vs libxslt)

Yeah, I guess that's what I meant; the "XSLT extension" versus the "XSL
extension" which basically comes down to the libraries powering them.

Anyone have any recommendations which one would be better to use in a
PHP5 project?

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

attached mail follows:


On Thursday 01 July 2004 15:49, John W. Holmes wrote:
> - Edwin - wrote:
> > I guess it's more on the underlying library. (i.e.
> > Sablotron vs libxslt)
>
> Yeah, I guess that's what I meant; the "XSLT extension"
> versus the "XSL extension" which basically comes down to
> the libraries powering them.
>
> Anyone have any recommendations which one would be better
> to use in a PHP5 project?

When the release for RC1 was announced, this was also
mentioned:

  "XML support has been completely redone in PHP 5, all
  extensions are now focused around the excellent libxml2
  library (http://www.xmlsoft.org/)."

I guess that includes libxslt so most probably you'd be
better off sticking with them ;)

- E -

attached mail follows:


Anybody know if imagerotate does lossless rotation on
jpeg's?

CSN

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


On Thursday 01 July 2004 12:20, CSN wrote:
> Anybody know if imagerotate does lossless rotation on
> jpeg's?

I don't know :) but maybe you can try this: Rotate an image
360°, save it under a different name, then examine it.
(filesize, quality, etc.)

- E -

attached mail follows:


David> http://dev.mysql.com/doc/mysql/en/Fulltext_Boolean.html
David> Quote:
David> They do not automatically sort rows in order of decreasing relevance.
David> You can see this from the preceding query result: The row with the highest relevance is
David> the one that contains ``MySQL'' twice, but it is listed last, not first.

Has anyone seen something like this work?

SELECT *, MATCH
(ST,BT,AT) AGAINST ('margaret atwood' IN BOOLEAN MODE) AS relevancy FROM ccl_main
WHERE MATCH
(ST,BT,AT) AGAINST ('margaret atwood' IN BOOLEAN MODE) ORDER BY relevancy DESC;

Thanks David.

John

attached mail follows:


John Taylor-Johnston wrote:

> David> http://dev.mysql.com/doc/mysql/en/Fulltext_Boolean.html
> David> Quote:
> David> They do not automatically sort rows in order of decreasing relevance.
> David> You can see this from the preceding query result: The row with the highest relevance is
> David> the one that contains ``MySQL'' twice, but it is listed last, not first.
>
> Has anyone seen something like this work?
>
> SELECT *, MATCH
> (ST,BT,AT) AGAINST ('margaret atwood' IN BOOLEAN MODE) AS relevancy FROM ccl_main
> WHERE MATCH
> (ST,BT,AT) AGAINST ('margaret atwood' IN BOOLEAN MODE) ORDER BY relevancy DESC;

Yes.

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

attached mail follows:


----- Original Message -----
From: "Chris W. Parker" <cparkerswatgear.com>
To: <php-generallists.php.net>
Sent: Thursday, July 01, 2004 3:33 AM
Subject: [PHP] sql statement help needed

> hello,
>
> i've had to change some of my tables to accomodate some greater
> flexibility in the application that uses it and because of this i need
> to go through and update all the records. i've done one table by hand
> and it had about 100 records and took about 20 minutes. but this next
> table has about 550 records and i really don't feel like doing this all
> by hand. i'm using MySQL Control Center to do this editing so i'd like
> to know if there's a single SQL statement i could use to update all the
> rows.
>
> here is a simple representation:
>
> products: (pay no attention to the poor choice in column names. this is
> a retrofitting and will be fixed in later versions.)
> +----------+---------------+
> | id | sequential_id |
> +----------+---------------+
> | PRDX-41 | 1 |
> | ABCX-01 | 2 |
> | FF00-11 | 3 |
> \/\/\/\/\/\/\/\/
> | ETC0-99 | 500 |
> +----------+---------------+
>
> the 'prod_sequential_id' column was added later to the
> products_categories table.
>
> products_categories:
> +-----+---------+--------------------+--------+
> | id | prod_id | prod_sequential_id | cat_id |
> +-----+---------+--------------------+--------+
> | 1 | PRDX-41 | 0 | 41 |
> | 2 | PRDX-41 | 0 | 15 |
> | 3 | ABCX-01 | 0 | 13 |
> | 4 | FF00-11 | 0 | 89 |
> \/\/\/\/\/\/\/\/
> | 610 | ETC0-99 | 0 | 41 |
> +-----+---------+--------------------+--------+
>
> so... as you can see, prod_sequential_id has all 0's in its column. it
> should contain the value of products.sequential_id WHERE
> products_categories.prod_id = products.id.
>
> the problem is that i'm not sure how to do this all in one statement (or
> if it's even possible):
>
> (i know the following does not work, but it's basically the logic i
> think i need.)
>
> UPDATE products_categories AS pc, products AS p
> SET pc.prod_sequential_id = p.id
> WHERE pc.prod_id = p.id;

why can't you do like this.
UPDATE products_categories set prod_sequential_id = prod_id

in one go.

Thanks
Binay

>
>
> thanks for your help.
> chris.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


you can execute system commands from within PHP using either system() ,
exec() or passthru().

Look at these functions and m sure will solve ur problem.

thanks
Binay

----- Original Message -----
From: "Syed Ghouse" <syedjinis.com>
To: "php mailinglists" <php-generallists.php.net>
Sent: Wednesday, June 30, 2004 6:15 PM
Subject: [PHP] suexec in php

Hi All

Is there any suexec function in php to create a unix user

or there is any function to create user dynamically from php code

Thanks in advance

Regards
syed

attached mail follows:


On Thursday 01 July 2004 01:38,
bclemimaginative-enterprises.com wrote:
> I want to make sure I'm correct in doing something. What
> do I need in order to perform the following:
>
> ---------------------------------
> Send an XML message to "something" at a website, have it
> load a database with the message, and return an
> acknowledgement.
> -------------------------------------------

SOAP?

Google -> XML SOAP

- E -

attached mail follows:


>
>> I want to make sure I'm correct in doing something. What
>> do I need in order to perform the following:
>>
>> ---------------------------------
>> Send an XML message to "something" at a website, have it
>> load a database with the message, and return an
>> acknowledgement.
>> -------------------------------------------
>
> SOAP?
>
> Google -> XML SOAP

If SOAP seems too complicated for your purposes, you can also have a
look at XML-RPC: http://www.xmlrpc.com

attached mail follows:


On Thu, 1 Jul 2004 09:13:16 +0200, Gabriel Birke <birkekontor4.de> wrote:
>
> >
> >> I want to make sure I'm correct in doing something. What
> >> do I need in order to perform the following:
> >>
> >> ---------------------------------
> >> Send an XML message to "something" at a website, have it
> >> load a database with the message, and return an
> >> acknowledgement.
> >> -------------------------------------------
> >
> > SOAP?
> >
> > Google -> XML SOAP
>
> If SOAP seems too complicated for your purposes, you can also have a
> look at XML-RPC: http://www.xmlrpc.com

Well, if you just use the PEAR SOAP packages, it's pretty easy to do.
No XML at all, it's basically an OO remote procedure call.

I have no idea about the SOAP extension on PHP5....

--
paperCrane --Justin Patrin--

attached mail follows:


On Thursday 01 July 2004 06:42, Red Wingate wrote:
> yep, as i said it was displayed correctly everywhere
> expect in the forms oh i might mention - Mozilla worked
> well but IE destroyed the data (only in textareas)

Just an idea... How about doing something like this:

Retrieve data from the db(utf?) then convert it to the
desired language encoding for the (HTML) page.

  ex. for EUC-JP

    db (utf) -> html (EUC-JP)

?

- E -
 

attached mail follows:


"Red Wingate" <redeyeerisx.de> wrote in message
news:20040630213354.91679.qmailpb1.pair.com...
> yep, as i said it was displayed correctly everywhere expect in the forms
> oh i might mention - Mozilla worked well but IE destroyed the data (only
> in textareas)

Do you run the utf8 decoded data through htmlentities()? What does the
source code say of the characters outside of the forms and inside the forms?
Could you maybe post some chars?

Regards, Torsten

attached mail follows:


"Raditha Dissanayake" <jabberraditha.com> wrote in message
news:40E2639E.6040501raditha.com...
> PHP is probably not the sbest technology for streaming content. Take a
> look at shoutcast or icecast or some other product like that which are
> custom made for this purpose.

SHOUTcast vs Icecast, which one is better and easier to setup?

Thanks.

attached mail follows:


Vincent Dupont wrote:
> Hi,
>
> could anyone help on this 'by reference' problem.
> I have 2 classes. The main class as a child class.
> The child class has properties (array)
> I would like to be able to manipulate the child's properties even after the child has been inserted into the main class.
>
> Does this make sense?
>
> I can do it with by getting a reference of the child class, then setting the property,like :
> $tmp = & $main->getChild(); //get a reference to the child object
> $tmp->setProperty("forth");//ok
> OR
> $main->setChildProperty("third"); //ok
>
> but Whyt can't I do it directly by calling a reference to the child, like in :
> $child1->setproperty("second"); //The property is not set or not displayed
> I know I need a reference to the child class that is within the maoin class, but HOW??
>
>
> Here is a complete example
>
>
> <?php
>
> class class1{
> var $child; //array
>
> function class1(){
> $this->properties = array();
> }
>
> //set the child object (class2)
> function & setChild($child){
> $this->child=$child;
> }
>
> //get the child object (class2), and call its setProperty method
> function setChildProperty($prop){
> $theChild = & $this->child;
> $theChild->setProperty($prop);
> }
>
> //return a reference to the child object
> function & getChild(){
> return $this->child;
> }
>
> //print the child object properties
> function display(){
> $this->child->toString();
> }
>
> }
>
>
> class class2{
> var $properties; //array
>
> function class2(){
> $this->properties = array();
> }
>
> function & setProperty($new_property){
> $this->properties[] = $new_property;
> }
>
> function & getProperty($index){
> return $this->properties[$index];
> }
>
> function toString(){
> print_r($this->properties);
> }
> }
>
>
> $main = & new class1();
>
> $child1 = & new class2();
> $child1->setproperty("first");//displayed
>
> $main->setChild($child1);
>
> $child1->setproperty("second"); //NOT DISPLAYED
> $main->setChildProperty("third"); //displayed
> $tmp = & $main->getChild(); //get a reference to the child object
> $tmp->setProperty("forth");//displayed
>
> $main->display();
> //output : Array ( [0] => first [1] => third [2] => forth )
> ?>

Hallo.

Thogh I am not really sure if this solves your problem,
but you should take a closer look at your method setChild().

Your parent-class has a property which you want to be an array.

[snip]
var $child; //array
[/snip]

But setChild() turns it into an object since the passed parameter
($child) is an object.

[snip]
$this->child=$child;
[/snip]

You should rather use something like array_push() or just
$this->child[] = $child;

Daniel

--
WWE e-commerce IT GmbH
Eiffestrasse 462, D-20537 Hamburg
Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50

attached mail follows:


Code I¹m using:

 session_cache_expire(0);
session_cache_limiter('private');
setcookie("cookie","",0,"/","iffinet.com",1);
session_start();

I use session_destroy(); in the logout function but the /tmp/sess_* file
does not get deleted. Also the cookie doesn¹t go away even though it is set
to expire at the end of the session. How can I get the /tmp/sess_* file to
go away along with the cookie?

This is a description of the problems I am having:
 

2 Problems:

1. User A's information will come up when user B logs in instead of user B's
information coming up when user B logs in... User A's information seems to
be cached in /tmp/sess_8ce0348cbf6704f96c2d8094e876ac3b. Any ideas how to
keep this from happening?

2. When a user exits Internet Explorer without logging off and invoking
session_destroy(); the user cannot log back in immediately. If I SSH into
the server and delete /tmp/sess_8ce0348cbf6704f96c2d8094e876ac3b then the
user can log back in.

Do I need to write a shell_exec routine to delete this file when the session
is destroyed? How can I tell from the server that the user has closed the
window?

Thanks again!

/T