Re: [PHP] Re: Using register_globals

2003-06-05 Thread Rouvas Stathis
Armand Turpel wrote:
> 
> > On Wed, 4 Jun 2003, Jay Blanchard wrote:
> > > [snip]
> > > Have register globals set to ON is one way of leaving your script open
> > > to being exploitable.
> > > [/snip]
> > >
> > > Please explain this, how does it make it more exploitable? I think that
> > > this is only true if the code is sloppy.
> >
> > Correct, if you properly initialize your internal variables there is
> > nothing insecure about leaving register_globals on.
> 
> But how you know, if you have a few tausends of php code lines, which part
> have some sloppy code. Nobody is perfect. In my opinion you should turn
> register_globals to off  if it's possible. It's much more secure.

I strongly disagree with that.
Consider the following code (assuming $foo is 'external' variable):

1: if ($foo=='yes') transfer_money_to_me();

2: if ($_GET['foo']=='yes']) transfer_money_to_me();

Why (2) is safer than (1)? Answer: It is *not*.

As Rasmus has correctly pointed out, the usage of "register_globals=off"
per se cannot be considered a security measure. If you don't initialize
and/or check *all* user-supported variables, you're dead. It's as simple
as that. Is it annoying? Maybe. Is it necessary? *yes*

Anyway, IIRC the whole issue of register_globals started when some guy
presented a paper named "A Study in Scarlet". A whole lot of issues
where presented in that paper, which in my opinion, have been blown
quite out of perspective. register_globals is one of them.

Oh boy, this is starting to look like an urban myth : "-Hey do you know
that register_globals=on is bad? - Really? -Yeah, and you know what? It
allows the bad boys do vil things".

-Stathis.

> 
> >
> > -Rasmus
> >

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



Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis

John,

sorry, don't know zip about IIS.
I got the info from
http://www.squirrelmail.org/wiki/InternetExplorerVersusSSL> though.
Maybe they have more to say...

-Stathis.

"1LT John W. Holmes" wrote:
> 
> Stathis,
> 
> Thanks for the tip. Any idea how to fix IIS regarding this issue?
> 
> ---John  Holmes...
> 
> ----- Original Message -
> From: "Rouvas Stathis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "1LT John W. Holmes" <[EMAIL PROTECTED]>
> Sent: Monday, October 07, 2002 2:00 PM
> Subject: Re: [PHP] File download doesn't work with SSL
> 
> > John,
> >
> > problem is broken HTTP/1.1 implementation of Internet Exploder.
> > Make your server downgrade to HHTP/1.0.
> > e.g. for apache:
> >
> > 
> > 
> >
> > #
> > # The following directives modify normal HTTP response behavior.
> > # The first directive disables keepalive for Netscape 2.x and
> > browsers that
> > # spoof it. There are known problems with these browser
> > implementations.
> > # The second directive is for Microsoft Internet Explorer 4.0b2
> > # which has a broken HTTP/1.1 implementation and does not properly
> > # support keepalive when it is used on 301 or 302 (redirect)
> > responses.
> > #
> > BrowserMatch "Mozilla/2" nokeepalive
> > BrowserMatch "MSIE" nokeepalive downgrade-1.0 force-response-1.0
> >
> > #
> > # The following directive disables HTTP/1.1 responses to browsers
> > which
> > # are in violation of the HTTP/1.0 spec by not being able to grok a
> > # basic 1.1 response.
> > #
> > BrowserMatch "RealPlayer 4\.0" force-response-1.0
> > BrowserMatch "Java/1\.0" force-response-1.0
> > BrowserMatch "JDK/1\.0" force-response-1.0
> >
> > 
> > 
> >
> > copy BrowserMatch line in SSL virtual server section too.
> >
> > -Stathis.
> >
> > Rasmus Lerdorf wrote:
> > >
> > > Nope, PHP does not send that.
> > >
> > > On Mon, 7 Oct 2002, 1LT John W. Holmes wrote:
> > >
> > > > I believe in miracles. I have searched Microsoft and the first link
> was
> > > > actually related to my problem...
> > > >
> > > > Okay, I found an IE issue where downloads over SSL will choke when you
> send
> > > > a no-cache header. It says to use a no-store cache-control header,
> instead.
> > > > I tried this:
> > > >
> > > > header("cache-control: no-store");
> > > > header("content-type: application/vnd.ms-excel; name='excel'");
> > > > header("content-disposition: attachment; filename=" . $filename .
> > > > ".xls");
> > > >
> > > > and I'm still getting the same thing. Is the no-cache cache-control
> header
> > > > sent automatically by PHP at all? I don't have one set explicitly in
> my
> > > > code.
> > > >
> > > > Any help is appreciated.
> > > >
> > > > ---John Holmes...
> > > >
> > > > - Original Message -
> > > > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> > > > To: "1LT John W. Holmes" <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Monday, October 07, 2002 10:08 AM
> > > > Subject: Re: [PHP] File download doesn't work with SSL
> > > >
> > > >
> > > > > Does it work with a different browser?  Smells like an IE bug to me.
> > > > >
> > > > > On Mon, 7 Oct 2002, 1LT John W. Holmes wrote:
> > > > >
> > > > > > Everyone,
> > > > > >
> > > > > > I've had a simple download script working where a user would click
> on a
> > > > link and the program would send word or excel headers instead of HTML.
> The
> > > > file would then be opened in the appropriate program and the user
> could
> > > > save/edit it.
> > > > > >
> > > > > > Now that we've loaded everything under SSL, it doesn't work.
> > > > > >
> > > > > > Here are the headers I send:
> > > > > >
> > > > > > header("content-type: application/vnd.ms-excel;
> name='excel'");
> > > > > > header("content-disposition: attachment; filename=" .
> $filename .
> > > > ".xls");
> > > > > >
> > > > > > Now, the pages in question are just regular HTML tables. If there
> is a
> > > > export2=excel in the URL, then these two additional headers will be
> sent.
> > > > The dialog to save/open the file pops up, but when you try to
> open/save the
> > > > file, IE says it cannot be found. If I put in a echo before these two
> > > > headers (or comment them out), the page is shown correctly as HTML, so
> the
> > > > code is correct.
> > > > > >
> > > > > > Are there any special headers I have to send to enable this file
> > > > download while under SSL, or is it something else I'm overlooking?
> > > > > >
> > > > > > Thanks for any help.
> > > > > >
> > > > > > ---John Holmes...
> > > > >
> > > >
> > >

-- 
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas

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




Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis

John,

problem is broken HTTP/1.1 implementation of Internet Exploder.
Make your server downgrade to HHTP/1.0.
e.g. for apache:




#
# The following directives modify normal HTTP response behavior.
# The first directive disables keepalive for Netscape 2.x and
browsers that
# spoof it. There are known problems with these browser
implementations.
# The second directive is for Microsoft Internet Explorer 4.0b2
# which has a broken HTTP/1.1 implementation and does not properly
# support keepalive when it is used on 301 or 302 (redirect)
responses.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE" nokeepalive downgrade-1.0 force-response-1.0

#
# The following directive disables HTTP/1.1 responses to browsers
which
# are in violation of the HTTP/1.0 spec by not being able to grok a
# basic 1.1 response.
#
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0




copy BrowserMatch line in SSL virtual server section too.

-Stathis.

Rasmus Lerdorf wrote:
> 
> Nope, PHP does not send that.
> 
> On Mon, 7 Oct 2002, 1LT John W. Holmes wrote:
> 
> > I believe in miracles. I have searched Microsoft and the first link was
> > actually related to my problem...
> >
> > Okay, I found an IE issue where downloads over SSL will choke when you send
> > a no-cache header. It says to use a no-store cache-control header, instead.
> > I tried this:
> >
> > header("cache-control: no-store");
> > header("content-type: application/vnd.ms-excel; name='excel'");
> > header("content-disposition: attachment; filename=" . $filename .
> > ".xls");
> >
> > and I'm still getting the same thing. Is the no-cache cache-control header
> > sent automatically by PHP at all? I don't have one set explicitly in my
> > code.
> >
> > Any help is appreciated.
> >
> > ---John Holmes...
> >
> > - Original Message -
> > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> > To: "1LT John W. Holmes" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Monday, October 07, 2002 10:08 AM
> > Subject: Re: [PHP] File download doesn't work with SSL
> >
> >
> > > Does it work with a different browser?  Smells like an IE bug to me.
> > >
> > > On Mon, 7 Oct 2002, 1LT John W. Holmes wrote:
> > >
> > > > Everyone,
> > > >
> > > > I've had a simple download script working where a user would click on a
> > link and the program would send word or excel headers instead of HTML. The
> > file would then be opened in the appropriate program and the user could
> > save/edit it.
> > > >
> > > > Now that we've loaded everything under SSL, it doesn't work.
> > > >
> > > > Here are the headers I send:
> > > >
> > > > header("content-type: application/vnd.ms-excel; name='excel'");
> > > > header("content-disposition: attachment; filename=" . $filename .
> > ".xls");
> > > >
> > > > Now, the pages in question are just regular HTML tables. If there is a
> > export2=excel in the URL, then these two additional headers will be sent.
> > The dialog to save/open the file pops up, but when you try to open/save the
> > file, IE says it cannot be found. If I put in a echo before these two
> > headers (or comment them out), the page is shown correctly as HTML, so the
> > code is correct.
> > > >
> > > > Are there any special headers I have to send to enable this file
> > download while under SSL, or is it something else I'm overlooking?
> > > >
> > > > Thanks for any help.
> > > >
> > > > ---John Holmes...
> > >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas

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




Re: [PHP] Need a Linux Guru!

2002-09-08 Thread Rouvas Stathis

Hi,

cd /etc/rc.d
locate the scripts reflecting the services you need to start at boot
do insserv for each script.
e.g.
insserv apache

That way, next time it boots these services will start.
Another way is to use the runtime-level editor of YaST2.

-Stathis.

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I'm setting up an Linux Server for codetesting an routing, but it takes
> about one week now to configure this s**t.
> 
> I could make the routing working. But some Daemons don't start at bootup.
> Such as Apache, Squid, MySQL and so on. The only way I'm able to surf in the
> Internet is to start Squid after booting manually from Commandline via SSH.
> 
> I've read somewhere that if the DNS isn't configured right squid is not able
> to run at bootup. So I believe it has something to do with this.
> 
> I need really help on this. So please write me if you are willing and able
> to help me.
> 
> I can give you the IP and the Root Acount information, or you describe me
> how i can solve my problem.
> 
> The Server runs SuSE 8.0.
> 
> Another Problem is, that I don't know where to setup or start the FTPD
> daemon.
> 
> Please, please Help
> 
> Sascha
> 
> --
> Sascha Braun
> ---
> Iltisstrasse 24
> 24143 Kiel
> 
> Postfach 6345
> 24124 Kiel
> 
> fon 0431 - 739 47 50
> hdy 0175 - 458 73 74
> 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas

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




Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

2002-07-22 Thread Rouvas Stathis

Hi all,

Just wanting to notify everyone that
the link for the PHP.4.2.2 download is broken.

-Stathis.


-- 
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas

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




Re: [PHP] base64_encode

2002-06-27 Thread Rouvas Stathis

Hi,

RFC2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format
of Internet Message Bodies
para 6.8 Base64 Content-Transfer-Encoding

ftp://ftp.ntua.gr/pub/docs/rfc/20xx/2045>

or your favorite RFC repository

-Stathis.


Gerard Samuel wrote:
> 
> Thanks
> 
> Andrew Braund wrote:
> 
> >Googling on "ascii table base64" got me;
> > http://ulla.mcgill.ca/arts150a/sample_exam.htm
> >a nice little table with the base 64 characters
> >(also got http://email.about.com/library/weekly/aa070201a.htm
> >which discribes base64)
> >
> >So in answer to your question the extras look like + and /.
> >26+26+10+2=64 sounds right.
> >
> >HTH
> >Andrew Braund
> >
> >
> >
> >>-Original Message-
> >>From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, 27 June 2002 11:15
> >>To: php-gen
> >>Subject: [PHP] base64_encode
> >>
> >>
> >>What other characters are possible from the output of base64_encode()
> >>except [A-Za-z0-9] ??
> >>Thanks
> >>
> >>--
> >>Gerard Samuel
> >>http://www.trini0.org:81/
> >>http://dev.trini0.org:81/
> >>
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
> 
> --
> Gerard Samuel
> http://www.trini0.org:81/
> http://dev.trini0.org:81/
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas

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




Re: [PHP] Re: SQL question, getting error and not sure why

2002-05-30 Thread Rouvas Stathis

I would use a trigger with a sequence, as in:

CREATE SEQUENCE _SEQ
 INCREMENT BY 1
 START WITH -99
 MAXVALUE 99
 MINVALUE -9
 CYCLE CACHE 5 ORDER;

create or replace trigger _autonum_ins
before insert on 
for each row
begin
   if :new. is null then
  select _seq.nextval into :new. from dual;
   end if;
end;

-Stathis.

Michael Sweeney wrote:
> 
> lol sorry, buttons are too close together in OE.
> 
> Anyon ehave a sugestion on a different way of doing what I want to do?
> Should be easy but i;m starting to get a headache from this (6-7 years not
> doing SQL doesn't help either)
> 

-- 
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas

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




Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Rouvas Stathis

Miguel Cruz wrote:
> 
> On Tue, 23 Apr 2002, Rouvas Stathis wrote:
> >Miguel Cruz wrote:
> >>
> >> On Mon, 22 Apr 2002, Leif K-Brooks wrote:
> >>> I use $formvar for form processing, I don't use the arrays.  This is how I
> >>> was taught to do it.  If my host upgrades to 4.2.0, my website is as good as
> >>> gone!  What am I supposed to do?!
> >>
> >> Fix them! This direction was first announced in 4Q1999; 2.5 years ought to
> >> be enough preparation time.
> >
> > No, it isn't! For anything that breaks old functionality, 'forever' is
> > not enough time.
> 
> It doesn't break old functionality. You just have to read the manual.
> Either leave your php.ini file untouched from your earlier installation
> (which is not a difficult undertaking), or override the global import
> feature on a site-by-site (or directory-by-directory) basis using your web
> server's configuration tools.

Yes, you could do that. But then again, what happens if you have to use
a piece of code that someone else has written that did not take the new
habbit into account? A number of interesting questions arise when you
have to operate that code alogn with newer one. Oh well, I guess
everything must change. After all, managing change is what we humans do,
don't we:-)

> 
> >> This change improves your security, so it'd be rational to be happy about
> >> it.
> >
> > No it doesn't. It just provides another excuse for lazy programming.
> > Nothing will save a lazy programmer or one that doesn't understand basic
> > principles.
> 
> I disagree. You cannot expect everyone to be perfect. The fact is that
> people make mistakes and go through a learning process, and anything that
> helps them through this is a benefit to all. Otherwise why have any
> security features at all? Firewalls encourage lazy programming! Locks and
> police encourage lazy domestic vigilance!

It's just that I don't see any security value in superglobals. If
someone does not know enough, he/she will make the same mistake with or
without superglobals (from security's point of view).
As far as "lazy programming", please refer to my previous post.

-Stathis.


> 
> And it's not lazy to assume a variable starts with value NULL, in a
> language with no storage declaration requirements and where the
> documentation says that variables start with value NULL. Just because C or
> Pascal require you to do something, doesn't mean that you are being lazy
> for not doing it elsewhere.
> 
> miguel

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




Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Rouvas Stathis

Erik Price wrote:
> 
> On Tuesday, April 23, 2002, at 06:48  AM, Rouvas Stathis wrote:
> 
> >> This change improves your security, so it'd be rational to be happy
> >> about
> >> it.
> >
> > No it doesn't. It just provides another excuse for lazy programming.
> > Nothing will save a lazy programmer or one that doesn't understand basic
> > principles.
> 
> While I agree that it doesn't improve security much if the coder was
> already using $HTTP_SESSION_VARS (which he/she should have been doing),
> it definitely does not promote lazy programming.  If anything,
> registering all the variables as global promotes lazy programming!
> Sure, it's convenient to be able to access a variable with this shorter
> method, but do you really want all of these different session variables,
> post variables, get variables, cookie variables, and server variables
> sharing the same global namespace/scope?  (I use that last term loosely.)

Preventing namespace pollution...now you convince me.

I used the term "lazy programming" without explaining what I meant,
hence the misunderstanding. I refer to "lazy programming" in the sense
of not properly and thoroughly checking user input, or as I believe, any
input from external to you code sources. If you don't do that I don't
believe that anything will save you. Promoting superglobals as a
security enhanchment, no I don't buy that.

-Stathis.

> 
> IMHO that is much lazier than using superglobals with register_globals
> off.
> 
> Erik
> 
> 
> 
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]

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




Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-23 Thread Rouvas Stathis

Miguel Cruz wrote:
> 
> On Mon, 22 Apr 2002, Leif K-Brooks wrote:
> > I use $formvar for form processing, I don't use the arrays.  This is how I
> > was taught to do it.  If my host upgrades to 4.2.0, my website is as good as
> > gone!  What am I supposed to do?!
> 
> Fix them! This direction was first announced in 4Q1999; 2.5 years ought to
> be enough preparation time.

No, it isn't! For anything that breaks old functionality, 'forever' is
not enough time.

> 
> This change improves your security, so it'd be rational to be happy about
> it.

No it doesn't. It just provides another excuse for lazy programming.
Nothing will save a lazy programmer or one that doesn't understand basic
principles.

-Stathis.

> 
> In any case, you can probably override it for your web space with a
> .htaccess directive, should you want to persist in your resistance to
> positive change.
> 
> Also, if you were taught to do it the $formvar way in the past year or so,
> you should find the person who taught you and tweak their nose.
> 
> miguel
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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




Re: [PHP] Has anyone written such a function?

2002-03-31 Thread Rouvas Stathis

See attached file.
-Stathis.

Boaz Yahav wrote:
> 
> Hi
> 
> I need a function that will get a date in the past and return how much
> time has passed since that date till now.
> The input to the function is a MySQL DATETIME format and the output
> should be something like :
> 
> 2 Years, 36 Days, 7 hours , 25 minutes
> 
> I would write it but I'm pretty sure it has been done.
> 
> thanks
> 
> Sincerely
> 
>   berber
> 
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php






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


Re: [PHP] where i get .so [dll] file of linux ?

2002-03-29 Thread Rouvas Stathis

You should ask your administrator to do it for you.
BTW, most propably you don't have to recompile Apache.

-Stathis.

PS: Please, forward only to the list and to individual emails (if it is
possible).

Prachait Saxena wrote:
> 
> Well i did not have the permission for both
> 
> edting of php.in and recompling the apache ???
> 
> Now what i can do ?
> 
> Prachait
> - Original Message -
> From: Rouvas Stathis <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, March 29, 2002 6:34 PM
> Subject: Re: [PHP] where i get .so [dll] file of linux ?
> 
> > I always recompile PHP when I need a new module, but searching the
> > mailling list archives I found the following post by Rasmus that says
> > dl() in *nix is possible. Well, if Rasmus says it can be done, he is
> > propably true:-)
> >
> > 
> >
> > Subject: Re: [PHP] Re: The future of PHP - accessory libraries
> >Date: Tue, 28 Aug 2001 11:01:34 -0700 (PDT)
> >From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> >  To: Michael Kimsal <[EMAIL PROTECTED]>
> >  CC: PHP General <[EMAIL PROTECTED]>
> >
> > > That's not allowing me to simply dl() an SO file, because I don't have
> the
> > > SO file to start with - that's what I was trying to get at.  If I have
> > > to reconfigure
> > > everything, there's not much point, I don't think.  Unless I'm missing
> > > something
> > > obvious.  I'd like to be able to simply have an SO file I can dl()
> > > without recompiling.
> > > Or are you saying that that configure statement WILL create an SO file
> > > that can
> > > be dl()ed later, without recompiling PHP?
> >
> > Exactly.  When you do ./configure --with-foo=shared; make
> > then modules/foo.so will appear magically and you can dl() that or load
> > it
> > using "extension=foo.so" in your php.ini.  You don't have to recompile
> > PHP.
> >
> > -Rasmus
> >
> > 
> >
> > -Stathis
> >
> > Prachait Saxena wrote:
> > >
> > > Hello
> > > But i would like to ues that modules that are not complied wit PHP
> > >
> > > i mean dynamic inclusion of modules... Is that possible ?
> > >
> > > Prachait
> > >
> > > - Original Message -
> > > From: Rouvas Stathis <[EMAIL PROTECTED]>
> > > Newsgroups: php.general
> > > To: Prachait Saxena <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Friday, March 29, 2002 1:43 AM
> > > Subject: Re: [PHP] where i get .so [dll] file of linux ?
> > >
> > > >
> > > > In Linux you don't use dl(). Instead, you compile PHP with the modules
> > > > you need and they are there when you call them.
> > > >
> > > > -Stathis.
> > > >
> > >
> > > > Prachait Saxena wrote:
> > > > >
> > > > > Hello
> > > > >
> > > > > I would like to Know, where Site or Link i can get complied .so
> [dll]
> > > files.
> > > > > of linux
> > > > >
> > > > > as i have php_sockets.dll which works very fine in Windows
> enviroment.
> > > but
> > > > > on linux
> > > > >
> > > > > Can you suggest any other option for this.
> > > > >
> > > > > I am using  dl("php_sockets.dll"); while writing my code for windows
> and
> > > > > what to same for Linux
> > > > >
> > > > > --
> > > > > Bye, and  Have a nice day.
> > > > >
> > > > > Prachait Saxena

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




Re: [PHP] where i get .so [dll] file of linux ?

2002-03-29 Thread Rouvas Stathis

I always recompile PHP when I need a new module, but searching the
mailling list archives I found the following post by Rasmus that says
dl() in *nix is possible. Well, if Rasmus says it can be done, he is
propably true:-)



Subject: Re: [PHP] Re: The future of PHP - accessory libraries
   Date: Tue, 28 Aug 2001 11:01:34 -0700 (PDT)
   From: Rasmus Lerdorf <[EMAIL PROTECTED]>
 To: Michael Kimsal <[EMAIL PROTECTED]>
 CC: PHP General <[EMAIL PROTECTED]>

> That's not allowing me to simply dl() an SO file, because I don't have the
> SO file to start with - that's what I was trying to get at.  If I have
> to reconfigure
> everything, there's not much point, I don't think.  Unless I'm missing
> something
> obvious.  I'd like to be able to simply have an SO file I can dl()
> without recompiling.
> Or are you saying that that configure statement WILL create an SO file
> that can
> be dl()ed later, without recompiling PHP?

Exactly.  When you do ./configure --with-foo=shared; make
then modules/foo.so will appear magically and you can dl() that or load
it
using "extension=foo.so" in your php.ini.  You don't have to recompile
PHP.

-Rasmus



-Stathis

Prachait Saxena wrote:
> 
> Hello
> But i would like to ues that modules that are not complied wit PHP
> 
> i mean dynamic inclusion of modules... Is that possible ?
> 
> Prachait
> 
> - Original Message -
> From: Rouvas Stathis <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: Prachait Saxena <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, March 29, 2002 1:43 AM
> Subject: Re: [PHP] where i get .so [dll] file of linux ?
> 
> >
> > In Linux you don't use dl(). Instead, you compile PHP with the modules
> > you need and they are there when you call them.
> >
> > -Stathis.
> >
> 
> > Prachait Saxena wrote:
> > >
> > > Hello
> > >
> > > I would like to Know, where Site or Link i can get complied .so [dll]
> files.
> > > of linux
> > >
> > > as i have php_sockets.dll which works very fine in Windows enviroment.
> but
> > > on linux
> > >
> > > Can you suggest any other option for this.
> > >
> > > I am using  dl("php_sockets.dll"); while writing my code for windows and
> > > what to same for Linux
> > >
> > > --
> > > Bye, and  Have a nice day.
> > >
> > > Prachait Saxena
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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




Re: [PHP] Loading Images

2002-03-28 Thread Rouvas Stathis

As long as preventing users to download a picture you display, my .02Eu
opinion is that is is a fruitless task. A determined user will _always_
find a way to store the picture you send him. After all, you do send
data to him, therefore the data can be manipulated at will:-)

As far as some code to do it, see attached souce.
In the attached source, modify directories as needed.
Invoke with : php -q gif2function.php > test.php
Then point your browser to test.php.

warning: Select a dir with few images. If yopu want to know what happens
when you overdo it, goto
http://helios.mm.di.uoa.gr/~rouvas/giflib.php> to see what happened
to me!

tested only on linux.

Kevin Stone wrote:
> 
> Huh.. hmm.. maybe this is possible after all.  I'll have to test that
> out when I get home.  If it works it could sure save me a headache or
> two.
> 
> By the way most counters/trackers that I've seen are just simple
> javascripts which gather the browser information then request a tiny
> image from the server with the information in the URL string.  This all
> goes into the server's standard log file.  Then to count the hit the
> server just reads the log file and parses out the values in the URL
> string.  But I guess it's the same basic principle.
> 
> -Kevin
> 
> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 5:24 PM
> To: php
> Subject: Re: [PHP] Loading Images
> 
> U, is that correct?
> 
> I thought (although never tried) that you could reference an image as
> 
>  or simular, in which case the headers and
> everything else CAN be sent in the image tag, which is embeded in a HTML
> page -- isn't that how they do counters etc etc??
> 
> At the moment, I'm just storing my images in my file system, and storing
> the
> URLs in my database (as discussed by someone else in this thread), which
> works fine, as long as nobody deletes the image without deleting the URL
> from the DB.
> 
> On the topic of preventing users from saving images, the attempts are
> futile, because they can also just look at your source to DL the image
> from
> it's URL.
> 
> One thing I have seen work instead of disabling right-click is to have a
> clear layer (DIV) above the whole page, which (for me) prevents me from
> selecting text + images from below.  Although I don't know how reliable
> this
> is.
> 
> Justin French
> -
> http://indent.com.au
> http://soundpimps.com
> -
> 
> on 27/03/02 10:16 AM, Kevin Stone ([EMAIL PROTECTED]) wrote:
> 
> > It is quite easy to store images in a database and display them on the
> > screen.  You can find tutorials about this online (sorry I don't have
> > any direct links).  There are also numerous FREE scripts pre-written
> > that you can integrate into your site, or use to learn how to do this
> > yourself.
> >
> > There is a catch however... and that is you will not be able to
> display
> > anything else along with those images because special content headers
> > must be sent to let the browser know what kind of data it's receiving.
> > Is it a JPEG, GIF or PNG?  If the headers are not sent, or the wrong
> > headers are sent, the image will either not display or the user will
> see
> > endless rows of junk text spewed onto the screen (the binary data in
> > ASCII form!!).
> >
> > So this method will only work if you want to display the images in a
> > frame, one at a time, and by them selves.  You won't be able to
> > intermingle HTML so forget about doing dynamic menus with this method.
> >
> > The way these dynamic sites work is by storing the paths to each image
> > in the database rather than the images themselves... so you're back to
> > the file system solution.
> >
> > Anyway I hope this helps answer some of the questions you were having
> > about this method.  :)
> >
> > -Kevin
> >
> > -Original Message-
> > From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 26, 2002 2:45 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Loading Images
> >
> > I wasn't so much concearned about security of users grabbin pics. I am
> > more trying to learn how these people load there menus dynamically and
> > pics dynamically. Do you have any links to pages or code that describe
> > how
> > to make a link in the db to pics on my filesystem?
> > Thanks.
> > -Chris
> >
> > On Tue, 26 Mar 2002 [EMAIL PROTECTED] wrote:
> >
> >> At 26.03.2002  12:47, you wrote:
> >>>
> >>> I don't have any code for this, but I'm hoping someone can point me
> > in the
> >>> right direction. I want to load images or navigation menus
> > dynamically. Is
> >>> it possible to build a database of images and then use php to
> display
> >>> them? Or something along these lines. I know this must be possible,
> >>> becuase I see sites that do something like this, and I cant seem to
> > right
> >>> click the image and save it. Does this make any sense?
> >>> Thanks.
> >>> -Chris
> >> Storin

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-28 Thread Rouvas Stathis

Prachait Saxena wrote:
> 
> Hello
> 
> I would like to Know, where Site or Link i can get complied .so [dll] files.
> of linux
> 
> as i have php_sockets.dll which works very fine in Windows enviroment. but
> on linux
> 
> Can you suggest any other option for this.
> 
> I am using  dl("php_sockets.dll"); while writing my code for windows and
> what to same for Linux

In Linux you don't use dl(). Instead, you compile PHP with the modules
you need and they are there when you call them.

-Stathis.

> 
> --
> Bye, and  Have a nice day.
> 
> Prachait Saxena

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




Re: [PHP] if command

2002-01-28 Thread Rouvas Stathis

> Someone knows how to use the IF command ?
> 
> I need two expressions as such as IF (exp1 AND exp2) ...
> 
> 
> computer programmer
 ^

A "computer programmer" not knowing the "IF command"?
Really, what computer do you program?

-Stathis.

PS: Sorry, I just can't resist. It's ok for someone to asks questions,
but in this
case the axiom "the only stupid question is the one not asked"
simply does 
not stand.

-- 
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] Suggestions for the next php

2001-12-21 Thread Rouvas Stathis

Manuel Lemos wrote:
> 
> > > For example, multi-threading. Looking at the PHP sources, I can see this
> > > would be fairly easy to implement on some most server modules. Before I
> > > get fried by people for suggesting this, I know there are many functions
> > > that are not thread safe, such the ob_* functions. But as far as I can
> > > see threading would be well suited to some PHP tasks...
> 
> You can use the pcntl extension if you are using any (fork capable)
> Unix.

Can you elaborate on the "pcntl extension", please?
What is it?
How do you use it?

Thank you,
-Stathis.

-- 
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] Need PHP 4.0.3pl1

2001-12-13 Thread Rouvas Stathis

For the linux version, go to:

http://glaykos.mm.di.uoa.gr/~rouvas/tmp/inet/linux/php/php-4.0.3pl1-orig.tar.gz>

-Stathis.

Gaylen Fraley wrote:
> 
> This build is not on php.net. I need both the linux source and the windows
> binary for testing.  Does anyone know where I can obtain these?
> 
> --
> Gaylen
> [EMAIL PROTECTED]
> Home http://www.gaylenandmargie.com
> PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite
> 
> --
> 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]

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

2001-12-10 Thread Rouvas Stathis

Start php with -q, eg: php -q script.php

-Stathis.

Dan McCullough wrote:
> 
> I am setting up a shell script to provide a menu for some tasks that our server 
>admin would like
> to do via script rather then vi'ing the file, now I am almost finished but I would 
>like to get rid
> of this ugly part of the output.
> 
> X-Powered-By: PHP/4.0.4pl1
> Content-type: text/html
> 
> Is there away that I can get the echo to stay off for that part.
> 
> dan

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

2001-12-08 Thread Rouvas Stathis

Browsers discard whatever tags they don't understand.
They don't grok WDDX tags, so only the string is displayed.
View source and it all should be there.

-Stathis.

con pulpa wrote:
> 
> Hi EVERYONE!
> 
> I'm running RH7.1 with PHP version 4.04pl1 and
> Apache1.3.19-5. A simple php script 
> tells me that the library is configured with the
> '--enable-wddx' and '--with-xml' options.
> 
> I'm using netscape4.76 and konqueror(kde 2.1.1) browser.
> 
> Now running a slightly more complicated script from one of
> the online tutorials
> 
>  $one_var = "I was serialized on 2001-12-08";
> print wddx_serialize_value($one_var);
> ?>
> 
> I find that it produces no output at all!
> There are no errors reported in the log files...
> 
> Then, if I put an echo statement before the print:
>  echo "==>WDDX Test";
> $one_var = "I was serialized on 2001-12-08";
> print wddx_serialize_value($one_var);
> ?>
> 
> I get the following output.
> ==>WDDX Test I was serialized on 2001-12-08
> 
> I'm not too concerned about this wierd behaviour;
> However, I was expecting this code to produce something
> dressed in XML:
> 
> 
> 
> I was serialized on 2001-12-08
> 
> 
> 
> Can anyone help me?
> 
> Thanks, Conpulpa

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

2001-09-30 Thread Rouvas Stathis

Search the archives for the following e-mail :

Subject: RE: [PHP3] Checking screen resolution and/or window size
Date: Wed, 23 Feb 2000 09:54:05 -0500
From: "Michael Geier" <[EMAIL PROTECTED]>

I think this will cover your questions.

-Stathis.




Nikola Veber wrote:
> 
> Hi !
> 
> I would like to know if it is possible to determine the screen
> resolution of the visitor using php ?
> 
> Thanks
> Nikola
> 
> --
> 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]

-- 
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] WDDX and binary data

2001-09-15 Thread Rouvas Stathis

Try base64_(en|de)code.

-Stathis.

Christopher Heschong wrote:
> 
> Despite the fact that PHP's WDDX functions don't support a "binary" type,
> most binary data comes through just fine, and in fact, the WDDX serialize
> function can encode certain types of binary data, such as a null
> character: 
> 
> But the deserialize process dos not retain these characters.  Is this a
> bug in PHP's implementation of WDDX, or is there perhaps a workaround
> available?
> 
> Here's some example code that shows a WDDX packet of encoded binary data.
> The packet itself contains all of the binary data, including null
> characters, etc.  The deserialized() string, however, does not.
> 
>  
> $fp = fopen("http://www.php.net/gifs/php_logo.gif","r");
> while (!feof($fp)) {
>  $str .= fread($fp, 4096);
> }
> 

$str = base64_encode($str);

> $packet = wddx_serialize_value($str, "php_logo.gif");
> 
> Header("Content-Type: image/gif");
> 
> $str = wddx_deserialize($packet);

$str = base64_decode($str);

> 
> echo $str;
> 
> ?>
> 
> --
> /chris/
> 
> --
> 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]

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

2001-09-06 Thread Rouvas Stathis

Jordan Elver wrote:
> 
> Hi,
> Could any one explain what this statemnt means?
> 
> $i = (!$i)?"0":$i;

if (!$i) then
  $i = "0";
else
  $i = $i;

-Stathis

> 
> Thanks,
> 
> Jord
> 
> --
> Jordan Elver
> Web Developer
> The InternetOne UK Ltd
> 
> --
> 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]

-- 
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] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Rouvas Stathis

Try vim instead of vi.

-Stathis.

Ben Bleything wrote:
> 
> I can't speak for terminal usage... I use pico and or vi... pico on
> console, vi over ssh.
> 
> When working locally, I use nedit (www.nedit.org) on *nix (with custom
> PHP syntax highlighting) and EditPlus on windows.
> 
> Good luck,
> Ben
> 
> -Original Message-
> From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 7:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sorry... but a good PHP editor for Linux/Unix
> 
> Sorry about talking about this subject, but a really wanna know if any
> one
> nows a good editor for linux/unix.
> 
> Sometimes I need to work by SSH and I have to use the program pico.
> 
> I can't use vi, to use it, i'll need to see the manual!!
> 
> thanks,
> 
> Augusto

-- 
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] Ocifreestatement() and shared memory error?

2001-07-19 Thread Rouvas Stathis

Michael Champagne wrote:
> 
> We recently ran into Oracle error ORA-04031 which has something to do with
> your shared memory being filled up or thrashed (I'm not a DBA so I'm vague on
> this.)  I noticed that a lot of the PHP code on the site is not using
> ocifreestatement() or ocilogoff() after executing.  Could this have caused
> this problem?  We restarted the database and now everything seems to work ok.

Always close Ora connections or else ...

-Stathis.

> We ran into the error inserting some records into a table with some triggers
> on it.
> 
> Thanks in advance,
> Mike

-- 
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: AW: [PHP] Oracle question

2001-07-10 Thread Rouvas Stathis

PL/SQL code for an Oracle trigger that will auto-increment specified
field:


create or replace trigger 
before insert on 
for each row
begin
   if :new. is null then
  select .nextval into :new. from dual;
   end if;
end;

You have to create a sequence first. Example:

CREATE SEQUENCE 
 INCREMENT BY 1
 START WITH -99
 MAXVALUE 99
 MINVALUE -9
 CYCLE CACHE 5 ORDER;

Of course, replace values in  as needed.

If you use the aboce code verbatim, you will a field incrementing from
-9... until 9 and then it will begin all over again.

-Stathis.



Sebastian Stadtlich wrote:
> 
> oracle does not have an autoincrement.
> it has the more powerfull concept of TRIGGERS
> unfortunatelly you have to write them in pl/sql or java...
> have a look on the net for oracle trigger tutorial or
> you can
> find a super oracle-feature-documentation here :
> http://conf.php.net/oci2
> http://conf.php.net/pres/slides/oci/paper.txt
> 
> which features a small non-trigger-work-around
> 
> sebastian
> 
> > -Urspr&oacgr;ngliche Nachricht-
> > Von: Duy B [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 10. Juli 2001 04:36
> > An: [EMAIL PROTECTED]
> > Betreff: [PHP] Oracle question
> >
> >
> > Dear all,
> > If i want to use id field in Oracle database, how can i do?
> > For example, in MySQL
> > create table test (
> > id int not null auto-increment primary key,
> > ten char(10));
> >
> > So that, when i insert a new row into MySQL database, id
> > increases by 1.
> >
> > But in Oracle i couldn't use as that.
> > Somebody could help me.
> > Thanks you all,
> > BaoDuy
> >

-- 
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] Patch for PHP 4.0.6 memory limit problem posted

2001-07-02 Thread Rouvas Stathis

> 
> This is the official PHP 4.0.6 version. After line 448 insert:
> 
> #if MEMORY_LIMIT
> AG(allocated_memory) -= REAL_SIZE(ptr->size);
> #endif
> 
> If you'll take a good look at the diff file the first half is what you're
> supposed to have and the second half is what it's supposed to change to.
> You probably missed the second half.

Thank you very much for your suggestion. I followed it.

-Stathis.

> 
> Andi

-- 
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] Patch for PHP 4.0.6 memory limit problem posted

2001-07-01 Thread Rouvas Stathis

Andi Gutmans wrote:
> 
> At 10:17 PM 7/1/2001 +0300, Rouvas Stathis wrote:
> >It is indeed strange, since in the sources I have (downloaded about a
> >week ago), I already have the exact source that the patch presents
> >(without the lines prefixed with +).
> >I'm looking at $PHPHOME/Zend/zend_alloc.c file.
> >
> >Am I to suppose that there is no need to patch anything?
> 
> The official package of PHP 4.0.6 (http://www.php.net/downloads.php) does
> not have this patch. Are you sure you are looking at the release version?
> Maybe you are using a snapshot or CVS version?

I do not use the CVS version, mainly because I do not know how to handle
CVS :-)
These are the lines from $PHPHOME/Zend/zend_alloc.c that I have.


443 if (1 || clean_cache) {
444 zend_mem_header *ptr;
445 
446 for (i=1; i

What do you think?

-Stathis.
PS: Thank you for your time. I know how precious it is.

> 
> Andi

-- 
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] Patch for PHP 4.0.6 memory limit problem posted

2001-07-01 Thread Rouvas Stathis

It is indeed strange, since in the sources I have (downloaded about a
week ago), I already have the exact source that the patch presents
(without the lines prefixed with +).
I'm looking at $PHPHOME/Zend/zend_alloc.c file.

Am I to suppose that there is no need to patch anything?

-Stathis.

Andi Gutmans wrote:
> 
> Very strange. I just checked it and it worked for me with GNU patch 2.5.
> Do you know how to apply it yourself? You just need to add those three
> lines (without the leading +).
> 
> Andi
> 
> At 07:48 PM 7/1/2001 +0300, Rouvas Stathis wrote:
> >Patch cannot be successfully applied. Any suggestions ?
> >
> >Output from patch application:
> >
> >
> >rouvas@aspasia(12) /opt/ide2/rouvas/tmp/php-4.0.6/Zend >patch -i
> >patch.zend_alloc.c
> >patching file zend_alloc.c
> >Hunk #1 FAILED at 446.
> >1 out of 1 hunk FAILED -- saving rejects to file zend_alloc.c.rej
> >rouvas@aspasia(13) /opt/ide2/rouvas/tmp/php-4.0.6/Zend >cat
> >zend_alloc.c.rej
> >***
> >*** 446,451 
> >  for (i=1; i >  for (j=0; j >  ptr = (zend_mem_header *)
> >AG(cache)[i][j];
> >  REMOVE_POINTER_FROM_LIST(ptr);
> >  free(ptr);
> >  }
> >--- 446,454 
> >  for (i=1; i >  for (j=0; j >  ptr = (zend_mem_header *)
> >AG(cache)[i][j];
> >+ #if MEMORY_LIMIT
> >+AG(allocated_memory) -=
> >REAL_SIZE(ptr->size);
> >+ #endif
> >  REMOVE_POINTER_FROM_LIST(ptr);
> >  free(ptr);
> >  }
> >
> >
> >
> >-Stathis.
> >
> >Andi Gutmans wrote:
> > >
> > > There is a bug in PHP 4.0.6 which affects PHP users who use the memory
> > > limit option. (i.e. developers who include --enable-memory-limit in their
> > > configure line).
> > > The patch is posted at http://www.php.net/downloads.php. If you don't use
> > > this option there is no need for you to download and apply the patch.
> > >
> > > Andi

-- 
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] Patch for PHP 4.0.6 memory limit problem posted

2001-07-01 Thread Rouvas Stathis

Patch cannot be successfully applied. Any suggestions ?

Output from patch application:


rouvas@aspasia(12) /opt/ide2/rouvas/tmp/php-4.0.6/Zend >patch -i
patch.zend_alloc.c 
patching file zend_alloc.c
Hunk #1 FAILED at 446.
1 out of 1 hunk FAILED -- saving rejects to file zend_alloc.c.rej
rouvas@aspasia(13) /opt/ide2/rouvas/tmp/php-4.0.6/Zend >cat
zend_alloc.c.rej 
***
*** 446,451 
 for (i=1; isize);
+ #endif
 REMOVE_POINTER_FROM_LIST(ptr);
 free(ptr);
 }



-Stathis.

Andi Gutmans wrote:
> 
> There is a bug in PHP 4.0.6 which affects PHP users who use the memory
> limit option. (i.e. developers who include --enable-memory-limit in their
> configure line).
> The patch is posted at http://www.php.net/downloads.php. If you don't use
> this option there is no need for you to download and apply the patch.
> 
> Andi
> 
> --
> 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]

-- 
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] --with-zlib/--with-zlib-dir and --enable-xslt

2001-06-28 Thread Rouvas Stathis

Richard Lynch wrote:
> 
> > Been trying to compile PHP.4.0.6 with --with-zlib directive and failing.
> > Using --with-zlib-dir, however succeeds.
> >
> > Does anyone knows the difference between the two ?
> 
> --with-zlib-dir works and --with-zlib doesn't?
> :-) :-) :-)
> 
> If you got it to work, leave it alone :-)

Sure, if it works why bother? Still, isn't it nice the way configuration
directives change along versions? It helps keeping one fit :-)

> 
> > Also, in a related problem, if I try with --enable-xslt I get the
> > following results:
> >
> > checking for XML support... yes
> > checking external libexpat install dir... no
> > checking whether to enable xslt support... yes
> > checking whether to enable the XSLT Sablotron backend... no
> > checking libexpat dir for Sablotron XSL support... no
> > configure: error: not found. Please re-install the  distribution
> 
> I'm guessing that PHP is not finding one or more of libexpat and/or
> Sablotron, whatever those are, so while you asked for XSLT, whatever that
> is, you can't have it bacause PHP can't find the stuff it needs to provide
> it.
> 
> See if there's some --with-libexpat-dir or --with-sablotron-dir (or similar)
> directives you can use to tell configure where to find the stuff it needs.

Actually, I don't really need xslt functinality. I just saw it there and
thought I'd give it a try. 
> 
> Oh yeah:  Add this to the http://bugs.php.net database, since the error
> message is just a little bit bogus, eh?

The configure error was actually the source of my discomfort.
I'll follow your suggestion, thanks.

-Stathis.

> 
> --
> WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> 
> --
> 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]

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




[PHP] --with-zlib/--with-zlib-dir and --enable-xslt

2001-06-26 Thread Rouvas Stathis

Hi,

Been trying to compile PHP.4.0.6 with --with-zlib directive and failing.
Using --with-zlib-dir, however succeeds.

Does anyone knows the difference between the two ?

Also, in a related problem, if I try with --enable-xslt I get the
following results:

checking for XML support... yes
checking external libexpat install dir... no
checking whether to enable xslt support... yes
checking whether to enable the XSLT Sablotron backend... no
checking libexpat dir for Sablotron XSL support... no
configure: error: not found. Please re-install the  distribution

???

-Stathis.

-- 
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] Oracle Database keeps disconnecting - or something

2001-06-25 Thread Rouvas Stathis

"Thies C. Arntzen" wrote:
> 
> On Sun, Jun 24, 2001 at 09:50:05PM +0300, Rouvas Stathis wrote:
> > "Thies C. Arntzen" wrote:
> > >
> > > On Fri, Jun 22, 2001 at 09:16:08PM +0300, Rouvas Stathis wrote:
> > > > Do you experience any other sort of problems other than those warnings?
> > > > I mean, is anything wrong with the data? Normally, nothing should be
> > > > wrong.
> > > >
> > > > I have seen the same messages (especially the "service handle not
> > > > intitialized" one) in my server too.
> > > > I have traced it to attemtps to close an already closed connection, as
> > > > in
> > > >
> > > > $cone = OciLogon(...);
> > > > ...stuff...
> > > > OciLogout($cone);
> > > > ...stuff...
> > > > OciLogout($cone);
> > >
> > > believe me - this is not the cause of the message.
> >
> > any ideas?
> 
> what do you mean? i simply _know_ that calling "OciLogout" will
> not cause the "failed to roll.." message - that's all i said.

Agreed. OciLogout is not the cause of the msg.
What I meant was, what do you think is causing such messages? 

-Stathis.

-- 
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] Oracle Database keeps disconnecting - or something

2001-06-24 Thread Rouvas Stathis

"Thies C. Arntzen" wrote:
> 
> On Fri, Jun 22, 2001 at 09:16:08PM +0300, Rouvas Stathis wrote:
> > Do you experience any other sort of problems other than those warnings?
> > I mean, is anything wrong with the data? Normally, nothing should be
> > wrong.
> >
> > I have seen the same messages (especially the "service handle not
> > intitialized" one) in my server too.
> > I have traced it to attemtps to close an already closed connection, as
> > in
> >
> > $cone = OciLogon(...);
> > ...stuff...
> > OciLogout($cone);
> > ...stuff...
> > OciLogout($cone);
> 
> believe me - this is not the cause of the message.

any ideas?

-Stathis.

> tc

-- 
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] Oracle Database keeps disconnecting - or something

2001-06-22 Thread Rouvas Stathis

Do you experience any other sort of problems other than those warnings?
I mean, is anything wrong with the data? Normally, nothing should be
wrong.

I have seen the same messages (especially the "service handle not
intitialized" one) in my server too.
I have traced it to attemtps to close an already closed connection, as
in

$cone = OciLogon(...);
...stuff...
OciLogout($cone);
...stuff...
OciLogout($cone);

Other than filling the logs, there doesn't seem to be any other problem.
In my apps, everything works as it should.
I tend to simply ignore them:-)

-Stathis.

"Taylor, Stewart" wrote:
> 
> Hello,
> 
> Just in case anyones got any ideas.
> 
> I've been testing an application for a few weeks on a test server without
> any problems.
> After releasing it onto the live server, which is - according to the
> administrator - setup exactly the same as the test server I've been running
> into problems.
> 
> Apparently the database seems to be disconnecting randomly see log file
> extract below.
> 
> I already had a application on the live server which has been working
> perfectly for a year or so.  Now the new application is live it is having
> the same problem as well.
> 
> The test version of the already live application is also on the same test
> server and both databases on live and test are setup exactly the same way.
> 
> 
> My administrator tells me that we have a license for unlimited connections
> to the database etc..
> 
> My setup us
> OCI8 Revision 1.96
> Oracle Version 8.1
> Apache Apache/1.3.11
> Redhat Linux 6.2
> php 4.0.2
> I'm also using phplib 7.2c to manage authentication/sessions and database
> access.
> 
> 
> I would be very grateful if anyone has got any suggestions
> 
> 
> Regards,
> 
> -Stewart
> 
> 
> PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
> logged on
>  in Unknown on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
> logged on
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
> service handle not initialized
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
> service handle not initialized
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
> logged on
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
> service handle not initialized
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
> service handle not initialized
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
> logged on
>  in /usr/local/apache/phplib/session.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
> logged on
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
> service handle not initialized
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
> service handle not initialized
>  in /usr/local/apache/phplib/auth.inc on line 0
> PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
>

-- 
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] PHP + Oracle + OCIPLogon

2001-06-22 Thread Rouvas Stathis

"Thies C. Arntzen" wrote:
> 
> On Fri, Jun 22, 2001 at 02:47:39AM +0300, Rouvas Stathis wrote:
> > "Thies C. Arntzen" wrote:
> > > please send me a "minimal" testcase that shows this
> > > behaviour! i'll look into that then.
> >
> > I said that I'll have it on Monday, but curiosity got the better of
> > me:-)
> >
> > So, I ran my test case and these are my findings, alogn with the test.
> >
> > Machine Configuration
> > Software:
> >  - Apache.1.3.12:httpd.conf:MaxClients 150
> >  - OS:SuSE.Linux.6.4 (2.2.14)
> >  - Ora:Oracle.8.1.6.ee (default install)
> >I believe that by default you have 50 cursors per connection
> 
> without even looking at the rest:
> 
> if MaxClients is higher than the number of sessions oracle
> allows -> you are toasted!

Yes, I understand this.
But in my test case below, I never requested more than 50 connections to
oracle.
The problem is there even if you request 20 connections, provided that
you run the test script in quick succession and do not wait for the
oracle connections to die.

That is, if you:


while [-f file]; do
  ab -n 100 -c 20 
done


after a while you will get failed requests.

MaxClients 150, ensures that I do not run out of Apache childs and that
the failed requests are indeed due to ora conditions.
 
> you have to expect _one_ persistent connection to each
> oracle-instance you connect to per running apache child! in
> your case expect up to 150 single connection. if you cannot
> support 150 single connection to your oracle-server - a)
> decrease MacClients -or- b) up your oracle-session limit!
> 
> please get back to me if this is indeed your problem - i'll
> investigate further after that!
> 
> (i'll look thru the rest of your mail when i find some time -
> sorry, just getting up)

No problem, I can wait.

-Stathis.

> 
> tc
> 
> >  - PHP:php.4.0.3.pl1 build as module for Apache
> > Hardware:
> >  - AMD:Athlon:500
> >  - RAM:384MB
> >  - HD:IDE
> >
> > Test case (PHP script)
> > This code is typical of the way I handle connections to Oracle (except
> > that I use OciLogon instead of OciPLogon)
> > 
> >  >   $oraconnections[0] = '';
> >   $orastatements[0] = '';
> >
> > function newOracleConnection() {
> >   global $oraconnections;
> >   $c = ociplogon("scott","tiger","oracle");
> >   $oraconnections[] = $c;
> >   return $c;
> > }
> >
> > function newOracleStmt($connection, $select, $execute) {
> >   global $orastatements;
> >   $c = ociparse($connection, $select);
> >   $orastatements[] = $c;
> >   if (strtoupper($execute)=='EXECUTE') { ociexecute($c); }
> >   return $c;
> > }
> >
> > function cleanup() {
> >   global $orastatements, $oraconnections;
> >   reset($orastatements);
> >   while (list($key,$val)=each($orastatements)) @OciFreeStatement($val);
> >   reset($oraconnections);
> >   while (list($key,$val)=each($oraconnections)) @OCILogoff($val);
> > }
> >
> > $cone = NewOracleConnection();
> > $cone2 = NewOracleConnection();
> > $cone3 = NewOracleConnection();
> >
> > $s = "select table_name t from user_tables";
> > $stmt = NewOracleStmt($cone,$s,'');
> > OciDefineByName($stmt,strtoupper('t'),$t);
> > OciExecute($stmt);
> > while (OciFetch($stmt))  echo "\n table_name=$t";
> > OciFreeStatement($stmt);
> >
> > // -- in case we forget
> > cleanup();
> >
> > echo "\n";
> > ?>
> > 
> > The above code runs in a separate window ("test-w") using the following
> > command:
> > ab -n 1000 -c 50 http://aspasia.mm.di.uoa.gr/~rouvas/testora.php
> >
> > In another window (lets call it "monitor") the following runs in bash:
> > 
> > while [ -f afiedt.buf ]; do
> >   echo -n httpd: `ps -elf | grep httpd | wc -l`;
> >   echo -en " "oracle: `ps -elf | grep oracle | wc -l`;
> >   uptime;
> > done
> > 
> > At the beginning, monitor displays something like:
> >
> > httpd: 6 oracle: 15  1:50am  up 8 days,  5:38,  8 users,  load average:
> > 1.33, 1.95, 3.49
> >
> > >From now on, I will refer to "httpd: 6" and "oracle: 17" parts of the
> > above message as "httpd-counter" and "oracle-counter" respectively.
> >
> > Let the test begin!
> >
> > Everything is happening 

Re: [PHP] PHP + Oracle + OCIPLogon

2001-06-22 Thread Rouvas Stathis

Thank you for your prompt reply.
I read your suggestion about MaxClients in Apache conf.
Since this is something I haven't thought before, I'll take it into
consideration first and then I will supply you a test case as you
requested.
I will do so in the forthcoming weekend.
Please, read below for my comments on your other points.

"Thies C. Arntzen" wrote:
> 
> On Thu, Jun 21, 2001 at 09:32:31PM +0300, Rouvas Stathis wrote:
> > "Thies C. Arntzen" wrote:
> > >
> > > On Thu, Jun 21, 2001 at 03:19:09PM +0300, Rouvas Stathis wrote:
> > > >
> > > > Unfortunately, you are not doing anything wrong.
> > > > Persistent connections and PHP/Ora do not play well with each other.
> > >
> > > ??? - please elaborate.
> >
> > PHP/Ora without persistent connections are fine and rock solid even
> > under heavy load.
> > PHP/Ora with persitent connections does not work.
> > Explanation.
> > Using OciPlogon you connect to Ora and everything is fine.
> 
> yep.
> 
> > Then you issue an OciLogout and you terminate your connection as fas as
> > PHP is concerned.
> 
> wrong
> 
> >   Unfortunately, the connection to Oracle is not closed,
> > as a "ps -ef | grep oracle" can tell you.
> 
> yes - cause PHP will reuse it!
> 
> > Next time PHP is called, OciPlogon requests (and gets) a new connection
> 
> nope. that would be a bug.

I am not aware of the internals, but the displayed behaviour when using
OciPLogon is exactly the same with the one displayed when you "forget"
to OciLogout.
I assume that a new connection is made, since I cannot find another
explanation for the number of open connections to increase.
I measure open connections doing "ps -elf | grep oracle | grep tnslsnr".

> 
> > to Oracle without using the old one or closing it. Then OciLogout is
> > called and you are now left with two open connections to Oracle.
> 
> please send me a "minimal" testcase that shows this
> behaviour! i'll look into that then.

OK, I will do so. Expect it some time in Monday.

> 
> > The connections PHP opens will timeout eventually and close "by
> > themselves".
> 
> nope - that would be bug.

I don't think so. All connections to Oracle will close if left by
themselves. Oracle will kill them...I think.

> 
> > Now, if you are testing on a personal machine or your machine has enough
> > resources, this problem (that I call "lingering connections") may pass
> > unnoticed.
> > The moment you get more than about 10 hits, those "lingering
> > connections" will add up and pretty soon you will (a) run out of Ora
> > cursors or (b) run out of resources.
> > When that moment comes you will not be able to connect to Ora anymore,
> > untill some of those connections die, which of course is dependant on
> > the timeout.
> > Now in development server with 1GB of RAM
> > (Solaris/Ora.8.0.4.EE/PHP.4.0.3.pl1) the "lingering connections"
> > phenomenon rarely manifestated itself. In fact it was so rare that I
> > almost always suspected my code doing something nasty.
> > When it was moved into production (in a Suse
> > Linux.2.2.14/PHP.4.0.3.pl1/Ora.8.0.5.EE) with only 128MB of RAM, upon
> > the first test run it blew into my face.
> > After changing all OciPlogon into plain OciLogon, all problems
> > dissapeared.
> >
> > This has happened with other applications that I have experimented with.
> > The "lingering connections" problem is with us at least since PHP.3.0.12
> > (which the first version of PHP I tried).
> >
> > That's why I say that PHP/Ora with *persistent* connection do not play
> > well with each other.
> 
> i'm the author of this module and more than willing to help.
> i do tests using the ab tool and have never found any
> irregularities in the plogon mode. if you can show me how to
> reproduce this i'm (mostly) sure i can fix it!

Thanks for the cooperation.

> 
> tc
> 
> >
> > I hoped I cleared the issue.
> > I really hope that this problem is resolved, since I expect an increase
> > in performance when the penalty for making a new connection is avoided.
> >
> > -Stathis.
> >
> >
> > >
> > > tc
-Stathis.

-- 
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] PHP + Oracle + OCIPLogon

2001-06-21 Thread Rouvas Stathis

"Thies C. Arntzen" wrote:
> please send me a "minimal" testcase that shows this
> behaviour! i'll look into that then.

I said that I'll have it on Monday, but curiosity got the better of
me:-)

So, I ran my test case and these are my findings, alogn with the test.

Machine Configuration
Software:
 - Apache.1.3.12:httpd.conf:MaxClients 150
 - OS:SuSE.Linux.6.4 (2.2.14)
 - Ora:Oracle.8.1.6.ee (default install)
   I believe that by default you have 50 cursors per connection
 - PHP:php.4.0.3.pl1 build as module for Apache
Hardware:
 - AMD:Athlon:500
 - RAM:384MB
 - HD:IDE

Test case (PHP script)
This code is typical of the way I handle connections to Oracle (except
that I use OciLogon instead of OciPLogon)



The above code runs in a separate window ("test-w") using the following
command:
ab -n 1000 -c 50 http://aspasia.mm.di.uoa.gr/~rouvas/testora.php

In another window (lets call it "monitor") the following runs in bash:

while [ -f afiedt.buf ]; do 
  echo -n httpd: `ps -elf | grep httpd | wc -l`;
  echo -en " "oracle: `ps -elf | grep oracle | wc -l`;
  uptime;
done

At the beginning, monitor displays something like:

httpd: 6 oracle: 15  1:50am  up 8 days,  5:38,  8 users,  load average:
1.33, 1.95, 3.49

>From now on, I will refer to "httpd: 6" and "oracle: 17" parts of the
above message as "httpd-counter" and "oracle-counter" respectively.

Let the test begin!

Everything is happening on the same machine.
Since I have not recorded all number I will show only significant ones,
that is those that caused troubles. The rest will be displayed as dashes
("-").

ab -n n1   -c n2   httpd-counter oracle-counter  Failed requests
  500 10-  -   0
  500 20-  -   0
  900 50- ~52  0 
The last did not cause any troubles, but... it took a long time for
these oracle processes to die.
So, I rerun the last invocation (900,50) three times serially, i.e. I
waited for the previous one to finish before I fired the next one.
  900 50- ~48  0
  900 50  ~67 many
  900 50  ~65 many
Next I fired up the following from three different windows
simultaneously (almost)

ab -n 1000 -c 50 

In the first run: http-counter: -
  oracle-counter  : (below 50)
  failed requests : (none)

I waited until http-counter:7 and oracle-counter:17 and rerun the three
simultaneous invocations.

httpd-counter   : -
oracle-counter  : 52
failed-requests : (none)

Without waiting, I fired the three invocations again.
httpd-counter  : 75 (max)
oracle-counter : 82 (max)
failed-requests: 550 (test-w-1), 544 (test-w-2) and 493 9 9(test-w-3)

After more runs (and to make a long story short), I observed that no
matter what the concurrency level or the number of requests to the ab
were, if oracle-counter reached about 55, no more requests would be
served.
That, of course, is consistent with the number of Oracle cursors
available.
What is not consistence, hence I think that OciPlogon is unsuitable in
its current implementation, is that while it proved extremely difficult
to run out of connections within a *single* invocation of my test script
with ab, it was trivial to do so when either (a) you invoke ab without
waiting enough time for the oracle-counter (number of Oracle processes)
to decrease or (b) you do parallel invocations.

Of course, (b) is to be expected. But I didn't expect (a).
If a small number of concurrency(10) is used, (a) is rather difficult to
achieve.
Almost any number bigger than that will raise the problem.

I would expect, that in (a) (serial invocations), PHP to reuse existing
connections and the oracle-counter to remain relatively constant.
Instead, it gradually increases, untill it reaches about 55, which in my
case, is the upper limit.

In real world scenarios, you don't have control over what is happening,
so you quickly run out of connections.

In favor of OciPLogon, I have to state that while with OciLogon I got 3
requests/second (max), using OciPlogon got me an impressive 42
requests/second (when no failed requests where observed).

My interpretation:
While PHP is running is doing a very good job of reusing active
connections.
When it is unloaded/stopped it "forgets" some of them and starts opening
some new ones.
That behaviour may be caused by Apache as some clients that were
originally spawned to handle the load, gradually die without killing the
oracle connections that have been associated with them. When a new
request is made, if an existing Apache client is able to handle it, the
connections associated with it are re-used. If a new one is spawned,
then a new set of connections is made.
Hence, the gradual increase of the oracle-counter.

About the same behaviour is observed when you "forget" to OciLogout,
which is to be expected.

Re: [PHP] PHP + Oracle + OCIPLogon

2001-06-21 Thread Rouvas Stathis

"Thies C. Arntzen" wrote:
> 
> On Thu, Jun 21, 2001 at 03:19:09PM +0300, Rouvas Stathis wrote:
> >
> > Unfortunately, you are not doing anything wrong.
> > Persistent connections and PHP/Ora do not play well with each other.
> 
> ??? - please elaborate.

PHP/Ora without persistent connections are fine and rock solid even
under heavy load.
PHP/Ora with persitent connections does not work.
Explanation.
Using OciPlogon you connect to Ora and everything is fine.
Then you issue an OciLogout and you terminate your connection as fas as
PHP is concerned. Unfortunately, the connection to Oracle is not closed,
as a "ps -ef | grep oracle" can tell you.
Next time PHP is called, OciPlogon requests (and gets) a new connection
to Oracle without using the old one or closing it. Then OciLogout is
called and you are now left with two open connections to Oracle.
The connections PHP opens will timeout eventually and close "by
themselves".
Now, if you are testing on a personal machine or your machine has enough
resources, this problem (that I call "lingering connections") may pass
unnoticed.
The moment you get more than about 10 hits, those "lingering
connections" will add up and pretty soon you will (a) run out of Ora
cursors or (b) run out of resources.
When that moment comes you will not be able to connect to Ora anymore,
untill some of those connections die, which of course is dependant on
the timeout.
Now in development server with 1GB of RAM
(Solaris/Ora.8.0.4.EE/PHP.4.0.3.pl1) the "lingering connections"
phenomenon rarely manifestated itself. In fact it was so rare that I
almost always suspected my code doing something nasty.
When it was moved into production (in a Suse
Linux.2.2.14/PHP.4.0.3.pl1/Ora.8.0.5.EE) with only 128MB of RAM, upon
the first test run it blew into my face.
After changing all OciPlogon into plain OciLogon, all problems
dissapeared.

This has happened with other applications that I have experimented with.
The "lingering connections" problem is with us at least since PHP.3.0.12
(which the first version of PHP I tried).

That's why I say that PHP/Ora with *persistent* connection do not play
well with each other.

I hoped I cleared the issue.
I really hope that this problem is resolved, since I expect an increase
in performance when the penalty for making a new connection is avoided.

-Stathis.


> 
> tc

-- 
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] PHP + Oracle + OCIPLogon

2001-06-21 Thread Rouvas Stathis

Confuser wrote:
> 
> I understand that OCIPLogon creates a persitant connection to the Oracle DB,
> to improve
> performance... And I must say it does !
> 
> However, since OCILogoff is best not used with a persitant logon (and in the
> latest versions,
> it doesn't do anything anyway)... How will PHP decide when to cut that
> connection loose ?
> 
> We are working on a relatively small website, with 4 users... Within no
> time, the session limit
> in Oracle (which is 60) is reached, and the site doesn't work anymore...
> 
> The website should be able to handle thousands of customers in the future,
> so it would only
> take a second to crash...
> 
> What are we doing wrong? Why aren't the sessions automatically killed by PHP
> ?

Unfortunately, you are not doing anything wrong.
Persistent connections and PHP/Ora do not play well with each other.
I suggest that that you use plain OciLogon.
-Stathis.

> 
> Thank you!
> Gunther

-- 
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] multiselects and arrays

2001-05-11 Thread Rouvas Stathis

you can have access to everything, using the following construct:

window.document.forms[i].elements[j].name and
window.document.forms[i].elements[j].value

so, for example :






the first input text can be accessed as
window.document.forms[0].element[1] while the second can be accessed as
window.doucment.forms[0].elements[2]

-Stathis.



elias wrote:
> 
> How can i access names with '[]' w/o eval() or seeking in form's element?
> 
> -elias
> 
> "Rouvas Stathis" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Actually, you *can* use brackets ([]) in names and javascript can handle
> > them just fine.
> > -Stathis.
> >
> > Max Vysotskiy wrote:
> > >
> > > Hi.
> > > Why doesn't PHP convert mutiselect values with plain names (not
> array-like)
> > > to arrays. Is there any reason to not doing this?
> > >
> > > Example:
> > > I have a page with multiselect, which name is SEL1
> > > (I cannot use square brackets because I need to use a JavaScript on the
> > > page, so, it's not allowed in variable names to contain [ ]  ). When
> browser
> > > submits this page, and if there are sew values selected in this
> multiselect,
> > > it just sends this values along to each other with same name.
> > > (such as in case of GET method:
> http://somehost.com/index.php?SEL1=1&SEL2=2)
> > > So, why not parse this, and in case if there are more than one variable
> with
> > > same name, convert this variable to array, and put all the values there?
> > > Thanx
> > >
> > > --
> > > 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]
> >
> > --
> > 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]
> >
> 
> --
> 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]

-- 
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] multiselects and arrays

2001-05-10 Thread Rouvas Stathis

Actually, you *can* use brackets ([]) in names and javascript can handle
them just fine.
-Stathis.

Max Vysotskiy wrote:
> 
> Hi.
> Why doesn't PHP convert mutiselect values with plain names (not array-like)
> to arrays. Is there any reason to not doing this?
> 
> Example:
> I have a page with multiselect, which name is SEL1
> (I cannot use square brackets because I need to use a JavaScript on the
> page, so, it's not allowed in variable names to contain [ ]  ). When browser
> submits this page, and if there are sew values selected in this multiselect,
> it just sends this values along to each other with same name.
> (such as in case of GET method: http://somehost.com/index.php?SEL1=1&SEL2=2)
> So, why not parse this, and in case if there are more than one variable with
> same name, convert this variable to array, and put all the values there?
> Thanx
> 
> --
> 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]

-- 
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] passing parameters in the url using forward slashes

2001-05-09 Thread Rouvas Stathis

The Wise Man Said:



Subject: 
 RE: [PHP3] URL without a classic php filename like php, php3,
phtml?
Date: 
 Tue, 11 Apr 2000 12:54:35 MST
   From: 
 [EMAIL PROTECTED]
 To: 
 "Michael Simcich" <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]




Addressed to: "Michael Simcich" <[EMAIL PROTECTED]>
  [EMAIL PROTECTED]

** Reply to note from "Michael Simcich" <[EMAIL PROTECTED]> Tue,
11 Apr 2000 11:23:16 -0700
>  Is there any way to pass parameters with php without using the
> classic http://www.whatever.com/somepage.php?param=3 type format? So
> that the url would look more like



In httpd.conf, in the  block for the site:



ForceType appllication/x-http-php



In a php program file, named ThisIsAProgram in the DocumentRoot of the
site:


==
\n" );
   }

?>
==


Hit this URL:

http://whatever.site.com/ThisIsAProgram/these/directories/are/not/real


You should get:

Params[ 0 ] = 
Params[ 1 ] = these
Params[ 2 ] = directories
Params[ 3 ] = are
Params[ 4 ] = not
Params[ 5 ] = real

 

If you can't or don't want to do the  thing, you can name the
file ThisIsAProgram.php  (or .php3) and call it:


http://whatever.site.com/ThisIsAProgram.php/these/directories/are/not/re
al


But I think it is pretty cool to make the program name look like just
another directory in the tree, so I usually use .



Rick Widmer
Internet Marketing Specialists
www.developersdesk.com



-Stathis.

Franklin van Velthuizen wrote:
> 
> Good morning/afternoon/evening.. whatever timezone you live in :)
> 
> Small question: we all know how to pass parameter using question marks in an URL 
>ofcourse..
> but I was wondering whether it was also possible to pass parameters in the URL using 
>forward slashes instead of those question marks, so like:
> 
> http://blabla/file.php/value
> 
> and use "value" as a parameter, obviously.
> 
> I just tried it, but all I got was an internal server error :(.
> 
> Anyone who knows *anything* about this?
> 
> Take care,
> /franklin
> 
> --
> Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)19-10 99 17
> Ebiris AB   www.ebiris.se   +46-(0)19-10 99 10

-- 
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] Apache/PHP4/SSL, downloads fail with IE 5.5 only when using sessions

2001-05-05 Thread Rouvas Stathis

Goto SquirrelMail  and search for the
"Infamous IE with SSL bug" (their wording).
If I remember correctly it has to do with IE not implementing correctly
HTTP/1.1 protocol (so you have to switch to HTTP/1.0 whenever an IE
browser hits you) and something about the cache of SSL sessions (...and
I don't remember what you should do in that case).
-Stathis.


Mart&ngr;n Marqu&igr;s wrote:
> 
> On S&agr;b 05 May 2001 00:56, Bill Rausch wrote:
> > Hi all,
> >
> > A customer has a problem. They've installed "Merlin" from Abriasoft. It is
> > a pre-built Apache/PHP/SSL/MySQL/... package. Their problem is that they
> > can't download files from my PHP application (which uses sessions) using IE
> > 5.5 in Windows. Netscape works from all clients, IE 4 works, Mac clients
> > work. Here's a sample php script that fails:
> >
> >  > // simple download test but starts a session
> > session_start();
> > session_register('rausch');
> 
> This may have nothing to do, but I would write this last line like this:
> 
> session_register("rausch");
> 
> And I have to say that IE 5 sucks so much  Really can't believe some may
> people use it. I needed 4 times more time to download my webmail (on a local
> net) with IE 5 then with Netscape 4.7.
> 
> Saludos... :-)
> 
> --
> El mejor sistema operativo es aquel que te da de comer.
> Cuida tu dieta.
> -
> Martin Marques  |[EMAIL PROTECTED]
> Programador, Administrador  |   Centro de Telematica
>Universidad Nacional
> del Litoral
> -
> 
> --
> 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]

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

2001-04-05 Thread Rouvas Stathis

I wouldn't worry about that. Although it all depends by what do you mean
by "speed":-)
Anyway, you can always test your page with "ab" (part of the Apache
installation, at least on Linux)
-Stathis.

Kurth Bemis wrote:
> 
> i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in
> as a static mod) can "chew" through a 350 element 2d array.  Can anyone
> offer any information?
> 
> ~kurth
> 
> --
> 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]

-- 
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] PHP SITE REDESIGN - What happened to older source files?

2001-03-31 Thread Rouvas Stathis

I keep a copy of php.4.0.3.pl1 at
http://glaykos.mm.di.uoa.gr/~rouvas/tmp/inet/linux/php/>
Both the original version I downloaded as well as a version with the
bc-lib and conf files for SuSE exist.
-Stathis.

James Moore wrote:
> 
> >   I need an older version of PHP because my pam_auth won't build with
> > php-4.0.4pl1?  With the redesign of the php site, I think they
> > removed older
> > source files.  Can anyone confirm this, or does anyone know where
> > I can get
> > php-4.0.0 - 4.0.4 source files?
> 
> The files are no longer avaible form the site but are still avalible via cvs
> (cvs.php.net) just checkout the files you want from the distributions
> directory. I wouldnt advise using anything less recent than 4.0.4pl1 though
> due to security issues in previous versions.
> 
> James
> --
> James Moore
> [EMAIL PROTECTED]
> PHP Web Scripting: http://www.php.net/
> PHP QA Team: http://qa.php.net/
> PHP-GTK: http://gtk.php.net/
> VL-SRM: http://www.vl-srm.net/
> 
> --
> 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]

-- 
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] PHP Web-based server-side mail client

2001-03-20 Thread Rouvas Stathis

Check SquirelMail (I'm propably spelling it wrong) on freshmeat.net
-Stathis.


Steven Katz wrote:
> 
> I'm looking for a PHP web-based POP/IMAP mail client to install on my
> RH7 machine. Anyone know of any with really good looking interfaces?
> I found a few that I like, but they're CGI, and commercial or
> ad-sponsored. I'll be happy with a free CGI package if anyone knows of
> a great one.
> 
> Thanks,
> Steven
> 
> EMU Webmail
> http://www.emumail.com/emuwebmail.html
> http://www.mollymail.com
> 
> MailStudio
> http://www.mailstudio.com
> 
> --
> 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]

-- 
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] PHP and Oracle Zombie processes

2001-03-14 Thread Rouvas Stathis

If you don't see --enable-sigchild in phpinfo() then :
(a) you are not running the version you compiled
(b) your config script had something wrong.
Baseline: if you don't see it, it's not there.
You have to recompile.
-Stathis.


Bob Kakalec wrote:
> 
> When I execute an sql statement against my Oracle database from PHP, I
> create an  oracle  process.  This eventually hits a "number of
> zombie process" limit and prevents my page from executing.
> 
> The queries work properly (except for the zombie problem).
> 
> Here is a sample that creates the zombie process:
> 
> putenv("ORACLE_HOME=/h/app/oracle/product/8.1.6");
> putenv("ORACLE_SID=dbase_name");
> putenv("TNS_ADMIN=/h/app/oracle/product/8.1.6/network/admin");//
> thought this might help the zombie problem
> 
> $conn=OCILogon("get_rid_of" , "zombie");
> 
> $sql_get_info="SELECT OppID, OppTitle  FROM TEST WHERE OppID=4";
> $stmt = OCIParse($conn,$sql_get_info);
> 
> OCIExecute($stmt);
> 
> OCIFetch($stmt));
> 
> $valid_opp_id = OCIResult($stmt, "OPPID");
> $valid_opp_title = OCIResult($stmt, "OPPTITLE");
> 
> OCIFreeStatement($stmt);
> 
> / using  a separate query to get the clob..
> $clob_field="OPPTEXT"; // this field in UPPPER CASE
> $sql="SELECT $clob_field from TEST WHERE OppID=$oid";
> 
> $stmt = OCIParse($conn, $sql);
> $clob_text = OCINewDescriptor($conn,OCI_D_LOB);
> OCIDefineByName($stmt, $clob_field, &$clob_text);
> OCIExecute($stmt);
> OCIFetch($stmt);
> $valid_text=$clob_text->load();
> 
> $clob_text->free();
> OCIFreeStatement($stmt);
> 
> Here is how I configured PHP 4.0.3pl1 (this is from phpinfo();) :
> 
> ./configure --with-apxs=/usr/local/apache/bin/apxs
> --with-config-file-path=/etc/httpd
> --with-oracle=/ora8/m01/app/oracle/product/8.1.6
> 
> I also added OCI8 support via..
> --with-oci8=/ora8/m01/app/oracle/product/8.1.6  ... phpinfo(); states
> oci8 support is "enabled".
> 
> I did --enable-sigchild  but I don't see it showing in the phpinfo();
> ???
> 
> I am using: Oracle 8.1.6,   Apache 1.3.12 , RedHat 6.0  - all on one
> server.
> 
> Any ideas on what I might be doing wrong?  Am I missing something?   Any
> help would be greatly appreciated.
> 
> Thanks,
> 
> Bob
> 
> --
> 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]

-- 
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] PHP & Apache with SSL

2001-03-11 Thread Rouvas Stathis

In .htaccess use SSLRequireSSL for AuthType Config and redirect to https
using ErrorDocument.
Example for  www.foo.goo/sec
.htacess

AuthType Config
SSLRequireSSL
ErrorDocument 403 https://www.foo.goo/sec
Options -Indexes

Options directive is not neccessary but I assume that if you want a
secure conection then directory listing are not desirable.

-Stathis.

Daniel B I wrote:
> 
> Hello,
> any idea how to limit file access (php files) by
> protocol type call?
> I mean how could I serve a php file only if it is
> called with SSL (https://... not http://...)
> I saw this on a site when I was refused because
> I didn't use secure protocol, and I wonder, how could
> I do that?
> Is there a specific statement in apache config file?
> 
> Daniel BI
> PS. I know it 's a little bit far of PHP specific this
> question, excuse me for that.. maybe you knwow
> something about
> 
> --
> 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]

-- 
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] Announcing PHP-GTK

2001-03-01 Thread Rouvas Stathis

Great News!
-Stathis.

Andrei Zmievski wrote:
> 
> The first release of PHP-GTK is now available. PHP-GTK is a PHP
> extension that provides an object-oriented interface to GTK+ toolkit and
> enables you to write client-side cross-platform GUI applications. For
> more information, visit http://gtk.php.net/.
> 
> -Andrei
> 
> UNIX is like sex: If you don't know it, you don't miss it. But if
> you know it, you'll need it.  -- Anonymous.
> 
> --
> 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]

-- 
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] PHP/Oracle mod

2001-02-13 Thread Rouvas Stathis

>From your mail, I understand that you cannot proceed past the
compilation step.
I've seen the same on previous versions of PHP for Linux, but now this
is solved.
Maybe the Solaris version didn't got the same fixes...
Anyway, PHP will look at ORACLE_HOME for the required libraries which
has now different semantics for Oracle.
Now(Ora.8i.later) ORACLE_BASE points to old (Ora.8.0.xx) ORACLE_HOME.
The new ORACLE_HOME should be $ORACLE_BASE/product/8.1.6 (or whatever
version you have).
Hope this helps.
-Stathis.

rbradley wrote:
> 
> I'm really struggling configuring the php mod with oracle 8i support on
> Solaris 8.
> 
> ./configure --enable-track-vars --with-o8ci=/export/home/oracle
> --with-oracle --enable-sigchild --with-apxs
> 
> The ORACLE_HOME is set to /export/home/oracle.
> 
> I am getting an error:
> 
> checking Oracle Install-Dir...
> ++
> | Notice:|
> | If you encounter  processes when using a local Oracle-DB   |
> | please recompile PHP and specify --enable-sigchild when configuring|
> | (This problem has been reported un Linux using Oracle >= 8.1.5)|
> ++
> checking Oracle version... configure: error: Oracle needed libraries not found
> 
> I installed the oracle 8i client prior to compiling. I've installed all
> the compilers, Please God, WHAT HAVE I DONE WRONG.  If anyone out
> there can help this poor wrech of a man. Please help me..
> 
> --
> Richard Bradley
> CTO YourLink, inc.
> (321) 452-6699
> IM lagoonr

-- 
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] What is "foo"?

2001-01-31 Thread Rouvas Stathis

And don't forget "goo". "foo" and "goo" go together:-)
-Stathis.

Soeren Staun-Pedersen wrote:
> 
> > Probably some of you are laughing while reading this :) But I have seen the
> > word "foo" used so many time (in programming) from different resources for
> > different reasons. Has it any meaning? (e.g. in PHP)
> 
> It's just one of those words which stuck around. People like Leslie
> Lamport (LaTeX) and other computer scientists have kept it alive for at
> least a century now.
> 
> Most people believe it originates from "foobar" or "fubar" which is
> actually an acronym for "Fucked Up Beyond All Recognition". :-)
> 
> Regards,
> 
> Soeren Staun-Pedersen - [EMAIL PROTECTED]
> --
> "The internet is full, beat it"
> - Me.
> 
> --
> 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]

-- 
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] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-23 Thread Rouvas Stathis

Hit Thomas,

you need to recompile PHP with the options you want (as a shared apache
module) and then replace libphp4.so on /usr/lib/apache/ with your own
version.
A good thing is to keep SuSE's version as a backup:-)
Don't forget to restart apache afterwards. (/etc/rc.d/apache stop;
/etc/rc.d/apache start)

A SuSE.6.4 user.

-Stathis.

Thomas Weber wrote:
> 
> Hi,
> 
> i try to use the shared memory functions on a SuSE Linux 7.0 server with
> Apache and mod_php4 out of the box installed with yast. For shmop i need to
> configure PHP with --enable-shmop with isn't enabled in this installation.
> 
> I know how to enable this when compiling and installing the source of
> mod_php4, what is to difficult for me, i think. But how to enable it in the
> SuSE-RPM-Distribution? I found a mod_php4.spec in /usr/src/packages/SPECS in
> wich the configuration options are, butr i don't know how to use it to
> install this RPM with my own configuration. Can anyone help me?
> 
> Sincerly,
> ---
> Thomas Weber
> 
> CYNOBIA Community Online Service AG
> K&oacgr;hbachstra&iacgr;e 11
> 81543 M&oacgr;nchen
> fon 089-78 06 0(280)
> fax 089-78 06 01 99
> email [EMAIL PROTECTED]
> net http://www.CYNOBIA.de

-- 
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] RTFM me to IIF file format creation...

2001-01-14 Thread Rouvas Stathis

I find wotsit.org an excellent resource :

-Stathis.

Dallas Kropka wrote:
> 
> I need to create files and reports for importation into QuickBooks, but they
> need to be in the IIF file format that QuickBooks supports where can I
> find information for creating these files?
> 
> --
> 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]

-- 
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] Accessing Common Log Format (CLF) info.

2001-01-11 Thread Rouvas Stathis

You don't need to hach into anything.
Apache has builtin pipe redirection support.
Search for "rotatelog" in Apache docs.
-Stathis.


Richard Lynch wrote:
> 
> I doubt it...
> 
> On busy servers, those files must get so huge, there's no way Apache can be
> trying to keep it all in RAM.
> 
> So, pretty much, Apache logs it and forgets it.
> 
> The only place that data exists is in the log file...
> 
> Unless you hack the Apache logging routine to send it to your database or
> something else instead...  I guess you could do that.
> 
> - Original Message -
> From: "Scott Hutchens" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Monday, January 08, 2001 6:02 PM
> Subject: [PHP] Accessing Common Log Format (CLF) info.
> 
> > Hi,
> >
> > Is it possible for PHP running as a mod on Apache to get the CLF data that
> > you see in access.log without actually opening the file?
> >
> > Thanks for your time.
> >
> > Scott.
> >
> >
> >
> >
> > --
> > 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]
> >
> 
> --
> 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]

-- 
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] SSH file transfers

2001-01-11 Thread Rouvas Stathis

Try pscp from putty :



-Stathis.



Kyle Jerviss wrote:
> 
> Yeek!  Not quite what I meant.  I don't think that web servers have any
> business being on windows boxes.  I was wondering if there were a way to
> upload using something like scp from a windows (or other) browser to a
> unix server.
> 
> bard wrote:
> >
> > the people who make putty (my favorite ssh client for windows) also make a command 
>line scp program. this could be included as an exec() in a script I would think...
> >
> > --
> > 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]
> 
> --
> 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]

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