logs archiveIRC Archive / Freenode / #php / 2006 / January / 30 / 1
lig
(Action) yawns and stretches
monday--
davidhouse
lig, still sunday here :)
lig
davidhouse: :P ;)
stoffus
EvilWalrus, thanks
RichiH
the problem at hand is that diplaying of utf-8 chars works like a charm, but everything i put into a form, pass via POST and insert it into mysql (which is set to utf-8) is gibberish. two-byte gibberish, but gibberish none the less
GarethAdams
davidhouse: using define with a function will only run the function when the constant is defined, not every time you call it
in case you were trying that
davidhouse
GarethAdams: of course, i was just checking that constants were defined at runtime
GarethAdams
:)
hays
Stormchaser: I found the problem
         

davidhouse
and not at whatever php's equivalent of compile-time is
hays
my resolv.conf needed updating for some reason
Stormchaser
lol
lig
(Action) munches on maple and brown suger oatmeal for breakfast
hays
The reason I did not see it earlier was because the server is on a different machine
Stormchaser
ew., Oatmeal.
lig
RichiH: what is the char set of the form page?
RichiH
both utf-8
lig
RichiH: so the form is utf8 and the DB - is it in utf8?
RichiH
lig: yes, the table it utf-8, too
lig
RichiH: last question - is your php set to utf8 in the php.ini?
RichiH
let me check
lig: it is not set at all
lig
RichiH: check this out - http://www.phparch.com/sample.php?mid=57
mazzanet
(Action) sets fire to RichiH
RichiH
lig: assuming i do not need to restart apache to make things happen, it does not work, will read the link, ta
-me deflames self
Stormchaser
RichiH: s/do not need/need EVERY change in php.ini requires webserver rebooting...
Quickimaster
does anybody know if it is possible to run 2 php versions with 1 apache server (both as a module)
mazzanet
yes Quickimaster
Stormchaser
no
mazzanet
but no, you're not going to do it
         

Stormchaser
lol
mazzanet
because that's bad mmmkay
Stormchaser
mazzanet: It's possible, but not workable :)
mazzanet
i have it working :)
Stormchaser
how?
mazzanet
well
had
got rid of the setup because it was pointless :P
Stormchaser
lol
mazzanet
basically you have to change a bunch of module names in the source
Stormchaser
mazzanet: Ew.
mazzanet
and set the parser to look for say <?php4 4?>
RichiH
Stormchaser: oh, ok
mazzanet
i actually managed to have php4 and php5 working on the one page
jiggster
but like you say... how pointless :|
Stormchaser
mazzanet: Yep. You're insane :)
mazzanet
:P
RichiH
Stormchaser: does not help either. a noteworthy fact is that just displaying what i get via post is working correctly
Stormchaser
RichiH: Do you have a problem with saving data or displaying it?
mazzanet
weee
off to build a 4m comms tower on my shed
Stormchaser
lol
bobbens
how does one write an actual \n in php? So that the output reads \n?
Stormchaser
'\n'
nazgool
hi
RichiH
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
mazzanet
owh: !
owh
mazzanet: !
mazzanet
!!!
blanky
hey guys
owh
mazzanet: Back in Millmerran, QLD :-)
blanky: Says who?
mazzanet
what fun
blanky
owh, huh
mazzanet
i'm just about to head outside and build a 4m comms tower on my shed
owh
mazzanet: It is. Next I'll be upgrading my modem to do 1Mbit and downsizing the dish to 1.2m :-)
HolyGoat
fu*kin' gmail..
bobbens
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
owh
blanky: Guys - how do you know?
blanky
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
owh, hehe
Meltir
crap
owh
HolyGoat: Hey, it's for free :)
nazgool
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?
blanky
owh, guys == generaly
Meltir
(Action) cant build php with-gd :/
HolyGoat
owh: it's down
mazzanet
owh: 4m of gal pipe, a bunch of u-bolts, some steel wire and 3 rolls of gaffer
owh: what can possible go wrong?
y
:P
owh
mazzanet: You're too heavy for the pole?
nazgool
i mean, if someone guessed the name (and thus url) of such an include file...
mazzanet
heh
owh
nazgool: Put them in an include directory outside the webroot.
Stormchaser
RichiH: Do you get &#blah; in the DB?
owh
blanky: Use a stylesheet and float:left; It will use as many columns as there is space for.
RichiH
Stormchaser: i see exactly the same crap in phpmyadmin, yes
owh
mazzanet: I just thought of something else...
mazzanet
owh: i've been having some lately. optimizing/processing a 20 million row table
blanky
owh, thanks
Stormchaser
RichiH: Do you do any iconv() voodoo?
owh
mazzanet: The ladder isn't tall enough for the roof or the roof won't support the pipe :)
nazgool
owh: ok thx
owh
mazzanet: Having some what - ah fun.
mazzanet
owh: 9.4gb of mysql table goodness...
owh
mazzanet: Excellent. Was the data useful :-)
mazzanet
oh it is ;)
PM
owh
mazzanet: Sure.
Stormchaser
mazzanet: CC#, paypal username/passwords? Anything in that direction?
mazzanet
no :P
Stormchaser
mazzanet: Then it's not usefull :)
mazzanet
*bring* *bring*
that's all i'll say.
RichiH
Stormchaser: no
Stormchaser
RichiH: Weird... Can't help there, tho
stoffus
shouldn't print_r($_POST); give me all the $_POST-vars which has been used?
Stormchaser
stoffus: Yes
stoffus
hmm
RichiH
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
Meltir
what version of gdlib is supported on php4.3.11 ?
Stormchaser
RichiH: I can't say anything... I never work with UTF-8 encoded MySQL DB...
RichiH
Stormchaser: ok, thanks
Mewshi
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.
Stormchaser
Mewshi: URL?
Mewshi
http://mewshi.stingfish.net/demo/pmead2/
Stormchaser
Mewshi: There should be something on the first page?
Mewshi
yes
Stormchaser
pastebin the code
Mewshi
Current Official Site
The current PMEA District 2 website
that's what it should say
Stormchaser
Mewshi: Pastebin the code.
Mewshi
um... i think it would work better if i just compressed the whole thing, because it's spread out over a few files
granden
Is there any easy way to + all variables that starts with the same 3 letters?
Stormchaser
Mewshi: I think pastebinning index.php should be fine
granden: yes
granden
How?
Mewshi
i'll give you the file that actually affects it showing up.
Stormchaser
substr and contatenation
granden
I dont understand :(
What does means
Stormchaser
php.net/substr
granden
ok
Mewshi
http://pastebin.com/529528
granden
I dont see how that could help me Stormchaser
I got $Akills15 $Akills25 $Akills35 and so en
on*
Stormchaser
Mewshi: Um... That's pretty messed-up logic...
granden
Can you give me an example Stormchaser ?
Mewshi
stormchaser - what's wrong with it?
Meltir
while configuring php, i get a few "(cached)" messages. how do i get ridd of them ?
Stormchaser
Mewshi: Er... er... My bad... But that piece of code isn't connected to your error...
granden
Stormchaser: No help?
Mewshi
well anyway...
Stormchaser
granden: Um... you can't do it...
granden
ok
« 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 next »