Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

PHP question

Thread Tools
 
Search this Thread
 
Old Jun 4, 2003 | 10:41 AM
  #1  
gregh's Avatar
gregh
Thread Starter
Scooby Regular
 
Joined: Dec 1999
Posts: 3,360
Likes: 0
Post

From within php can I find out what program has called another program?

I have a standard header.php file that I include in all my pages.

What I'd like to do is within header.php do:

if included from freeware.php or freereults.php then do one action else do another.

Is this possible?

regards,

greg
Reply
Old Jun 4, 2003 | 11:10 AM
  #2  
Andrewza's Avatar
Andrewza
Scooby Regular
 
Joined: Jan 2002
Posts: 667
Likes: 0
Post

check $_SERVER["PHP_SELF"] which will give you the name of the script running. I personally use this to tag ad banners for differrent pages.
Reply
Old Jun 4, 2003 | 01:15 PM
  #3  
gregh's Avatar
gregh
Thread Starter
Scooby Regular
 
Joined: Dec 1999
Posts: 3,360
Likes: 0
Post

cheers Andrew,

that's just what I want to use it for

greg
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
Brzoza
Engine Management and ECU Remapping
1
Oct 2, 2015 05:26 PM




All times are GMT +1. The time now is 12:11 PM.