@# 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 30 31 32 33 34 35 36



Comments:

<0> More sites like that in us?
<1> where is php.ini located on a linux intallation of php
<2> Stephanie: at least skype is free
<3> Wolfpaws: because the page was posted to .... how else would i regenerate the page, without the data used to generate the page with originally
<4> Stephanie: well, Skype is free
<5> True.
<5> but doesn't work with 10.2.
<5> Which I'm still on.
<2> 10.2?
<2> ?!
<6> mac OSX
<2> I know what she's talking about, but, 10.2?!
<5> Yes.
<5> I just haven't upgraded.
<6> max OSX 10.2 :P



<7> richardlynch, coolio
<5> I have an Apple IIe!
<5> I win.
<8> TML: There are laws about cruel and unusual behavior. :)
<9> I have an Apple II in the closet, but haven't fired it up to make it run in too long to call it "running"
<4> My parents still use an Apple II G/S as their sole computer.
<8> Stephanie: That still works?
<5> Yep, still works. Number Munchers rocks!
<9> LodeRunner!
<10> Stephanie: compusa has it cheaper than apple
<4> richardlynch: Best game ever
<4> [RainMkr]: My parents do not live in SLC
<10> oh, old pc contest eh? I have a C64
<9> Remember when you could actually edit your own levels? God that was fun!
<8> ||cw: I have a functioning TI-99 ;)
<5> <4> If you don't have perms to get HEAD, you certainly won't file_set_contents('/dev/***', $ANYthing) without illegal operations.
<11> Question: Whats the difference between include("file.php"); and require "./file.php"; ?
<10> [RainMkr]: I was so pissed when my parents gave out 99/4a to my cousins and they broke it
<9> Kevon: http://php.net/require
<10> little bastards
<11> I'm not understanding why it has a ./
<4> Stephanie: I don't think that was really me...
<5> It does sound very similar to something you'd say. :P
<4> =)
<12> ./ is "current directory"
<13> Have anybody worked with osCommerce?, I don't like its code, what do you reccomend me?
<12> xiam: try google
<4> Stephanie: If so, it's wildly out of context. I was probably referring to HEAD requests.
<9> Kevon: ./ forces it to be in the current working directory -- which ****s, imho, because it breaks the usefulness of include_path
<8> TML: /msg for non PHP topical question?
<4> [RainMkr]: Sure
<10> !tell xiam about cms
<13> u.u
<0> xiam: Cubecart
<0> osCommerce probably has the ****tiest code ever
<11> Question: Whats the difference between include("file.php"); vs. require "./file.php"; I
<11> I'm not seeing what the ./ does
<13> thanks Vooloo!
<0> Kevon: parent directoy
<12> !tell ElliottHird about cms
<0> Kevon: er no, current
<14> [RainMkr], may I query you RE: MySQL Business? :)
<10> Kevon: the former will also look for the file in the "include path", which includes ./
<9> Kevon: Suppose your include_path is ".:/usr/share/lib/pear" -- ./ will make the PEAR not work, I believe.
<5> TML: Actually, I think it was in context...something about Pollita...
<15> !tell cythrawll about cms
<16> so.. anyway. who wants to humiliate me by pointing out a newbie error? I've got a question regarding heredoc variables at http://www.phpriot.com/3153
<5> Then again, I suppose it could have been taken out of context.
<15> i was curious
<9> Actually, now that I think about it, ./ in front may have no effect whatsoever, if PHP's include_path is prepended to it. Try it and see.
<5> Either way, it almost made me spit Dr Pepper across the room.
<17> I still working for 12h per day in book by Matt Zandstra.. and I say It is something big :))
<18> what library/module is considered the best for getting all hrefs from a html document?
<9> jpeg: Get rid of the space between <<< and TWO
<17> and it's working :)
<10> jpeg: I odn't think escape chars work in heredoc. use the html entity for $ instead



<16> richardlynch, ||cw - the problem is that $a isn't set.
<16> afaik, variables can go within heredocs, even $_SERVER variables, right?
<10> jpeg: oh, then move that code. you can't use a var before its set
<9> jpeg: Move line 22 up to line 2 or so.
<9> jpeg: And just nuke line 25, which is missing 's anyway.
<19> Not to mention that code is just plain ugly...way too much duplication too
<9> I think he's just trying to play with heredoc syntax to see how it works...
<16> I thought the definitions of heredocs had to come first - when I move the if () block up to the top I get a blank page, since the if statement doesn't know what $one or $two is
<9> jpeg: Don't move the if block. JUST move line 22 like I said. And $a is a horrible variable name, while you're at it... $request_method would be nicer.
<16> yeah, it's a one-off. I usually don't use single letter names
<9> jpeg: Plus, in the if block, you might as well use $request_method (formerly $a) instead of the array again.
<3> richardlynch: maybe hes working for job security :-p
<10> jpeg: it's not a "defintion" it's just a form of variable ***ingment
<6> naminf your variable $a is utterly horrible... They should be ALL $b! :)
<19> why rename the variable at all? It's already set!
<10> I thought $fred was prefered
<6> ||cw: nuh-uh
<16> richardlynch: ok, moving line 22 does it. Gotcha.
<9> McFly: Because I want to lead him down an easy path of being able to validate/scrub his data.
<20> hello all
<19> ***igning a new variable to the same value hardly accomplishes that
<21> I have an index.php which includes a few files (../cl***es/Mysql.php), now I use the AJAX-techniques to get a few things from another site, which is in phpScripts/listNews.php, but why doesn't it find the cl*** then? I get "Can't find cl*** Mysql"... any suggestions?
<20> can someone tell me what is faster? for php to access a db or access a file?
<12> uh.
<16> it's not really important; this was a crude example. I want to display different content depending on the request method.
<10> depends
<12> DB probably.
<20> i want to do this a few times over...
<12> but yeah
<9> McFly: No, of course not. But getting in the HABIT of doing that instead of littering $_POST['foo'] throughout the file DOES matter later.
<12> depends.
<20> ElliottHird, thanks
<9> samuel: Depends on the hard drive, and on the db, and on the file size, and on your hardware, and ...
<19> richardlynch: yeah, well...$_POST is a whole other animal
<10> samuel: for a single use case, file is probably faster, for repeared use, a database will end up faster due to caching and indexing
<9> McFly: yes and no. There is stuff in the array he is using that is dangerous. Better to treat them all the same, and to get in the good habits NOW than to try to correct it later.
<20> ||cw, ive already got a database open in there, and it will be using the same database, but different tables, yet it may only need to do it 3 times, would a db still be faster since ive already got the db open? but not the file open?
<21> So, including a file in one page, that is used in another, shouldn't both pages be able to use it then?
<22> what's the difference between calling $link = @mysql_connect and $link = mysql_connect ?
<21> No, now I know, hehe... sorry
<12> @
<12> gets rid of errors
<12> Well, it doesn't DISPLAY them
<6> no
<9> samuel: If the db is open, a simple query is CHEAP.
<6> !+@
<23> [@] The PHP error control operator that suppresses errors (@foo()), see: http://php.net/operators.errorcontrol - Don't use it. Think I'm wrong? Ask me about "GO".
<19> I know what you're saying, but just getting into the habit of re***igning a variable to a new name does nothing if you don't validate it. $post_foo = $_POST['foo'] does nothing.
<24> hi everyone
<12> Yeah, it's a no-no.
<20> richardlynch, really? even if its a different table?
<15> does not "Get rid of errors" just hides the output
<22> Wolfpaws: thanks!
<12> Yeah, I was just saying it quickly, cythrawll
<24> can someone verify if they can see my typing?
<6> @ should never, *EVER* be used for something non-critical... There are few exceptions, tho... like *sql_connect or something alike
<9> McFly: It's better than strewing $_XYZ all through the code -- Just by getting in the habit of doing "something" at the top with the data is a tiny step in the right direction.
<9> mick_work: Yes, in IRC we see your typing.
<15> well lol, if it literally "got rid of errors" my code would be full of those lil buggers
<19> right direction, sure. and easier to validate it once without having to replace all your $_POST that are littered throughout
<24> richardlynch: I wasn't sure if I was +b or not ;-)
<6> mick_work: I *did* unmute you yesterday...
<24> ah ok - thanks
<9> McFly: That's all I'm saying. One tiny step for a beignner to nudge them in the right direction for the long-term.
<4> richardlynch: I'm personally more of a fan of stuffing it right back where it came from after validation.
<4> $_POST['foo'] = htmlentities($_POST['foo']);
<25> is there a way to use a $config['test'] = 'whatever'; inside a cl*** using this-> ?
<9> TML: Too easy to miss one that way... $_POST['bar'] is still not kosher.
<4> olger901: What do you mean
<19> $this->config['test']


Name:

Comments:

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






Return to #php
or
Go to some related logs:

fstab new partition ubuntu chmod
#perl
SmallC Linux
module.conf celeste
javascript parent.getElementById
950gma xinerama
Call to a member function appendChild() on a non-object
#oe
mount error 1 = Operation not permitted mount.cifs
azureas mac



Home  |  disclaimer  |  contact  |  submit quotes