Mar 30, 2002 #1 Guest_imported New member Joined Jan 1, 1970 Messages 0 Hi. Does anyone know how to see if I have GZIP installed on my server (like a simple test script). Thanks, Eric
Hi. Does anyone know how to see if I have GZIP installed on my server (like a simple test script). Thanks, Eric
Apr 1, 2002 #2 goBoating Programmer Joined Feb 8, 2000 Messages 1,606 Location US If you have command prompt access on the server, and it is a *nix box, Code: prompt> which gzip <return> If you really want it in a script (I'm not sure why you would), Code: #!/usr/local/bin/perl $gz = `which gzip`; print "$gz"; Wrapped in a very simple cgi, Code: #!/usr/local/bin/perl $gz = `which gzip`; print "Content-type: text/html\n\n"; print "<html><head><title>g where?</title></head>\n"; print "<body><p>$gz</p></body></html>\n"; 'hope this helps If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo. Upvote 0 Downvote
If you have command prompt access on the server, and it is a *nix box, Code: prompt> which gzip <return> If you really want it in a script (I'm not sure why you would), Code: #!/usr/local/bin/perl $gz = `which gzip`; print "$gz"; Wrapped in a very simple cgi, Code: #!/usr/local/bin/perl $gz = `which gzip`; print "Content-type: text/html\n\n"; print "<html><head><title>g where?</title></head>\n"; print "<body><p>$gz</p></body></html>\n"; 'hope this helps If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.