Where is the url to my php script

Links for php scripts

Moderators: macek, egami, gesf

ScoobyDoobie
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Apr 30, 2014 10:42 am

Where is the url to my php script

Postby ScoobyDoobie » Mon May 05, 2014 7:56 am

Hey all,
Im a beginner at php and i have a simple question with i hope a simple error. Where do i find the url of my php script on my server.
Thanks,

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

Postby 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


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest