Jump to content

[SOLVED] $_SERVER help (I think)


LemonInflux

Recommended Posts

I'm currently working on a project that can easily be integrated into a website. The way I'm doing this is as follows:

 

I'm (trying to) get the path to the page I'm using, so when you go to a different page, I can do:

 

*Current_file_path*?randomthing=value, or whatever. So, I can build URLs like:

 

site.com/index.php?page=article&comment=true&id=90&lite=false

 

The only problem I'm having is getting the path.

 

I looked at SCRIPT_FILENAME, but that gives the absolute (e:\domains\s\site.com/index.php or whatever), which presumably wouldn't work. So, what I'm basically asking is, would this work, or is there another way to do this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.