View Full Version : ahhh what could i use other then $PHP_SELF
stoodder
04-30-2003, 11:22 PM
well what im dong is an offsite mysql linking thingy.. but when i user $PHP_SLEF it comes back to the name of the page that is included (eg: itemsfree.php) no their page (EG: test.php)
anyone know how to fix this?
Nightfire
05-01-2003, 12:19 AM
Can you explain better? I don't understand what's wrong :confused:
stoodder
05-01-2003, 01:00 AM
EDIT: actually all i need it to do now is to get variaties fomr the URL i got the whole address thingy figured out but now the included page wont grab the Variables from the addres... i used $HTTP_GET_VARS but no result.
yes well what im trying to do is share a certain database with another site... well ive gotten everything to work ecept when i inclue a page it wont recognize the variables and stuff so i need to directly get the extension and the name like this:
test.php... but i dont know how to explain this but lets say the included page is included.php
whenever i say php self instead of getting test.php i get included.php
i need to get test.php or the page that is including include.php
does that help??? ssorry im just very frustrated everything works fine and i dont know why the ncluded page wont recoginize variables form the before page but it doesnt and im getting really annoyed by it, please help.
here is my one pages code:
$defaultlimit = "12"; // this is the default amount of items to displey
$defaultrows = "4"; // this is the default amount of items to displey per row
//DO NOT EDIT
$dir = $PHP_SELF;
include('http://www.shadowgelert.com/itemsfree.php');
unfortunatly $dir does not carry over to itemsfree.php so i need somethng on itemsfree.php to get $dir or get the extension in the URL.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.