?
Solved

SIMPLE ANSWER

Posted on 2001-07-11
1
Medium Priority
?
170 Views
Last Modified: 2013-12-25
Hi,
I am creating this script which will submit a form to my e-mail and then redirect to my main page. It worked fine on hypermart but I have to host it on some host called supanames. I changed the perl and sendmail location but I can't change the location back to my homepage.

One hypermart is was :

print "Content-type: text/html\n\n";
open(HANDLE,"/data1/hypermart.net/krooga/support/thanks.htm") || die $!;
while(<HANDLE>) {
s/grfx/..\/grfx/g;
print;
}

On supanames :

print "Content-type: text/html\n\n";
open(HANDLE,"????????????????thanks.htm") || die $!;
while(<HANDLE>) {
s/grfx/..\/grfx/g;
print;
}

What do I put where you see the ?????????????
On the support site it says that the path to my website is $ENV{DOCUMENT_ROOT}. What should I do to link it back to my main index page ?

Sam ;-)
0
Comment
Question by:samgonzales
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
amandeep earned 150 total points
ID: 6274524

samgonzales,

Replace :
open(HANDLE,"????????????????thanks.htm") || die $!;

With:
$docRoot=$ENV{DOCUMENT_ROOT};
open(HANDLE,"$docRoot/support/thanks.htm") || die $!;

Check the path of ur file from the document root.

Hope this helps.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question