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


redirection





janszmatt
there are three sites:

My A
His B
My C


My A and My C is own by me.

His B is some others...



i want users visiting My A to be redirected to His B and then from His B redirected to My B
hexkid
janszmatt wrote:
i want users visiting My A to be redirected to His B and then from His B redirected to My B


Code:
// My A
header('Location: http://www.hisb.com/index.php');
exit('Redirected to <a href="http://www.hisb.com/index.php">His B</a>.');


Code:
// His B
header('Location: http://www.myc.com/index.php');
exit('Redirected to <a href="http://www.myc.com/index.php">My C</a>.');
rohan2kool
if u want His B to redirect to your C, then most probably that is impossible to do without direct (having a username/password to the hosting) or indirect (personal friendship, h4X0r) access. Redirection is fairly simple though Very Happy
abhi1982
Code:
error_reporting(E_ALL);


Could you explain in exactly what this line does. Many are using it. And I quite dont understand why to use it.

Thanks
Abhi.
ammonkc
abhi1982 wrote:
Code:
error_reporting(E_ALL);


Could you explain in exactly what this line does. Many are using it. And I quite dont understand why to use it.

Thanks
Abhi.


it tells php to output ALL errors. This is really good for debugging purposes. without this on, depending on your php.ini settings, you would most likely only see 'fatal errors'. turning this option on will show you everything like warnings and notices that would not stop the script from running like a fatal error. This option could also be turned on from within the php.ini file.
abhi1982
Thanks a lot that surely helps.

Abhi.
Related topics
Problem with Subdomains
domain
Error 404 ..... How to Hide ...
why no hosting under .com
image
QUALITY WEB SITE HOSTING
Does someone offer .Com redirection for FRIH$?
REDIRECTION
URL Redirection - Javascript+HTML, so simple...
User Agent Redirection
Redirection code for deleted URL...
Redirection to URL
301 Redirection
redirection
301 redirection in PHP and .htaccess
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.