Page 1 of 1

[SOLVED] Enabling PHP on Remote Server

Posted: Mon Nov 10, 2003 6:37 am
by dewaphp
Hello Folks,

Sorry for this dumb question. I just upload a simple "hello world" php code to my remote server.

When i try to access http://www.myserver.com/helloworld.php , the page doesn't display anything and I can read my php source code using view source option on IE.

Where did I make mistake?. Should I create my custom httpd.conf in order to enable php processing on my remote server? (ochosting.com)

TIA,
Andy

Posted: Mon Nov 10, 2003 6:43 am
by twigletmac
Have you asked your host if they support PHP?

Mac

Posted: Mon Nov 10, 2003 6:48 am
by dewaphp
Hi mac:),

They certainly do support php


TIA,
Andy

Posted: Mon Nov 10, 2003 7:51 am
by twigletmac
Perhaps you are using short tags and they have these disabled?
E.g, you have:

Code: Select all

<? echo 'hello world'; ?>
or

Code: Select all

<?='hello world'?>
but you need to have

Code: Select all

<?php echo 'hello world'; ?>
Mac

Posted: Mon Nov 10, 2003 11:53 am
by m3mn0n
Sometimes a host does support php but the package you purchased doesn't entitle you to use it.

Double-check that because it has happened before to someone I know.

There could also be a .htaccess in the directory that can force all filetypes to be plaintext.

Posted: Tue Nov 11, 2003 1:56 am
by dewaphp
Hi Mac,

You are right , they disable short tags, thx!

Posted: Tue Nov 11, 2003 3:11 am
by twigletmac
Glad to help :).

Mac