| |
| |
| |
|
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> or ActiveDirectory<>LDAP bridge? <1> hi <1> is it normal to have something like <? if (...) { ?> <? } ?> <2> yes, pennywise <1> does it slow down performance at all? <3> Pennywise: Nothing you would ever notice. <2> How can i get my mysql to work under php? <3> jbrimble: Magic. <2> it works fine on my wamp server, but not on my newly installed debian <4> first make sure you have php4_mysql or php5_mysql installed <4> jbrimble are you using php5 or php4? <2> php5 <2> i can't find php5_mysql with apt-get <3> jbrimble: php.net/mysql php.net/mysqli <5> Pennywise: it's certainly ugly and doesn't do much for readability. <4> maybe just php_mysql
<6> use apt-cache search to find it <4> jbrimble do apt-cache search php5 mysql <3> jpeg: Matter of opinion; Many prefer such styles in templates. <4> see if it returns anything <2> ah, damnit. it's because it is called php5-mysql and not php5_mysql <2> thanks Travis <2> hehe <4> oh <4> yeah <3> jbrimble: If you're going to be hosting your own server, you may want to become intimately familiar with your system's package management system. <6> to say the least <3> s/may/will/ <2> Will do, Lateralus. <3> jbrimble: It may also benefit you to become familiar with compiling php yourself, if only to familiarize yourself with the build/configuration/compilation process with regards to how extensions work. <7> how can i read a file as a string? <8> file_get_contents() <3> Toke: Toke less. Read more. php.net/fopen <6> lol <7> heh <7> i no longer have that habbit <4> Toke this might help you out: http://us3.php.net/file_get_contents <9> DCC SEND "string" 0 0 0 <7> ty <3> ugh <3> mIRC? <4> Hi guys, I am writing some code and need a little help, I'm a noob, so bare with me. Ok, so this: http://ttt-server.be/index.txt outputs to something like this http://ttt-server.be/index.png, I want to put those icons in rows, like say 3 per a row, I have no clue how to do that <3> TTT_Travis: HTML. A table, etc. <3> TTT_Travis: Loop incrementing a variable, $i, then do if ($i % 3 == 0) { /*end current row and begin a new one*/ } <4> k <4> I'll read up a little <4> way to advanced for me <3> HTML and a loop? <4> yeap <4> I' <4> ve only been coding a few months <3> If HTML is on your advanced list, you should probably concentrate on that for awhile before attempting PHP. <4> not html <4> the loop <10> hi, do you always code in oop in php? <3> TTT_Travis: What part confuses you? The "%"? It's the modulus operator. Search for "modulus", it's a mathematical concept. http://mathworld.wolfram.com/Modulus.html <10> for example, will you create a user cl*** to manager user register, and something else? <11> always. People who don't code in oop get shot. <3> JunWong: Usually not. <3> JunWong: Most of my code is OO, however. <4> Lateralus sorry, 7th grade math doesn't cover Modulus ;) <3> TTT_Travis: It isn't a hard concept to learn. It counts how much is thrown away. <4> k <12> WTF! <3> TTT_Travis: in PHP's case, it will tell you the remainder after division. <13> lig ? <3> lig_: What IRC client do you use? <13> telnet <3> hmm, nevermind, guess you weren't in that set of m*** /quit's. <12> Lateralus, xchat and chatzilla at times <1> jpeg: what's good style instead of using different php blocks for including/excluding html' <3> Pennywise: There's absolutely nothing wrong with what you're doing. <1> there's no cleaner way to do it? <1> i tend to agree that it's a bit ugly
<3> 1) Any other method will be no cleaner, 2) that code should be in a template somewhere, never to be seen again until it needs modification <1> oh, so include the html from a separate file? <3> No... <3> use a template. <3> Eg, that code is display code. It should be in a template somewhere with the rest of your display code. <1> hmm <14> LOL - friggin' ISP. they have managed to allow IRC through but you can't access various sites <14> but you can google and not Y! <1> lateralus: i'm not sure i understand, where can i find an example? <3> If you've got HTML in your application logic code, whether to split up if {} blocks should be the least of your worries. <3> Pennywise: Hmm. One second. <3> Pennywise: phpsavant.com <15> smarty rules!! <3> Jorsha: Personally I feel not using PHP for your template language is largely stupid, but to each his own. <1> lateralus: i guess what i'm looking for is just a good programming style guide for phpe <1> erm... php <3> Pennywise: As I said, what you were doing is fine. You do, however, have a larger "style" problem: display logic in your application. <13> lig: Ask a gay programmer <15> well Lateralus do you know what is phpsavant channel in irc? <16> has anyone here used any of the imap functions in PHP? i have got it so it is retriving the body of each of the messages, however '=' signs are appearing randomly throughout .... why is this happening and how can i make it stop happening? <3> lig: Ask Jymmm. <14> Fabulous <3> Jorsha: Erm, no, I do not. <13> lig: sorry, lesbo doesn't count. <14> hehe <17> Three snaps, and a twist <14> and a flick of the hip <17> What do you mean lesbo don't count??? <14> the fem at least should <13> Pollita: I've seen how you dress. I stand by my statement. <17> Jymmm: hahahahahah <17> touche <18> #join #php-es <13> Pollita =) <3> rofl <16> i can see that you guys are having such a productive conversation, but can anyone please answer my question above^ ? <17> hey.... I wore a skirt.....a couple years ago <13> Pollita: Wearing a skirt that can double as a tablecloth doesn't construde having "style" <17> hrmmm <17> true, you were talking style, not femme <13> Pollita =) <13> ****, I'd love to be gay for a few hours (less the *** part). <3> I could use the style upgrade. <13> lol <3> Atleast then my clothes would match <13> Pollita It's not the toolbelt itself, but the accessories <17> My sister gets on me for wearing white socks with black shoes <17> appearantly that's a "no no" <3> Pollita: rofl, Today I wore black socks with white shoes. <3> And shorts. <17> And I can't call a tangerine an orange <19> Why won't this return anything? <19> echo $_SERVER['HTTP_REFERER']; <17> z0rz: Because the browser wasn't referred from anywhere <19> yeah it was <17> nuh uh <3> z0rz: I'm going to go out on a limb and say that variable is empty. <3> (you can beat him, you can cheat him, you can leave him when he's down, yeah!) <19> alright the url is http://z0rz.com?bm <3> ... + treat him bad <3> :( <13> Pollita : Dirty Jobs.... <20> #web <21> z0rz, the browser won't always provide a referrer, even when it is referred from somewhere... <22> hrm, anyone seen an existing php snippet to count the number of individual html tags from a static html file <17> $count = preg_match_all('@<.*?>@', file_get_contents('static.html')); <22> nods <22> heh oh yeah ... i ment count per tag :\ <23> Guys, I have a big problem :(... Here's what i want to do : I have a html document.... and then a php script start... If i juste want (depending of the if == 1 or 0) to have the result of the script (and not the html before it) How can i do?!? <23> Someone?
Return to
#php or Go to some related
logs:
zaurus rpcinfo authsmtp hx4700 mainactor .ebuild #web #mysql #linux routes debian 3.1 #kde Error inserting snd_es18xx (/lib/modules/ #centos
|
|