@# 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



Comments:

<0> monday--
<1> lig, still sunday here :)
<0> davidhouse: :P ;)
<2> EvilWalrus, thanks
<3> the problem at hand is that diplaying of utf-8 chars works like a charm, but everything i put into a form, p*** via POST and insert it into mysql (which is set to utf-8) is gibberish. two-byte gibberish, but gibberish none the less
<4> davidhouse: using define with a function will only run the function when the constant is defined, not every time you call it
<4> in case you were trying that
<1> GarethAdams: of course, i was just checking that constants were defined at runtime
<4> :)
<5> Stormchaser: I found the problem
<1> and not at whatever php's equivalent of compile-time is
<5> my resolv.conf needed updating for some reason
<6> lol
<5> The reason I did not see it earlier was because the server is on a different machine



<6> ew., Oatmeal.
<0> RichiH: what is the char set of the form page?
<3> both utf-8
<0> RichiH: so the form is utf8 and the DB - is it in utf8?
<3> lig: yes, the table it utf-8, too
<0> RichiH: last question - is your php set to utf8 in the php.ini?
<3> let me check
<3> lig: it is not set at all
<0> RichiH: check this out - http://www.phparch.com/sample.php?mid=57
<3> lig: ***uming i do not need to restart apache to make things happen, it does not work, will read the link, ta
<3> -me deflames self
<6> RichiH: s/do not need/need EVERY change in php.ini requires webserver rebooting...
<7> does anybody know if it is possible to run 2 php versions with 1 apache server (both as a module)
<8> yes Quickimaster
<6> no
<8> but no, you're not going to do it
<6> lol
<8> because that's bad mmmkay
<6> mazzanet: It's possible, but not workable :)
<8> i have it working :)
<6> how?
<8> well
<8> had
<8> got rid of the setup because it was pointless :P
<6> lol
<8> basically you have to change a bunch of module names in the source
<6> mazzanet: Ew.
<8> and set the parser to look for say <?php4 4?>
<3> Stormchaser: oh, ok
<8> i actually managed to have php4 and php5 working on the one page
<9> but like you say... how pointless :|
<6> mazzanet: Yep. You're insane :)
<8> :P
<3> Stormchaser: does not help either. a noteworthy fact is that just displaying what i get via post is working correctly
<6> RichiH: Do you have a problem with saving data or displaying it?
<8> weee
<8> off to build a 4m comms tower on my shed
<6> lol
<10> how does one write an actual \n in php? So that the output reads \n?
<6> '\n'
<11> hi
<3> Stormchaser: when i save it, both my php code and phpmyadmin display garbage. but two-byte garbage, so it seems it is at least trying to save as utf-8. old entries that were imported into the DB work like a charm, as do the ones i enter via phpmyadmin
<8> owh: !
<12> mazzanet: !
<8> !!!
<13> hey guys
<12> mazzanet: Back in Millmerran, QLD :-)
<12> blanky: Says who?
<8> what fun
<13> owh, huh
<8> i'm just about to head outside and build a 4m comms tower on my shed
<12> mazzanet: It is. Next I'll be upgrading my modem to do 1Mbit and downsizing the dish to 1.2m :-)
<14> ****in' gmail..
<10> Stormchaser: if I'm tring to echo that would it be like echo " text " . '\n' " more text";? Right now I have it as echo " '\n' "; and it returns a line break
<12> blanky: Guys - how do you know?
<13> hey guys, i have like many pictures in a folder, which I'm enumerating using glob, now, I want to show them in a table with 4 columns and as many rows needed. What's the best way to do this
<13> owh, hehe
<15> crap
<12> HolyGoat: Hey, it's for free :)
<11> as my webpage code grows, i cut it into pieces as several php files to be included or required by other php files. my question: how do i best avoid these files from being executed directly?



<13> owh, guys == generaly
<14> owh: it's down
<8> owh: 4m of gal pipe, a bunch of u-bolts, some steel wire and 3 rolls of gaffer
<8> owh: what can possible go wrong?
<8> y
<8> :P
<12> mazzanet: You're too heavy for the pole?
<11> i mean, if someone guessed the name (and thus url) of such an include file...
<8> heh
<12> nazgool: Put them in an include directory outside the webroot.
<6> RichiH: Do you get &#blah; in the DB?
<12> blanky: Use a stylesheet and float:left; It will use as many columns as there is space for.
<3> Stormchaser: i see exactly the same crap in phpmyadmin, yes
<12> mazzanet: I just thought of something else...
<8> owh: i've been having some lately. optimizing/processing a 20 million row table
<13> owh, thanks
<6> RichiH: Do you do any iconv() voodoo?
<12> mazzanet: The ladder isn't tall enough for the roof or the roof won't support the pipe :)
<11> owh: ok thx
<12> mazzanet: Having some what - ah fun.
<8> owh: 9.4gb of mysql table goodness...
<12> mazzanet: Excellent. Was the data useful :-)
<8> oh it is ;)
<8> PM
<12> mazzanet: Sure.
<6> mazzanet: CC#, paypal username/p***words? Anything in that direction?
<8> no :P
<6> mazzanet: Then it's not usefull :)
<8> *bring* *bring*
<8> that's all i'll say.
<3> Stormchaser: no
<6> RichiH: Weird... Can't help there, tho
<2> shouldn't print_r($_POST); give me all the $_POST-vars which has been used?
<6> stoffus: Yes
<2> hmm
<3> Stormchaser: the only 'strange' thing i do is mysql_query("SET character_set_results=\"utf8\""); but that is needed to even display the existing utf-8
<15> what version of gdlib is supported on php4.3.11 ?
<6> RichiH: I can't say anything... I never work with UTF-8 encoded MySQL DB...
<3> Stormchaser: ok, thanks
<16> ok, when i upload the site to server it's hosted on, it doesn't display it right. I know it's working code, because it runs locally just fine.
<6> Mewshi: URL?
<16> http://mewshi.stingfish.net/demo/pmead2/
<6> Mewshi: There should be something on the first page?
<16> yes
<6> pastebin the code
<16> Current Official Site
<16> The current PMEA District 2 website
<16> that's what it should say
<6> Mewshi: Pastebin the code.
<16> um... i think it would work better if i just compressed the whole thing, because it's spread out over a few files
<17> Is there any easy way to + all variables that starts with the same 3 letters?
<6> Mewshi: I think pastebinning index.php should be fine
<6> granden: yes
<17> How?
<16> i'll give you the file that actually affects it showing up.
<6> substr and contatenation
<17> I dont understand :(
<17> What does means
<6> php.net/substr
<17> ok
<16> http://pastebin.com/529528
<17> I dont see how that could help me Stormchaser
<17> I got $Akills15 $Akills25 $Akills35 and so en
<17> on*
<6> Mewshi: Um... That's pretty messed-up logic...
<17> Can you give me an example Stormchaser ?
<16> stormchaser - what's wrong with it?
<15> while configuring php, i get a few "(cached)" messages. how do i get ridd of them ?
<6> Mewshi: Er... er... My bad... But that piece of code isn't connected to your error...
<17> Stormchaser: No help?
<16> well anyway...
<6> granden: Um... you can't do it...
<17> ok


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#mysql
#debian
metafour irc
#ati
clint
#ubuntu
#web
#lisp
moto4lin knoppix
#bash



Home  |  disclaimer  |  contact  |  submit quotes