Good morning everyone. I have a problem with this code:
Code:
$dir = getcwd();
chdir(/home/USERNAME/public_html/forum);
require './global.php';
chdir($dir);
I am using it as Choo told me to, to get the current users username etc but I have noticed it only works on
www.domain.com not just domain.com. Anyway to fix this?
EDIT: Again, fixed it. You must goto vBulletin Admin -> vBulletin Options -> vBulletin Options -> Cookies and HTTP Header Options -> Cookie Domain and set it from (blank) to .DOMAIN.com.
--------------- Added [DATE]1240073997[/DATE] at [TIME]1240073997[/TIME] ---------------
Right, everything is going good. Thank you all for the help. I have a problem with the code that includes global. I am now getting an error like so:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 77824 bytes)
Is there anyway I can get around this without having to edit php.ini?
Thanks.