Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by aardvark92

  1. aardvark92

    php.ini configuration

    According to the sendmail man page, the -i option means, and the the -t option means, The -t option is probably the more important one, since without it, sendmail will not pay attention to the recipients list in the message header.
  2. aardvark92

    When is 12pm

    I think that would depend on whether the day begins with midnight, or whether it ends with midnight. It can't be both AM and PM, because one or the other is actually a different day.
  3. aardvark92

    If you can read this, your brain works 50% faster than others

    I haven't found anything to confirm that an actual university study looked specifically at letter order. Incidentally, here is a response from a Cambridge University researcher.
  4. aardvark92

    If you can read this, your brain works 50% faster than others

    Snopes gives this one a status of undetermined. The original version of this probably did not say Cambridge. This may be based on studies done at the University of Edinburgh.
  5. aardvark92

    Can I pass a parameter to a php file?

    You could use an associative array: $array['desc']='IPOD'; $array['name']='Apple'; $array['color']='White'; Since the file is an include and not meant to be run by itself, any extension is file.
  6. aardvark92

    print "location:" - is this a 301

    AFAIK it's just a matter of style. The first is the manual way to code the redirect, and the second is the CGI object-oriented way to generate the same HTTP headers. There may be more going on under the surface (or not), but the results are the same.
  7. aardvark92

    Exec() question

    Hmmm... Does it work if you explicitly call the shell? exec('/bin/sh /var/www/html/make-vnc.sh $ip $port $hostname');
  8. aardvark92

    Exec() question

    By any chance is safe_mode turned on in the php.ini file? If so, according to the PHP Manual, functions that execute system programs will not start programs that are not in the directory defined by safe_mode_exec_dir.
  9. aardvark92

    Exec() question

    What are the permissions of the make-vnc.sh file?
  10. aardvark92

    MYsql connection/PHP

    PHP provides a set of functions with a prefix of mysqli for use with MySQL version 4.1 and above. PHP's mysql functions use an older authentication protocol which is not recognized by newer versions of MySQL. See this page for more details.
  11. aardvark92

    Can I pass a parameter to a php file?

    dmkFoto - jpadie's solution is more elegant. Using the query string and including checks for parameter content defeats the purpose of having a separate template file. You're no longer separating the logic from the presentation.
  12. aardvark92

    Parse error...

    Try adding this line: echo mysql_errno($newconn) . ": " . mysql_error($newconn) . "\n"; after your mysql_query, and see if it gives you a database error number.
  13. aardvark92

    What should I give as reason for wanting to move?

    Last year I left a company where I had worked for 10 years. My answer to the "Why?" question was that I had gone as far as I could at that company and needed new opportunities for growth. Depending on the position I was interviewing for, I also said my job responsibilities were too general, and...
  14. aardvark92

    Suggestions/Help with my Code

    How about something like this: for(i=1;i<=4;i++) { document.getElementById("cs"+i).className = ''; } document.getElementById(tabID).className = 'current';

Part and Inventory Search

Back
Top