Knowledgebase
RSS Feed
Knowledgebase : Web Drive Support > Web Hosting > Manage your Server & Databases > PHP, ASP & CGI/Perl
If you are using ASP.NET to send emails out using our SMTP server, smtp.webhost.co.nz, then following information will help. If connecting using TLS, use PORT 587. In ASP.Net 2.0, note that the SmtpClient class in System.Net.Mail uses TLS by default w...
YES, You can send emails using your PHP or ASP scripts. We recommend using a dedicated mail server to send the emails out. You can program your PHP or ASP script to talk to our mail server to send the emails. To use our mail server to send emails ou...
NO RESTRICTIONS. By default, _Register Globals_ is disabled and _Safe Mode_ is enabled. However you can change the settings of these by following the instructions in the following tutorials: * _How do I turn Safe Mode off? [https://support.webhost...
To download and include remote files within PHP you will need to use PHP's curl library, the full documentation for this can be found at the Client URL Functions [http://nz2.php.net/manual/en/ref.curl.php] reference page. This is an example function you...
By default, magic quotes are TURNED OFF to support large number of legacy PHP scripts we have. To enable them for a site, you need to create a _.htaccess_ file in the site's folder containing the line: php_flag magic_quotes_gpc on
The method of customizing error pages (such as the ones displayed when the HTTP server returns _404 Not Found_ or _403 Forbidden_) differs depending on if you have a Linux site or a Windows site. LINUX SITES: Create a file named _.htaccess_ containing...
OPTION 1: You use our Name Servers. You will need the change the domain template [https://support.webhost.co.nz/index.php?/webdrive/Knowledgebase/Article/View/391] for the domain to "SYSTEM: DEFAULT (LINUX PHP5.3)". OPTION 2: You do not use our Name S...
STEP 1. Click Here to go to CONTROL PANEL [HTTPS://CONTROLPANEL.SECURESERVER.CO.NZ/] and log into you account using your USERNAME and PASSWORD STEP 2. Click on the WEBSITES option under Services tab STEP 3. All the websites you have are listed on the ...
STEP 1. Click Here to go to CONTROL PANEL [HTTPS://CONTROLPANEL.SECURESERVER.CO.NZ/] and log into you account using your USERNAME and PASSWORD STEP 2. Click on the WEBSITES option under Services tab STEP 3. All the websites you have are listed on the ...
We currently support the PHP versions below: * PHP 4.4.2 (CName -> web.mydns.net.nz OR A -> 119.47.114.164) * PHP 5.2.17 (CName -> php5.mydns.net.nz OR A -> 119.47.114.165) * PHP 5.3.3-7 (CName -> web-53.mydns.net.nz OR A -> 119.47.114.163) * P...
Following is the sample code for sending emails using an ASPX file. Please create an email.aspx file in your website and put the following contents in it: <% @Page Language="C#" %> <% @Import Namespace="System.Net.Mail" %> <% String from_email_addres...
If you receive the following error: _The state information is invalid for this page and might be corrupted._ Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies t...
To send mail from a Perl script, use a mail server host 127.0.0.1
Overview: ASP.NET (_A_ctive _S_erver _P_ages) is a set of frameworks created by Microsoft for creating object-oriented web applications. ASP.NET applications can be written in several languages (such as _C#_, _VisualBasic.NET_, _Perl_ and _Python_). ...
_CGI_ (Common Gateway Interface) is a standard method of passing information between a program running on a webserver and a user's web browser. _Perl_ is the language in which the server-side application is written. It is commonly used for processing we...
PHP (PHP Hypertext Preprocessor) is a server-side language and set of enhancements that can be coded in to web pages to make them dynamic. For example, a web page created in PHP may get data from a database and display it online, or change its contents ba...
We currently support the following PHP modules: * apg * bcmath * calendar * ctype * curl * domxml * exif * ftp * gd * gettext * iconv * imagick * imap * mbstring * mcrypt * mhash * mysql * openssl * pcre * posix ...
We currently support the following ASP.NET versions: * ASP.NET 1.1 * ASP.NET 2.0 * ASP.NET 3.0 * ASP.NET 3.5 * ASP.NET 4.0 (available with a support request [https://support.webhost.co.nz/index.php?/webdrive/Tickets/Submit])
We are currently using Perl 5.8.4
A good place to being learning about ASP.NET is Microsoft's official developer page [https://msdn.microsoft.com/en-us/library/ywdtth2f.aspx]. You can also find more information from those websites: * docs.asp.net [http://docs.asp.net/en/latest/] *...
A good introduction to CGI programming with Perl is available at CGI101 [HTTP://WWW.CGI101.COM/LEARN/]. You can also find information in the PERL DOCUMENTATION [http://perldoc.perl.org/CGI.html]. For more information and tutorials on the Perl language...
Overview: Your CGI scripts can be executed from within any other directory inside your web root. Make sure that scripts have the correct permissions for execution (755). NOTE: To change the permission of a folder, please check this DOCUMENTATION [HTT...
We currently support the following ASP modules: * DPS PXACCESS [http://www.dps.co.nz] * DPS Auth [http://www.dps.co.nz] * AJAX.Net [http://ajax.asp.net/] * ASPEmail 5.0 [http://www.aspemail.com] * AspJpeg 1.5.0.1 [http://www.aspjpeg.com/] * ...
This document is intended for customers who have a PHP site and they are receiving the following error: Fatal error: session_start() function.session-start]: Failed to initialize storage module: user (path: /import/share_rw/tmp/) in .... If you ar...
Overview: 'cgi-bin' cannot be used as the name of files or directories, as the name is reserved by our HTTP server software. Your CGI scripts can be executed from within any other directory inside your web root. Make sure that scripts have the corre...