web hosts wont configure server for <?php ?> tags

This is a discussion on web hosts wont configure server for <?php ?> tags within the PHP Language forums, part of the PHP Programming Forums category; My web hosts are streamline.net. After a lot of problems with my pages which included php inside Html, I ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-21-2005
charlie fortune
 
Posts: n/a
Default web hosts wont configure server for <?php ?> tags

My web hosts are streamline.net. After a lot of problems with my pages
which included php inside Html, I realised that their parser wasn't
recognizing the tags. Entire .php scripts were running ok, but
embedded ones were being output as text. I contacted them to ask if
they could configure their side to work with <?php ?>, but they
have refused. Is there any good reason for this, or is it as I
suspect, they don't know how to do it. I even sent them a link to
instructions on how to do it.

Is this normal for them to refuse to do this ? Does php.net have any
kind of literature I could send them to encourage them, or are there
some security risks that I don't know about ? Or do I have to get a
new host..?
Reply With Quote
  #2 (permalink)  
Old 03-21-2005
Alan Little
 
Posts: n/a
Default Re: web hosts wont configure server for <?php ?> tags

Carved in mystic runes upon the very living rock, the last words of
charlie fortune of comp.lang.php make plain:

> I contacted them to ask if they could configure their side to work
> with <?php ?>, but they have refused. Is there any good reason for
> this, or is it as I suspect, they don't know how to do it.


More likely the latter, or some other variety of cluelessness.

> Is this normal for them to refuse to do this ? Does php.net have any
> kind of literature I could send them to encourage them, or are there
> some security risks that I don't know about ? Or do I have to get a
> new host..?


I'd go with the last option.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Reply With Quote
  #3 (permalink)  
Old 03-21-2005
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: web hosts wont configure server for <?php ?> tags

charlie fortune wrote:
> My web hosts are streamline.net. After a lot of problems with my

pages
> which included php inside Html, I realised that their parser wasn't
> recognizing the tags. Entire .php scripts were running ok, but
> embedded ones were being output as text. I contacted them to ask if
> they could configure their side to work with <?php ?>, but they
> have refused. Is there any good reason for this, or is it as I
> suspect, they don't know how to do it. I even sent them a link to
> instructions on how to do it.
>
> Is this normal for them to refuse to do this ?

<snip>

It depends. Forcing to parse HTML files is kinda overhead. Unless
there is no good reason to do it, may resist doing it. It is always a
good practice to embed HTML in .php files than to embed PHP codes in
..html files.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Reply With Quote
  #4 (permalink)  
Old 03-21-2005
Eric
 
Posts: n/a
Default Re: web hosts wont configure server for <?php ?> tags

charlie fortune <google@charliefortune.com> wrote:

> Or do I have to get a
> new host..?


Well, this is what I would likely do.

Reply With Quote
  #5 (permalink)  
Old 03-21-2005
Justin Koivisto
 
Posts: n/a
Default Re: web hosts wont configure server for <?php ?> tags

charlie fortune wrote:

> My web hosts are streamline.net. After a lot of problems with my pages
> which included php inside Html, I realised that their parser wasn't
> recognizing the tags. Entire .php scripts were running ok, but
> embedded ones were being output as text. I contacted them to ask if
> they could configure their side to work with <?php ?>, but they
> have refused. Is there any good reason for this, or is it as I
> suspect, they don't know how to do it. I even sent them a link to
> instructions on how to do it.
>
> Is this normal for them to refuse to do this ? Does php.net have any
> kind of literature I could send them to encourage them, or are there
> some security risks that I don't know about ? Or do I have to get a
> new host..?


I don't know anything about your host, but try creating a .htaccess file
in your doc root that contains:

AddType application/x-httpd-php .html

If is an apache server, and the host allows for Overrides, then this
should work fine. Otherwise, get a different host or change all .html
files that have PHP in them to .php

--
Justin Koivisto - justin@koivi.com
http://koivi.com
Reply With Quote
  #6 (permalink)  
Old 03-22-2005
Chung Leong
 
Posts: n/a
Default Re: web hosts wont configure server for <?php ?> tags

"charlie fortune" <google@charliefortune.com> wrote in message
news:8f3ded09.0503210153.10a807c4@posting.google.c om...
> Is this normal for them to refuse to do this ? Does php.net have any
> kind of literature I could send them to encourage them, or are there
> some security risks that I don't know about ? Or do I have to get a
> new host..?


Yes, because it's not a general practice to do so. If a file needs to be
parsed by PHP, people usually would give it the extension .php, even if it
contains mostly HTML code.


Reply With Quote
  #7 (permalink)  
Old 04-22-2005
Joe Webster
 
Posts: n/a
Default Re: web hosts wont configure server for <?php ?> tags

"charlie fortune" <google@charliefortune.com> wrote in message
news:8f3ded09.0503210153.10a807c4@posting.google.c om...
> My web hosts are streamline.net. After a lot of problems with my pages
> which included php inside Html, I realised that their parser wasn't
> recognizing the tags. Entire .php scripts were running ok, but
> embedded ones were being output as text. I contacted them to ask if
> they could configure their side to work with <?php ?>, but they
> have refused. Is there any good reason for this, or is it as I
> suspect, they don't know how to do it. I even sent them a link to
> instructions on how to do it.
>
> Is this normal for them to refuse to do this ? Does php.net have any
> kind of literature I could send them to encourage them, or are there
> some security risks that I don't know about ? Or do I have to get a
> new host..?


If your talking about filtering .html files through the PHP processor, I as
a webhost might refuse to do it also. If you have a file that contains PHP
give it a .php extension -- that's why there is one.

Is there something stopping you from using a .php extension with your file?

Now, don't get me wrong, webhosting (especially PHP/mySQL) is easy to come
by, so if you are really having problem with them, looking elsewhere isn't
such a bad idea... but don't jump the gun :)

-Joe


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0