Help - Search - Members - Calendar
Full Version: PHP Help
Forums > Resource Center > Webmasters' Corner
theerinkal
Is there any way of hosting a site on freewebs.com and having PHP files at the same time?

My Friend and I are discussing it and we don't know.

Please Help.

My site, if you want to check it out (I'm working on the layout), is sugar-blossom.net.

I paid freewebs for a year so I would like to stay there if I can. But my friend told me that PHP is easier than using HTML, CSS and Javascript.
schizo
PHP is easier, but I thought I heard you can't use it with Freewebs. Have you tried checking the Freewebs site? They usually say if they support PHP or not...
theerinkal
QUOTE(schizo @ Aug 24 2008, 03:35 PM) *
PHP is easier, but I thought I heard you can't use it with Freewebs. Have you tried checking the Freewebs site? They usually say if they support PHP or not...


I will check into that. thanks!

you are right thanks schizo! But I also want to know if there is a way of pointing my domain name hosted on freewebs to 000webhost.com or something like that.
meloco32
QUOTE(theerinkal @ Aug 24 2008, 04:17 PM) *
you are right thanks schizo! But I also want to know if there is a way of pointing my domain name hosted on freewebs to 000webhost.com or something like that.

if you just want to redirect the traffic to the new site try putting this in the head tag of your freewebs page
CODE
<META http-equiv="refresh" content="1;URL=http://yoursite.com">

If you want it to show your page on 000webhost but still want it to show the domain on freewebs. frames or iframes should work.
schizo
Please please please refrain from double posting. There's an edit button there for a reason. wink.gif

Are you looking to redirect just, or are you trying to transfer servers?
theerinkal
QUOTE
if you just want to redirect the traffic to the new site try putting this in the head tag of your freewebs page
CODE

<META http-equiv="refresh" content="1;URL=http://yoursite.com">

If you want it to show your page on 000webhost but still want it to show the domain on freewebs. frames or iframes should work.

I don't understand what you are saying
QUOTE
Are you looking to redirect just, or are you trying to transfer servers?


What is the difference?

I would say redirect but I want to still have my site address be sugar-blossom.net but be hosted on 000webhost.
ex.) I want you to be able to go to my site (that I bought on freewebs)
but I want to be able to use PHP which is on 000webhost.com

Is that clearer?
schizo
Umm, not really. If you bought the domain name on freewebs (which I didn't know you could do), I don't see why you wouldn't be able to use it on the other host site. You can't use the webspace you bought from freewebs if you no longer want to be hosted by them, though. You'll have to buy from 000webhost.com and move your site over.
theerinkal
QUOTE(schizo @ Aug 24 2008, 06:47 PM) *
Umm, not really. If you bought the domain name on freewebs (which I didn't know you could do), I don't see why you wouldn't be able to use it on the other host site. You can't use the webspace you bought from freewebs if you no longer want to be hosted by them, though. You'll have to buy from 000webhost.com and move your site over.


I looked in my account settings and there was nothing that said "redirect your site" or anything like that. So I don't really know if I can. I checked their FAQ and I didn't see a question about that there.
schizo
So do you have webspace or an account on 000webhost.com or no? Just try clicking the sign up button and type in your domain name. I have a feeling that there's more to do to "disconnect" it from your freewebs hosting, but there's no harm in trying.
theerinkal
QUOTE(schizo @ Aug 24 2008, 07:01 PM) *
So do you have webspace or an account on 000webhost.com or no? Just try clicking the sign up button and type in your domain name. I have a feeling that there's more to do to "disconnect" it from your freewebs hosting, but there's no harm in trying.


yes I'll try editing my site there and see if it comes up when I go to my domain name. Good Idea!

I wasn't able to edit my site.
only-tuesdays
If you already paid for hosting on freewebs why move it?

To move your domain to a new host you have to adjust the DNS settings. I haven't done that in years though so I can't exactly explain it very well. Is your domain registered to your name? Did you purchase it with your hosting at Freewebs? Because there may be a contract.
meloco32
ok I think I know what your trying to do now. this will make the address bar say sugar-blossom.net but it will actually be showing a page on 000webhost.

change 'http://yoursite.com' to the place your files are stored on 000webhost, save as index.html and upload to the main directory of sugar-blossom.net, then transfer your files over
CODE

<frameset rows="*,100%" framespacing="0" border="0" frameborder="0">
<frame src="" noresize scrolling="no">
<frame src="http://yoursite.com" scrolling="auto" noresize>
</frameset>
Lariat
CSS > HTML any day. It's just so much easier. So boo to the people that selected HTML and not CSS. :P
theerinkal
QUOTE(kreios @ Aug 25 2008, 11:39 AM) *
CSS > HTML any day. It's just so much easier. So boo to the people that selected HTML and not CSS. :P


I really don't know the difference. So I would think that I would say HTML is what I use but it could be CSS.

---------------------------

I'm going to keep my site at freewebs but thanks for the help!! <3
fixtatik
QUOTE(theerinkal @ Aug 30 2008, 01:54 PM) *
I really don't know the difference. So I would think that I would say HTML is what I use but it could be CSS.

CSS is dependent on HTML to work, since CSS is just coding to style the HTML.

PHP & javascript are also part of HTML, but in a different sense. PHP does things on the back end of the server (it's code that's processed before the page displays, so you can't actually see it). javascript is similar, but shows up in the code.

what you should be using depends on what you want to do. if you want to host a blog on your website, then you'll usually have to use PHP. and actually, being on freewebs, you still can use PHP, just in a different way.

say you wanted to install cutenews on your freewebs account (you can't use the better developed ones, like wordpress or fanupdate, because those require mysql databases). when installing cutenews, you're given a code like this to put on your site:
CODE
<?php
include('path/to/show_news.php');
?>

to make it work on freewebs, you'd form the code like this:
CODE
<script language="php">
include('path/to/show_news.php');
</script>
theerinkal
ok i understand it better.....but not completly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.