[Phpwm] Simple? question
Simon Ferre
simon.ferre at onetwodo.co.uk
Tue Oct 27 10:53:19 UTC 2009
Hi
I believe what you are looking for is not a function, but a PHP variable:
_SERVER["HTTP_REFERER"]
Gives you the page that referred you to the current page.
Do a phpinfo(); to find out more...
Simon
-----Original Message-----
From: phpwm-bounces at mailman.lug.org.uk
[mailto:phpwm-bounces at mailman.lug.org.uk] On Behalf Of Peter Crouch
Sent: 27 October 2009 10:39
To: West Midlands PHP User Group
Subject: [Phpwm] Simple? question
Hello to you all,
I have spent some time looking through the online PHP reference manual
searching for a function which will return the URL or URI of the web
page from which it is invoked, without success.
I want to write a PHP script which will construct bookmarks for the
likes of Facebook and Twitter for any web page from which it is called.
I suspect I am trying to reinvent the wheel!
I am sure that some of you experts will be able to point me in the right
direction very quickly!
Thanks in advance for any help you can give me.
Peter Crouch
-------------------------------------------------
Tel: 0121 523 6756
Mobile: 0776 877 0475
Email: pccrouch at bcs.org.uk
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
_______________________________________________
Phpwm mailing list
Website : http://www.phpwm.org
Twitter : http://www.twitter.com/phpwm
Facebook: http://www.facebook.com/group.php?gid=2361609907
Post to list: Phpwm at mailman.lug.org.uk
Archive etc : https://mailman.lug.org.uk/mailman/listinfo/phpwm
More information about the Phpwm
mailing list