Jump to content

doublebassdanny

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

doublebassdanny's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey all. First let me state that the original template for my site was NOT designed by me, it was someone's hard work that they were kind enough to give out for free and I have heavily modified it to suit my needs. Anyway, need to get that disclaimer out. Here's the site: http://androidboards.com The forums section is still under construction as I am building a matching theme for the main page. I am really wanting to know what I should do to make the site's content more "user-friendly". Right now it is geared toward developers. I was thinking a red/orange link that stands out in the top bar which says something like "New to Android?" and has a brief primer on the mobile platform. What do you all think? Thanks!
  2. Oh I forgot to add: Is there a way to possibly speed up the insertion to the database. I'll be adding millions of records at a time, but they are all very small (8 characters), and I think my database could handle multiple connections. Right now I just want it to get from the top of the file to the bottom though. That's the first and main priority.
  3. Hey all, I am having some trouble with a small script that process a HUGE text file line by line. It will work perfectly for several thousand lines, but then fail for whatever reason. Could you take a look and see if there is something blatant I'm missing? I'm writing the output to a MySQL db and that works great, the only problem is that it fails. I have text files in the 5gb+ range. Here is the code: <?php $myFile = $_POST["filename"]; //it goes hostname, username, pass $con = mysql_connect("localhost","------","------"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("md5", $con); $handle = @fopen($myFile . ".txt", "r"); if ($handle) { while (!feof($handle)) { $str = fgets($handle); $str = trim( preg_replace( '/\s+/', ' ', $str ) ); $hash = md5 ($str); mysql_query("INSERT INTO hashes (word, hash) VALUES ('$str', '$hash')"); echo $str . " (" . $hash . ") <b> ADDED! </b><br>"; } fclose($handle); } ?> Thanks all.
  4. It's actually going to be used as a value calculator for characters in World of Warcraft. It will allow a user to instantly get a quote on the value of their character based on it's different features then send that quote off to me for verification. But all the payments will be sent manually via PayPal. So in short, there's no payment system or anything I need attached. Just a value calculated, displayed and then e-mailed.
  5. Thanks, that book looks helpful. I didn't really clarify this but I was wondering if there was some type of pre-made script available somewhere that could perform these functions or be modified to do so without a lot of php knowledge.
  6. Hey all, I'm sure this is very simple, but I have no php experience really so I am lost. Basically what my objective is is to build a small webpage with fields where the user selects certain words which contain values and then they hit submit. The values are calculated and presented to the user as the final price. The user can either decline this price or accept. Upon clicking accept, they are prompted for contact information and that contact information along with the final price they were presented with is emailed to an email address. Well, it doesn't sound so simple to me now, heh heh. Here's a perfect example of what I'm looking for though: http://www.accountbay.com/sell/register1.php Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.