Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 24th, 2006, 02:00 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default URL Checker

Hi,

Um, this might be a simple question, but does anyone know how to in php to get the full address of the page the code might be sitting on?

Like, all the commands in php that I've found only get the file name, and I know I can do this is javascript, but for security reasons, I would like to do it in php.

Any help would be great.

Thanks.
  #2 (permalink)  
Old November 27th, 2006, 11:10 AM
Authorized User
 
Join Date: Nov 2006
Location: , , United Kingdom.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mark jonas
Default

hi

not shore if this will help but it will show the hole url for the page that loads

$fullurl = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];

hope it helps



Similar Threads
Thread Thread Starter Forum Replies Last Post
Maker/Checker rekri Pro VB 6 0 November 2nd, 2006 07:47 AM
URL Checker for a Microsoft Access 2003 Database Corey Access 17 December 8th, 2005 04:21 PM
Spell checker srotondo Access 3 October 22nd, 2004 10:53 PM
Spell Checker zaeem Classic ASP Basics 3 November 10th, 2003 12:01 PM
Spell Checker Lucy Classic ASP Professional 1 November 3rd, 2003 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.