I just can't get this to work.
I have uploaded the folder and the file in my forums root.
Then on the web page I want to use these templates I have this code:
Code:
</head>
<body>
<?php
chdir('http://soniccagedome.com/forums');
require_once('./vBExternal.php');
?>
<table bord....
....<td class="bodymiddle" style="height:408px;"><?php
output_NewestMembers(5);
?></td>....
And I am getting this error:
Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/soniccag/public_html/dev7/site/index.php on line 157
Warning: main(./vBExternal.php) [function.main]: failed to open stream: No such file or directory in /home/soniccag/public_html/dev7/site/index.php on line 158
Fatal error: main() [function.require]: Failed opening required './vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/soniccag/public_html/dev7/site/index.php on line 158
This error can be seen @:
http://www.soniccagedome.com/dev7/site/
Can anyone tell me where I am going wrong?
BTW I am using vB Version 3.6.4.