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: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-17
Pages: < Prev
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
Next >
[17:14]<dzsvjacs>hiwa there i asked a few mins ago but it didn't help, im tying to send a mail with an accent in the subjet, a à and whatever happens its alwas a X
[17:14]<fjs-furrs>(1000GBP)
[17:14]<fjs-furrs>but not...
[17:15]<fjs-furrs>mrstocks: how do you sent this email?
[17:15]<fjs-furrs>mail(), SMTP?
[17:15]<dzsvjacs>using the mail function
[17:15]<dzsvjacs>yeap
[17:15]<fjs-furrs>try to specify encoding in your message headers
[17:16]<dzsvjacs>I have it works int eh body not in the subjet
[17:16]<dzsvjacs>wanna see my code?
[17:16]<h0fd>Question regarding image upload storage. I dont care about security so is it worth saving it as blob/longblob in mysql or just save it on disk and DB store the file location in the object?
[17:16]<fjs-furrs>mrstocks: sure
[17:16]<dzsvjacs>Whats the site again?
[17:17]<fjs-furrs>mrstocks: i meant the encoding in email headers; not in HTML message <head> section
[17:17]<fjs-furrs>have you set it in the email message header?
[17:18]<mzyvgg`ygvgzvrmg>ok, I am trying to run a socket server in php(for fun) and It wont let me bind the address to $_SERVER['SERVER_ADDR'] , Im running the server via command line, which I think might have something to do with it. When I use the $_SERVER['SERVER_ADDR'] variable in a web window it works fine and erturns the server address. Whats going on?
[17:18]<dzsvjacs> how? los-lucas
[17:19]<fjs-furrs>http://uk.php.net/manual/en/ref.mail.php#61644
[17:19]<fjs-furrs>there's a header set in the example
[17:19]<zrlsds>driveN`intErvade: $_SERVER is not created on command line
[17:20]<zrlsds>you have only $_ARGV and $_ENV if I rememeber well
[17:20]<fjs-furrs>mrstocks: sorry, wrong link
[17:20]<mzyvgg`ygvgzvrmg>$_ARGV ?
[17:20]<mzyvgg`ygvgzvrmg>I could probably strip down $_EVN['SSH_CONNECTION'] or something, Ill figure it out, thanks for the help
[17:20]<||aw>mrstocks: http://www.faqs.org/rfcs/rfc2047.html has info on using encodings in the subject
[17:20]<fjs-furrs>mrstocks: http://uk.php.net/manual/en/ref.mail.php#57473
[17:21]<fjs-furrs>there you go
[17:21]<zrlsds>driveN`intErvade: php file.php arg1 arg2 arg3 arg4
[17:21]<gzgg_>php-eclipse doesn't work :(
[17:21]<_zzlzm>rapsys: that's $_SERVER['argv'] or $argv if register_argc_argv is on
[17:21]<mzyvgg`ygvgzvrmg>wel
[17:22]<mzyvgg`ygvgzvrmg>I dont want he address to have to be set
[17:22]<mzyvgg`ygvgzvrmg>basicly, Im testing this for a game control panel, I want it to boot this server up , all on its own
[17:22]<zrlsds>arg i made a mistake then, sorry
[17:22]<mzyvgg`ygvgzvrmg>any ideas on how to get the addr?
[17:22]<gzgg_>i copied net.sourceforge.phpeclipse_x.x.x to <eclipse installdir>/plugins
[17:22]<gzgg_>but it doesnt work
[17:22]<mzyvgg`ygvgzvrmg>other than running some gay linux commands and figuring out the crap
[17:22]<mzyvgg`ygvgzvrmg>lol
[17:23]<zrlsds>$ip = shell_exec('/sbin/ifconfig ppp0 | /usr/bin/perl -ne \'print $1 if /adr:(.*?) /\'');
[17:23]<zrlsds>if you want get the local ip (in case of ppp0)
[17:23]<zrlsds>replace with eth0 or you config
[17:23]<rrrnfnvn> i cant compile php5.1.4 with mysql5.0 support, can anyone help me?
[17:24]<||aw>driveN`intErvade: many things in $_SERVER are set from the web server and so aren't available from CLI. you'll have to resort to standard shell scripting ways to get the local ip, like parsing ifconfig or something
[17:24]<zrlsds>angelete: which distribution ?
[17:24]<mzyvgg`ygvgzvrmg>yea, I figured that.
[17:24]<rrrnfnvn>rapsys: FC5, i need to recompile it, rpm packages are not suitable for me
[17:24]<mzyvgg`ygvgzvrmg>*sigh* this could be easier but it hates me
[17:24]<rrrnfnvn>i've tried it
[17:24]<rrrnfnvn>but i get the following error
[17:24]<mzyvgg`ygvgzvrmg>well, what if I ran the script from a web server than ran the command as system("php server.php &"); ?
[17:25]<mzyvgg`ygvgzvrmg>would it obtain the address then?
[17:25]<||aw>driveN`intErvade: why do you need the local ip?
[17:25]<gzgg_>los-lucas: thanks for php-eclipse it works
[17:25]<zrlsds>angelete: take the src.rpm, install it with : rpm -i ...src.rpm, edit the spec file and rebuild it
[17:25]<||aw>driveN`intErvade: no, that's still cli
[17:25]<fjs-furrs>eren_: install simpletest and myeclipse on to of that!
[17:25]<fjs-furrs>on top
[17:26]<mzyvgg`ygvgzvrmg>because, this stuff Im writting is for game server people, I want them to be able to run the c++ install script, and it run everything for them
[17:26]<rrrnfnvn>and also i have problems with redhat 9
[17:26]<zrlsds>angelete: FC sucks it's a devel/unstable distrib, use mandriva 2006.0 it has both MySQL50 and php5 by default if you want
[17:26]<mzyvgg`ygvgzvrmg>If I knew sockets in c++ it would make my job so much easier
[17:26]<mzyvgg`ygvgzvrmg>*sigh*
[17:26]<rrrnfnvn>it gives me compiler errors
[17:26]<zrlsds>angelete: and the mandriva looks like the fc, but it's easyer and many time stable...
[17:26]<rrrnfnvn>rapsys: i prefer debian or freebsd, but i have to work with fc and redhat
[17:28]<zrlsds>angelete: if it's for your business explain FC sucks and the only real redhat distrib is the RHEL (without php because unsupported on it)
[17:28]<||aw>angelete: what's the error?
[17:28]<rrrnfnvn>with redhat or fC? ||cw?
[17:28]<||aw>angelete: whatever
[17:29]<rrrnfnvn>FC: does not find mysql
[17:29]<||aw>hm, guess mrnaz's gf has a habit of unpluging his net cable :D
[17:29]<rrrnfnvn>redhat: parser error
[17:29]<zrlsds>you need install package mysql-devel
[17:29]<zrlsds>libmysql-devel or something like that
[17:29]<||aw>angelete: did you install the mysql dev package, and are you use --prefix=/usr ?
[17:29]<rrrnfnvn>rapsys: i have already installed
[17:29]<wnnmzz>driveN`intErvade, for socket programming check out http://beej.us/guide/bgnet/ =)
[17:29]<zrlsds>check your config
[17:30]<mzyvgg`ygvgzvrmg>yea, I tried reading that one time, didnt really undestand haha
[17:30]<wnnmzz>I remember reading that socket-programming guide years ago, it's brilliant
[17:30]<wnnmzz>oh ;)
[17:30]<zrlsds>check the configure flags
[17:30]<mzyvgg`ygvgzvrmg>god, freenode is like a programmers network, I love it!
[17:30]<||aw>angelete: or use --with-mysql=/usr,shared
[17:30]<rrrnfnvn>i used yum, do you mean --prefix=/usr on configure for php?
[17:30]<||aw>Dalton: that's exactly what freenode is :)
[17:31]<rrrnfnvn>i've tried with --with-mysql=/usr and --with-mysql=/usr/local/mysql
[17:31]<ndf>Hmm, how does optional parameters work? Can I use them in my own function?
[17:31]<zrlsds>angelete: install the mysql-devel package, then ./configure --help and check if you can't put the flags to make it works
[17:31]<rrrnfnvn>both options, same result
[17:31]<||aw>angelete: if you are compiling, yes
[17:31]<drfvjg>gamesurge blows on programming help, bleh
[17:31]<h0fd>Easy stupid question probably ive read mostly java so i'll try to explain it I'm building a webshop and got product administration formula where I want to add certain data into a mysql DB. But the image storage is handled in a different file lets say uploader.php and I want access to thoose variables where in Java I would have liked to write a "return filelocation;" method is there any way I can do this in php so I can save the file location easily i
[17:31]<||aw>angelete: find all the mysql packages you have installed, then install the matching -dev package for each
[17:34]<rrrnfnvn>||cw i used the standard distribution from mysql, not yum packages
[17:34]<||aw>H0ly: um, functions can return
[17:34]<rrrnfnvn>but i installed mysql-devel, too
[17:35]<||aw>angelete: that makes things trickier
[17:35]<||aw>what's missing from the php that comes with fc?







