I'm designing a website for a client and just started to write a few PHP scripts for it. When I tested one of them on the server I discovered it didn't work.. after a few hours of hair-pulling and experimenting I found that even the simplest PHP script doesn't work on this server. I made a very basic script with an if-else statement to try it out and put it on two different servers.
One of them works flawlessly. The other, with identical code, does not work at all. What could it be? Here's the code:
<?php
//test script
if ($variable == "one") {
print ("one..");
} elseif ($variable == "two") {
print ("two...");
} else {
print ("Pick a number: <a href='test.php?variable=one'>one</a><br><a href='test.php?variable=two'>two</a><br>");
}
?>
Here are both URLs for you to test:
http://www.combatex.net/test.php <-- this one does not work
http://www.pcfx.cc/test.php <-- this one works fine!
Any help would be appreciated! This is a big headache 😕