schilly
Members-
Posts
870 -
Joined
-
Last visited
Never
Everything posted by schilly
-
is there an easy way to change an image src and reload it with jquery? thx.
-
awesome. thanks guys.
-
is this possible without having to dump all the vars you've declared individually? thx.
-
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.
-
[SOLVED] get message-id header from sent email through mail()??
schilly replied to schilly's topic in PHP Coding Help
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. -
[SOLVED] get message-id header from sent email through mail()??
schilly replied to schilly's topic in PHP Coding Help
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? -
Maq is right as well.
-
pretty sure you datex var is a string so you would need to do: case '9':
-
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.
-
any ideas on finding newaliases?
-
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.
-
awesome. thanks Ken. script looks straight forward. just hope i can do all the sendmail alias setup properly.
-
found a decent tutorial. hopefully this works http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html
-
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.
-
great post blue. i think i will stop wasting my time. especially now that ie8 is out.
-
simple form to write to a txt file and email out
schilly replied to samoht's topic in PHP Coding Help
thanks. i knew what to do but couldn't remember all the quirks about file perms and which codes were which. -
simple form to write to a txt file and email out
schilly replied to samoht's topic in PHP Coding Help
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. -
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
-
ok reverted to the original code b/c that threw off ie6 even more
-
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.
-
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.
-
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.
-
I'm not sure. The only time I've loaded external files was through curl.
-
i wish that were true. oh how many headaches would that save me.