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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-22
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
40
41
42
43
44
45
46
47
48
49
50
51
Next >
[07:36]<mzvymhkmzpjwnzs>[xt] : html?
[07:36]<jumn>[xt]: echo ' This is tet (newline) blah blah text '; works
[07:36]<alnr>Mr_Sako: when configure wants a --with-something-dir, it's asking for a directory that contains an include/ and lib/ subdirectories. usually that's /usr but it can also be /usr/local, /usr/X11, or whatever.
[07:36]<jumn>[xt]: You can also do heredoc definitions. HEredoc is the devil, though... :D
[07:37]<mz_srcj>ok so just find the zlib durecorty and putnit there
[07:37]<[wv]>i can press enter midline and it won't cause problems ?
[07:37]<jumn>[xt]: Yeah
[07:38]<[wv]>cool. now what if my html contains quotes, what do I do about that
[07:38]<alnr>Jude: why do people dislike heredocs?
[07:39]<jumn>jpeg: It just looks ugly and out of place
[07:39]<jumn>[xt]: \'
[07:39]<jumn>Though I guess it's useful for not having to escape stuff.
[07:39]<tufrr>howto enable or install XML functions?
[07:39]<[wv]>what does that mean? i substitute \' in place of quotes ?
[07:40]<jumn>[xt]: Escape them with \. So, if you had... echo '<input name='test' />', it would become echo 'input name=\'test\' />';
[07:40]<[wv]>okay. thanks
[07:45]<ayzzsvnz>properly formatted html/xhtml should use double quotes for attributes
[07:45]<kyzsax>hey guys, i'm trying to compile php w/ gd support but it saying zlib isn't install, yet it is (for PNG support), i'm using FC4
[07:46]<ayzzsvnz>but this isnt #web so i'll forget i saw anything or said anything
[07:46]<rymrg>Kirsch: specify the path to your zlib header files
[07:46]<alnr>Kirsch: find zlib.h
[07:48]<kyzsax>now it's saying "Cannot find libz"
[07:50]<rjfmsvnrf>http://pastebin.ca/95600
[07:50]<ayzzsvnz>and the problem being?
[07:50]<rjfmsvnrf>i havent tryed it yet
[07:50]<ayzzsvnz>so why do we care?
[07:50]<rjfmsvnrf>does the syntax look right
[07:51]<ayzzsvnz>get a better debugger/ide/whatecer
[07:51]<ayzzsvnz>whatever*
[07:51]<txzzzzdjdzvzzzzz>coldsteal: I don't like the font
[07:51]<rjfmsvnrf>what font?
[07:51]<yvzn2rf>font?
[07:52]<vxn-nzd>coldsteal: echo "Your Ip is:$ip"; // might work a little better.
[07:52]<b[z]nrm>*IP address
[07:52]<vxn-nzd>Never mind ...
[07:52]<rjfmsvnrf>okay
[07:54]<vxn-nzd>To me it looks like it would work, but it won't print out anything, and table should probably be ip_logs on that second select.
[07:54]<vxn-nzd>But considering you just inserted the ip, it should be there.
[07:54]<rrrd>how would I go about making in my .htaccess file that .do files would be interpreted by php?
[07:55]<vxn-nzd>So it would be kinda stupid to re select it.
[07:56]<alnr>ajay: AddHandler application/x-httpd-php .do
[07:56]<rrrd>Ok thanks
[07:59]<vxn-nzd>coldsteal: what exactly are you trying to do with that code?
[08:00]<ayzzsvnz>the-erm: thats dangerous territory you be treading
[08:01]<vxn-nzd>The code is ... well doesn't serve a purpose. All of it could be done in 3 lines if I'm reading it right.
[08:01]<vxn-nzd>It starts by inserting into a table.
[08:02]<vxn-nzd>then looping thru all the records /// could be just done with a select * from table where ip = 'x';
[08:02]<vxn-nzd>But we know that it's there because it was added in the first 3 lines.
[08:02]<txzzzzdjdzvzzzzz>the-erm: Or more simply: SELECT 1 FROM table WHERE ip = 'x';
[08:03]<mrvymmj>anybody familiar with the PHP binding with SQLite? specifically sqlite_create_function?
[08:03]<vxn-nzd>that's another way of doing it.
[08:06]<vxrrrzmsrrrfr>how does php(4)'s speed compare between apache module+phpsuexec vs php as cgi?
[08:07]<txzzzzdjdzvzzzzz>thenerdsangle: cgi is slower, but using it with fastcgi is as fast if not faster than SAPI (apache module)
[08:07]<[wv]>uhm every time i create a new .php page (and it contains any php code, even if it's 100% non buggy) and upload it to my hosting server i get "500 Internal Server Error" ... is this a common occurrence or is my hosting provider crapping out for some reason ?
[08:08]<vxrrrzmsrrrfr>[xt]: you might try chmodding your scripts to 755
[08:09]<txzzzzdjdzvzzzzz><shameless_advertising>I also recommend that you take a look at lighttpd with fastcgi instead of using apache</shameless_advertising>
[08:09]<vxn-nzd>coldsteal: http://pastebin.ca/95615 // This is how I would do it.
[08:10]<rjfmsvnrf>Parse error: parse error, unexpected T_STRING, expecting ',' or ';'
[08:10]<vxrrrzmsrrrfr>TheRandomAvenger - i don't have quite enough sway to pull that off
[08:11]<vxn-nzd>what line?
[08:11]<vxn-nzd>line 8 ad a ;
[08:11]<vxn-nzd>sheesh
[08:11]<rjfmsvnrf>o thats on mine
[08:11]<rjfmsvnrf>29
[08:11]<ydc>you dont need ;'s
[08:11]<ydc>ever
[08:11]<rjfmsvnrf>line 29
[08:11]<ydc>worst idea since pacman
[08:12]<rjfmsvnrf>the-erm that checks if the ip is in the db if so it doesnt email it
[08:12]<rjfmsvnrf>but if it isnt it does email it
[08:12]<vxn-nzd>your code would never email it.
[08:13]<txzzzzdjdzvzzzzz>imk: What are you flaming?
[08:13]<ydc>boredom
[08:13]<vxn-nzd>because it inserts it before it searches for it.
[08:13]<txzzzzdjdzvzzzzz>Ah, okay.
[08:13]<txzzzzdjdzvzzzzz>Because a flamewar would be entertaining right about now
[08:14]<rjfmsvnrf>but now that you re did it it will do it right
[08:14]<mzsrcj>ok im stil trying to install php
[08:14]<mzsrcj>http://mrsako.pastebin.ca/95619
[08:14]<mzsrcj>i dont understand the config.log file at all
[08:15]<txzzzzdjdzvzzzzz>jiggster: So many good responses, so little time.
[08:15]<ayzzsvnz>i'm sure you can fit a few in TheRandomAvenger
[08:16]<vxn-nzd>MrSako: I don't think most people understand the config.log file.
[08:16]<alnr>MrSako: you only need the last few lines of config.log, btw. the stuff after configure: failed program was:
[08:16]<mzsrcj>oh
[08:17]<alnr>the-erm: it's easy. configure writes a small C file with one function and tries to compile and run it. it tells you where it failed.
[08:17]<rjfmsvnrf>the-erm Parse error: parse error, unexpected T_VARIABLE in /mnt/w0400/d38/s01/b0288390/www/i-trash.org/include/db-ip-mailer2.php on line 9
[08:17]<mzsrcj>soooooo im completley confuse di dont see wher eits telling me what happened wrong
[08:18]<alnr>it tried to write a small C program with the mysql_error() function and the C compiler couldn't find it.
[08:18]<[wv]>okay another simple question. what if i want to make a function that doesn't have anything passed to it ... "function myfunc(void) {" <--is that okay ?
[08:18]<ayzzsvnz>coldsteal: PHP doesnt know what "is" is
[08:19]<rjfmsvnrf>i dont think so
[08:19]<ayzzsvnz>coldsteal: it was supposed to be part of a comment but got put on a new line
[08:19]<txzzzzdjdzvzzzzz>[xt]: Let me guess, a C(++) programmer? Just use function myfunc() {
[08:19]<alnr>MrSako: you already said you had an include directory in /usr/local/mysql, correct?
[08:19]<mzsrcj>yes
[08:19]<mzsrcj>and lib
[08:20]<[wv]>TheRandomAvenger, okay, didn't realize that. and you guessed right :) thank you
[08:20]<[wv]>that explains the error i was getting
[08:20]<alnr>MrSako: do you have /usr/local/mysql/include/mysql.h ?







