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-05-24
[12:54]<rymrg>matthewcrane: echo ''; you don't need the double quotes if you're escaping out
[12:55]<zgzzaxzjg>ls
[12:55]<zgzzaxzjg>hi guys
[12:55]<kyrrdyfj>guys, could someone show me simple html code in a <form> that will CREATE TABLE ?
[12:55]<zrcr2jr>And put \n at the end of the echos before the last " so you can read the html
[12:56]<kyrrdyfj>so if user enter his name for example, that $name must be used to CREATE TABLE name
[12:56]<zgzzaxzjg><table><tr><th>cool</th></tr></table>
[12:57]<fuznnz>hi there
[12:59]<zgvzj_ggj>I'm having a problem compiling PHP I get "configure: error: Cannot find OpenSSL's <evp.h>" and that file is present in /usr/include/openssl and /usr/include/ssl I tried compiling with "--with-imap --with-imap-ssl=/usr/include/openssl", "--with-imap --with-imap-ssl", "--with-imap --with-imap-ssl --with-openssl-dir=/usr/include/openssl/", "--with-imap --with-imap-ssl=/usr/include/ssl" (I'm on Suse 10 / amd64)
[13:00]<vxdcj>is it possoble to compress a 200mb file from php using bz2?
[13:00]<vxdcj>the mannual is talking about strings
[13:01]<tml>thyko: php.net/bzip2
[13:02]<tml>thyko: Although if the file is 200MB, you're probably going to have to adjust your memory limit
[13:02]<svjzdzxzsnz>retro_neo: Are you compiling on 32-bit Linux?
[13:02]<vxdcj>from php.ini?
[13:02]<tml>thyko: yes
[13:02]<zgvzj_ggj>Stormchaser: no, 64-bit
[13:02]<tml>retro_neo: Try: "--with-imap --with-imap-ssl --with-openssl-dir=/usr"
[13:03]<zgvzj_ggj>TML: I'm trying
[13:04]<tml>Stormchaser: I'm curious...where were you going with that?
[13:05]<zgvzj_ggj>same error, here's my config.log when using "--with-imap --with-imap-ssl=/usr/include/openssl" : http://pastebin.com/734783
[13:06]<tml>retro_neo: Well, "/usr/include/openssl" will never be the correct value
[13:06]<svjzdzxzsnz>TML: I had too many problems on compiling PHP modules on 64-bit machine... I usually had to hack the configure file at the end...
[13:06]<vxdcj>TML: is there a way to compress the file directly without copying it to a variable first?
[13:06]<tml>retro_neo: Because it would look for something along the lines of: /usr/include/openssl/include/openssl
[13:07]<tml>thyko: Not without using something like exec(), no.
[13:07]<vxdcj>ok
[13:07]<dzvvxgwrzzgg>hi room im a bit stuck , the pagination i was using from a tutorial on php freaks, and im unsure how to fix the hyperlink problem
[13:08]<dzvvxgwrzzgg>would someone be able to explain exactly what i need to do, i tried moveing the anchor tags but it didnt work
[13:08]<ryddygxrgssjg>matthewcrane: pastebin?
[13:08]<svjzdzxzsnz>retro_neo: What happends, if you don't specify the paths explicically?
[13:08]<tml>retro_neo: Your config.log points to a missing libpam.so
[13:08]<dzvvxgwrzzgg>www.hertfordtown.info/html/d.php http://pastebin.com/734757
[13:08]<dzvvxgwrzzgg>thanks jimmie
[13:09]<dzvvxgwrzzgg>the hyperlinks dont work on page numbers, prev and next
[13:09]<dzvvxgwrzzgg>i think i got the code messed up a little
[13:09]<tml>retro_neo: You probably need to identify which package on SuSE provides libpam
[13:09]<ryddygxrgssjg>matthewcrane: line 101, change $PHP_SEF& to $PHP_SELF? and try
[13:09]<vxdcj>retro_neo: i ecently succeded in compiling it on slackware10.2, but i had to download the latest open ssl, compile and install it
[13:10]<ryddygxrgssjg>http://pastebin.com/734790
[13:10]<svjzdzxzsnz>thyko: on 32-bit machine? BEcause PHP can't look into */lib64 directories...
[13:10]<vxdcj>yes, mine's 32bit
[13:11]<tml>This problem has nothing to do with OpenSSL, it just doesn't show up until you reach the SSL step.
[13:11]<tml>/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lpam
[13:11]<tml>That's the problem
[13:11]<zgvzj_ggj>TML, Stormchaser: thanks, I installed pam-devel and now it works, without specifying any paths
[13:11]<tml>*nod*
[13:12]<dzvvxgwrzzgg>jimmie line101?
[13:12]<tml>Stormchaser: What do you mean "PHP can't look into */lib64"? Admittedly, I've only had limited exposure to 64 bit environments, but the OS linker should abstract that. PHP doesn't hardcode that sort of thing.
[13:12]<dzvvxgwrzzgg>it does says self anyway
[13:12]<tml>matthewcrane: What exactly is the problem you're having?
[13:12]<dzvvxgwrzzgg>if you check out www.hertfordtown.info/html/d.php
[13:13]<dzvvxgwrzzgg>the hyperlink on next and prev and the page numbers dont work
[13:13]<dzvvxgwrzzgg>im not sure why
[13:13]<tml>matthewcrane: Your website doesn't work at all in my browser, so you're going to have to describe the problem.
[13:13]<dzvvxgwrzzgg>http://pastebin.com/734757
[13:13]<dzvvxgwrzzgg>TML what browser do you use
[13:14]<tml>matthewcrane: elinks-ssl
[13:14]<dzvvxgwrzzgg>check out the pastebin
[13:14]<dzvvxgwrzzgg>toward the bottom is the code for generating pagination links
[13:14]<tml>I'm looking at the pastebin. What I don't have is a description of the PROBLEM we're trying to fix.
[13:14]<svjzdzxzsnz>TML: I'm not sure if that is the case for PHP5, but it was for PHP4... the configure file only had /lib and /usr/lib inside... Which failed on finding 64-bit libraries...
[13:15]<dzvvxgwrzzgg>but at the mo, i only see PREV 1 NEXT (as text not hyperlinks)
[13:15]<dzvvxgwrzzgg>the hyperlinks arent working
[13:15]<tml>Stormchaser: Hmmm...do you remember an extension? Because configure shouldn't have /lib *OR* /usr/lib. That's supposed to be provided by your toolchain...e.g., autoconf, etc.
[13:16]<ryddygxrgssjg>matthewcrane: try this http://pastebin.com/734796
[13:16]<tml>matthewcrane: So, when I look at your pastebin, I see a decision tree that results in 'echo("PREV".$limit." ");
[13:17]<zrcr2jr>Damn it this database query is returning data that's not even slightly close ot anything in the database
[13:17]<tml>matthewcrane: Rather than in a hyperlink
[13:17]<zrcr2jr>It's data that can be in the database, it's just that it isn't
[13:17]<tml>Zakabog: Highly, highly improbable
[13:17]<svjzdzxzsnz>TML: Hm... then there was something wrong with the environment...
[13:17]<zrcr2jr>TML you'd think so but then you'd look at my page
[13:17]<tml>Zakabog: Check that you're connected to the database you think you are. Perhaps you've left it connected to an old copy of the database.
[13:17]<zrcr2jr>Hmm
[13:17]<zrcr2jr>That might be it, I hope
[13:18]<tml>Zakabog: You need to check your assumptions on that order. The flaw is almost assuredly in there.
[13:18]<zrcr2jr>hahaha
[13:18]<tml>matthewcrane: Do you see what I'm referring to?
[13:18]<zrcr2jr>TML thank you :-)
[13:18]<tml>matthewcrane: Lines 95-107, for example.
[13:18]<zrcr2jr>If I make another typeo I'm going to shoot myself
[13:19]<tml>Zakabog: You mean "another typo"?
[13:19]<zrcr2jr>I'm connecting to the database jukeduke, my page was connected to the database jukerduke which I accidentally created
[13:19]<zrcr2jr>Grr one misplaced letter and I'm tearing apart my code for 4 hours
[13:19]<dzvvxgwrzzgg>ok
[13:20]<tml>Zakabog: As I said, when something improbable appears to be happening, check your assumptions. :)
[13:20]<tml>matthewcrane: So, for example, if $page == 1, the "prev" link will not be a hyperlink
[13:21]<tml>matthewcrane: And you explicitly set it to 1, on lines 31-35
[13:21]<zrcr2jr>lol
[13:21]<zrcr2jr>I was just assuming it was getting data from another row and then I noticed none of the rows matched the data
[13:21]<tml>matthewcrane: So there's no way the "prev" could be a hyperlink in this instance.
[13:21]<tml>matthewcrane: Are you following this?
[13:21]<dzvvxgwrzzgg>ok its making sense so far
[13:22]<tml>matthewcrane: Now, do the same thing I just did, only on the "Next" link, instead of "Prev"
[13:22]<tml>Look at your code, see how it could be getting echo'd without being a hyperlink.
[13:22]<tml>Ask yourself how it got to that block of code.
[13:22]<tml>This is what's known as "programming".
[13:22]<zrcr2jr>Hehe
[13:23]<zrcr2jr>:-(







