Ask a Question related to PHP Development, Design and Development.
-
Mike Migurski #1
Re: [PHP] host name
>I want to get the current domain name in to a PHP variable.
print_r() the contents of $_SERVER to see all the information given to you
by the webserver -- the host name will be in there.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca [url]http://mike.teczno.com/contact.html[/url]
Mike Migurski Guest
-
CFMX on CF 5 host
I am moving a website and I haven't messed with cold fusion and the code was written in CF MX and the host only has CF 5. I get this error. Just... -
CF ecommerce host ?
I am going to be building an Ecommerce site and I was hoping some of you can suggest a good CF host that has a cart that I can customize very... -
OT: Asp.net host
Hi Any recommendations for a good, reliable and responsive asp.net host in UK? Thanks Regards -
web host
Pardon if this is off topic ... I am looking for a new web host that can get me in for less that $29.95 per month paid quarterly that also has... -
tar to other host
Barry Margolin wrote: At layer 4, socket, it is the "shell" service rexecd "shell 514/tcp cmd". At layer 7, application, it is the rmt... -
Justin French #2
Re: [PHP] host name
<pre>
<?print_r($_SERVER);?>
</pre>
Have a look at the output, find the variable you need, then manipulate
it if needed.
Justin French
On Friday, August 15, 2003, at 01:32 PM, [email]viraj@ceynet.net[/email] wrote:
> Hi all,
> I want to get the current domain name in to a PHP
> variable.
>
> This is the case..
> I have a web site and four diferent domian names
> pointing to that site. I want to redirect users from
> the four domains to their specific home pages.
>
> eg: if a visitor from [url]http://domain1.com[/url] the header
> should be passed to domain1.php, if the visitor from
> [url]http://domain2.com[/url] the header hould be pass to domain2.php.
>
> thanks
>
> Viraj
>
>
> --
> PHP General Mailing List ([url]http://www.php.net/[/url])
> To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
>
> ---
> [This E-mail scanned for viruses]
>
>Justin French Guest
-
viraj@ceynet.net #3
Re: [PHP] host name
echo $HTTP_HOST;
did the job perfectly
thanks Justin
Viraj
Quoting Justin French <justin@indent.com.au>:
> <pre>
> <?print_r($_SERVER);?>
> </pre>
>
> Have a look at the output, find the variable you need, then manipulate
> it if needed.
>
> Justin French
>
> On Friday, August 15, 2003, at 01:32 PM, [email]viraj@ceynet.net[/email] wrote:
>>> > Hi all,
> > I want to get the current domain name in to a PHP
> > variable.
> >
> > This is the case..
> > I have a web site and four diferent domian names
> > pointing to that site. I want to redirect users from
> > the four domains to their specific home pages.
> >
> > eg: if a visitor from [url]http://domain1.com[/url] the header
> > should be passed to domain1.php, if the visitor from
> > [url]http://domain2.com[/url] the header hould be pass to domain2.php.
> >
> > thanks
> >
> > Viraj
> >
> >
> > --
> > PHP General Mailing List ([url]http://www.php.net/[/url])
> > To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
> >
> > ---
> > [This E-mail scanned for viruses]
> >
> >
>
> --
> PHP General Mailing List ([url]http://www.php.net/[/url])
> To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
>
>
viraj@ceynet.net Guest



Reply With Quote

