[PHP] Need to check pdf for xss

2010-08-14 Thread Sebastian Ewert
Hi, before I allow to upload images I read them and check for several html tags. If they exist I don't allow the upload. Is their any need to check pdf files, too? At the time I'm doing this, but the result is that many files are denied because of unallowed html tags. -- PHP General Mailing List

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Sebastian Ewert
Ashley Sheridan wrote: > On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: > >> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: >> >>> Rick Dwyer wrote: >>>> Hello List. >>>> >>>> In the Alt section of the IMG ta

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Sebastian Ewert
Rick Dwyer wrote: > Hello List. > > In the Alt section of the IMG tag below, the variable $myitem has a value of > "Who's There". > > echo " src='/itemimages/$mypic' alt='$myitem' width='60' > > When running through W3C validator, the line errors out because of the " ' " > in "Who's". >

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
> No, I don't think there will be problems. I also think the only way > you'll ever find out whether it *will* be a problem in your system is > by testing. I've started some benchmarks with apachebench but the problem is I don't have any benchmarks to compare with. And so I started looking for som

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
Peter Lind wrote: > > It's unlikely to cause you performance problems unless you've got a > huge amount of traffic - and then you could probably fix your problems > easier than refactoring classes. > > Personal anecdote: I've worked on classes longer than 3K lines with no > marked performance pro

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
Jay Blanchard wrote: > [snip] > Thats exacty the point. In my user class I have functions whitch return > object-lists of diffrent users or strings with html-form elements for > managing this user account. > > But if I put all these in a helper class I would anyway need to > implement the user obj

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
Ashley Sheridan wrote: > On Thu, 2010-07-22 at 10:49 +0200, Sebastian Ewert wrote: > >> Hi, >> >> I'm developing an joomla component and my helper an user classes are >> crowing bigger and bigger. The helper class is for static use only. >> >>

[PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
Hi, I'm developing an joomla component and my helper an user classes are crowing bigger and bigger. The helper class is for static use only. Does class size decrease performance of my php scripts, even for static usage? Is there a general rule when to split a class to keep performance up? Thanks