Where is the url to my php script

Links for php scripts

Moderators: macek, egami, gesf

Post Reply
kladrian
New php-forum User
New php-forum User
Posts: 12
Joined: Thu Aug 14, 2014 1:13 am
Contact:

Re: Where is the url to my php script

Post by kladrian » Thu Aug 14, 2014 6:43 am

Hi

you'd probably want to take a look at $_SERVER variables.

There are a lot of cool info about your script and server, such as: absolute path, url and so on
You can find a good help list here:
http://php.net/manual/en/reserved.variables.server.php

maybe you need one of these 2

Code: Select all

$_SERVER['SCRIPT_FILENAME'];
$_SERVER['REQUEST_URI'];
---
kladrian

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest