Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SIMPLE ANSWER

Posted on 2001-07-11
1
Medium Priority
?
173 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
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

926 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