Solved

SIMPLE ANSWER

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
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…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

734 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