[PHP] XML-RPC set XML encoding?

2006-05-01 Thread D. Dante Lorenso
XML-RPC gurus, Does anyhow know how to set the character encoding for XML-RPC? I am using the PHP built-in XML-RPC server to handle XML-RPC calls. SERVER = xmlrpc_server_create(); ... // fetch the raw input stream which contains our XML data $request_xml = file_get_contents("php://input"); er

Re: [PHP] instantiate derived class objects from within base class?

2006-05-01 Thread D. Dante Lorenso
Chris wrote: This gives the problem away.. http://www.php.net/manual/en/language.oop5.abstract.php Any class that contains at least one abstract method must also be abstract. Make 'A' abstract: abstract class A Sorry for the poor example. I did catch that after submitting my post, but it did

Re: [PHP] instantiate derived class objects from within base class?

2006-05-01 Thread Chris
D. Dante Lorenso wrote: All, I get a fatal error when trying to create a new instance of a derived class from within a static member which exists in the parent base class. I think the problem is related to using this call: new self(); Because the 'self' refers to the parent object and n

[PHP] instantiate derived class objects from within base class?

2006-05-01 Thread D. Dante Lorenso
All, I get a fatal error when trying to create a new instance of a derived class from within a static member which exists in the parent base class. I think the problem is related to using this call: new self(); Because the 'self' refers to the parent object and not the derived class. S

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Edward Vermillion
On May 1, 2006, at 8:56 PM, chris smith wrote: Depending on your content you could cache some of it to static files.. http://pear.php.net/packages.php?catpid=3&catname=Caching (I'm sure there are tons more packages to do this as well).. Yeah, that's what I'm looking at right now, although

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread chris smith
On 5/2/06, Edward Vermillion <[EMAIL PROTECTED]> wrote: On May 1, 2006, at 3:53 PM, Richard Lynch wrote: > On Mon, May 1, 2006 8:25 am, Edward Vermillion wrote: >> What I was mainly thinking of though, what kind of hoops does PHP >> jump through to take a class, that I assume it's holding in me

RE: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Nicolas Verhaeghe
Yes, I know that Apache works on Windows, but I just don't feel like having two Web servers on the same box. -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 4:28 PM To: Nicolas Verhaeghe Cc: 'Eric Butera'; 'php' Subject: Re: [PHP] Zend refuses to

Re: [PHP] Filesystem or database

2006-05-01 Thread Jochem Maas
Richard Lynch wrote: On Mon, May 1, 2006 7:13 am, Ryan A wrote: ... You *CANNOT* assume IP address has *ANYTHING* to do with what user is there! IP address is USELESS for identification/authentication of users in an HTTP environment. with one caveat (I standing by to be shot down ;-): wh

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Jochem Maas
Nicolas Verhaeghe wrote: Thanks to all the messages let me answer to all of them at once. First, I'd like to have a dedicated Linux server, but I cannot have too many machines in my home office, unfortunately. I also develop ASP Web sites and I find that PHP is usually IIS compatible. *usually

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Edward Vermillion
What happens when you run Project->Check Included Files? Is Zend using this cache in the debugger too? Ed On May 1, 2006, at 4:56 PM, Nicolas Verhaeghe wrote: Thanks to all the messages let me answer to all of them at once. First, I'd like to have a dedicated Linux server, but I cannot have

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Edward Vermillion
On May 1, 2006, at 3:53 PM, Richard Lynch wrote: On Mon, May 1, 2006 8:25 am, Edward Vermillion wrote: What I was mainly thinking of though, what kind of hoops does PHP jump through to take a class, that I assume it's holding in memory, and make an object out of it, aside from the constructor?

RE: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Nicolas Verhaeghe
Thanks to all the messages let me answer to all of them at once. First, I'd like to have a dedicated Linux server, but I cannot have too many machines in my home office, unfortunately. I also develop ASP Web sites and I find that PHP is usually IIS compatible. There is no reason why I should not

RE: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Nicolas Verhaeghe
Thanks to all the messages let me answer to all of them at once. First, I'd like to have a dedicated Linux server, but I cannot have too many machines in my home office, unfortunately. I also develop ASP Web sites and I find that PHP is usually IIS compatible. There is no reason why I should not

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Jochem Maas
Richard Lynch wrote: On Mon, May 1, 2006 8:25 am, Edward Vermillion wrote: What I was mainly thinking of though, what kind of hoops does PHP jump through to take a class, that I assume it's holding in memory, and make an object out of it, aside from the constructor? Is it doubling the memory co

Re: [PHP] Session - when they expirate ?

2006-05-01 Thread Jochem Maas
Martin Zvarík wrote: Hi, I was looking all over the internet and I don't understand when and how does the PHP session expirate. I suppose that it happens when the user is inactive. On my website I don't use cookies for session and it has standard php.ini configuration: session.gc_maxlifet

Re: [PHP] Filesystem or database

2006-05-01 Thread Richard Lynch
On Mon, May 1, 2006 7:13 am, Ryan A wrote: > basically, I get the username and ip of a person who > logs into a remote site and i have to save this data > (please note that this would be thousands of logins) > so I was wondering if it would be better to save the > username and ip as an empty file w

Re: [PHP] Totally 0T - Spam

2006-05-01 Thread Wolf
I looked at a few other things, but after dealing with other things, wanted something in-house that I could also do a "See how good the system is" and have the data to back it up. As for the server resources... 25 users in-house, 15 outside and mailing lists, dual-processor running RH w/ enough R

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Richard Lynch
On Mon, May 1, 2006 8:25 am, Edward Vermillion wrote: > What I was mainly thinking of though, what kind of hoops does PHP > jump through to take a class, that I assume it's holding in memory, > and make an object out of it, aside from the constructor? Is it > doubling the memory consumption, or mor

Re: [PHP] c99shell

2006-05-01 Thread Edward Vermillion
What flavor of server are you running on (Windows/*nix)? Does this do a root kit too? It seems that at least the system files would be protected from tampering if php is running as an unprivileged user(?maybe??). Although, on *nix at least, I could see that they would be able to at least re

Re: [PHP] Totally 0T - Spam

2006-05-01 Thread Wolf
Thunderbird LEARNS pretty well, and with a few filters set up, does great on just a Windows PC all alone. My linux box runs a honeypotted email address along with spamassassin which reads in the inbox and spams everything, then adds it to the filter and gets more. Combined w/ CLAM AV, it was how

Re: [PHP] c99shell

2006-05-01 Thread Wolf
What I found with my working with trying to lock it down was that I could not do it entirely at the last point of trying. I could only succeed in doing most of it by swapping my apache code. I made my php.ini as secure as possible based off my searches for the system files it was accessing. Have

RE: [PHP] PHP Standard style of writing your code

2006-05-01 Thread Chris W. Parker
Richard Lynch on Saturday, April 29, 2006 12:12 AM said: > Okay, but let's do keep this fairly serious, and let's NOT let it > devolve into the usual religious flame-war this topic gets to... Yeah I should have asked off list as I'm not interested in debating, just

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Eric Butera
On 5/1/06, Nicolas Verhaeghe <[EMAIL PROTECTED]> wrote: When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relevant here). This is not the fi

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Jochem Maas
John Nichel wrote: tedd wrote: At 1:06 AM -0700 5/1/06, Nicolas Verhaeghe wrote: When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relev

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread John Nichel
tedd wrote: At 1:06 AM -0700 5/1/06, Nicolas Verhaeghe wrote: When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relevant here). This is n

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread tedd
At 1:06 AM -0700 5/1/06, Nicolas Verhaeghe wrote: When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relevant here). This is not the first inc

Re: [PHP] Session - when they expirate ?

2006-05-01 Thread afan
I had a similar question few days ago on one other forum and get an answer that session expiration is defined by session.gc_maxlifetime and 1440 is number of secunds. (24 minutes - you were right tedd ;)) -afan > At 1:36 PM +0200 5/1/06, Martin Zvarík wrote: >>Hi, >>I was looking all over

Re: [PHP] c99shell

2006-05-01 Thread scot
Well, here's what happened here now that I have more details. We had a client with a php calendar installed. The attacker was able to upload c99.txt somehow and basically rename it to tasks.php within this calendar. c99 is amazing with what it can do, I'm no security expert but it blows me away

Re: [PHP] Session - when they expirate ?

2006-05-01 Thread tedd
At 1:36 PM +0200 5/1/06, Martin Zvarík wrote: Hi, I was looking all over the internet and I don't understand when and how does the PHP session expirate. I suppose that it happens when the user is inactive. On my website I don't use cookies for session and it has standard php.ini configura

Re: [PHP] Picture for Form Security

2006-05-01 Thread tedd
At 5:37 PM -0700 4/30/06, [EMAIL PROTECTED] wrote: Does anyone know of a good script for form security, where someone goes to login and then they have to type a number, disabling automated scripts from logging in versus a physical user. It is widely used by domain registrars who protect the iden

Re: [PHP] c99shell

2006-05-01 Thread Edward Vermillion
Correct me if I'm wrong on this, but from what I've seen (last hour or so looking through google for c99+php+shell+captain+crunch), it looks like the vulnerability comes from including uploaded files somehow? Or at least allowing files to be uploaded and then accessed with a .php extension

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Edward Vermillion
Thanks guys! I guess it comes down to "Don't do anything stupid and you should be fine" :D I'm just still in the design stage, and since my past practice was write/figure out what you did wrong why it doesn't work like it should/rewrite, I'm trying to cover as many bases as I can from the

Re: [PHP] Totally 0T - Spam

2006-05-01 Thread Jochem Maas
I dunno about the rest - but spamassassin does a nice job of keeping all that crap from every reaching my PC :-) Ryan A wrote: Hey all, I get a crapload of spam that about sums up the 21 century ;-P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Jochem Maas
Edward Vermillion wrote: On Apr 30, 2006, at 8:07 PM, Richard Lynch wrote: Instantiating an object does have some extra overhead that the static call bypasses. How much overhead depends on the complexity of the object, I would predict that it's mainly in its constructor and any parent constru

[PHP] Onehitoneder?

2006-05-01 Thread David Ellsworth
Anyone ever used onehitoneder - a PHP download manager? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread chris smith
On 5/1/06, Edward Vermillion <[EMAIL PROTECTED]> wrote: On Apr 30, 2006, at 8:07 PM, Richard Lynch wrote: > Instantiating an object does have some extra overhead that the static > call bypasses. > > How much overhead depends on the complexity of the object, I would > predict that it's mainly in

RE: [PHP] Filesystem or database

2006-05-01 Thread Ryan A
--- Peter Lauri <[EMAIL PROTECTED]> wrote: > This is what databases are made for, so my > suggestion is to use the > database. And when you say: "please note that this > would be thousands of > logins", is that per second or minute or hour or > day? > > /Peter Hey, Ok, thats two points for the

Re: [PHP] Filesystem or database

2006-05-01 Thread Ryan A
> Also, try using mysql_pconnect rather than > mysql_connect to set up a > persistent database connection. >From what I have read and asked around, persistant connections are more of a pain in the @ss than a help...esp in a shared hosting environment. Thanks for responding though! -- -

Re: [PHP] OOP Static Functions vs. Objects

2006-05-01 Thread Edward Vermillion
On Apr 30, 2006, at 8:07 PM, Richard Lynch wrote: Instantiating an object does have some extra overhead that the static call bypasses. How much overhead depends on the complexity of the object, I would predict that it's mainly in its constructor and any parent constructors. Well there's a b

[PHP] Totally 0T - Spam

2006-05-01 Thread Ryan A
Hey all, I get a crapload of spam and I am pretty sure most of you too as we work so much online, for the past few months I joined a site called bluesecurity.com and installed their "blue frog" client and now my spam has dropped by over 70% I suggest you check it out and join yourself (its f

RE: [PHP] Filesystem or database

2006-05-01 Thread Peter Lauri
This is what databases are made for, so my suggestion is to use the database. And when you say: "please note that this would be thousands of logins", is that per second or minute or hour or day? /Peter -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 7

Re: [PHP] Filesystem or database

2006-05-01 Thread Dave Goodchild
Also, try using mysql_pconnect rather than mysql_connect to set up a persistent database connection. On 01/05/06, Wolf <[EMAIL PROTECTED]> wrote: Personally I would do the DB option and timestamp that sucker as well. I use it to set/copy :IP, user, SessionID, timestamp. I found it simpler and

Re: [PHP] c99shell

2006-05-01 Thread Wolf
I got smacked by it as well. File-upload area that they uploaded a .php.rar file and then accessed the sucker (must have reconfigured their browser for handling?). At any rate, my file-upload area now is a file-upload and you can't access it anymore area. It lists it, but... you can't play with

Re: [PHP] Filesystem or database

2006-05-01 Thread Wolf
Personally I would do the DB option and timestamp that sucker as well. I use it to set/copy :IP, user, SessionID, timestamp. I found it simpler and easier as I was already using the database anyways, so another call to it was not going to kill me. And with having the timestamp in the field as wel

[PHP] Filesystem or database

2006-05-01 Thread Ryan A
Hi, This is just a quick query as I am bit doubtful of the result.. basically, I get the username and ip of a person who logs into a remote site and i have to save this data (please note that this would be thousands of logins) so I was wondering if it would be better to save the username and ip as

[PHP] Session - when they expirate ?

2006-05-01 Thread Martin Zvarík
Hi, I was looking all over the internet and I don't understand when and how does the PHP session expirate. I suppose that it happens when the user is inactive. On my website I don't use cookies for session and it has standard php.ini configuration: session.gc_maxlifetime = 1440 session.gc_

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Jochem Maas
Nicolas Verhaeghe wrote: When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relevant here). there is a world of difference between IIS and Ap

Re: [PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Paul Novitski
At 01:06 AM 5/1/2006, Nicolas Verhaeghe wrote: When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. ... The error I get is: Debug Warning: C:\Inetpub\wwwroot\bfbb\includes\pages\header.php line 3 - main(includes

[PHP] Zend refuses to include file while parser finds it

2006-05-01 Thread Nicolas Verhaeghe
When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relevant here). This is not the first include in this site, but the first include inside of a