Jump to content

AutoIt CGI Handler: AuCGI


wraithdu
 Share

Recommended Posts

  • Replies 76
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

How big of application can be run on this ?? I have one thats approx . 4000+ lines that I would love to see via web..

You can run arbitrarily large scripts. If your script runs, then it can be run online.

However... having a monolithic central process can hog unnecessary amounts of CPU, but if it's a one-off, used only by you on a private webserver, then it'd be more efficient for you to just use it as is. If you want to have many people use it, then a little work to break it down into smaller scripts would serve you well.

I'll be transferring the old files to a newer, more permanent site, so I'll replace the download link (even though everything is still accessible from here.)

AutoIt.me is defunct, for now.

Link to comment
Share on other sites

  • 5 months later...
  • 7 months later...

Hi All,

I'm relatively new to the forums here and mostly I do Web Dev stuff, however I have dabbled in the AutoIT world and when I saw the AuCGI I almost fell off my seat!

Well Any who, I know it's been quite a while since anyone else has posted, and I'm not sure if anyone has said anything previously, but for anyone who comes looking I've gotten AuCGI to work successfully in my WAMP (apache) setup... Aside from following the instructions already posted all I had to do was add the following code to my httpd.conf file:

<Directory "x:/wamp/www/...">
#This is for AutoIT3/AuCGI use...
Options +ExecCGI
AddHandler cgi-script .au3
</Directory>

(replacing 'x' with the drive letter that wamp is installed on, and either removing the '...' at the end of the directory listing to allow the entire Web Directory access to CGI or specifically filling in a folder in the Web directory which you want CGI's to be executed)

Thanks guys for the wonderful work!!

Link to comment
Share on other sites

  • 1 year later...

Hi,  this seems to be the solution that I'm looking for to serve information to remote users and retrieve their responses.  I noticed that there have been few posts regarding this software for two years.  Is this still current, or has something else superseded it?

Thanks,

Chip

Link to comment
Share on other sites

  • 1 year later...

Anybody with here with Javascript experience?  I am using AuCGI along with Google Map API via javascript to write a GPS tracker.  I manage to get Google map to display along with a marker when I initialize the javascript.  Suppose in the body, I have a new latitude and longitude, how do I pass these variables to marker1 and run marker1.setmap(map) to update the marker?

<?au3
#NoTrayIcon
_standardHeader()
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
      html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
    </style>
    <script type="text/javascript"
        src="https://maps.googleapis.com/maps/api/js?key=">
    </script>
    <script type="text/javascript">
        function initialize() {
            var useragent = navigator.userAgent;
            var mapdiv = document.getElementById("map-canvas");
            var mapOptions = {
                center: { lat: 43.61910797367798, lng: -79.55092150602343},
                zoom: 11,
                panControl: false,
                zoomControl: false,
                scaleControl: true
            };
            var map = new google.maps.Map(document.getElementById('map-canvas','mapOptions'),mapOptions);
            var myLatlng = new google.maps.LatLng(43.61910797367798,-79.75092150602343);
            var marker1 = new google.maps.Marker({
                position: myLatlng,
                map:map,
                title:"Hello World!"
            });
            if (useragent.indexOf('iPhone') != -1 || useragent.indexOf('Android') != -1 ) {
                mapdiv.style.width = '600px';
                mapdiv.style.height = '800px';
            } else {
                mapdiv.style.width = '100%';
                mapdiv.style.height = '100%';
            }
            ;marker1.setMap(map)
        }
        google.maps.event.addDomListener(window, 'load', initialize);
    </script>
</head>

<body>
<form name = "login" action="<?au3 inline($_SCRIPT_NAME) ?>" method="POST">
<center><br><br><br>
<input id="user" name="user" value="Username"><br><br>
<input id="pwd" name="pwd" value="password" type="password"><br><br>
<button name="submit" value="submit">Submit</button>
<button>Reset</button>
<?au3
    If _POST("submit") Then
        if _POST("user")="Username" and _POST("pwd")="password" Then
            echo ("works")
            echo ('<div id="map-canvas"></div>')
            for $i=1 to 10
                sleep(3000)
                $new_lat=43.61910797367798
                $new_lng=-80.75092150602343 + $i
                ;stuck how to pass these coordinates marker1 and run marker1.setmap(map)            
            Next
        EndIf
    EndIf
?>
</form>
</body></html>
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...