FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Click adress?





darence
I need a php function which returns adress of webpage from which is clicked on my link. Thx.

Sorry 4 my bad English:(
ncwdavid
darence wrote:
I need a php function which returns adress of webpage from which is clicked on my link. Thx.

Sorry 4 my bad English:(


I think you mean a to find the referrer. The information you are looking for is stored in an array called "$_SERVER['']".This code should work:
Code:

<?php
$ref = $_SERVER['HTTP_REFERER'];
?>


Its just putting the infomation you want in a variable called "$ref". You can then echo "$ref".
darence
Yes. thx Laughing

but how to connect html page and php script to write $ref into the txt file?
ncwdavid
You can click on the link below and it will tell you how to write to a file using php. Database is probably the best way to store data but text files work too.
http://www.tizag.com/phpT/filewrite.php

Do you know any PHP?
darence
ncwdavid wrote:
You can click on the link below and it will tell you how to write to a file using php. Database is probably the best way to store data but text files work too.
http://www.tizag.com/phpT/filewrite.php

Do you know any PHP?



I know, but not much. I am just beginner

Is it possible to store php script and text file on other server, because sevrer where is my site dont support php?
ncwdavid
darence wrote:
ncwdavid wrote:
You can click on the link below and it will tell you how to write to a file using php. Database is probably the best way to store data but text files work too.
http://www.tizag.com/phpT/filewrite.php

Do you know any PHP?



I know, but not much. I am just beginner

Is it possible to store php script and text file on other server, because sevrer where is my site dont support php?


I dont know. I have never had to do it or I have never trieded it. Maybe a goog search might show you if its possible.
sonam
Quote:
Is it possible to store php script and text file on other server, because sevrer where is my site dont support php?


You cannot run PHP if your server doesn't support it. If you are using some free hostnig (because all paid have PHP) then transfer your site here on frihost and enjoy all goods. Wink

Sonam
Related topics
how to change the FROM adress ?
Select and click
Adress Domain FTP
domain name help
Sandy and Junior's forum
problem with wireless network
Use gmail space & features for any email addr
Right click and links
[RESOLVEd] How to set the default page ?
NNTP-News Server in 5 minutes
Do you ever click banner ads?
PHP-Nuke Installed, frih's index loading
Click on This!
Avoid click here hyperlink in designing a site
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.