Jump to content

dave25

Members
  • Posts

    10
  • Joined

  • Last visited

dave25's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is this good way to check if return variable is detected and return contains page where it actually came from? PHP $get['return'] = 'do%3DnewsManagement%26search%3D%26sort%3Did%26order%3DDESC'; SMARTY HTML {if !empty($get.return) && strpos($get.return, 'do%3DnewsManagement') !== false} <li><a href="index.php?{$get.return|urldecode}">News Management</a></li> {/if}
  2. Why i get 2 error message if it can find my file? Warning: require(includes/paginator/index1.php): failed to open stream: No such file or directory in C:\xampp\htdocs\testScript\admin\index.php on line 15 Fatal error: require(): Failed opening required 'includes/paginator/index1.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\testScript\admin\index.php on line 15 index.php <?php ob_start(); session_start(); define('testScript', 1) error_reporting(E_ALL); ini_set('display_startup_errors', 1); ini_set('display_errors', 1); ini_set('html_errors', TRUE); ini_set('log_errors', TRUE); ini_set('error_log', dirname(__FILE__).'/php-errors.log'); require 'includes/paginator/index_1.php';# Added _1 to index.php to force error. ...................... ...................... ob_flush(); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.