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



Comments:

<0> itrebal: So will that work?
<1> yup
<0> itrebal: Get a count of all the files, do a for loop... find the comic with the least difference between current time and filemtime?
<1> Vixus: yea, but make sure to put $time in a variable, so it doesnt change
<2> how can i get the line&file of where from a specific custom function was called? i'm in PHP 5.1.2 . Thank You
<0> itrebal: Yes
<0> itrebal: I'll give it a shot now
<1> errr... you could do foreach($comics as $comic) to simplify things
<1> Drakas: uhh i think print_debug_backtrace, or something like that...
<2> cheers
<3> debug_print_backgrace
<4> voip sux
<2> nice :)
<2> debug_print_backtrace
<3> myconid: What?
<4> just thought I would share that tidbit



<0> itrebal: $comics being?
<3> myconid: What? I can't hear you, your VoIP ****s...
<0> itrebal: Will this work even if I'm collecting the comics from a url?
<4> CWhiz: what? i cant hear you
<5> hm is it possible to p*** the instance $this into a function, say $this->getProductList($this)
<6> Anyone know of a script that allows me to run shell commands on the server?
<4> jax: that doesnt seem abstracted enough.
<6> I'm about to mess with ssh and, if I screw it up, I want a little safety.
<5> well it's a code-smell to p*** around orderIDs
<4> bronson: install a seperate ssh daemon on port 2222 or something
<5> so i p*** the object, and fetch it in there
<4> bronson: or enable telnet
<6> telnet *shudder*
<6> I suppose sshd on 2222 is posible.
<4> bronson: you want root access from a webserver, and your shuttering about telnet?
<4> irony check, isle 3
<6> Heck no. I'd have to execute su to gain root.
<0> itrebal: $comics = scandir(...)?
<4> and there are secure telnet implementations
<4> just fyi
<2> what does abstrat cl*** Something { } do?
<3> Isn't ssh just secure telnet? ;)
<4> CWhiz: not at all...
<3> Drakas: Essentially, it says that Something is just a template for subcl***es.
<5> Drakas you must implement only abstract methods, however you can override default implementations of implemented methods of this abstract cl***
<6> CWhiz, sure, if you have a cable directly connecting the two computers.
<4> CWhiz: Very little in common about them, other than they both give you a console in reality
<3> Are you talking about telnet over SSL?
<6> And no other net connections of course.
<4> CWhiz: I have telnet w/ kerb at work on a few older servers and it works fine
<4> We are also on a switched fiber network.. so in all reality the chances of someone sniffing my traffic is about 0% ..
<5> Drakas maybe it is more clear if you look at it vs an interface: when implementing an interface you must implement all methods, but when extending abstract cl*** you must implement only abstract methods, however you can override default implementations of implemented methods of this abstract cl***
<4> Jax: do you know of any short good tutorial explaining interfaces, abstract, etc?
<2> how can i print all resources/objects created, and where they were created. Note that I could have done mistakes in some functions, without using backreferencing. I do use backreferencing but just want to be totally sure.
<0> how do I use is_dir, opendir, etc if the dirs I'm working with are on another server?
<5> myconid hm the java tutorials are ok, let me see
<2> right Jax so you can override the parent's functions basically?
<0> that can only be accessed via http:// of course
<2> Vixus: you can't
<5> Drakas yeah
<2> Vixus: you need to parse html y ourself etc.
<2> sweet :) OOP in PHP5 is just amazing =]
<0> Drakas: Really? What a bummer.
<2> saw some of your code today, Jax you're a big big professional :)
<2> i am very good at php, but not OOP. however, i started into more OOP s i upgraded to php5 :]
<0> Drakas: How would I read the web page code, which of the file functions?
<2> Vixus: file_get_contents() would be the easiest
<0> thanks
<0> How do I take the / off the end of a line?
<5> can't find it myconid, google a bit there is tons out there
<4> yep.
<1> theres a cl*** called mysqli, is there one for postgresql?
<4> itrebal: postgresqli?
<1> myconid: lol
<1> no
<4> whats the advantage of i over non i?
<7> is it legal syntax to try and create an array with variables in it - I'm trying to do: array('Code' => $var['code'], 'Cookie' => $var['cookie']) is this wrong?
<1> mysql is for version 4.1 or less, i think and mysqli is for versions over
<2> myconid: mysqlI is faster, i read in the manual
<3> genelisp: That should be fine. If your variables are actually named "var", you may have a naming conflict, because var is a PHP keyword.
<7> oh, right, no they're not, they're named $row_b :-)



<8> hi
<3> genelisp: That should be fine, then.
<8> is there someone here that knows wordpress and could help me with a few lines of code?
<6> http://mgeisler.net/php-shell/
<6> Huh. Does what I want EXCEPT it can't edit text files.
<6> Makes sense when you think about it...
<6> So, yeah, I guess an alternate sshd is the way to go.
<1> lol
<7> CWhiz: can you work out why I'm getting a "Parse error: parse error, unexpected T_VARIABLE" with the small snippet at http://php.pastebin.com/635989
<4> genelisp: no line was provided?
<2> when i am inside a function, how cna i get a name of it?
<7> myconid, yes, but I've just snippeted that line, above and below
<4> genelisp: errors dont always happen where they appear to.
<4> Drakas: __FUNCTION__
<2> cheers
<7> myconid, I know, but I'm pretty sure the rest of the code is ok - I'll give it a thorough check before coming back
<4> genelisp: paste the entire file plz thx and the line # the error is on
<7> myconid, ok
<4> that code looks fine
<3> genelisp: Check for a missing semicolon above the line you pasted.
<4> i wish php could determine that 99% of your lines terminate with a ; ..
<4> and maybe when like 99 is missing one, it shouldnt bitch about an error on line 103..
<3> indeed
<4> it should suggest.. "hey.. you MIGHT be missing a ; here.."
<4> but i digress
<1> myconid: you could create a error handling function
<9> when i try to send email using php i got: "SMTPC"8"2006-04-02 12:49:20.079""65.54.244.40""RECEIVED: 354 Start mail input; end with <CRLF>.<CRLF>"
<9> any idea how i fix?
<7> myconid: here's the full file: http://php.pastebin.com/635995
<1> myconid: oh... no you cant
<7> myconid, but the line numbering's gone weird
<7> myconid, line 31 is "$tpl->***ign('cust', array('Name' => $row_b['name'],"
<2> myconid: are you suggesting that php should be like IE, correcting user's code errors?
<7> myconid, I refreshed my browser, and the error disappeared... weird
<7> myconid: sorry for the trouble
<2> myconid: i believe it's actually really good that errors come up as i use E_ALL :) you actually make your script more secure with debugging like that
<5> can't i do: $total = new OrderDeductionList($this, 'SUB_TOTAL_PERCENT')->getTotal(); ?
<5> also tried: $total = (new OrderDeductionList($this, 'SUB_TOTAL_PERCENT'))->getTotal();
<3> Drakas: No, he's saying PHP should notice when a semicolon is missing and report the error on the line in question.
<3> Drakas: Instead of 10 lines down.
<2> ooh that
<2> yes, that is pretty much annoying...
<10> CWhiz: but PHP allows you to break statements over more than one line - you mean you'd remove that?
<3> GarethAdams: myconid suggested making it a warning. You could even make it a notice.
<3> Or, if you wanted to get fancy, you could only suggest that a semicolon was missing when you have a parse error that could cause it.
<3> Perl does that, to a certain extent.
<2> maybe something like $start="one " ~\n."two";\n ?
<2> :)
<1> score!
<2> ~ could be a "connector", for multiple lines
<1> i'm getting paid $500 to run a huge wire from one end of a building to the other end through the celing
<4> sounds like bitchwork
<2> :]
<11> thats good pay for bitch work
<2> sweet ouside - strong wind and rain :) and sunshine
<4> omnipresence: i t ake it youve never worked in suspended cielings.
<2> so nice
<2> :)
<1> lol, i dont care, all i'm getting is bitchwork for a while, and its $500, and i need it
<11> its not fun
<11> i was a network admin's bitch for 2 years
<11> ive ran wires through cielings, believe me
<4> omnipresence: alot of "under the desk" work eh?
<11> yup
<2> o^O
<11> oh
<11> missed that one
<11> jack***
<1> haha
<11> thats why i got out of networking
<4> kneepads not included.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

bootoptions xubuntu
suse setting label -3024
#sdl
ts0p
shadukan
#javascript
#ldap
#ldap
#php
talkd install ubuntu



Home  |  disclaimer  |  contact  |  submit quotes