Gossamer Forum
Home : General : Perl Programming :

PHP Self?

Quote Reply
PHP Self?
Anyone know if there is a variable similar to PHP_SELF, but instead of printing the path of the file it prints the URL??? I need this for my mailing list script (an extra feature someone wants), but I can't for the life of me find an option. If worst comes to worst I will have to add another variabel in the settings file for the unsubscribe script :(

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] PHP Self? In reply to
http://www.php.net/...ables.predefined.php

- wil
Quote Reply
Re: [Wil] PHP Self? In reply to
Thanks, finally got it working by;

$current = "$HTTP_HOST/$PHP_SELF";

Thanks for that reference Wil, it helped me find the $HTTP_HOST variable Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] PHP Self? In reply to
No worries!

- wil