| |
| |
| |
|
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> you have a lot of app ran :) <1> goedel: php.net/migration5 <2> thanks ||cw <3> goedel: your company has PHP extension!?!? <2> yes we have <3> you have built-in PHP in the code of your company, or your company is .php? <3> s/code/core <4> i would write php extentions if my crappy server would let me load them <1> Stormchaser: not everyone is able to speak semanticly correct english <5> hehe <2> we have a web server with php module where some C/C++ extensions are loaded as .so files <4> Stormchaser: should have the infamous "ENGLISH MOTHER*****! DO YOU SPEAK IT!" line onjoin (from pulp fiction) <5> hehe <3> ||cw: I'd be happy with sensfull english... <1> i understood it <6> i'd be happy with senseful english as well
<7> i'd be happy with sensible english as well <8> hi people <8> i have a question <8> in that echop <8> echo $_COOKIE["utilizadorid"]; <8> give that error <8> Parse error: parse error, unexpected T_ECHO, expecting ',' or ';' in C:\AppServ\www\helpdesk\index.php on line 15 <9> the problem isnt on that line then :P <9> check for... a missing comma or semi-colon on a previous line <10> MalMen: Have a look at line 1-14 <11> malmen: Yeh its useually the line of code before the one with the error, since one of th3e previous lines has not been properly closed. <12> how could I probe a page and have a looksie to see what its content type is? <8> yes <8> its work now <8> tks <8> im lost a ; <11> Hehe, learn to read errors, its quite usefull. <11> :) <3> !tell MalMen about enter <13> for how long does stat() and filesize() cache its data? or simply until the script is finished executing? <9> yeah <9> end of script <2> does anybody know what I have to observe when I port our PHP/Zend extensions (no file or URL extensions) which are written in C/C++ from PHP 4.0 to 5.1.2 (they are loaded dynamically as .so files)? <9> but there's a function to clear it before then <13> jiggster: ok thanks, yeah i know, clearstatcache() <9> goedel: didnt you just ask? <12> ..anyone have any idea how I can fetch the content-type of a page? <9> thnee: ah okie <2> jiggster: I was misunderstood <14> how do i declare a variable without giving it a value? <10> aec26: Useless in PHP <14> i'd rather not have lines of $a=""; $b=""; etcetcetce <2> php.net/migration5 does not answer my question! <15> the whole concept of declared vars includes initialization.... <10> aec26: Since PHP is weakly typed, there is no sence in declaring variabled. <10> *variables <12> ..no idea then..? <14> Frixon: ahh cos i have a loop that does $a .= "new bit", so i need to have a $a =""; before the loop right? <16> aec26, you can do var $a; <9> goedel: then perhaps try to rephrase it? <14> "var $a;"? <10> aec26: Right. <16> aec26, yes <14> cool <10> Seadog: That's only for old fasioned PHP OOP. <9> only in cl***es tho <14> var $a; is fine ;) <10> aec26: That's PHP4 OOP. <14> ah <9> public/private/protected being PHP5 <14> ok <9> but thats all covered in the manual <9> and i'ma collapse now cause my head freakin hurts :P <9> ttyl itrebal have fun with... whatever :P <10> aec26: Btw, you don't need initialization. <10> aec26: for($i=0; $i<10; $i++) { $a .= $i; } echo $a; works fine. <14> er. i get an error. <10> That error is? <14> Notice: Undefined variable: bod <14> Notice: Undefined variable: body
<10> can you show me the code? <10> Ah...btw...that's just a notice. Nothing that would make your code not work. <14> oh so it is working then? dahhh! <14> ok cheers! <10> You can either use $body = ""; before the loop or just use @$body .= $val; <17> Frixon: initialisation is *always* a good idea <17> don't hide errors, fix them <10> GarethAdams|Work: Sometimes it is OK to use @...for example if(@$_GET['foo'] == 'bar') ... <17> agreed, sometimes it is <17> but not in those circumstances <17> that's why there's an isset() function <10> aec26: He's right. Use $body = ''; in this case. <17> yes, I see that in your @$_GET case it's obvious what the situation is <1> Frixon: that not an acceptable place, isset() should be used there <10> ||cw: I don't agree. :) <17> but from there it's only a small step to @$foo in regular code, and then you move to a server with register_globals switched on... <1> @ is for when there's no other way, like mysql functions warning when you want to handle the error yourself <10> GarethAdams|Work: Sure thing that you have to know what you do. :) <14> cool cheers guys <17> but you have to remember when you write code that it might not be you who maintains it forever <17> if you can *guarantee* that no one else will ever look at your code, and that you won't expand it, then I have no problem with what you do with it :) <10> Yeah...just using $id instead of $_GET['id'] and stuff like that ;) <10> You shouldn't believe how often people use that... <11> OOps, endless loop :( Weird tho, you cant use a function that returns a mysql recourse in the argument for while... <10> mysql recourse? <11> $sql_recourse = MYSQL_QUERY("seelct * from somthing"); <11> dont mind the caps ;) <10> What's wrong with that? <10> Btw...SELECT * is evil <16> be back later <3> UltimateB|: That would make no sense, since the query is always not false (unless your SQL is screwed up)... Same as while(1) {... } <11> Well, sppearantly ity doesnt <3> UltimateB|: That's because that way it can end somewhere. <11> but still, it returns a recource, just like mysql_fetch_***oc(), but appearantly the function gets executed every single time the while loops. <18> if I type foo'bar in an <input type=text name=a> and submits, I will get $_REQUEST['a']="foo\\'bar" what's wrong with that? <19> hey any one know what version of php this new worm affects. the advisory lists 1.1 but i'm rather skeptical cause thats pretty freaking old# <11> Does qwork when i fiurst put the result in a variable and use that for the while, still, somewhat weird behavious imo. <20> there's a way to make an argument default to something if it's not p***ed to a function, right? <10> oskie: HTML attributes require quotes. <11> function test ( $car ='default' ) <20> UltimateB|: cool, thanks :) <18> Frixon: but it's not right... it submits as http://[...].php?a=foo%27bar still, $_REQUEST['a']=="foo\\'bar" is true <10> oskie: What's your problem? Use stripslashes() <5> su <18> but why does PHP add slashes to incoming REQUEST vars? <5> woops... this isn't me term. <18> ah maybe it's magic_quotes_gpc <10> oskie: http://us2.php.net/manual/en/function.get-magic-quotes-gpc.php <1> oskie: it is the evil magic_quotes_gpc <18> is magic_quotes_gpc enabled by default? should it be enabled by default? <1> which is another thing that is going to go away in future php releases... and ti will not be missed <1> oskie: depends on who packages it <18> if (get_magic_quotes_gpc()) unfck_gpc(); hehe <10> oskie: Yeah. Best thing is to control it all by yourself <10> oskie: http://rafb.net/paste/results/I6IPuS73.html - perhaps that'll help you :) <18> thank you. I changed my php.ini tho <21> her friends. how can i learn if i have mail() function working <1> um, try it? <10> mustafa: call mail()? <10> yay, amazon shipped my order <11> No wonder that it all got screwed... using an array in a while result without mysql_fetch_***oc... really, what was i thinking... <21> i tried, and i still did not get the mail <21> what may be the problem <10> mustafa: A misconfigured Mail Server or wrong enties in the php.ini <10> *entries <21> i use debian, and never configured mail server <10> So how should the mailserver work? <10> Do you have one installed? <21> i have sendmail installed <22> mustafa: But you never configured it? <21> okey. i dont make sense :) how can i configure sendmail <10> mustafa: So you should google for a Howto concerning Debian and Sendmail
Return to
#php or Go to some related
logs:
#sdl storkme channel 3: open failed: connect failed: Connection refused juniper enable sshd 327w bootloader q-tec sata chip debian execwrap error 1064 mysql myisam default charset utf8 c00l2sv ubuntu opera wont start
|
|