Dan Muey <[EMAIL PROTECTED]> wrote: > > > > Hello There, > > > > > > > > I would like to see if my ISP has perl available if one > > > > wanted to incorporate perl into a web page. Is there a quick > > > > and dirty web page I can upload to my ISP to test if perl is > > > Try this: > > > > > > test.cgi > > > #!/usr/bin/perl -w > > > > > > use strict; > > > use CGI 'header'; > > > print header(); > > > print "/usr/bin/perl Is VERSION $]"; > > > > > > - Ftp in ascii > > > - chmod to 755 > > > > > > However this is assuming: > > > - Perl is at /usr/bin/perl > > > - it's on a unix server > > > - 755 is what it needs to be > > > - .cgi is the extension you need > > > - you're user is allowed > > > > > > All of which is basically what you're trying to find out. > > > I'd just call your isp and say: > > > - What is the path to Perl? > > > - How do I upload/execute Perl scripts in my webspace? > > > > > > HTH > > > > Perfect! Exactly what I was looking for. I can deal with > > the paths/permissions/etc. I'm just trying to figure out how > > to get started. > > Oh, would I call this inside a web page with a <SCRIPT> tag > > or something? > > No, it is it's own entity! More specific it's a server side language > (IE the server processes it and returns the output) > and script tags use client side languages (IE the browser processes > the goods and does soemthgin based on that accordingly). (a very loose > Interpretation anyway)
Makes sense. > > How do I point to the CGI script? > > > Open: > http://www.yourwebsite.com/test.cgi > In your browser. ok, got it (thanks) > The problem is again that if the path isn't right or the permissions > are wrong you will probably get an error which won't help much > unless you know the info you're trying to find out anyway. > It'll probably be faster just asking them and trying the example above with > the info they give you to try it out. > > > Thanks again...! > > No sweat! Everything makes sense and I appreciate your answering me. Now, I assume the script has to be executable .... so I will need telnet access. I tried (instead) to use a perl script I have that does ftp (including site->chmod) -- assuming I can't telnet. Anyway, I use this script all the time for work and I CAN connect to my ISP from Unix and list files..... but when I tried running the "equivalent" perl script I have, it wouldnt even let me log in (but did connect at least). Is this a firewall problem? And if so, why would native FTP still work? (again, I was only using perl/ftp to do a chmod). I'll call my ISP to get other questions answered. Thanks again, Jeff __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]