Site Panel Help User Panel Help Panel Demo's Search Help

Categories

· Show all categories

· New Customer FAQs
· E-Mail
· FTP - File Transfers
· Domains
· SSH and Telnet
· Scripting Languages
· Password Protection
· MySQL
· Stats
· Power Tools

· FAQ Home

· EchoEcho+ Support

XML-File

<?xml version="1.0" encoding="iso-8859-1"
standalone="yes" ?>
<!-- XML-Output by phpMyFAQ 1.3.8 -->
<phpmyfaq
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:NamespaceSchemaLocation="http://www.phpmyfaq.de/xml/faqschema.xsd">
<article id="46">
	<language>en</language>
	<category>Perl - Cgi</category>
	<keywords></keywords>
	<theme>What are the most obvious
errors to look for with perl
scripts?</theme>
	<content
xmlns="http://www.w3.org/TR/REC-html40">By default cgi will only run
inside your cgi-bin folder.
This folder is
located at /var/www/cgi-bin (outside your main website
folder, located in
/var/www/html).

You can enable scripts in all folders on your site, using
the simple trick
described here: 
<a
href="/helpfiles/index.php?aktion=artikel&amp;rubrik=017&amp;id=41&amp;lang=en">How
do I enable scripts outside of my cgi-bin folder?</a>.

If you&#039;re sure the script is in the correct folder,
you can use this list to double check for the most common
pitfalls:

1: Make sure the first line in your script looks like this:
#!/usr/bin/perl

2: Make sure the file has a .cgi extension.

3: Make sure you used ASCII mode to upload the file.

4: Make sure both the folder and the file has chmod set to
755 
(Do this with your FTP program).

5: Make sure the script prints the content type before any
plain html. 
For example: 
print &quot;Content-Type: text/html15121512&quot;; 

6: Make sure the script prints the content type even if the
script has no
real output.

7: Make sure all lines ends with a ; (semi colon).

8: Make sure all print statements have the same starting and
ending quotes
- either single or double as long as it&#039;s the same.

9: Make sure that your use of $, @ and % in print statements
are not
confused with scalar, array or hash variables.

10: If none of the above works try commenting parts of the
script (with #),
then upload and test it, to locate the area that has the
bug. 

If everything else fails, you should try this:
<a
href="/helpfiles/index.php?aktion=artikel&amp;rubrik=017001&amp;id=47&amp;lang=en">I
have tried everything and now I doubt perl is working
correct on my
domain!
</a></content>
	<author>EchoEcho Support</author>
	<date>12.07.2009, 21:13</date>
</article>
</phpmyfaq>

open XML-File

Copyright © EchoEchoPlus Hosting