FREQUENTLY ASKED QUESTIONS | PHP, CGI, ASP
» What is PHP? » Does Galaxyvisions support CGI scripts? » Can I install my own CGI scripts? » What is a CGI-bin? » Can Galaxyvisions help me if a CGI script isn't working? » Where should I place CGI scripts? » What kind of scripts can I use? » When uploading my scripts via FTP, what mode should I Use? » What should my first line read? » What extension should I use? » If a script needs to call another script without a URL, how do I do this? » What scripts are available with my Unix account? » What should I do if I want to customize these scripts? » Can I use server side includes? » What is a ASP? » What is ASP.NET? » Does Galaxyvisions support ASP?
What is PHP? PHP (Hypertext Preprocessor) is an open-source scripting language and interpreter. It is used primarily on UNIX Web servers to create interactive and customized Web pages and is an alternative to Microsoft Active Server Page (ASP) technology. (Click here for more information regarding ASP) When PHP script is embedded within a Web page, the Web server calls PHP to interpret and perform the operations specified in the PHP script. Web pages with embedded PHP script can use the file extensions .php, .php3 or .phtml.
« Back to top of the page
Does Galaxyvisions support CGI scripts? Yes.
« Back to top of the page
Can I install my own CGI scripts? Yes.
« Back to top of the page
What is a CGI-bin? The CGI bin is the directory where all of your CGI scripts are stored.
« Back to top of the page
Can Galaxyvisions help me if a CGI script isn't working? Yes. Galaxyvisions is here to assist you 24/7. If ever you need help debugging a script or other technical support, we offer custom support at a rate of $150 per hour.
« Back to top of the page
Where should I place CGI scripts? If you have a custom CGI script that you need to use, simply upload it to your personal cgibin. You can utilize any directory except "cgi-bin" for your own scripts.
« Back to top of the page
What kind of scripts can I use? Our servers have the capability to run CGI scripts based on Perl, Unix SH, BASH, KSH, CSH, and C/C++ languages. Perl is a our language of choice for most applications as it is a world standard and is well suited to CGI. In addition, Perl code does not require manual compilations whereas C/C++ code must be compiled on our web servers prior to use.
« Back to top of the page
When uploading my scripts via FTP, what mode should I Use? Upload in ASCII transfer mode (and NOT BINARY mode) Those using Fetch should use Text mode (not Raw Data).
« Back to top of the page
What should my first line read? The first line of each script should read: #! /usr/local/bin/perl
« Back to top of the page
What extension should I use? Use .cgi extensions for all scripts
« Back to top of the page
If a script needs to call another script without a URL, how do I do this? If a script calls another file within your account, but the script does NOT require a URL, you need to use the system path.
If the file needs to be placed in your root directory according to the scripts instructions:
/web/guide/yourdomainnameprefix/
If the file needs to be placed in your cgibin directory according to the scripts instructions:
/web/guide/yourdomainnameprefix/cgibin
« Back to top of the page
What scripts are available with my Unix account? There are three scripts available, cgiemail, formmail.cgi, and webform.cgi. If you wish to configure a URL in your html code to use one of these scripts instead of a script in your own cgibin the URL will look like http://YOURDOMAIN.com/cgi-bin/yourchoice.cgi. A ScriptAlias in your servers configuration file will notice the hyphen in the name of the cgibin and reference the servers cgi-bin for you.
« Back to top of the page
What should I do if I want to customize these scripts? You can access the servers cgi-bin if telnet access is enabled for your site or use an ftp application to access the directory path /mnt/web/cgi-bin on your server to make copies for transfer to your local cgibin. You may have to check and make sure permissions are set properly after the copy.
« Back to top of the page
Can I use server side includes? Server Side Includes only works in files with the .shtml extension. The cgi file must have its execute and read public bits on to be run from a browser. The file that contains the include only needs to be readable.
Try these commands in a telnet session to change permissions on those files if needed:
chmod 755 yourfilename.cgi
chmod 644 yourfilename.shtml
« Back to top of the page
What is a ASP? An Active Server Page (ASP) enables you to create interactive Web pages that are customized to your site's visitors. For example, your ASP scripts can take input provided by a visitor, such as a user name, and use that information to access data stored in a relational database and then modify the page specifically for that user. ASP files end with the .asp extension.
« Back to top of the page
What is ASP.NET? ASP.NET is Microsoft's most recent version of ASP and is a feature of Microsoft's IIS (Internet Information Server). Like ASP, ASP.NET enables customization of HTML pages using database queries. ASP.NET, however, supports code written in Visual Basic, C++, C# and Perl. ASP.NET files end with the .aspx extension.
« Back to top of the page
Does Galaxyvisions support ASP? Yes.
« Back to top of the page

|