/    Sign up×
Community /Pin to ProfileBookmark

Help Needed To Read The….

Refering URL.

I have a script that other sites can display in a frame. When I try to read the refering URL I get the script location not the refering URL. It shows up correctly in my website logs as to what site is calling for the script.

I am trying to use:
$url = $_SERVER[‘HTTP_REFERER’];

I am trying to build a log like my apache log.

Thanks for your help

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@JonaFeb 17.2005 — [font=trebuchet ms]Using frames? That's probably your problem... Is it taking the name of the frameset, or just the name of the frame that the script is in?[/font]
Copy linkTweet thisAlerts:
@bestwebauctionsauthorFeb 17.2005 — Is there a way to display all the veriables in the getenv and the $_server and the related command. I have seen code similar to grab all the information in to an array but I am not quite sure how to do this.

Thanks
Copy linkTweet thisAlerts:
@JonaFeb 17.2005 — [code=php]
printf("<pre>%s</pre>", print_r ($_SERVER));
[/code]
Copy linkTweet thisAlerts:
@bestwebauctionsauthorFeb 17.2005 — Thank you !!!

I fogot that my script calls it's self after the first query and that is why I was grabbing the page it's self. I just moved the $_SERVER['HTTP_REFERER']; to the top of my code and it works well.

Thanks again !!!

I program in Pascal .....I am dangerous to myself in PHP
Copy linkTweet thisAlerts:
@JonaFeb 17.2005 — [font=trebuchet ms]Pascal? I thought that was like Assembly. You know...rarely used and considered highly incapable of accomplishing simple tasks that can be done easily in other languages such as Java or C++? That was the impression I got. I've programmed in syntaxes similar to Pascal, but my preference is C- and Java-style syntax. PHP adopts its syntax from C, Java and Perl, so I tend to like it a lot. ? [/font]
Copy linkTweet thisAlerts:
@bestwebauctionsauthorFeb 17.2005 — Delphi to be accurate..

I am a throw back to the "Dos" days long long ago when computers were mere speed deamons and had 64k of memory and 80mb hard drives:eek: .....

What type of C do you use I have been meaning to teach myself that. I tried C++ 3.00 years ago but That was when I had the for mentioned computer...:p
Copy linkTweet thisAlerts:
@JonaFeb 17.2005 — [font=trebuchet ms]Actually I'm not a C or C++ programmer, though I've read up on the syntax. From what I understand C++ is the best there is right now. (There is C#, but AFAIK that isn't widely-supported on a lot of systems. You're probably better off learning C++, which is compatible with more systems, including video game consoles.)[/font]
×

Success!

Help @bestwebauctions spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...