10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I want to run this script on my CentOS 6 via browser :
________________________________________________________________________________________________
#!/bin/sh
echo Username?
read MY_NAME
echo Provisional file name?
read MY_FILE
echo File NAME you want to save?
read MY_FILE2... (16 Replies)
Discussion started by: juta2020
16 Replies
2. Shell Programming and Scripting
Hi All,
I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet.
I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet.
print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies
3. Shell Programming and Scripting
Hi team,
I have a typical problem with cgi pages in apache webserver in WINDOWS
I am able to execute(display) the pages that are saved in cgi-bin folder.
But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder.
Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies
4. UNIX for Dummies Questions & Answers
Hello anyone,
I'm a PHP programmer that, through work has to be a server administrator. We have a dedicated server at godaddy. I just found this forum but probably could have asked a thousand questions that I've already figured out.
I tried finding anything online and would think this would... (0 Replies)
Discussion started by: Freddythunder
0 Replies
5. Web Development
Hi guys, I've been trying to figure this out all day however havent managed to as of yet.
I have a server called netmon (network monitoring) which runs a multitude of programs to monitor the network.
I also have a cname pointing to netmon called smokeping.
At the moment to access smokeping... (0 Replies)
Discussion started by: JayC89
0 Replies
6. Shell Programming and Scripting
Hey Guys,
I need to copy some files from my Apache server to SMB share ...
copy $file,"/Volumes/v1/x/test/$datestamp$name$suffix"
Unfortunately this command when executed from Apache/cgi-bin is not able to access mounted volumes .. is there anything that can be done about that ... Can... (1 Reply)
Discussion started by: NDxiak
1 Replies
7. Linux
I'm trying to set up a nagios server.
I have no problem accessing the home page of my nagios server, but can not get into any cgi page.
I've checked the rights, and checked the .htacces file in the /usr/lib/nagios/cgi directory
I've checked all conf files for apache, but i unvariably get:... (2 Replies)
Discussion started by: penguin-friend
2 Replies
8. Shell Programming and Scripting
Hi,
1. How to Write csh CGI-BIN script which return a web page which show the environment of the executed script ?
2. How do we read command line on csh and ksh ?
Thank's (2 Replies)
Discussion started by: 7eleven
2 Replies
9. Shell Programming and Scripting
If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link?
Hope that makes sense!
:) (2 Replies)
Discussion started by: WIntellect
2 Replies
10. UNIX for Dummies Questions & Answers
Can any body help me with apache and cgi
i'dont know how iconfigure apache to use cgi...
and when i try to start apachectl it says there is no file...
please help me...i have apache installed... (1 Reply)
Discussion started by: CreamHarry
1 Replies
PHP_SAPI_NAME(3) 1 PHP_SAPI_NAME(3)
php_sapi_name - Returns the type of interface between web server and PHP
SYNOPSIS
string php_sapi_name (void )
DESCRIPTION
Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this
string will be "cli" whereas with Apache it may have several different values depending on the exact SAPI used. Possible values are listed
below.
RETURN VALUES
Returns the interface type, as a lowercase string.
Although not exhaustive, the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP
5.3), cgi-fcgi, cli, cli-server, continuity, embed, fpm-fcgi, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and web-
james.
EXAMPLES
Example #1
php_sapi_name(3) example
This example checks for the substring cgi because it may also be cgi-fcgi.
<?php
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == 'cgi') {
echo "You are using CGI PHP
";
} else {
echo "You are not using CGI PHP
";
}
?>
NOTES
Note
An alternative approach
The PHP constant PHP_SAPI has the same value as php_sapi_name(3).
Tip
A potential gotcha
The defined SAPI may not be obvious, because for example instead of apache it may be defined as apache2handler or apache2filter.
SEE ALSO
PHP_SAPI.
PHP Documentation Group PHP_SAPI_NAME(3)