Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Everything posted by ober

  1. Here we go... around the board... like a magic carpet.  New board created!  Application Design!  Check it out!
  2. And I suppose we could change "Dreamweaver" to "Editors".  To be completely honest, I had forgotten that we had a Dreamweaver board.
  3. Alright.  Valid argument.  I tell you what.  I will create the board.  I will ask the other mods to push threads that would fit into this into that board.  I will give it at least 2 weeks, maybe a month.  If it doesn't get much traffic, it's gone.  That's the philosophy on some of the other boards we've created recently.  If they don't take off, they're going to get cut. Sound good?
  4. The first place you need to start is with a compiler.  I'm not sure why you want to do this, but that's where you need to start.
  5. To be honest, I've been on the PHP Help boards a fair amount lately, and I don't see the need for an Application Design board.  Few questions, IMHO, are actually about design that can't be handled with a particular coding answer. As far as the "editors" request, I don't really see the need for this either.  And even if we did, there wouldn't be "subboards".  That would be overkill.  I will think this over and discuss it with the other mods, however. By the way, an SMF developer is nearly complete with the "solved" feature.  That will be added in VERY shortly.  We are working on a handful of other things as well.  This community is about to grow, maybe two-fold.
  6. DO NOT POST THREAD TITLES IN ALL CAPS!
  7. We have a board for this... it's called Miscellaneous.
  8. That would be permission denied on the host machine... not yours.  What file are you trying to open?
  9. You can browse through the tutorials on the main site here to get an idea of how to do it.  There are several login/user authentication scripts that could be used/modified.
  10. Wow... that's complicated for what you're trying to do.... maybe a script of mine will help you. [code] <?php $quotes = array(); $quotes[] = "All men are alike in their nature, but become different through practice"; $quotes[] = "He that would perfect his work must first sharpen his tools"; $quotes[] = "To see what is right and not to do it, is want of courage"; $quotes[] = "Sorrow not at being unknown, but seek to be worthy of note"; $quotes[] = "To go beyond is as wrong as to fall short"; $quotes[] = "If you have faults, do not fear self-improvement"; $quotes[] = "Study as if you were never to master it; as if in fear of losing it"; $quotes[] = "To love determination and not learning: recklessness"; $quotes[] = "When we see men of a contrary character, we should turn inwards and examine ourselves"; $quotes[] = "You cannot open a book without learning something"; $quotes[] = "Ability will never catch up with the demand for it"; $quotes[] = "Silence is the true friend that never betrays"; $quotes[] = "Everything has beauty but not everyone sees it"; $quotes[] = "Life is really simple, but we insist on making it complicated"; $quotes[] = "What is the sound of one hand clapping?"; $quotes[] = "A journey of a thousand miles begins with a single step"; $quotes[] = "Better a diamond with a flaw than a pebble without"; $quotes[] = "He who speaks without modesty will find it difficult to make his words good"; $quotes[] = "It does not matter how slowly you go, so long as you do not stop"; $quotes[] = "Never give a sword to a man who can't dance"; $quotes[] = "Only the wisest and stupidest of men never change"; $quotes[] = "The cautious seldom err"; $quotes[] = "The superior man understands what is right; the inferior man understands what will sell"; $quotes[] = "To be wronged is nothing unless you continue to remember it"; $quotenum = rand(1,count($quotes)); echo $quotes[$quotenum] . " ~ Confucius"; ?>[/code] I use that on my site to display a random quote... is that what you're looking for? EDIT: ok, that might not work if you have thousands of lines... but the theory should work the same grabbing them from a file.
  11. [code]<?php $i = 0; foreach ($info as $r => $value) {    if ($i == 0)        echo "<tr>";        echo '<td class="row1"><span class="genmed">' . $info[$r]['cat'] . '</span></td>           <td class="row1"><span class="genmed">' . $info[$r]['statB'] . '</td>';         if (++$i == 5)     {         $i = 0;         echo "</tr>";     } } ?>[/code] Try that.
  12. That's not hard at all... you basically use fopen() to read the file and get down and dirty with arrays and regex.  Try to put something together and then post it when you get stuck.
  13. You wouldn't have to open it for every one.. you just need to pull out the results in the background.  You can send variables to website and parse through the results of what it sends back and get your data.
  14. That's because alphabetically, it is correct.  - is before l in the sorting algorithm.
  15. If you're not going to do it through PHP or some calculated manner, google maps or any mapping program would work fine.  If you could somehow get a longitude/latitude reading for each of these cities, you could calculate it on the fly. This is kinda cool: http://www.indo.com/distance/
  16. Yes.  Can you show us the code you've come up with so far?
  17. It's not that I don't want to help.  We're here to help when you run into snags with scripts you wrote.  Not to write them for you.  I suggest  you start by trying something yourself and asking questions when you get stuck.  Either that, or head over to the main site or to somewhere like hotscripts to grab one that is pre-made.
  18. We're not a script factory and I don't think anyone is going to lead you through this step-by-step.  Do you have any PHP experience?
  19. Ok, so you're using something similar to what is in the example.  It says it is being sent, but you're not getting it. The only thing I can conclude is that something is messed up in the configuration (no matter how "good" of a company it is that you are using) or that your email address isn't right or you're somehow blocking it.  Have you checked your spam mail?  Do you have spam-assassin enabled or something?  It's probably not handling the "from" portion right and your spam blocker isn't picking it up. Also, your webmail from your host probably doesn't use the same setup.
  20. The easiest thing to do would be to setup a counter and check the result of the mysql_query() call as a indicator of whether a specific row was deleted.  That would only work if you're deleting them one at a time.  If you're deleting more than one at a time and "affected_rows" doesn't work, you could run a COUNT(*) query on the table before and after.
  21. Well, there's a few things I see.  You're depending on PHP to do much of the work when you could use SUM and other things in various queries to get some of the stats you're looking for. I guess I'm not clear on what you're having a problem with.  Is it a math problem?  Is it a looping problem?  It's hard without seeing the output and what it is doing incorrectly. Also, you're wasting processor time at the top: $sql_standings = "SELECT * FROM schedule_scores WHERE "       ."(team1 = '0002' OR team2 = '0002') AND "       ."season = '000000000009'"; That's 2 unnecessary concatentations.  Unless there is a flaw in your editor that you're trying to get around, you can just continue the string as-is. $sql_standings = "SELECT * FROM schedule_scores WHERE        (team1 = '0002' OR team2 = '0002') AND       season = '000000000009'"; Concatenations are processor expensive and the less you have to do them, the better.
  22. There is no way to do this specifically with PHP.  You must setup a client-side script (Javascript, ActiveX, etc) that will browse the folder and pass the paths along to the server side script.
  23. Please note: your thread title has been changed.  Please do not use ALL CAPS to make your thread stand out.  Also, it is unnecessary to bold all of your responses. Also, please do not request emails to yourself from these forums.  The help should remain in this thread or on these boards.  Your email address has been removed.
×
×
  • 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.