If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: cheeseus
Forum Index » Profile for cheeseus » Messages posted by cheeseus
Author Message
I seem to be doing something wrong while trying to set up the "download.pl" file. I have to admit, I know nothing about Perl. Could you please help?
1. To begin with, the first line, the path to the Perl Program - how do I write it? Is it !/usr/bin/perl - I have removed the # - isn't it for commenting? The path is correct.
2. # url to script
$cgiurl = "http://www.cheeseus.org/scriptures/cgi-bin/download.pl";
Is it OK that I put the CGI-BIN directory inside another one?
3. Then, the...
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.cheeseus.org/downloads";

# path to the downloads from the server root! (use for scanning)
$base_dir = ""/web/d2/w/cheeseus/cheeseus.org/downloads";

Can this "Downloads" folder be where I've put it, or should it be INSIDE the CGI-BIN directory?

4. When I type
http://cheeseus.org/scriptures/cgi-bin/download.pl?admin=enter
I get 500 Internal Server Error

I will appreciate your help!
Thank you!
Reading other postings I eventually found a solution:
in order for my template to show, I had to change the "include_once" to "require_once":

require_once "/web/d2/w/cheeseus/cheeseus.org/poll/textfile/booth.php";
$php_poll->set_template_set("Modern");
echo $php_poll->poll_process(11); // x = Poll ID

Then, as it were, I had forgotten to make the templates for the Poll Result and the Comment, but now I made them, so it's all running smoothly!
Thanks once again!
Nope, nothing whatsoever, no trace of poll
Now comes the difficult part
Can I use my own template? I designed one using the Admin panel, it's available in the template drop-down menu, I can preview it etc. BUT when I include the code:

$php_poll->set_template_set("Modern");

the poll doesn't appear at all...
Any suggestions?
 
Forum Index » Profile for cheeseus » Messages posted by cheeseus
Go to:   
Based on the open source JForum