| |
| |
| |
|
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
Comments:
<0> I <3 vim. ;p <0> Even though TML would accuse me of mistakingly adding an extra m onto that. :P <1> xconspirisist^: actually, for code coloring, Textpad default .syn files are soso, I had to add many keywords to the .syn files :/, on win32 can't beat Crimson Editor highlight <1> xconspirisist: in crimson editor, you can even switch it type, edit it and such <2> hmm, Crimson crashed earlier while loading a 20mb sql backup. <2> textpad did it instantly. <2> And, textpad handles java compiling nicely. <1> xconspirisist: I've loaded 30mbs files in crimson, it loaded <2> YMMV. <1> not to mention 30mbs is insane for editiing or using <1> unless is binary, which in my case it was, I was trying to get some Hex info off it, NOT editing <2> Well, with that SQL backup didnt really have much choice. <1> and I've loaded 50mbs .reg registry files in it, it worked <2> Prehaps it was an off chance thing, But hell, I've found textpad, it works, it's good for me. <1> but I've used textpad, on coloring code, Crimson beats it big time
<2> ohwell! <1> the one thing textpad has which is good, is regexp search/replace <1> which is one of the nice things in Bluefish, bluefish uses PCRE Perl compliant regexps and posix, it does it fairly fully that I can tell <2> Whatever floats your boat, I dont like that textpad responds to F5 instead of ctrl + f for the find dialogue tbh. <1> xconspirisist: I think is configurable, under tools > preference > keyboards <3> quick question: if I have an object/variable and I unset it, is there a to automatically unset anything/everything that has a ref to that variable? <4> is it elseif or elsif? <1> you can do keyboard mapping in textpad <1> I never minded the F5 or F8 <3> my question is for php4, btw. <2> blah: "else if" <4> hmm <4> you sure? <2> TheMystic_ca: No. <2> Blah: I am quite sure. <3> xconspirisist: damn :( <5> so if $rss->items is an array of ***ociative arrays, how would I access just array[0] (the first array)? I've tried array_slice which limits some of it, but not totally <4> well, this thing isn't working <3> array_keys($rss->items) then the first element. <2> CheeseHead: $array = $rss-items; $array = $array[0]; <3> of what array_keys returns is the key to the first element. <2> or $array[0][0] <6> thats valid right? $registereddate=date("Y-m-d"); <2> robcole: Yes. <6> k <1> .yes <2> Hope this channel isnt as bad as quakenet's #php. <2> Only been in here for a few hours. Phew. <1> heheh <1> ever been at #efnet php? <2> Nah. Dont like efnet. <1> next thing I know, they start ranting on gettin laid and groins and cussing <2> Sometimes I'm in undernet. Always on quakenet. Recently adopted freenode. <1> looks like I enter some childcare or mtv new show stage <2> heh. <7> What is the fastest way to convert this time of date input to UNIX timestamp Friday 14th April 2006 01:47:19 AM ? <2> $foo = date("format"); <2> Where format is a string, with the formating rules set out in www.php.net/date <7> isnt date used to generator things <7> as in output not timestamp <2> date translates unix timestamps into a readable format. <7> oh nm <7> thats easy, im a moron <7> thanks <2> No problem. <8> why does oop have to be so damn confusing <2> It's not, you just havnt learnt it obviously. <8> I'm reading up on it now <4> dag nabbit <4> I could have sworn there was a "next" in php <8> Well actually cl***es are considered part of oop right? <4> or maybe I just misunderstood how it works? <2> Hit3k: Yes. <2> blah: What are you trying to do? <0> blah: http://php.net/next <4> isn't next supposed to take you to the next iteration of the loop without executing anything else in the loop? <2> You proberbly want break? <4> no, is there a continue? <4> I want to stay in the loop <0> Yes, there's a continue... <2> Have some code to show?
<4> but not execute any code after where I currently have "next" <0> http://php.net/continue <4> if there's a continue no worries :) <4> thanks <0> blah: If you're curious about something existing in PHP... just open a web browser and type "php.net/<foo>" and it'll take you to the page if it exists, or to the search if it doesn't. <4> ok, thanks :) <8> Can someone explain what $this->items[$artnr] += $num; because i just dont get it <0> What don't you get about it? <8> argh does goes before the because <8> I dont understand how it works <8> does it put $artnr into $items? <0> Do you understandhow $items[$artnr] += $num; works? <8> no <0> Heh. <0> $items is an array... $arthr is the key in the array (or should be). <8> yeah i know that <8> I <0> So... say $items = array(100, 200, 300); $arthr = 1; and $num = 5; then if you take $items[$artnr] += $num; ... the value 200 would be 205 <8> am new to this oop stuff <8> oh <8> sorry I'm kinda oblivious to obvious things <0> That's just basic arrays and math, nothing to do with OOP. <8> yeah <0> $this-> is just the OOP keyword that points to the $items array in the cl***. <9> hi moved to php5 recently and now i have alot of these : PHP Notice: Undefined variable <9> what has changed? <0> syle: Nothing besides your error reporting value. <0> PHP will show those if they are enabled even in PHP 4. <8> whats up with PHP6? <0> You should fix your code.. though you can turn it off by setting error_reporting in your php.ini to E_ALL ^ E_NOTICE <9> i;m looking at my php.ini for 4 and 5 both are error_reporting = E_ALL <9> but only see those errors in php5 <0> syle: They show up in both, it's not a difference between versions. <9> fix my code, omg i would have to go through 1000 php files changing so many variables, worth fixing? or spend more time with family? <8> BigE, one more thing, If I wanted to view the contents of that array would I just do it the normal way? <0> syle: Code that shows notices is bad code, imo. So yes, fix your code or turn it off. <0> Hit3k: If it's a cl*** variable... you would have to use $this->items to use the array in any way. <8> ok thanks <7> my question was wrong, how do i convert Friday 14th of April 2006 02:04:53 AM format to proper unixtimestamp <7> mktime only offers number input witch is.. meh <0> Hit3k: Same goes with any cl*** variables or functions... you use $this-> from inside of the cl***. <10> Penguin, have you tried strtotime() ? <11> Penguin: strtotime() <11> meh <10> Penguin, this could of some help to you - http://www.zend.com/codex.php?id=176&single=1 <7> how do i fit Friday 14th of April 2006 02:04:53 AM to strtotime($month.'/'.$day.'/'.$year.' 12:00pm') ? <7> explode? <7> exploding each ' ' is kind of eek <7> and i need to get AM next to time <9> idk if its bad code, some of these "undefined variables" only get used if a POST or GET is used with them <7> hum? <7> I have form that users uses to enter date in following format: Friday 14th of April 2006 02:04:53 AM, etc. Can't i simply use some function to convert it to unixtimestamp <7> guess its not possible for a simple folk <12> Penguin: http://php.net/strtotime <- read that <7> it converts my date to -1 <13> rofl <13> why you tryin to convert ur date into? <13> what* <7> unixtimestamp <13> ahh you check example functions on php.net <7> neg <13> I have a question how do I restrict numbers... Like I have a system thats based on 1 and 0 but if you p*** a variable to it you can change it to whatever 3000 if u like I want only 1 and 0 and error for everthing else <13> if you want example pm me <14> is there a way to save the current url with all the arguments like $url = "http://blah.php?var=blah" <13> to mysql? <14> no to php <15> nekrom: print_r($_SERVER); <14> thanks <15> you may have to reconstruct the URL with the variables available in the $_SERVER superglobal <16> http://rafb.net/paste/results/Odbo4476.html - I don't get any output or anything on this php script :/ <16> it just sits there for a couple seconds <16> and goes "x.x; *browser stops*" <9> in general is it bad to use a c module to authenticate users? like PHP_AUTH_USER, works fine, but that would hit the db on every single page viewed i would think
Return to
#php or Go to some related
logs:
use sed to extract base directory #fedora +suse +sound +lineout 10.1 ubuntu sudo update-alternatives --config java failed to load nvidia kernel module ubuntu dc_hardcode_primary_hostname #debian #php #web #perl
|
|