Search results

  1. garrettroyce

    which stream should my friend pick

    Re: which stream should my frnd pick Well, at the end of the day, you gotta do what you like to do. Too many people make the mistake of choosing a career path based on money, or what their friends and family want them to do, and they end up miserable. But, you have to do something realistic...
  2. garrettroyce

    What's the random question for?

    Ahhhhhhhh. I guess I would have figured that out if I only had more friends :biggrin:
  3. garrettroyce

    FTP Help

    I forgot to mention the upload part. You can create a form and use php to store the files in that directory I mentioned before. I'd also read mission's post twice, just to make sure you understand it because it is pretty important.
  4. garrettroyce

    email error: 550 550 5.1.1

    Maybe this will help: https://support.3dcart.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=22 The problem appears to be the sending account, not the receiving account.
  5. garrettroyce

    setup sub domains

    the best way to check if it worked is to type your domain in here: http://www.mxtoolbox.com/ Edit: And it looks like yours is set up perfectly :)
  6. garrettroyce

    extracting from a string

    $strings = explode('[', $string); //every time a [ is encountered, a new string is added to the array $strings $white = substr($strings[4], 6, -2); // white is the 4 element (from zero), name starts after 7th char (from zero) remove last 2 chars "] $white_first = strstr($white, ' '); // get...
  7. garrettroyce

    What's the random question for?

    Can the icons be little cans of spam? If so, I'm in! Also, it'd be nice if every point counted, and not 1/10 like the regular rep system :(
  8. garrettroyce

    SiteReptile/ftp acct error

    Is your .info configured as an addon domain?
  9. garrettroyce

    What's the random question for?

    Yeah, that's new to me. I'm guessing that's why some members have a "+" next to their name as well? It still seems like we get some spam from time to time. I've reported maybe 10-15 threads for spam.
  10. garrettroyce

    Will My Site SUCCEED?

    Maybe you can also create a "premium service" with no ads, or more features for a few dollars.
  11. garrettroyce

    FTP Help

    There isn't any way to enable anonymous FTP. Maybe you can create a downloads directory and enable indexes on the directory. When someone types in the url it will list all the files in that directory and provide a clickable link to the download. Place a file called .htaccess in that directory...
  12. garrettroyce

    Js + ?

    PHP will not work, because it's server side, you need client side. You can use Javascript to show and hide elements using the onclick event. So, currently, you have a shown menu, but you want it hidden first. You'd have to change the visible attribute of the menu items to "hidden" and then...
  13. garrettroyce

    undefine index?????

    I actually think they added "and" and "or" in one of the recent PHP versions, but I could be wrong. I prefer the symbol syntax because I've used a lot of other C type languages and I'm stuck in my ways :P Edit: http://www.php.net/manual/en/language.operators.logical.php I would still stick to...
  14. garrettroyce

    General Issues in Database Design and programming

    I'm not sure how Mysql does this, I haven't done either because I just think it's a bad idea to have an index or unique. I'd just pretend it's impossible :P It won't break your query, it's completely valid, but it's bad database design. It's saying that the index is such important data that...
  15. garrettroyce

    General Issues in Database Design and programming

    You're right :) It would depend on the database type, I imagine. There's another stipulation that separates a unique/index from a primary key; primary keys can't be null. Logically though, a unique field can be null, as long as that column only has one row with a null. And there's nothing...
  16. garrettroyce

    General Issues in Database Design and programming

    Unique fields don't have to be indexes and indexes don't have to be unique. Primary keys are just the name for having both attributes, unique and index, at the same time as well as enforcing NOT NULL. this explains it pretty well: http://en.wikipedia.org/wiki/Primary_key
  17. garrettroyce

    PERL development setup - beginner

    xampp is standalone, it doesn't "get installed" it is a set of programs that run on your computer. It has a control panel that lets you start or stop the programs as well as command line tools. All you have to do for xampp is copy the files to your computer. I recommend using the version with...
  18. garrettroyce

    undefine index?????

    When you do something like if (condition 1 or condition 2 or condition 3...) the conditions are evaluated in order from left to right. So, if there's an error in condition 1, it will never reach condition 2 or 3. Since $_GET['view'] is not set, your condition 1 has an error - you are trying to...
  19. garrettroyce

    /usr/bin/crontab permissions are wrong?

    We do not have access to that folder and cannot change permissions on it. The staff would have to do this for you, but I doubt they will. Having read access to system folders is a security risk. You may have to modify the script or find another way to do what you are trying to do.
  20. garrettroyce

    undefine index?????

    You need to actually reverse your statement. When PHP encounters what you have programmed now and $_GET['view'] is not set, it gives you the error. if(!isset($_GET['view']) || $_GET['view'] == 'login')
Top