[PHP] Problem with paths GRR!

2001-09-23 Thread jalist
I'm getting this error message when accessing phpinfo.php ( ) in my root dir ... Warning: Failed opening '/var/www/html/phpinfo.php' for inclusion (include_path='/var/www/html/includes/') in Unknown on line 0 I think it's something to do with the include_path or maybe doc_root in php.ini, but

[PHP] Flushing vars

2001-01-20 Thread jalist
I know this must have been asked before so I apologize in advance... Is there a way to flush the $PHP_AUTH_USER / $PHP_AUTH_PW vars? I have a routine where someone can logon to my admin section as a guest and enter a new username/password. Is it possible for him to then logout (flushing the guest

RE: [PHP] (Newbie) String within a string

2001-01-18 Thread jalist
Excellent, thanks a lot Chris. Steve (jalist) [EMAIL PROTECTED] http://ls2k.org -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED]] Sent: 18 January 2001 15:43 To: jalist; PHP Subject: Re: [PHP] (Newbie) String within a string jalist: > I'm trying to grab a str

[PHP] (Newbie) String within a string

2001-01-18 Thread jalist
I'm trying to grab a string from within a string based on a matching word or phrase. Example... $string = "This is a string I need to grab the middle out of" $query_word = "need" I need to get x amount of characters either side of $query_word, so the result string would be like... "string I nee

RE: [PHP] Matching irregular cases

2001-01-17 Thread jalist
(/me smacks head) thanks, completely forgot about that. Steve -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 15:57 To: 'jalist'; [EMAIL PROTECTED] Subject: RE: [PHP] Matching irregular cases Steve, Try the ereg_replace()somthing

[PHP] Matching irregular cases

2001-01-17 Thread jalist
I think this'll be an easy one for you fellas... I'm writing a search function for my site. The code to search the mysql db's are in place and working but here's the problem. For any matches that are displayed, I want to change the search query so it stands out in the result list. I'm just using..