Forum Moderators: coopster

Message Too Old, No Replies

Plan for a website

         

SPetr

8:24 am on May 27, 2005 (gmt 0)



I am thinking of setting up my own website.

The structure I am thinking about is one where you have the main window of the site coded with <div>s. For the main site content, I am thinking of either using PHP includes or XML parsed by php code.

My university provides me with webspace which is free and has unlimited bandwidth. The problem is that it has no scripting languages except some castrated version of perl.

So what I'm thinking to do, is to get a free webspace with some nice scripting installed, maybe buy a domain name. I will only put the code necessary for the site to work and the various scripts on that webspace. I am planning to put the bulk of the site - individual pages and pictures on the university webserver.

I am thinking of structuring the site from small components written in either XML or plain html. Then I will use a mySQL database to index them, maybe adding a search function.

So, if the content pages are stored on a separate server and then parsed by PHP, does it mean that they will still use the bandwidth of the main site? I was also wondering if anyone had experience with parsing XML by a php code. Tell me what you think of this idea.

mcibor

1:42 pm on May 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmasterworld!

The bandwith will depend on how do you parse the data with your php. If you inlcude it, then goodbye bandwith (because you first download the data from university to server and then to user). However if you inlude the data as, eg img:
<img src="www.university.com/your_image<?php echo $img_number;?>.png"> then it's ok. User downloads the data straight from university.

The same is with frames - the whole frame may be downloaded from uni.

As for using xml I am no expert on this, but it works very well (however data is transfered first to server)

hope this gives you maybe not exactly start, but some inview

Best regards
Michal Cibor

SPetr

9:32 pm on May 28, 2005 (gmt 0)



Thanks

ergophobe

11:55 pm on May 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Putting your "pages" on one server and your scripts on another will not save you any bandwidth. Actually, if your incoming bandwidth gets counted, it will actually increase the amount you use.

Look at it this way - anything that can be seen via "view source" will count against you. The things that you could put on another server are things that get included in your page on the browser end, such as

- images
- CSS files
- javascript files

I would say, don't worry about it. If you put your images on the university server, you will need to serve up a *lot* of text to exceed your allowance, unless it's tiny.

By the time you're getting thousands of page view per day, you should be able to make enough money from Google Adsense that you could pay for the server to handle it , especially if images and downloads and so on are being hosted on your uni server.