chrometweaks.org

What is Data centers and what is the use in iPage web hosting?

Click Here To View All Answers...


Quick question... What is Data centers and what is the use in iPage web hosting? Thanks in advance for any response. Second question of mine... Http://wh.theewe.net/epics/epics/4.shtml.

How would I fix that?.

Thanks,.

Roy Manninen.

Wrestling's Heroes /img/avatar2.jpg..

Comments (11)

Good question... I dunno what is the answer to your question. I'll do some investigation and get back to you if I bump into an anything. You should email the people at iPage as they probably could give you help..

Comment #1

In that case, it probably is the CGI script. not sure how to fix that! you might try asking someone over at one of the scripting forums. sorry I couldn't help!..

Comment #2

It seems as if the cgi script is pasting text in tables that are not properly sized..

I detected some td's wich were like 600, if your cgi script is generating td's then you should prolly add a </td></tr> after it..

Its not properly ending the tables. Overall it's a mess. But you should be able to fix it by adding <br>'s after your message generating line and prolly a </td></tr> will do also.

If you paste your cgi code here I might be able to check it for you.

Good luck, if it aint working ill be here to help...

Comment #3

I'm attaching the board code..

::::Code for Board::::.

#!/usr/bin/perl.

##############################################################################.

# InWebBoard was written by darrel Michaud () 6/14/02 #.

# #.

# Do whatever you want with the script except: #.

# 1. Sell it. You may install it for a fee, but to not sell it. #.

# 2. Claim it as your own. If you modify it heavily, fine. Still, credit me. #.

# 3. Uhh... that's it. #.

##############################################################################.

#####################################################.

# Setting up the Variables and the like. #.

#####################################################.

$directory = "/home/theewe/public_html/wh/epics";.

$baseurl = "http://wh.theewe.net/epics";.

$cgi_url = "http://wh.theewe.net/epics/inwebboard.pl";.

$mesgdir = "epics";.

$datafile = "$directory/data.txt";.

$mesgfile = "index.shtml";.

$ext = "shtml";.

$archive = "$baseurl/archives";.

$rpname = "Epics";.

$archdir = "/home/theewe/public_html/wh/epics/archives";.

$error = "$baseurl/error.shtml";.

$header = "<!#include virtual=\"/ssi/header.shtml\" >";.

$footer = "<!#include virtual\"/ssi/footer.shtml\" >";.

$latestpost1 = "/home/theewe/public_html/wh/epics/1.inc";.

$latestpost2 = "/home/theewe/public_html/wh/epics/2.inc";.

$latestpost3 = "/home/theewe/public_html/wh/epics/3.inc";.

$latestpost4 = "/home/theewe/public_html/wh/epics/4.inc";.

$latestpost5 = "/home/theewe/public_html/wh/epics/5.inc";.

#####################################################.

# Orders of Executions. #.

#####################################################.

&getnumber;.

&formparse;.

&variables;.

&roleplay;.

&linkage;.

&archiving;.

&redirection;.

&addnumber;.

#####################################################.

# Getting the number for the filename. #.

#####################################################.

Sub getnumber {.

Open(NUMBER,"$datafile");.

$num = <NUMBER>;.

Close(NUMBER);.

If ($num == 999999 || $num !~ /^\d+$/) {.

$num = "1";.

}.

Else {.

$num++;.

}.

}.

#####################################################.

# Parse the Form to understand the variables. #.

#####################################################.

Sub formparse {.

Local($name,$value);.

Read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});.

@pairs = split(/&/, $buffer);.

Foreach $pair (@pairs) {.

($name, $value) = split(/=/, $pair);.

$value =~ tr/+/ /;.

$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;.

$value =~ s///g;.

$value =~ s/<!(.| )*>//g;.

$FORM{$name} = $value;.

}.

}.

#####################################################.

# Get the variables from the form. #.

#####################################################.

Sub variables {.

If ($FORM{'name'}) {.

$name = "$FORM{'name'}";.

}.

Else {.

&error(no_name);.

}.

$file = "$FORM{'file'}";.

If ($FORM{'location'}) {.

$location = "$FORM{'location'}";.

}.

If ($FORM{'alignment'}) {.

$align = "$FORM{'alignment'}";.

}.

If ($FORM{'subject'}) {.

$subject = "$FORM{'subject'}";.

}.

Else {.

&error(no_subject);.

}.

If ($FORM{'body'}) {.

$body = "$FORM{'body'}";.

$body =~ s/\cM//g;.

$body =~ s/ /<p>/g;.

$body =~ s/ /<br>/g;.

$body =~ s/&lt;/</g;.

$body =~ s/&gt;/>/g;.

$body =~ s/&quot;/"/g;.

$body =~ s/ /&nbsp;/g;.

}.

Else {.

&error(no_body);.

}.

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);.

$month = ($mon + 1);.

@months = ("January","February","March","April","May","June","July","August","September","October","November", "December");.

$year += 1900;.

$long_date = sprintf("%s %02d, %4d",$months[$mon],$mday,$year);.

$year %= 100;.

$date = sprintf("%02d/%02d/%02d",$month,$mday,$year);.

}.

#####################.

# Post Moving.

Open (GETDATA,"<$latestpost5");.

$lp5=<GETDATA>;.

Close (GETDATA);.

Open (GETDATA,"<$latestpost4");.

$lp4=<GETDATA>;.

Close (GETDATA);.

Open (GETDATA,"<$latestpost3");.

$lp3=<GETDATA>;.

Close (GETDATA);.

Open (GETDATA,"<$latestpost2");.

$lp2=<GETDATA>;.

Close (GETDATA);.

Open (PUTDATA,">$latestpost4");.

Print PUTDATA ($lp5);.

Close PUTDATA;.

Open (PUTDATA,">$latestpost3");.

Print PUTDATA ($lp4);.

Close PUTDATA;.

Open (PUTDATA,">$latestpost2");.

Print PUTDATA ($lp3);.

Close PUTDATA;.

Open (PUTDATA,">$latestpost1");.

Print PUTDATA ($lp2);.

Close PUTDATA;.

#####################.

#####################.

# Latest Post.

Open (DAT,">$latestpost5");.

Print DAT "<a href=\"$baseurl/$mesgdir/$num\.$ext\"><img src=/poser/$file-little.jpg border=0></a>";.

Close (DAT);.

#####################################################.

# Make the new file for the new roleplay. #.

#####################################################.

Sub roleplay {.

Open(NEWFILE,">$directory/$mesgdir/$num\.$ext") || die $!;.

Print NEWFILE "$header<img src=\"/poser/$file-full.jpg\" align=\"$align\" hspace=\"10\"><font size=4>$subject</font><br>$name ($long_date)<br><i>$location</i><p>$body<p>-<a href=$archive/$file.shtml>View $name\'s $rpname Archive</a><br>-<a href=http://wh.theewe.net/bios/bio.cgi?$file>View $name\'s Biography</a>$footer ";.

Close(NEWFILE);.

}.

#####################################################.

# Linkage on the main page. #.

#####################################################.

Sub linkage {.

Open(MAIN,"$directory/$mesgfile") || die $!;.

@main = <MAIN>;.

Close(MAIN);.

Open(MAIN,">$directory/$mesgfile") || die $!;.

Foreach $main_line (@main) {.

If ($main_line =~ /<!begin>/) {.

Print MAIN "<!begin> ";.

Print MAIN "<!top: $num> ";.

Print MAIN "<img src=\"/poser/$file-little.jpg\" align=\"left\"><a href=\"$mesgdir/$num\.$ext\">$subject</a> <br><b>$name</b><br>$date<br> ";.

Print MAIN "<br> ";.

Print MAIN "<!end: $num> ";.

}.

Else {.

Print MAIN "$main_line";.

}.

}.

Close(MAIN);.

}.

#####################################################.

# Adding it to the Archives. #.

#####################################################.

Sub archiving {.

Open(FILE,"$archdir/$file.shtml");.

@main = <FILE>;.

Close(FILE);.

Open(FILE,">$archdir/$file.shtml");.

Foreach $main_line (@main) {.

If ($main_line =~ /<!archive>/) {.

Print FILE "<!archive> ";.

Print FILE "<!top: $num> ";.

Print FILE "<img src=\"/poser/$file-little.jpg\" align=\"left\"><a href=\"$baseurl/$mesgdir/$num\.$ext\">$subject</a> <br> $date<p> ";.

If ($location) {.

Print MAIN "<i>$location</i> ";.

}.

Else {.

Print MAIN "<br> ";.

}.

Print FILE "<!end: $num> ";.

}.

Else {.

Print FILE "$main_line";.

}.

}.

Close(FILE);.

}.

#######################################.

# When it's been submitted.... #.

#######################################.

#######################################.

# Redirect to post..... #.

#######################################.

Sub redirection {.

Print "Content-type: text/html ";.

Print "<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;url=$baseurl/$mesgdir/$num\.$ext\"></head> ";.

Print "</body></html> ";.

}.

#######################################.

# Add one to the number... #.

#######################################.

Sub addnumber {.

Open(NUM,">$datafile") || die $!;.

Print NUM "$num";.

Close(NUM);.

}.

#######################################.

# Somebody screwed up... error pages. #.

#######################################.

Sub error {.

$error = $_[0];.

Print "Content-type: text/html ";.

If ($error eq 'no_name') {.

Print "<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;url=$error\"></head> ";.

Print "<body></body></html> ";.

}.

Elsif ($error eq 'no_subject') {.

Print "<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;url=$error\"></head> ";.

Print "<body></body></html> ";.

}.

Elsif ($error eq 'no_body') {.

Print "<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;url=$error\"></head> ";.

Print "<body></body></html> ";.

}.

Else {.

Print "<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;url=$error\"></head> ";.

}.

}..

Comment #4

Your page is incomplete. the cell is not being closed along with most of the tables. if the text is being inserted into a cell then it should be automatically forced to wrap when it hits the size of the cell...

Comment #5

View source on that page....there is a closing td...

Comment #6

Still I strongly recommend to add some </td></tr> after the printing lines in your code so that when the files are written it can be properly included. Thus not making the long lines without breaks...

You say that it has some </td>'s in your code but that doesnt matter either, what you need to start a new line are </tr>'s..

Get it?..

Comment #7

Uhh no there is not. this is the last line I see.

<a href=http://wh.theewe.net/epics/archives/stalin.shtml>View Test's Epics Archive</a><br>.

<a href=http://wh.theewe.net/bios/bio.cgi?stalin>View Test's Biography</a>.

Also I think you need to fix it so it doesn't make it all one line. that is whats stretching th ecell. with all the &amp;nbsp; in there, the table thinks it is a continious line so it can't break it and wrap it...

Comment #8

You said that when you type your entry into the textarea, it automatically wraps..

Have you tried forcing linebreaks within the textarea by pressing 'enter'?.

If this makes the difference, we can probably make a change to the script so that it'll work...

Comment #9

Dude!.

Look at the text it parses:.

<small><img src="http://wh.theewe.net/poser/comingsoon-body.gif" align="right" hspace="10"><font size=4>Test</font><br>Test (June 29, 2002)<br><i>Test</i><p>This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This& nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nb sp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp; test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This& nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nb sp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp; test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This& nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nb sp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp; test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This& nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nb sp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp; test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This& nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nb sp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp; test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This& nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nbsp;a&nbsp;test.This&nbsp;is&nb sp;a&nbsp;test.v<p><a href=http://wh.theewe.net/epics/archives/stalin.shtml>View Test's Epics Archive</a><br>.

<p><a href=http://wh.theewe.net/epics/archives/stalin.shtml>View Test's Epics Archive</a><br><a href=http://wh.theewe.net/bios/bio.cgi?stalin>View Test's Biography</a>.

Not 1 single </tr> innit!!!!!!!!!!!!!!!!!1111!!!11!!1.

And only 1 <BR>.

There is your problem, add some f*n tr's in your cgi.

Aight?..

Comment #10

Roy, have you been to that page you have linked there? goto it and click on view source. you will see that thre is no closing tags for teh tables or the html. in fact I bet your page []will not[/b] work in NS4.xx as it won't parse a page with missing tags..

And wijbenga, that is not the problem, although it won't hurt putting it in, it won't fix his problem. he problem is that the line that is clear across the page is becuase it is one continious line..

Make it so it doesn't put all those &amp;nbsp; in it..

Comment this lin eout of your cgi script..

$body =~ s/ / /g;.

Just add a # to it. see if that fixes it...

Comment #11

There is also one more problem... I need.

Http://wh.theewe.net/epics/epics/11.shtml.

To look like.

Http://wh.theewe.net/epics..

Comment #12


This question was taken from a support group/message board and re-posted here so others can learn from it.