Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 23rd, 2000, 03:04 AM
mfkoo mfkoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 65 mfkoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Hi, i am doing a page which will check the user's cookies and then make a html page depends on their selected option.

As i know, perl code will run when a button or a user click on the page. But now, i am trying the run perl file when user go to my main page withou any clicking. Can any one help me .....thankss

Reply With Quote
  #2  
Old May 23rd, 2000, 06:39 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
You have any problems with index.pl?

Reply With Quote
  #3  
Old May 23rd, 2000, 07:01 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 14
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
Or

you can just redirect the user to the .pl page from homepage.



------------------
SR -
shiju.dreamcenter.net

"The fear of the LORD is the beginning of knowledge..."

Reply With Quote
  #4  
Old May 23rd, 2000, 09:02 PM
mfkoo mfkoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 65 mfkoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Thanks for reply, I am sorry that i am new with perl and xml also.So, the index.pl file is something like index.html which will load automatic right?

Or, redirect mean link to other page, it the html code or perl.I know html can do it....

Reply With Quote
  #5  
Old May 23rd, 2000, 09:21 PM
Gil Gil is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 23 Gil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Gil Send a message via AIM to Gil
You can also use SSI, check with your host to see if it is available. If so, then most likely you will need to rename your index page to index.shtml or home.shtml or whatever the default document is.

Where you want the Perl program to display in your page, insert the following:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><!--#include virtual="/cgi-bin/script.pl"-->[/code]
Where /cgi-bin/script.pl is the virtual path to your perl program. Virtual paths are relative to the base url, so if your program is located at http://mydomain.com/cgi-bin/myscripts/script.pl, then the virtual path will be /cgi-bin/myscripts/script.pl

Hope this is of some use to you. Best of luck.

------------------
It was Aristotle who concluded that those who admit their stupidity are truly wise.
-
Gil Hildebrand Jr
4atcost.com Senior Web Developer

Reply With Quote
  #6  
Old May 24th, 2000, 12:21 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>the index.pl file is something like index.html which will load automatic right?

Yes only if index.pl is included in your httpd.conf as:
DirectoryIndex index.html index.htm index.pl

Or

If you are allowed to use .htaccess, you can simply upload an .htaccess to that directory with the following one line:
DirectoryIndex index.pl

In fact, it doesn't has to be named 'index.pl', it could even be anything.pl as long as you specify anything.pl in your .htaccess like above.

Reply With Quote
  #7  
Old May 24th, 2000, 01:21 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 14
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan

<<
the index.pl file is something like index.html which will load automatic right?
Or, redirect mean link to other page, it the html code or perl.I know html can do it....
>>>
you can simple write a java script .it will redirect your users to .pl file.probably it may not work in some old browsers.so better you should set your index.pl as your default page.

#####---

jave script eg:

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">

function redirect(){
window.location="index.pl";
}
</SCRIPT>
</head>
<body onLoad="redirect();">

<a href="index.pl">Your browser is not supporting redirect.click here to go to home</a>

</body>
</html>




------------------
SR -
shiju.dreamcenter.net

"The fear of the LORD is the beginning of knowledge..."

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Can perl run without user interact?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap