Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

[Resolved] Simple Php help

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch
Impact
91
simple php help

PHP:
<?php
if ($pageURL === "abc.com" ||  "xyz.com" || "pqr.com" || "aer.com")
  {
echo 'something';
}
?>

helo.

i am looking to create some snippet which basically does the following work
1. the $pageURL string contains this $_SERVER["SERVER_NAME"] (the domain of the page)
2. i want to match it up with few matches and output something in particular if the $pageURL is same as the above four matches. and not echo anything when $pageURL is different from the above 4.

but when i am using this code, it is echoing "something" in every domain, even in lets say "blahblah.com" and "tommy.com". the logical comparison is not working :(


any suggestions where i am going wrong?

never mind.. i solved it :)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back