NELyon Posted May 5, 2007 Share Posted May 5, 2007 I use X1 and it works like a charm. Link to comment Share on other sites More sharing options...
theguy0000 Posted May 5, 2007 Author Share Posted May 5, 2007 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 More sharing options...
NELyon Posted May 5, 2007 Share Posted May 5, 2007 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 More sharing options...
theguy0000 Posted May 5, 2007 Author Share Posted May 5, 2007 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.552do 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 More sharing options...
NELyon Posted May 5, 2007 Share Posted May 5, 2007 (edited) I Found the problem. You include Web.au3 twice in the same script. All that is missing is the __StringFindOccurances Edited May 5, 2007 by Senton-Bomb Link to comment Share on other sites More sharing options...
Dhilip89 Posted May 11, 2007 Share Posted May 11, 2007 (edited) 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 May 11, 2007 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 More sharing options...
McGod Posted May 12, 2007 Share Posted May 12, 2007 http://autoit.ath.cx/A example site. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
theguy0000 Posted May 12, 2007 Author Share Posted May 12, 2007 thanks Dhilip! 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 More sharing options...
Dhilip89 Posted May 12, 2007 Share Posted May 12, 2007 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 More sharing options...
Dhilip89 Posted May 12, 2007 Share Posted May 12, 2007 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 More sharing options...
sandman Posted May 12, 2007 Share Posted May 12, 2007 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 More sharing options...
Shevilie Posted May 14, 2007 Share Posted May 14, 2007 Trolling for UDF list Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
theguy0000 Posted May 15, 2007 Author Share Posted May 15, 2007 Trolling for UDF list?Trolling? 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 More sharing options...
Shevilie Posted May 15, 2007 Share Posted May 15, 2007 Dont ask I just found the subscribe to button Just way easier to keep my UDF list updated if I get a notice when something changes in a thread Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
NELyon Posted May 18, 2007 Share Posted May 18, 2007 #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 More sharing options...
theguy0000 Posted May 18, 2007 Author Share Posted May 18, 2007 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 More sharing options...
santhosh Posted May 18, 2007 Share Posted May 18, 2007 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.RegardsSanthosh.Ch Link to comment Share on other sites More sharing options...
santhosh Posted May 18, 2007 Share Posted May 18, 2007 Thank you,But I placed a html file in the htdocs folder on Abuys server, while browsing the file it's showing Internal Server Error.http://127.0.0.1:9999/ this is installation of server.RegardsSanthosh.Ch Link to comment Share on other sites More sharing options...
theguy0000 Posted May 18, 2007 Author Share Posted May 18, 2007 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.RegardsSanthosh.ChI'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 More sharing options...
sandman Posted May 18, 2007 Share Posted May 18, 2007 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.RegardsSanthosh.ChYou 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now