[PHP] quick ereg() question

2002-08-17 Thread eriol
I checked the manual and it's comments as well as google, but didn't find the simple answer i'm wanting.. I have the following line in a show php source code page: if (ereg((\.php)$,$o0o) !ereg(\/\.\., $o0o)){ ... } It works fine on .php files but I was hoping I could include

Re: [PHP] quick ereg() question

2002-08-17 Thread Bas Jobsen
if (ereg(((\.)(php|inc))$,$o0o) !ereg(\/\.\., $o0o)){ Op zaterdag 17 augustus 2002 23:53, schreef eriol: I checked the manual and it's comments as well as google, but didn't find the simple answer i'm wanting.. I have the following line in a show php source code page: if

Re: [PHP] quick ereg() question

2002-08-17 Thread eriol
Thank you Bas.. I appreciate the reply.. It works great.. Take care.. peace.. eriol Bas Jobsen [EMAIL PROTECTED] disgorged: : if (ereg(((\.)(php|inc))$,$o0o) !ereg(\/\.\., $o0o)){ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quick ereg() question

2002-08-17 Thread Jason Wong
On Sunday 18 August 2002 05:53, eriol wrote: It works fine on .php files but I was hoping I could include .inc files as well when someone wanted to view the source of them.. To include .inc files as viewable php source code, I'd rewrite it similar to below I assume, but I'm not understanding