User Profile
Collapse
-
haha aren't we fortunate to have this site and phpclasses.org? rather than starting from scratch we both have something to build upon. you're also lucky you have some friends around that can help you too. the more heads you can put together the better. sounds like you may still be a ways from testing out my code... but don't forget to let me know how it works for you! -
eyajuda,
thanks for the compliment. i'm going to attach the script that works for me and my server--it might take some tweaking for you to get it to work on your environment. after two months i haven't had any complaints about emails not being delivered but i think there is potential for that to happen. with php, however, i'm not sure there is a way to make it perfect. the reason for this is the email header doesn't include the bcc...Leave a comment:
-
i just spent all day trying to figure this one out for myself. i started off not even knowing how to use regex to feeling like a guru on this one. i pieced this information from the internet and it has nothing to do with codeigniter but it works for me. like i said i'm still a beginner so any critique of this code is welcome
...Code:#quietly redirect subdomain user profile requests RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCondLeave a comment:
-
aha!
looks like i won't have to go into this messy business. i'm not sure how or why i didn't see this before but when an email is passed thru the qmail system it automatically prepends the intended recipient in the header (usually says "... for <user@domain.co m>"). it's buried in there and requires a slightly busy regexp to look for and pick out the email address but... problem solved! :)Leave a comment:
-
i think this might help you: http://koivi.com/php-gd-image-watermark/
i haven't looked at the available source code but i believe what you need is there. if not, google "php gd watermark"Leave a comment:
-
ok, you're going to need to add a column to your table and designate it as a timestamp. when you create a new column in phpmyadmin it will give you the option of designating it as a timestamp and the mysql server will generate the current timestamp for you when a new row is inserted-just like the auto increment method you use for your primary key. you can also manually generate it in php using time() (or mktime() if not using the current date). once...Leave a comment:
-
ah, i think you got me on the right track. i had never even heard of the $argv array so that was a BIG help. however, i'm unsure what variable the recipient's email address is stored in.
i think this site has the answer to my problems: http://binarios.com/lnb/qmail.html (the email system i have is qmail - i'm 99% sure of it.
from what i gathered from the information on that page i should be able to set my default email...Leave a comment:
-
if you look, i set it up so that the while loop only runs when $username_match ed equals false. when the user is matched the variable is set to true thus killing the loopLeave a comment:
-
actually after looking at the str_pad function closer i think it would also work but i found an even more straightforward function: str_repeatLeave a comment:
-
this is a long thread. i didn't see that you ever cleared this error and it might be the source of your problem. i'm guessing the offending line is trying to send the file type information to the header. you can't do this if you've already sent information to the browser (eg using the function 'echo');
there is a workaround for delaying that information from being sent immediately and still modify the header. try putting ob_start();...Leave a comment:
-
i think this is what u're looking for
...Code:for($i=0;$i<$VarT;$i++){ echo ' '; }Leave a comment:
-
the title of this post is misleading. you're not looking for the last inserted id but rather the current rank of a user who placed a bid.
what i would do is make a query that sorts the users by bid amount, retrieve the results using mysql_fetch_ass oc and then loop thru the results.
something like
...Code:$target_username = "user4"; //username we need to match $username_matched = false; //we have
Leave a comment:
-
email parameters
i have a dynamic database-driven email forwarding system which is called when the physical email address that an email is sent to does not reside on the server. the email is passed on to my script using the "default email address" (which, in this case is being piped to a script). the php script that the email is piped to searches the email header to determine the new recipients and sends the email on its merry way using file_get_conten ts("php://stdin").... -
-
you could also tell php to parse a file with your own custom file extension. for instance in your case you could do
http://www.domainname.com/projectname/file.name
by putting something like this into your .htaccess
that way it would look like the "dot"...Code:#tell php to read all files with ".name" as the file extension AddHandler application/x-httpd-php5 .name
Leave a comment:
-
email parameters
i have a dynamic database-driven email forwarding system which is called when the physical email address that an email is sent to does not reside on the server. the email is passed on to my script using the "default email address" (which, in this case is being piped to a script). the php script that the email is piped to searches the email header to determine the new recipients and sends the email on its merry way. the flaw in this is if... -
alright just as an update, i finally got this whole thing to work. turned out to be quite the challenge but a fun project nonetheless. if anyone in the future would like the code to this project just message me on here and i will send it to you.Leave a comment:
-
ok, i've got a nice little setup for taking a raw email and changing the appropriate email addresses in the headers and then sending it out thru smtp via a socket connection. one last thing. consider the following example email:
(pay attention to the recipients in the header)
...Leave a comment:
-
i really would love to do the whole sendmail aliases thing. but i don't think i have access to that sort of stuff on a shared server. if you know of a way for me to do that please let me know - i'm using hostgator with cpanel (if that makes any difference).
the purpose of all of this is so that i have a dynamic forwarding system. i need to be able to turn their forwarder on or off using a database that is manipulated by a script that...Leave a comment:
-
well that swiftmailer didn't get me anywhere at all. i traced it down to where it sends out the mail and this is what it does:
...Code:class Swift_Transport_SimpleMailInvoker implements Swift_Transport_MailInvoker { /** * Send mail via the mail() function. * * This method takes the same arguments as PHP mail(). * * @param string $to * @param string $subjectLeave a comment:
No activity results to display
Show More
Leave a comment: