Re: [PHP] still not friends with RegExps..

2001-05-15 Thread Zef Hemel
$string = preg_replace("/[\\\*\+\-;]/s","",$string); I think, you might have to escape the ; too Zef "elias" <[EMAIL PROTECTED]> schreef in berichtnieuws 9dr733$knl$[EMAIL PROTECTED] > Hello, > > Maybe RegExps are still my point of weakness...but I still like them as much > as I like the Self-

Re: [PHP] File pointers

2001-05-15 Thread Zef Hemel
for afaik the only way is to fgets($fp, 4096); Now you moved the pointer 1 line :-) Zef "Steve Wade" <[EMAIL PROTECTED]> schreef in berichtnieuws [EMAIL PROTECTED] > Any easy way to make the file pointer go up one line in a text file? > > (I am thinking of using ftell(), then working out the leng

Re: [PHP] What's more effecient: var on every page or simple function?

2001-05-15 Thread Zef Hemel
I'd say the first one, but if you'd use $myvar as a constant only, try this: define("MYVAR",3); Might be even more efficient ;-) btw. You can call this value like this: echo MYVAR; Zef "Noah Spitzer-Williams" <[EMAIL PROTECTED]> schreef in berichtnieuws 9dpjiu$5nu$[EMAIL PROTECTED] > Which of th

Re: [PHP] PHP's OO is bad?

2001-05-14 Thread Zef Hemel
I did some benchmark on how fast variable access is when being used through OOP. And this difference can be up to 1,7 times as slow. I surely hope you can speed up, right now I'm not using it because it's slower... Zef Phil Driscoll <[EMAIL PROTECTED]> schreef in berichtnieuws [EMAIL PROTECTE