Title: LF> A very basic faucet coder Post by: DiamondCardz on July 07, 2013, 08:39:28 PM Your mission, should you choose to accept it:
Tell me how I can make an input box with a Submit button, then have the information from this put into a read-able .asp or .txt file (on a webserver/site). Literally. That's it. This will be for an inputs.io faucet, all the other design will be handled by me. Your reward: All CoinURL advertisement revenue for the first week. There will be 2 CoinURL banner slots - as this as a faucet, it will attract decent traffic and bring in decent revenue. First to PM me with the code and tutorial gets it. I KNOW this is really simple - I've just forgotten the code needed. Title: Re: LF> A very basic faucet coder Post by: JamesIV on July 07, 2013, 09:02:27 PM Something like this should work I am not at home so I have not tested it but this is the general idea.
Code: <?php Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 07, 2013, 09:10:51 PM Something like this should work I am not at home so I have not tested it but this is the general idea. Code: <?php Looking more for PURE HTML/ASP. Title: Re: LF> A very basic faucet coder Post by: JamesIV on July 07, 2013, 09:17:54 PM Something like this should work I am not at home so I have not tested it but this is the general idea. Looking more for PURE HTML/ASP. Something along the lines of this should work. I am still not home so it is untested. index.html Code: <html> Code: <% Hope this helps Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 08, 2013, 01:31:22 AM You probably should be using API sending functions (instead of getting carpal tunnel syndrome for repetitive data entry). Also require a reCAPTCHA and limit IPs.
Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 04:52:29 AM You probably should be using API sending functions (instead of getting carpal tunnel syndrome for repetitive data entry). There's going to be a cap + I can handle carpal tunnel syndrome anyway. Also require a reCAPTCHA and limit IPs. Nah, I don't need to. Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 08, 2013, 06:45:13 AM Here you go, full featured faucet program. Automated, configurable, referral program, built in ad rotator, IP logging, blah.
http://glados.cc/myfaucet/ Title: Re: LF> A very basic faucet coder Post by: JamesIV on July 08, 2013, 01:41:41 PM Here you go, full featured faucet program. Automated, configurable, referral program, built in ad rotator, IP logging, blah. http://glados.cc/myfaucet/ It's in PHP he has some aversion to PHP. Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 04:15:57 PM Here you go, full featured faucet program. Automated, configurable, referral program, built in ad rotator, IP logging, blah. http://glados.cc/myfaucet/ Eh, it'll do. Thanks. :P Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 06:24:31 PM Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 21
Hmmm. Title: Re: LF> A very basic faucet coder Post by: JamesIV on July 08, 2013, 06:48:18 PM Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 21 Hmmm. Do you need someone to set this up for you? I could do this for you. Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 06:49:55 PM Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 21 Hmmm. Do you need someone to set this up for you? I could do this for you. Nope. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 06:51:48 PM Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 21 Hmmm. haha, i can debug tradefortress' faucet script for you. propably something minor Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 06:53:20 PM Here you go, full featured faucet program. Automated, configurable, referral program, built in ad rotator, IP logging, blah. http://glados.cc/myfaucet/ code quality is not that bad. it definitely carries the TF signature though. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 06:57:24 PM ok diamond cards. open config.php with a text editor and replace line 21 with this
Code: $rewards = ['1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000']; Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 07:15:12 PM ok diamond cards. open config.php with a text editor and replace line 21 with this Code: $rewards = ['1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000']; Thanks. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 07:17:45 PM ok diamond cards. open config.php with a text editor and replace line 21 with this Code: $rewards = ['1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000']; Thanks. your welcome, if you encounter more errors let me know Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 07:19:54 PM ok diamond cards. open config.php with a text editor and replace line 21 with this Code: $rewards = ['1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000']; Same error pops up. BTW, my personal code is Code: $rewards = ['1000, 1250, 1500, 1750, 2000']; Which is the same as what you posted, but with different numbers :L Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 07:20:40 PM ok diamond cards. open config.php with a text editor and replace line 21 with this Code: $rewards = ['1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000']; Same error pops up. BTW, my personal code is Code: $rewards = ['1000, 1250, 1500, 1750, 2000']; Which is the same as what you posted, but with different numbers :L ah, ok let me debug real quick. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 07:28:00 PM try replacing line 21 with:
Code: $rewards = "[1000, 1250, 1500, 1750, 2000]"; Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 07:31:50 PM That fixed it. Now we have what seems to be the final error:
Code: Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 51 Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 07:36:52 PM That fixed it. Now we have what seems to be the final error: Code: Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 51 replace lines 53-55 with this. just a minor syntax error Code: $squareAds = "['<iframe scrolling='no' style='border: 0; width: 250px; height: 250px;' src='http://coinurl.com/get.php?id=14173'></iframe>']"; Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 07:39:39 PM for future reference php will require you to use
Code: ' Code: " Title: Re: LF> A very basic faucet coder Post by: DiamondCardz on July 08, 2013, 07:42:54 PM Oh god, there is more.
Code: Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/a2414827/public_html/config.php on line 56 Hmmm. Code: Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'username'@'localhost' (using password: YES) in /home/a2414827/public_html/config.php on line 10 ^ That one is probably because I'm being retarded and not starting a MySQL database. I'm tired atm, will probably do it tomorrow. Code: SQL error: Access denied for user 'username'@'localhost' (using password: YES) Refer to the above. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 08, 2013, 07:49:13 PM here you go replace line 55
Code: $bannerAds = "[<iframe scrolling='no' style='border: 0; width: 468px; height: 60px;' src='http://coinurl.com/get.php?id=14179'></iframe>]"; as for the second error you will need to setup a mySQLi database and input the necessary values in to the array(s) for username host and password and/or port. Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 09, 2013, 12:37:40 AM no r3wt wtf?
NOT like that. You do not put quotes around arrays. Have you written a single line of PHP code before? Seriously, WTF? It should be this: $rewards = [1000, 1250, 1500, 1750, 2000]; $bannerAds = ["<iframe scrolling='no' style='border: 0; width: 468px; height: 60px;' src='http://coinurl.com/get.php?id=14179'></iframe>"]; WTF again. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 09, 2013, 12:40:29 AM no r3wt wtf? NOT like that. You do not put quotes around arrays. Have you written a single line of PHP code before? Seriously, WTF? It should be this: $rewards = [1000, 1250, 1500, 1750, 2000]; $bannerAds = ["<iframe scrolling='no' style='border: 0; width: 468px; height: 60px;' src='http://coinurl.com/get.php?id=14179'></iframe>"]; WTF again. you still have to quote the variables inside of the array. way to go on a tangeant for no reason. as to your last point(lines 52-55) the array is completely useless and unnecessary for these lines. a simple print or echo would have been much simpler, and still just as functional. Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 09, 2013, 12:42:32 AM The code did not work because DiamondCardz was running it on an outdated PHP version. Update to the latest PHP version and the original version will work.
Your suggestion does not throw an error, however it breaks the script and people will not get any rewards. You do not quote NUMBERS with strings. Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 09, 2013, 12:44:10 AM Just stop wasting people's time if you have nothing to talk about.
@DiamondCardz: Update your PHP version. If you're on shared hosting, ask them to upgrade / move you to a server that has the updated PHP version. Download the original script and it'll work, don't listen to the suggestions that will break the script. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 09, 2013, 12:48:00 AM mad that his code didn't work on php 5.5 the arrays for the ads are completely unnecessary anyway. what does it accomplish?
Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 09, 2013, 12:53:33 AM mad that his code didn't work on php 5.5 the arrays for the ads are completely unnecessary anyway. what does it accomplish? > Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 21 This is a classic signature for an outdated PHP version that does not support the shorter array syntax format. The ads are in an array so they can rotate. Title: Re: LF> A very basic faucet coder Post by: r3wt on July 09, 2013, 12:54:37 AM mad that his code didn't work on php 5.5 the arrays for the ads are completely unnecessary anyway. what does it accomplish? > Parse error: syntax error, unexpected '[' in /home/a2414827/public_html/config.php on line 21 This is a classic signature for an outdated PHP version that does not support the shorter array syntax format. The ads are in an array so they can rotate. Title: Re: LF> A very basic faucet coder Post by: 🏰 TradeFortress 🏰 on July 09, 2013, 12:57:26 AM PHP Version 5.4.4
Title: Re: LF> A very basic faucet coder Post by: r3wt on July 09, 2013, 01:25:50 AM PHP Version 5.4.4 hmm.. i thought i was runing 4.4 to but upon inspection i'm running 5.3.4 Title: Re: LF> A very basic faucet coder Post by: super3 on July 11, 2013, 02:26:08 AM Seems you are having some trouble getting that stuff working. I could lease out my TRC Faucet (http://trcfaucet.com/) code if you want.
|