+ Reply to Thread
Results 1 to 3 of 3

Thread: PHP Problems

  1. #1
    Parsa44 is offline x10 Sophmore Parsa44 is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    232

    PHP Problems

    About 6 months ago i signed up for a free host, unlimited bandwidth 500mb space and free domain for 2yrs.

    After building my website a bit i decided to start learning PHP. It was all going well till i discovered my host didnt support PHP.

    Now i am pretty stuck because the registrar i am with charges $35 for 1 yr domain renewal. And my host wont give my DRK (domain registration key) unless i cancel all the 1.5yrs it has left on it.

    So if i do want to change hosts it will take about 6 weeks if i dont pay $35 to renew my domain for 1 yr....


    So here is the PHP related problem.

    Since i cannot have server side on my host, is it possible to use another URL, on another server to do the PHP bit then "send" it to my main host? Using javascript or something?

    I dont want to use a iframe because i dont want to damage my reputation with search engines. (iframes are constantly used to duplicate content)

  2. #2
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: PHP Problems

    Does your current host allow you to use .htaccess? If so, you shouldn't have a problem. Even if not, you can still redirect without using JavaScript.

    Put the following into your .htaccess (if you can use it):
    Code:
    RewriteEngine On
     
    RewriteCond %{HTTP_HOST} ^.*myoldsite\.com$ [NC]
    RewriteRule ^(.*)$ http://www.mynewsite.net/$1 [R=301,L]
    Obviously, change the address of the two site names in the above.

    In addition, your index page should look something like the following:
    HTML Code:
    HTTP/1.1 301 Moved Permanently
    Location: http://www.example.org/
    Content-Type: text/html
    Content-Length: 174
     
    <html>
    <head>
    <title>Moved</title>
    </head>
    <body>
    <h1>Moved</h1>
    <p>This page has moved to <a href="http://www.example.org/">http://www.mynewsite.net</a>.</p>
    </body>
    </html>
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

  3. #3
    Parsa44 is offline x10 Sophmore Parsa44 is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    232

    Re: PHP Problems

    The problem now is stealing the .com version of my domain >.< i really hope that guy doesnt want it anymore or has gone on a extended holiday or something.

    in 173 days it will expire and go through grace periods ect.
    Last edited by Parsa44; 02-21-2009 at 10:01 AM.

+ Reply to Thread

Similar Threads

  1. Places to learn php
    By JaWasabi in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 01-13-2009, 02:03 AM
  2. PHP Problems on Lotus?
    By big5online in forum Free Hosting
    Replies: 2
    Last Post: 12-22-2008, 04:15 AM
  3. php problems after upgrade
    By fparty in forum Free Hosting
    Replies: 1
    Last Post: 10-14-2008, 10:45 PM
  4. PHP Version Problems
    By WinGate in forum Free Hosting
    Replies: 5
    Last Post: 09-25-2007, 05:46 PM
  5. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers