Solved

SIMPLE ANSWER

Posted on 2001-07-11
1
169 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 50 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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

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 …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve 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 …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

687 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