FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » why php echo does not show up in HTML?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: why php echo does not show up in HTML? [message #181688 is a reply to message #181649] Sat, 25 May 2013 03:59 Go to previous messageGo to previous message
gordonb.aykca is currently offline  gordonb.aykca
Messages: 1
Registered: May 2013
Karma:
Junior Member
> That doesn't mean you can't change the configuration for your portion of it.
>
>> I can't call my hosting company talk to tech support and tell to
>> please edit the server config files for me and see if this will work.
>
> No, that's true, you can't. Fortunately, you don't need to. You should be able to do everything
> you need in the .htaccess file in your web root directory. You possibly will need to add a

This presumes that the hosting company has not put the directive
"AllowOverride None" in their configuration for your site. (For
Apache 2.3.9 and later, this is the default). It speeds up serving
web pages slightly by never looking for .htaccess files at all.
Therefore, you can't do redirects in .htaccess . If you discover
that your hosting company does this and they won't budge, find
another hosting company.

I recall trying to help some friends dealing with a hosting company
paranoid about security, at least for cheap/free accounts. One
official way to close your account was to upload a .htaccess file
(containing anything at all, or nothing at all). Your account would
be gone within an hour. So would all the other accounts using the
same payment account. And no, you couldn't get it back, except
perhaps by using a fake name and different domain name and payment
account. This was long ago and they offered essentially NO active
content or PHP except a hit counter CGI they provided.

You *CAN* do a redirect with pure HTML (done in the user's browser):

<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="1;URL=http://mysite.com/path/foobar.php">
</HEAD>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Contact Form, mt-rand(), problem Validating 1 input
Next Topic: Parsing mbox files with Windows Php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 03:21:09 GMT 2024

Total time taken to generate the page: 0.05582 seconds