I have configured php apache and mysql at home and have coded with relative success.
I have signed up to a web hosting company and am operating on a shared server.
PHP 4.4.4 is configured on a linux box.
This set up is an FTP site. I need to FTP my pages to the server.
Wanting to test the php setup I tried to run a very simple script:
Expand|Select|Wrap|Line Numbers
- <?
- $c = 0;
- while ($c < 5) {
- echo("<h1>Hello</h1>");
- $c++;
- }
- ?>
Instead I see the last half of my code. When I view source I see all my php sitting there.
I have contacted the company and they tell me that php is configured properly on that server.
Is there something I am doing wrong ???
I have also tried <?php as a start bracket.
There php info file states that shortcut is on and magic quotes are off..
This script works on my development web server I set up at home.
Thanks,
Chris