Jump to content

Web-based AutoIt! - New with AuCGI!


theguy0000
 Share

Recommended Posts

When I try to use POST, it says it is disabled. Maybe because its X1?

er, no, that's really weird.

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

hmm... check this out:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3"
+>15:27:33 Starting AutoIt3Wrapper v.1.8.0
>Running AU3Check (1.54.6.0)  from:C:\Program Files\AutoIt3
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3(221,1) : ERROR: syntax error
Func
^
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3(111,50) : ERROR: __StringFindOccurances(): undefined function.
    $num = __StringFindOccurances($varstring, "=")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3(117,70) : ERROR: _URLDecode(): undefined function.
        If $var_array[1] = $sVar Then Return _URLDecode($var_array[2])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3 - 3 error(s), 0 warning(s)
!>15:27:34 AU3Check ended.rc:2
+>15:27:34 AutoIt3Wrapper Finished
>Exit code: 0   Time: 0.552
Link to comment
Share on other sites

hmm... check this out:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3"
+>15:27:33 Starting AutoIt3Wrapper v.1.8.0
>Running AU3Check (1.54.6.0)  from:C:\Program Files\AutoIt3
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3(221,1) : ERROR: syntax error
Func
^
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3(111,50) : ERROR: __StringFindOccurances(): undefined function.
    $num = __StringFindOccurances($varstring, "=")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3(117,70) : ERROR: _URLDecode(): undefined function.
        If $var_array[1] = $sVar Then Return _URLDecode($var_array[2])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Owner\My Documents\Nick\Abyss Web Server\htdocs\gb\web.au3 - 3 error(s), 0 warning(s)
!>15:27:34 AU3Check ended.rc:2
+>15:27:34 AutoIt3Wrapper Finished
>Exit code: 0   Time: 0.552
do you have the latest version? because your line 221 is different from my line 221.....

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Can you add these useful environment variables to the Web UDF ?

Global $_DOCUMENT_ROOT = EnvGet('DOCUMENT_ROOT') ; The root directory of your server
Global $_HTTP_REFERER = EnvGet('HTTP_REFERER') ; The URL of the page that called your program
Global $_PATH = EnvGet('PATH') ; The system path your server is running under
Global $_REMOTE_HOST = EnvGet('REMOTE_HOST') ; The hostname of the visitor (if your server has reverse-name-lookups on; otherwise this is the IP address again)
Global $_REMOTE_PORT = EnvGet('REMOTE_PORT') ; The port the visitor is connected to on the web server
Global $_REMOTE_USER = EnvGet('REMOTE_USER') ; The visitor's username (for .htaccess-protected pages)
Global $_REQUEST_METHOD = EnvGet('REQUEST_METHOD') ; GET or POST
Global $_REQUEST_URI = EnvGet('REQUEST_URI') ; The interpreted pathname of the requested document or CGI (relative to the document root)
Global $_SCRIPT_FILENAME = EnvGet('SCRIPT_FILENAME') ; The full pathname of the current CGI
Global $_SERVER_ADMIN = EnvGet('SERVER_ADMIN') ; The email address for your server's webmaster
Edited by Dhilip

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

Link to comment
Share on other sites

http://autoit.ath.cx/

A example site.

I feel very happy because i saw my script being used by others successfully. :)

Thanks, Chip.

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

thanks Dhilip!

You're welcome :">

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

http://autoit.ath.cx/

A example site.

Ooh, I'm on there too.. thanks Chip!

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

#Include <Web.au3>
If _Post("thefile") Then
    $file = _PostMultiPart("thefile")
    If IsArray($file) Then
        FileWrite($file[0], $file[2])
        _StartWebApp()
        Echo("good!")
    Else
        _StartWebApp()
        Echo("damn...")
    EndIf
Else
    _StartWebApp("Upload Example")
    Echo("<form action="&$_SCRIPT_NAME&" method=post><input type=file name=thefile><input type=submit><form>", "center")
EndIf

I can't seem to find out why $file isn't being created properly. I always get the "damn..." message

Link to comment
Share on other sites

You didn't make the form multipart.

<form action="&$_SCRIPT_NAME&" method=post ENCTYPE="multipart/form-data">

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Thank you,

But I placed a html file in the htdocs folder on Abuys server, while browsing the file it's showing msg Not found.

http://127.0.0.1:9999/ this is installation of server.

Regards

Santhosh.Ch

I'm sorry, I don't understand.

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Thank you,

But I placed a html file in the htdocs folder on Abuys server, while browsing the file it's showing msg Not found.

http://127.0.0.1:9999/ this is installation of server.

Regards

Santhosh.Ch

You mean you get a 404 Not Found error for every page you go to, even if you know it's there?

That happened to me a while ago, and I just restarted the server and it went away.

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

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...