thanks all for the feedback.
i finally found the way..
this what i use:

if (!eregi("index.php", $_SERVER['PHP_SELF'])) die ("You can't access
this file directly...");

put this on block_search.php.


and if there's another page who refer it (say news.php), i put

$_SERVER['PHP_SELF']=index.php 

at the top of news.php. then, when i need to used
$_SERVER['PHP_SELF'], i change it again to..

$_SERVER['PHP_SELF']=news.php


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to