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 Eloff

  1. Eloff

    Accessing or requiring a file on another server

    Is it possible? How would I go about doing this? I have func.cgi on one server, and a script that uses functions from it on another server. I do not wish to place them both on the same server so any suggestions? Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada...
  2. Eloff

    Using Sendmail

    Yes I noticed that going back over the program this morning. I shouldn't be writing programs past 1am:) I make stupid mistakes and then stay up hours trying to figure out what they are. Thanks. Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If at first you...
  3. Eloff

    My

    Thanks, that makes sense. Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If at first you dont't succeed, try, try again. - programmer's motto.
  4. Eloff

    how to pass variable to cgi (through url?)

    I don't know what @ARGV does but here's what I do when passing information through with the query string. $query_string = $ENV{'QUERY_STRING'}; then you have id=val1 inside query string and you can split it at the equals sign or do whatever it is you want to do with it. Age: 17 School...
  5. Eloff

    My

    What does my do? Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If at first you dont't succeed, try, try again. - programmer's motto.
  6. Eloff

    Using Sendmail

    Okay there is something badly wrong with this script. I don't know what dev/null does exactly, but without it I get a 500 error, with it the script prints out the Confirmation message but doesn't send any e-mail. I'm not sure what I did wrong but you guys will probably spot it right away...
  7. Eloff

    How do you enter lengthy mySQL commands with PHP?

    Thanks guys it turns out the error was simply a spelling mistake on my part. Thanks to Piti for the mysql_error() function which told me where the mistake was. Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If at first you dont't succeed, try, try again. -...
  8. Eloff

    How do you enter lengthy mySQL commands with PHP?

    I have a mysql insert command that is rather lengthy since it inserts 52 columns of data. Since it won't all fit on one line i have something like the following. $query = "insert into table_name (col1, col2, col3,". etc) values ('$col1', '$col2', '$col3',". etc)&quot...
  9. Eloff

    Perl vs PHP

    Well its not trouble using DBI that stumped me, its installing the bloody thing. The instructions are not very detailed. Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If at first you dont't succeed, try, try again. - programmer's motto.
  10. Eloff

    Brainstorming Session

    Ok I think preg_match_all is the thing to use. However I can't figure out how to make it work. Here's my script: <? $spy = &quot;testing 123 testing&quot;; preg_match_all (&quot;/\d+/&quot;,&quot;$spy&quot;, $spy_pieces); foreach ($spy_pieces as $piece) { echo &quot;$piece&quot;; } ?> Heres...
  11. Eloff

    Brainstorming Session

    Ok lets think here. Split involves splitting a string around a certain item or section. But how do you extract all of the occurances of a certain type of item from a string? If I have a user inputted string with a lot of html and occasionally some numbers ($ values and regular numbers). Is there...
  12. Eloff

    Perl vs PHP

    Well I'm glad to know that its not because PHP has serious problems associated with it. For my current application it is well suited to the task. And besides which I never did figure out how to install that wretched DBI module. Age: 17 School: Alberta Distance Learning Center Location: British...
  13. Eloff

    Perl vs PHP

    It strikes me that PHP is easier to use at taking input from forms and interfacing with mysql. The fact that it fits right into your html page makes it even better. Whats the downside to php? why is perl the industry standard? Age: 17 School: Alberta Distance Learning Center Location: British...
  14. Eloff

    Good PHP books or tutorials

    Does anybody know some really excellent PHP book or tutorials out there? I'm new to PHP, but I'm finding it simpler and more powerful than Perl in some aspects. Any recomended tutorials or books are welcome. Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If...
  15. Eloff

    Retrieving a Cookie

    come on this can't be that hard! Age: 17 School: Alberta Distance Learning Center Location: British Columbia, Canada If at first you can't succeed, try, try again. - programmer's motto.

Part and Inventory Search

Back
Top