Point Dogbark.com >> How To >> Programming >> scripting

Here's a few bits of information you may need when setting up perl or php

Versions.

We are currently running the following versions ...

Perl: 5.005_03
PHP: 4.3.1
MySQL 3.23.56

Here are a few paths you may need:

perl: /usr/bin/perl (Note: this makes your perl shebang as follows: #!/usr/bin/perl)

sendmail: /usr/sbin/sendmail

data path: /www/yourdomainhere.com/htdocs/ (Note: when noting your domain in the path, be sure to include the top-level domain, eg. .com, The path will not work without the TLD.)

Other Notes.

All perl scripts must be in the /cgi-bin directory of your account in order to run, and should have extensions of either .cgi or .pl.

Any script will need to have a change mode run in order to be either executable or writable. The FTP command for this is:

executable: site chmod 755 /filepath/filename
exec/write: site chmod 777 /filepath/filename

Any php files must have the extension .php. The extension .php3 is not required, as php4 will execute php3 files, with a few exceptions. See php.net for details.

Resources.

Here's a few resources we've found for perl and php (in no particular order)
Matt's Scripts
PHP Resource Index
CGI Resource Index
Freshmeat.net
Source Forge
PHP Home Page
O’Reilly Network