IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1952.29 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-08-01
Pages: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Next >
[00:00]<mrrpr>damn, i checked php.ini, sendmail_path = /usr/sbin/sendmail -t -i , like it should
[00:00]<zzwffzdnz>AlexElliott: that stuff gets arranged from my mailserver
[00:01]<tml>danfg: Are you really using sendmail?
[00:01]<mrrpr>TML: i'm using Postfix
[00:02]<mrrpr>TML: i've been getting this problem since i upgraded Postfix btw
[00:03]<rrdrdr>what error?
[00:03]<mrrpr>TML: e-mails sent by PHP being bounced, even though the To: header is specified. and looking at Postfix logs, it seems the e-mails aren't even being sent, no mention of them
[00:04]<tml>danfg: Did you check your sendmail_path using phpinfo()?
[00:05]<rrevr>is there ANY formgen that can generate some fields for me in wich I can insert data and other fields that can read the previously written data?
[00:05]<mrrpr>TML: sendmail_path = /usr/sbin/sendmail -t -i, just like the php.ini
[00:06]<rrdrdr>danfg - isnt there a replacement sendmail binary you have to use with postfix?
[00:06]<rdvxzrwff>danfg try a -f option in your sendmail
[00:06]<fusxuyrr>if ( $lastactivity < 86400 ) { echo 'this client was active in the past 24 hours'; }
[00:06]<fusxuyrr>this won't work, why? :\
[00:06]<tml>cythrawll: -f isn't going to fix "No recipients"
[00:06]<tml>Fushuing: Yes it will
[00:06]<fusxuyrr>IT DOESN'T!
[00:06]<tml>Then $lastactivity isn't what you think it is
[00:07]<fusxuyrr>i echo'ed it
[00:07]<fusxuyrr>it returns 982
[00:07]<fusxuyrr>and it's an int
[00:07]<tml>php -r '$lastactivity = 982; if ( $lastactivity < 86400 ) { echo "this client was active in the past 24 hours\n"; }'
[00:08]<fusxuyrr>...
[00:08]<tml>this client was active in the past 24 hours
[00:08]<rrdrdr>and you echoed it immediately before the if?
[00:08]<tml>Fushuing: The problem is on your end somewhere
[00:08]<fusxuyrr>WHOOPS :X
[00:08]<fusxuyrr>typo ^_^
[00:08]<rrdrdr>guh
[00:08]<fusxuyrr>works now ^_^
[00:08]<mrrpr>enygma: i guess i am using it, postfix installation would've replaced it
[00:08]<rrdrdr>danfg - yeah, I think the new ones do
[00:08]<rrdrdr>I wonder if that got messed up somehow
[00:08]<tml>enygma: It's clearly installed correctly, because Postfix is what's throwing the error
[00:09]<rrdrdr>ahh
[00:09]<rrdrdr>okay
[00:09]<tml>danfg: Show us your source
[00:09]<rrdrdr>yes, pastebin please
[00:09]<mrrpr>cythrawll: i actually use -f in my php scripts, mail() has an option where you can specify sendmail parameters, maybe by using -f i'm overriding -t which tells sendmail how to parse the recipients, let me check brb
[00:10]<mrrpr>TML: i'll check something in the sources brb
[00:10]<praedo>hello
[00:10]<tml>You mean postfix
[00:11]<praedo>i need a php script to remap some url queries, could anyone help me?
[00:11]<t_v>hello all. im looking for a tool that i can use for mass mailing controlled bij php. does somebody has any suggestions ?
[00:11]<txnjzd>yes, don't spam people :-0
[00:11]<afnwnffyjvv>Mass mailing unrelated to spam I hope? ;)
[00:12]<ggmzr>hey
[00:12]<ggmzr>http://www.php.net/mysql_real_escape_string
[00:12]<tjufgg>Don't control it via php. At most use php to configure a daemon that does the actual mailing.
[00:12]<tml>T_V: Why PHP?
[00:12]<jdzd>is there a javascript function that reverse addslashes?
[00:12]<rdvxzrwff>stripslashes
[00:12]<ggmzr>which is the best quote_smart function in that page?
[00:12]<rdvxzrwff>oh wait javascript
[00:12]<tml>omry: re.sub()?
[00:12]<tjufgg>I woul dnot recommend mass mailing from your web server.
[00:12]<wjlllrws>#javascript
[00:12]<rdvxzrwff>omry, #javascript
[00:13]<tml>T_V: If you want mailing lists, you should use some intelligent mailing list control software. I'm rather fond of mailman, myself.
[00:14]<tml>T_V: If you don't want mailing lists, just the ability to "blast email" a common group of people, setup an alias in your MTA, or even better, in your mail client.
[00:14]<tml>There's no sane reason to involve PHP
[00:14]<t_v>(23:07:45) <TML> T_V: Why PHP? >> because the tool we are using has to control the mailer
[00:15]<t_v>so i prefer the tool to be compatible with database / php, etc
[00:15]<ggmzr>http://www.php.net/mysql_real_escape_string <-- there are like 3-4 quote_smart functions, which is the best or preferred one by you guys?
[00:15]<t_v>TML: i dont want to mail using the mail function in php :)
[00:15]<tml>T_V: That didn't make any sense to me. You haven't chosen a tool yet, but it has to "control the mailer"...fine. But why does it need to be in PHP?
[00:15]<afnwnffyjvv>I use that one if you want to know :P
[00:16]<jzyjgusnz>Oh god.. I've installed php5 and php5-mysql from apt over my existing installation. And everything went ok except for the link between the DB and php. I'm getting this error message: Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
[00:16]<t_v>TML: the current product (written in php) is going to be extended with a php mass mailer option
[00:17]<t_v>TML: so we want the mass mailer to be 'php compatible'
[00:17]<tml>OrionUser: Is your mysql socket in /var/run/mysqld/mysqld.sock?
[00:17]<jzyjgusnz>updatdb && locate mysqld.sock?
[00:17]<tml>...
[00:18]<t_v>TML: maybe somebody has got any experience using / creating that. so i was looking for some suggentions of mass mailing tools
[00:18]<praedo>i need a php named "script.php" to convert all queries to /script.php?path=http://www.website.com/blah/bleh/DIRNAMEXXX/file.html&name=FILENAMEXXX.wmv&url=1 into /bluh/DIRNAMEXXX/blih/FILENAMEXXX.wmv
[00:18]<tml>I suppose, if you don't know where it is.
[00:18]<txudrgg>hi guys.. i've been reading a bit on number_format() and i've gotten it to work fine.. 33,333333333 is now shown as 33.33.. but 70 is shown as 70.00 is there a way to hide the numbers after the decimal if it's zero?
[00:18]<praedo>the caps indicate variables that should be kept
[00:18]<tml>T_V: I've never seen a good "mass mailing tool" written in PHP, and highly doubt such a thing is even reasonably do-able.
[00:18]<praedo>what would i need to do that?
[00:19]<tjufgg>Define "good"
[00:19]<t_v>(23:07:12) <AlexElliott> Mass mailing unrelated to spam I hope? ;) >> hehe no. its for educational purposes (mailings to students)
[00:19]<jzyjgusnz>Help, I can't find anything on my system ending in "sock"
[00:19]<jzyjgusnz>closest thing i've found was /usr/local/mysql/libexec/mysqld
[00:20]<jzyjgusnz>please help, lots of people are going to be glaring at me with their "incompetent IT guy" grinds!
[00:20]<tjufgg>OrionUser: Probably because they are correct in their assumption...
[00:20]<jzyjgusnz>thanks
[00:20]<t_v>TML: the mass mailing tool itself does not have to be written in php.. . im just looking for some good tool (maybe mailman) but i just want a tool that has got good compatibility options like communicating with php, a database, or something like that
[00:21]<jzyjgusnz>What are some other locations for the socket for mysql into php and where do I set this at?
[00:21]<txnjzd>T_V: there are various php things that do this, google is probably your friend :-)
[00:21]<t_v>TML: maybe someone needed that before or has got some experience creating that :)
[00:21]<tjufgg>Theory: Most of your better mass mailers can read directly from databases
[00:21]<jzyjgusnz>alright, its in /etc/mysql/my.cnf
[00:21]<tml>OrionUser: You set it in php.ini, mysql.default_socket
[00:22]<zzaxyvysv>OrionUser, you start mysql and IT creates the sock file
[00:22]<t_v>Touqen: mailmen can do that (for example) ?
[00:22]<tml>OrionUser: As for where it is on you machine, given the presence of mysql in /usr/local, that means that the company who set your machine up didn't use debian packages for that, either, so I don't even care to GUESS where they've planted the socket.
[00:22]<jzyjgusnz>now, how do I find the socket on my system if there are no files on my system ending in "sock", ps ax | grep mysqld shows "/usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql --pid-file=/usr/local/mysql/var/www.lhptransport.com.pid --skip-locking --port=3306 --socket=/tmp/mysql.sock"







