@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 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



Comments:

<0> thanks
<1> hey i've got his query
<1> $query2 = "insert into student_info (user_name, cl***, section, contactByPhone, contactByEmail, phone) values ('$username', '$cl***', '$section', '$emailByContact', '$emailByPhone', '$phoneNumber')";
<1> but the phone number is always 2147483647
<1> in the DB
<1> anyone know what might cause this
<2> But not if you echo $query2; ?
<1> i'll echo it, hold on
<2> $phoneNumber isn't an integer is it by any chance?
<1> oh gosh
<1> the max
<1> thanks
<2> Ah, i'll bet the column is a signed int
<2> :o
<1> damn i should have recognized that number
<3> compiling 5.1.4 in redhat 9, it gives me parser errors



<3> which glibc must i have to compile it correctly?
<3> and how can i gess it?
<4> hi
<4> does anyone know what kind error is this
<4> Fatal error: Call to undefined function session_write_close() in /home/kex/public_html/e107_admin/mailout.php on line 26
<5> jeambo: it's an error indicating that the function you are calling does not exist
<6> Anyone have tips on generating a really big random number with PHP?
<4> hmm strange
<7> anything to extract all values for a particular recurring key in a nested array?
<7> i.e. all values with key 'admin_section_id' in array(array('admin_section_id' => integer))
<2> jeambo: Use session_flush(); instead
<7> other than to foreach it of course which i already am doing :)
<4> MarkL: line 26 is session_write_close();
<2> jeambo: Yeah use session_flush(); instead
<8> If I write a PHP page that access MySQL, what is the best way to store MySQL p***word?
<4> ok ill try
<5> jeambo: what version of php do you have?
<9> Why does $array[keyname] work? It shouldn't, should it? (I don't use it)
<10> Greetings. I'm having some odd behavior with session cookies in IE. I'm using PHP's standard session handling. In Firefox, the session cookie is sent properly. In IE, it seems IE never receives or never records it, so can't send it back.
<4> CryWolf: php5
<10> It seems to happen to only some IE installs, and only on some sites, using the same codebase.
<9> CrazyTB: I have a config.php which I include. There isn't really much choice but to store it in plaintext.
<10> Anyone have an idea what the issue could be, or what to check?
<2> Stormx2: It will work but it produces a NOTICE
<5> jeambo: does phpinfo() say you have session support?
<10> I've tried reducing the code down to just a session_start(), which still has the same behavior.
<9> Crell42: Not a clue. You're using session_start() at the top, yeah?
<10> da
<9> Hmm
<8> Stormx2: http://www.php.net/manual/en/language.types.array.php <- read "Why is $foo[bar] wrong?"
<4> Crywolf i mus check
<9> Cookies arn't turned off in IE?
<4> MarkL: now i get another error
<4> Parse error: parse error, unexpected T_REQUIRE_ONCE in /home/kex/public_html/e107_admin/mailout.php on line 27
<8> Stormx2: hum, ok. And what is the best way to store it in a "user" account?
<2> jeambo: Did you put the ; on the end of line 26 ?
<10> Nope. IE does get some cookies, just not all of mine. :-(
<8> I mean, ~user/
<11> Hey - what kind of encryption does this look like: e4853298c0ef358cf0ae3e67f7ad4210:9f
<10> ***yKen: md5 or sha1 is my off-the-cuff guess. Check the length against the PHP docs.
<6> AmISHA1OrNot.com
<10> mhillyer: That's the silliest site I've ever heard of. :-)
<4> MarkL: nope.. but now i put it and it give Fatal error: Call to undefined function session_flush() in /home/albateam/public_html/e107_admin/mailout.php on line 26
<12> ....and here's the pitch
<11> Crell: I just never seen md5 with a ":" in it.
<2> jeambo: So you really don't have session support then
<10> No have I, honestly.
<9> CrazyTB: Wait, a user's p***word, or the p***word used in mysql_connect?
<10> Stormx2: Do you think explicitly closing the session would make a difference?
<8> Stormx2: p*** to mysql, but inside a user dir.
<13> ***yKen: the first 32 chars of that are md5, the last three are appended somehow
<4> MarkL: can i edit it in php.ini ?
<9> Crell42: I have no idea :( Sorry
<10> drat
<11> Yea -- philip, you're right I just noticed that....
<9> CrazyTB: A user directory, like, ~/someuser/ or have you got root?
<2> jeambo: How was PHP installed do you know? From source or a package? Check a <?php phpinfo() ?> page
<4> MarkL: friend server...
<4> PHP Version 5.0.5-Debian-0.8~sarge1 (Debian GNU/Linux)
<4> i think from pachage
<2> jeambo: See if there's a php5-sessions package



<4> okey
<13> what is this session_flush() you speak of? :)
<8> Stormx2: I got root, but the guy who wants to access MySQL database does not.
<14> are $_POST'ed elements escaped automatically?
<9> CrazyTB: So give him a mysql user
<10> It also seems to happen only on some servers. :-/
<8> Stormx2: of course, but where should HE store the p***?
<9> CrazyTB: In his user area?
<8> plaintext at his ~user/public_html ?
<13> I don't think session_flush() exists anywhere :)
<2> philip: It does ;)
<13> wrmachin3: no
<10> It's session_write_close(), but that didn't fix it either.
<9> CrazyTB: Yeah, he can just put it in a text file can't he? o.O
<9> In ~/public_html/something.php
<13> MarkL: you messing with your code again? :)
<13> php source that is
<8> Stormx2: In that case, won't other users be able to read that?
<2> philip: It got zapped as of php 4.3.9 methinks .. but it was there before that
<9> CrazyTB: I don't think so, if you have it set up right.
<9> CrazyTB: I can't remember the default chmod for home dirs
<8> 711, I guess
<8> remember Apache must be able to read the public_html dir
<13> hmm, docs stay in manual for that, i guess it was never documented
<14> philip: ok thanks.
<14> well damn, i wonder where these extra slashes are coming from
<13> wrmachin3: oh, btw, read about magic_quotes_gpc and why you shoul dnot use it :)
<9> Well
<2> philip: Some versions didn't have session_write_close() but had session_flush() instead .. I was just checking ;)
<9> The only way you would be able to read the file from another home space
<9> Would be to use PHP or some other SS Scripting Language.
<9> They execute on "Other" 99% of the time
<13> wrmachin3: read php.net/magicquotes
<13> this is the most common php "quirk"
<9> So providing you havn't got "r" on the userspace
<9> its fine.
<4> MarkL: there is packet php5.0-session - session module for PHP 5.0
<15> hey Stormx2
<9> hi surfdue
<13> whoever removes session ext from a php ext is one sick sob
<16> lol!
<2> jeambo: Give it a whirl
<13> so debian does that now too?!
<17> I need expat support in PHP (http://php.net/manual/en/ref.xml.php) Can this be compiled as a module or does the core PHP environment need to be rebuilt?
<13> try creating xml so via php.net/install.pecl
<4> CryWolf, MarkL u was right it was that session problem
<4> fized
<4> thanks
<18> !tell jeambo about u
<14> philip: i wish i'd known about this magic quotes garbage earlier.
<14> i ***ume it's not all that safe?
<13> heh
<13> well, it will be removed as of php 6
<14> when did it come to be?
<13> it exists so newbie code will work and be somewhat secure (or help anyways)
<14> haven't really touched php since php3.. just before 4 was released, so it's all new to me.
<13> since day #1
<14> really?
<14> hmm
<19> anyone know anything about encodings ... ? I can't seem to use two languages simultaneously on a site using euc-kr charset ...
<13> get_magic_quotes_gpc() existed as of 3.0.6 at least
<14> yea
<14> well, i guess in the past the admins of the boxes i used knew what tehy were doing :)
<13> you were lucky :)
<17> How can I get expat support in PHP 4? Is it supported as a module?
<20> Hi all!
<21> urf
<20> How can I install simpletest?
<21> read the INSTALL file
<22> hello all, is there a way to check if a file exists on another server short of doing fopen each time...file_exists doesn't seem to work when you have to use something like http://www.mysite.com/images/myphoto.gif
<23> rindolf, read the documentation.
<21> bwdev: file_exists()
<22> yeah, file_exists() doesn't seem to do it for some reason
<21> bwdev: Which PHP version do you haver?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#suse
installing qt4 xubuntu
#css
ifup: couldn't read interfaces file /etc/network/interfaces
#web
#python
OpenSPC install fedora
#oe
linux install screensavers
#lisp



Home  |  disclaimer  |  contact  |  submit quotes