by dabempire | Feb 26, 2011 | Knowledgebase, Scripting (HTML, PHP, Perl/CGI)
PHP is a powerful, server-side scripting language that can be used to extend the functionality of your pages in many ways. It is activated by naming the files that use it with the extension .php3, .phtml or .php We offer secure version of PHP that runs under the userid of the account holder. PHP is embedded within a page by enclosing commands within the start tag For more information on PHP, we recommend you visit the official PHP website...
by dabempire | Feb 26, 2011 | Knowledgebase, Scripting (HTML, PHP, Perl/CGI)
The valid file extensions for PHP scripts are listed below, one of these file extensions must be used for your Php scripts in order to run properly. .php .php3 .php4 .php5 .phtml
by dabempire | Feb 26, 2011 | Knowledgebase, Scripting (HTML, PHP, Perl/CGI)
When you configure a cgi script for any server, it may ask you to set variables such as the base, relative, and CGI directory/url settings. ** In case of cPanel/WHM, DirectAdmin and Interworx based servers the home directory will be /home/USERNAME/ Your webpath will be /home/USERNAME/public_html/ which will serve: http://www.your_domain.com/ So if you need the path to your cgi-bin it would be: /home/USERNAME/public_html/cgi-bin/ which would serve: http://www.your_domain.com/cgi-bin/ ** In case of Plesk based servers the home directory will be /var/www/vhosts/DOMAIN.TLD/ Your webpath will be /var/www/vhosts/DOMAIN.TLD/httpdocs/ which will serve: http://www.your_domain.com/ So if you need the path to your cgi-bin it would be: /var/www/vhosts/DOMAIN.TLD/cgi-bin/ which would serve:...
by dabempire | Feb 26, 2011 | Knowledgebase, Scripting (HTML, PHP, Perl/CGI)
Some programs such as the ones, which send email will need to know where the Sendmail program resides on the server. The script will typically have a setting like this: $mail = ‘/usr/sbin/sendmail’; Sendmail on our servers can be found here: /usr/sbin/sendmail or...
by dabempire | Feb 26, 2011 | Knowledgebase, Scripting (HTML, PHP, Perl/CGI)
Although you can place cgi scripts in random directories throughout your site, it’s best if you keep them in their own directory, the cgi-bin. This minimizes security risks and allows you for easier maintenance.
by dabempire | Feb 26, 2011 | Knowledgebase, Scripting (HTML, PHP, Perl/CGI)
Server Side Includes (SSI) is a feature of CGI that enables you to dynamically insert a piece of information onto any “.shtml” web page. The browser displays the inserted code as if it was hard coded onto that page. For example, if you are interested in displaying the current date and time on your Web page, add one simple SSI code onto the page: Every account supports Server Side Includes but in order for SSI to work, your file must be named with the “.shtml” extension. Some things you can do with SSI: – Display the current date and time in many different formats – Display the last modified date of a file – Insert/Include a document inside another; and – Execute a CGI script or a command directly from the page. – Include a document inside...