Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.
Reply With Quote
  #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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.