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



Comments:

<0> oh, bugger
<0> who'd I stab?
<0> oh, wait, there's my answer
<0> question is though, did I really miss? ;)
<1> lol
<0> intresting
<0> my shades make my TFT go totally black :D
<0> yay for polarisation!
<2> Can I specify session id? (1)?
<1> yes
<2> hmm, that's weird. Then I have serious issues with my app... I cant echo out a session variable previous stated...
<3> $path = "http://test.com/points/";;
<3> $avatar = "$race{$level}.gif";
<3> echo $path{avatar};
<3> it will show http://test.com/points/test6.gif
<3> ?



<1> !+tias
<4> [TIAS] Try It And See. If you want to know if or how something works, try it first.
<3> tryed
<1> and?
<3> it echoes
<3> just h
<3> but if i echo $avatar; echo $path;, it shows fine
<1> then the answer to your question is "no"
<3> then my question is how to :))
<1> Cy][aPb: What's {avatar}?
<3> oops sorry, $avatar
<3> {$avatar}
<3> like this :)
<1> Um... No... You'd want something like echo "$path{$avatar}";
<3> ah nvm now, $usersrateimg = "$path{$avatar}";
<3> all done
<1> Cy][aPb: You want to read php.net/stings
<1> er... php.net/strings
<1> o.O
<0> "The following are the 20 functions which seem to be closest in spelling to gituar"
<0> the first one in the list is 'dir'
<0> hehe
<1> whoops... that should be php.net/string
<0> then 'get_cfg_var'
<5> hi, how do you get the line a function was called from within that function? Ive tried __LINE__ but that just outputs the line the actual functions code starts
<6> I have a PHP4 program I want to port to PHP5 because my new web host only has PHP5.
<6> Where can I find a list of incompatibilities between the two?
<7> bina: use debug_backtrace();
<8> paulproteus: PHP5 is pretty much backwards compatible.
<5> CyaNox: sweet, thanks
<8> paulproteus: Your PHP4 scripts *should* work.
<8> paulproteus: http://www.php.net/manual/en/migration5.incompatible.php -- For your sake, here are the incompatibilities
<9> paulproteus: perhaps http://www.zend.com/php5/migration.php , but I haven't looked at it (quick googling...)
<1> heh
<2> Im' building an app where I want different components to have different header variables. There is one that is the same($com). So if an url goes like this: index.php?com=content&myvar=var&myvar2=var2. in the index.php I have this: include ("$com/index.php") the component index.php holds the myVar and myVar2 variables. Is there an easy way to do this? Because how I do php won't $_GET the variables in the component index.php... I tried wit
<2> h sessions but couldn't figure it out..
<8> Stormchaser: WAZZAAAP MY HOE
<8> :)
<1> yo, kuja! Where have you been? got lost in the maze of Ruby? :)
<8> Indeed :)
<1> hehe
<8> Just been working on some stuff lately... boring stuff but indeed educational :)
<7> zOap_std: Nice remote code execution security hole.
<1> kuja: Have you found the work already?
<8> Nope, not yet.
<1> :(
<8> I just applied for something about 10 minutes ago though
<2> CyaNox, how would you solve it?
<1> kuja: ah, that's cool :)
<8> It's a 34-hour voice-recording project, $50/hr
<8> 20 open positions, hopefully I get it :)
<1> voice-recording?
<8> Yep, I don't know what's being recorded, but they're looking for fluent English speakers.
<7> zOap_std: by not using a userdefined varialbe in my include statement.
<2> CyaNox, ok. I'm not sure if I understood that..
<1> kuja: Ah, that's cool... I thought you were to code a voice recorder :)
<8> Oh heavens no :)
<1> hehe
<2> CyaNox, to me it looks like that is the simplest way of including components with their own headrs?



<1> BAh... TeamXerian's code is broken :/
<8> zOap_std: As long as you validate the qualifications of $com, you're okay.
<8> :P
<2> kuja, k, but still I have a problem, since I'm not able to fetch header data recursively
<8> I got lost at your problem.
<2> kuja, me too :)
<2> should I sum it up or?
<8> Maybe, but a long shot, you want myvar[]=var1&myvar[]=var2 and then $_GET['myvar']
<8> s/but/by/
<2> kuja, yes, but in oter components, it coud be $id or $order or...
<8> So if you need to keep track of the fields, just use com[name]=content&com[myvar]=var1&com[myvar2]=var2
<8> com=content&field[id]=1 or stuff like that.
<8> Just, take your preference.
<2> kuja, yes. But say I have different needs in different components. In comp one I need the only the var myVar and in comp2 I need myOrder and myID. Which is why I need the comp index.php.. Was that understandable?
<2> what I really need is a way to fetch headers recurively.. Which may be difficult, or?
<10> hi..i can fetch value for forms whose methods are get via $_GET array..but i cant fetch the POST method forms..why?
<10> it doesnt enteres this if(isset($_POST['x'])) block
<8> zOap_std: Just store them in <comp_name>[field] such as, for comp1 you have, com1[myvar]=var&com2[order]=1&com2[id]=25
<8> harpagon: Make sure method="post"
<10> kuja: <form action="index.php" target="_top" method="post">
<2> kuja, ok, so I should fetch all those if I only need one of them?
<8> zOap_std: Well, I'm not even entirelly sure on what you're doing. Just that guessing from what I do know, my solution seems to be the best. Keep each component's fields in their own component name.
<2> kuja, aah. ok. so I should have a headers file that holds each component header?
<8> Sure
<8> That way you know which fields belong to which component, then you can act upon that.
<10> kuja: ??
<2> kuja, ok, thanks :) for the patience :)
<11> a:2:{i:0;s:2:\"op\";i:1;s:3:\"pok\";}
<11> why won't this line unserialize?
<8> zOap_std: You're welcome :)
<11> return unserialize($result);
<11> $result = a:2:{i:0;s:2:\"op\";i:1;s:3:\"pok\";}
<11> I get nothing back
<11> :-(
<12> how do i write an if statement that determines wether my mysql query brought back a value? ie: if($url==true?){ do this }
<8> DefV: It unserializes for me.
<8> harpagon: Read the guidelines. Please do not PM me.
<10> off
<11> hmz
<11> kuja: idd
<11> strange
<13> http://www.ubuntuusers.de/paste/1083/
<11> when I do
<11> print_r(unserialize("a:2:{i:0;s:2:\"op\";i:1;s:3:\"pok\";}"));
<12> anyone? its an easy one.. only take a sec.. pls help
<11> its OK
<11> hmz
<11> gonna try smth
<13> i have a problem with my if code
<8> DefV: http://www.rafb.net/paste/results/jK6uUJ78.html
<1> !+enter
<4> Don't use the enter key as punctuation. Think in complete thoughts, then type.
<12> how do i write an if statement that determines wether my mysql query brought back a value? ie: if($url==true?){ do this }
<8> Brought back a value, or succeeded?
<1> mysql_num_rows()
<12> a value
<12> i replace true? with that stormchaser?
<8> No, just if (mysql_num_rows($result))
<14> age6racer: what is "== true" for?
<13> can help me anybody
<12> its my crude way of trying to explain what i need
<8> Tuxist: You are missing a ) on line 5. Count your parenthesis next time.
<13> thank you
<11> kuja: http://www.rafb.net/paste/results/gposZ540.html
<15> hi anyone here?i want to ask something
<8> DefV: I suspect magic_quotes_gpc to be the culprit.
<11> I see
<16> hyperhyper: Ask
<8> DefV: unserialize(stripslashes($result))
<15> how to fix the problem of{{{{Fatal error: Call to undefined function: xml_parser_create()}}}}
<15> i ve alreafy install php-xml
<11> indeed
<11> tnx kuja
<8> You're welcome.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
deb pygsl
pptpgw
#debian
#perl
MySql 4.0.25, teamspeak
#kde
openldap reset root password
Urgleflogue
#gentoo



Home  |  disclaimer  |  contact  |  submit quotes