View Single Post
  #3  
Old 04-22-2009, 02:50 AM
 
AgentBristow AgentBristow is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 36
 

Default Re: Adding my own custom PHP pages?

Thanks for that. I checked out the link and it told me I needed to add this to my code:

require_once 'auth.php';

So I added it as below but got the following errors:


<?php
require_once "/clientdata/clients/d/a/mywebsite.com/www/cms/lib/viewer_functions.php";

list($aboutRecords, $aboutMetaData) = getRecords(array(
'tableName' => 'about',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$aboutRecord = @$aboutRecords[0]; // get first record

require_once 'auth.php';

?>


ERRORS >
Warning: require_once(auth.php): failed to open stream: No such file or directory in /clientdata/clients/d/a/mywebsite.com/www/about_test.php on line 12 Fatal error: require_once(): Failed opening required 'auth.php' (include_path='/clientdata/clients/d/a/mywebsite.com/www/cms:.:/clientdata/php/php5/lib/php:/clientdata/php/lib') in /clientdata/clients/d/a/mywebsite.com/www/about_test.php on line 12


what have I done wrong? I tried to put the page in the x-cart directory (shop) but it still didn't work
__________________
Xcart Version 4.1.9 [win]
Reply With Quote