Quote:
Originally Posted by boduzapho
Ok its working, sort of...
this is the page I am using, but it is not producing any data....
all I get is this
http://63.209.191.131/info.php
The site is running off of an active forum, there are users, new posts ect...
any suggestions?
|
Firstly create a blank php file and copy this into it
Code:
<?php
echo getcwd();
?>
name this path.php, upload it to your webservers root and point your browser at it and this will tell you your servers path.
Now enter that path into chdir and require once also naming the location of your servers root and forum folder
Code:
<?php
chdir('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder');
require_once('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder/vbexternal.php');
?>
this needs the full path
enter this inbetween
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
chdir('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder');
require_once('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder/vbexternal.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<!-- Where output code goes -->
<?php
output_TopPosters(5);
?>
<?php
output_NewestMembers(5);
?>
<!-- etc etc -->
</body>
</html>
the other code you have there has to be in a external .html file within your vbexternal folder
also make sure your vbexternal folder is the same lettercase as your path eg. if its vbexternal name your path that otherwise if its vBexternal (note the capital B, name it like that)
hope that helps