![]() |
| Register | FAQ | Members List | Upgrade / Donate | Search | Today's Posts | Mark Forums Read |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Well seeing as I gave you guys a case study I'd feel bad if I didn't give a simple example of how to generate a few thousand files on your home pc. Just a heads up this post is going to be quite long and won't delve too deeply into anything, it assumes general knowledge of php/mySQL. This is not meant to be a step by step guide but rather a quick and dirty example. Furthermore I really don't have the time to play tech support unless you want to pay my hourly fee so I would really appreciate it if everyone actually tried to learn how to do this on their own.
To do this on a home windows machine you're going to need a few tools, first off you're going to need server software. I like WAMP: Install PHP 5 Apache MySQL on Windows : WampServer Alright after you've got that installed and running you're going to need an sql database to take file names from. What I like to do is search google for databases pertaining to adult videos,video game names, or warez releases. Don't give up because you're having problems finding one, take some time to practice your googlefu. If you're looking to buy one Seocracy.com has a few good ones for sale, as well as some free ones I haven't looked into. Next you're going to need to import the database into mySQL through phpmyadmin. Google this step if you don't know how. Alright so now you've got a database, where hopefully one of the fields is a good title for .rar files. Take a video games db from Seocracy for example where one of the database fields is the game title. Next we're going to need to write up a quick a dirty little php script that will do the following. 1.)Connect to the databse 2.)Grab the field which contains the title 3.)Copy a .rar file 4.)rename it to the field name + .rar 5.) append data to the original file so that the file size slowly increases and the hash changes. 6.)go onto the next entry This is a very very very rough example of this, it works, and does exactly as mentioned above and nothing more. I'd recommend learning some php and writing a much better one, the one I use has way more options than this as well as a GUI but it took me way too long to code to simply give out as a free gift .Code:
<?php
$file = 'ack.rar';
$text="1234567890";
$connection = @mysql_connect('localhost','root','');
if(!$connection)
{
exit(mysql_error());
}
if(!mysql_select_db('warez1'))
{
exit(mysql_error());
}
$website_query ="select id, title from warez";
$website_result= mysql_query($website_query);
$website_row = mysql_fetch_array($website_result);
while($website_row = mysql_fetch_array($website_result))
{
print($website_row['title']);
echo " Completed </br>";
$fileopen = fopen("$file", 'a', 1);
$newfile = $website_row['title'] . ".rar";
fwrite($fileopen, $text);
fclose($fileopen);
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
}
?>
You're going to need to change a few things, like for example in this database the field title, contained the name of the database. Where as if you took one of seocracy's game databases you would need to change all instances of title to GAME. So basically you need to save this as whatever.php, drop it in wamp/www and then run the file through your browser to generate your files in whatever folder all this is in. You will also need an original .rar file containg your exe similar to the mIRC method. Final notes: I realize a lot of this is going to go over some peoples heads and not everyone understands this stuff. Don't get frustrated. Don't ask me stupid questions trying to get a more elaborate step by step. Actually google some of this, learn how it works. You want to make money from home? Start treating it like a job and less like a vacation, you could have taught yourself all this in under a week given 4 hours a day. On that note I'm going to post a site that should be able to teach you how to do all of this really easily. I really urge the people that don't understand php/sql/whatever to actually go through these because I'm not going to be answering questions like, "How do I figure out what field in the database has something I can use for my .rar titles?" So are you a newbie to sql/php/setting up WAMP/ etc? Alright all these can be answered by one easy to do class thats completely free and really awesome. PHP Video Tutorials Like to watch the video instead of reading the book? The first 13 or so are free and if you actually read through them you'll be able to do everything in this little guide and more. This shouldn't take more than a day or two to get through and will benefit you infinitely in your online quest for awesome amounts of cash. Good Luck everybody, feel free to ask questions, or for more elaboration if I skipped over something. But please please please take the time to learn some php/sql before you do that way we can keep this thread on the course of actual money making techniques and ideas rather than a php tech support thread. If you want one on one help, I charge by the hour :P Last edited by kaev : 08-10-2008 at 03:48 PM. Reason: Error in the code thanks TurboD! |
|
|||
|
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
![]() |
![]() |