Jump to content

schilly

Members
  • Posts

    870
  • Joined

  • Last visited

    Never

Everything posted by schilly

  1. is there an easy way to change an image src and reload it with jquery? thx.
  2. is this possible without having to dump all the vars you've declared individually? thx.
  3. search through the file line by line. compare the textfield with the line until you find the keyword. when you find the keyword return all lines that start with a number until you hit one without a number. the file is probably huge if it's a dictionary so the search may be really slow.
  4. ok yea i was thinking something similar. i have an account set up that is piped to php already for reading responses so ill just bcc the replies to that address and grab the message-id that way. thanks for the help.
  5. ok so if i needed to send out an email through php and wanted to get the message-id afterwards, what would be the best way to do so?
  6. anyone know if this is possible? i would like to get the MESSAGE-ID header from an email sent through the mail cmd. i am guessing it's not possible and i would have to go directly through the mail server for this. any ideas? thx.
  7. pretty sure you datex var is a string so you would need to do: case '9':
  8. it's going to be used for a ticket system. ok i finally got it working. for anyone using qmail, this is how i did it -create new mailbox in plesk/web interface -log in through shell -open /var/qmail/mailnames/domain.com/mailbox_username/.qmail -add | /full/path/to/script/script.php on a new line restart qmail: /etc/init.d/qmail restart make sure script file is 755 perms (chmod if needed) email will be delivered to the mailbox as well as the script php script: #!/usr/bin/php <?php // read from stdin $fd = fopen("php://stdin", "r"); $email = ""; while (!feof($fd)) { $email .= fread($fd, 1024); } fclose($fd); // handle email $lines = explode("\n", $email); // empty vars $from = ""; $subject = ""; $headers = ""; $message = ""; $splittingheaders = true; for ($i=0; $i < count($lines); $i++) { if ($splittingheaders) { // this is a header $headers .= $lines[$i]."\n"; // look out for special headers if (preg_match("/^Subject: (.*)/", $lines[$i], $matches)) { $subject = $matches[1]; } if (preg_match("/^From: (.*)/", $lines[$i], $matches)) { $from = $matches[1]; } } else { // not a header, but message $message .= $lines[$i]."\n"; } if (trim($lines[$i])=="") { // empty line, header section has ended $splittingheaders = false; } } //test email to make sure it works mail('email@domain.com',"Testing Email Piping","Headers: $headers\n\n\n Message: $message"); ?> do not send the test email to the same account. i should have known better. infinite loop. 1000 emails in the span of a few mins. as Stefan said it can probably be done through your web interface as well but I didn't have access to it so had to go through shell. hope this helps anyone else looking to do this.
  9. you used eticket or just grabbed their script? having problems right now trying to reload the aliases. i can't find newaliases for some reason.
  10. awesome. thanks Ken. script looks straight forward. just hope i can do all the sendmail alias setup properly.
  11. found a decent tutorial. hopefully this works http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html
  12. Is there a way to process incoming email to the mail server and pass it off to php for processing? I am looking to set up a support ticket system. the biggest shortfall right now is how to process the replies from the clients. any help or ideas is greatly appreciated. thx.
  13. great post blue. i think i will stop wasting my time. especially now that ie8 is out.
  14. thanks. i knew what to do but couldn't remember all the quirks about file perms and which codes were which.
  15. is there a text file there already? if so get info on it in your ftp problem and change the group perm to read/write. if not then get info on the directory and change the group perm to read/write. this should work but may depend on what user PHP executes as.
  16. well use the _width hack to even it out. doesn't look as nice but at least it lines up. when will ie6 be phased out....zzzz
  17. ok reverted to the original code b/c that threw off ie6 even more
  18. ok here is the real code. changed the seiteencontent to width 996 b/c of the border. #seitencontainer { width:1000px; margin:auto; } #seitencontent { padding:0px 0px; width: 996px; border: #693802 2px solid; background-color:#fff6dc; } #photo_header{ margin: 5px 5px 2px 5px; display:block; border: 4px #c95b02 solid; width:978px; height:150px; background-color:#FFFFFF; float:left; } if i remove the float it ignores the margin constraints. block or inline doesn't seem to make a difference.
  19. k lemme try that. pretty sure i used the 4 pt margin and firebug just displayed it like that when left/right or top/bottom is the same.
  20. www.croatiancentre.com Joomla implementation so the CSS is a bit of a mess. #alles { width:100%; } #seitencontainer { margin:auto; width:1000px; } #seitencontent { background-color:#FFF6DC; border:2px solid #693802; padding:0; width:1000px; } #photo_header { background-color:#FFFFFF; border:4px solid #C95B02; display:block; float:left; height:150px; margin:5px 5px 2px; width:982px; } the photo_header class is the one that is short about 5+ px in IE6. photo_header is contained in seitencontent which is in seitencontainer which is in alles. dont ask about the class names, was a german template i modded. thanks for the help.
  21. I'm not sure. The only time I've loaded external files was through curl.
  22. i wish that were true. oh how many headaches would that save me.
×
×
  • 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.