PDA

View Full Version : HELP PLZ!



Bonxy
10-05-2008, 09:24 PM
right, i have this problem

ive made this ban script right and im having this problem.

my ban.php is in a directory such as

1/2/3/4/5/6/7/8/9/ban.php


and if i put this include on my homepage

<?php
include("ban.php");
?>

it only reads the same directory as the files in. and when i try to put in the full url such as

<?php
include("http://www.bonxy.co.uk/1/2/3/4/5/6/7/8/9/ban.php (http://www.bonxy.co.uk/1/2/3/4/5/6/7/8/9/ban.php)");
?>
it comes up with loads of error lines. anyone know how i can get around this problem ????


+REP TO HELPERS!!!!!!



xxxxxx

Moved by Hitman (Forum Super Moderator) from Designing & Development: Please post in the correct forum next time, thanks. :)

NEW-START
10-05-2008, 09:49 PM
<?php

include("/home/USERNAME/public_html/1/2/3/4/5/6/7/8/9/ban.php");

?>


Do you mean like that? :S

Bonxy
11-05-2008, 09:29 AM
correct NEW START

Florx
11-05-2008, 11:25 AM
O M GOSH. Scott actually got some PHP right :)

Only kiddin, you aren't that bad.

Tomm
11-05-2008, 11:39 AM
Use a relative path.

Want to hide these adverts? Register an account for free!