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



Comments:

<0> (in C I'd just parse the string char-by-char, copying only the valid ones across
<1> batman: Sounds like a scoping issue. You probably want to p*** your parameters into the function.
<1> Stormchaser: Are you still a KDE dev?
<2> kuja_, true if i do an include() in the function it should work then?
<1> batman: Sure, it should.
<2> kuja_, kewl thanks bro
<1> np
<3> kuja_: not really... I have much more other things to do, but I might contribute some more code soon...
<1> Stormchaser: Well, tell me why the hell Qt is so fast, GTK is slower, KDE is slow as ****, and GNOME is faster?!! DAMN YOU!
<4> kuja_: because stormchaser hasn't submitted code lately
<1> lol
<5> atealtha, deadroot: i fixed it.
<4> Zyclops you still there?
<6> this is screwed, things don't work in IE, other things don't work in FF
<6> tek: yep
<1> Stormchaser: I'd seriously use KDE man, if it was faster... I love Qt... dammit do something! :(



<5> what did it was unsetting a global variable, and therefor forcing an object to deconstruct
<5> although since it doesn't use any php5 OO code... there is no explicit deconstruction code that i was taking advantage of....
<3> kuja_: Screwed-up memory management in the core and load-everything-possible-at-start logic.
<5> me thinks something was wonky with global variable scope.
<1> Stormchaser: lol
<4> Zyclops, http://hashphp.org/pastebin.php?pid=6247 it's ugly but there
<1> Stormchaser: I'm guessing no one's brave enough to fix it ;P
<4> Zyclops it's easier to build a templating cl***, a small simple one that suits your common needs and just stop it there, it shouldn't be rocket science
<3> kuja_: IT's said, that that is going to be completely overhauled in KDE4... I don't know, what will happend, tho.\
<1> tek_: That's actually a good way to do it. I suggest it all the time.
<4> kuja+ works for me.
<4> err :)
<1> Stormchaser: Eager for KDE4, actually.
<6> tek: ohh, thats almost identical to one i wrote
<3> kuja_: So am I... I can't wait to see the eye-candy and the new gadgets :)
<1> :D
<1> I have a feeling it's going to be slow though...
<4> Zyclops: then kake a template with all the possiblev values, or a few in my case, then with a cl*** constructor empty them with '' or unset them
<6> tek: but then i started having like php code that was nested 4 pages deep and it became unmanigable
<1> I probably won't even get in on Ubuntu til like <how long> after it's released :P
<4> Zyclops: you went wrong in your design then
<3> kuja_: Well... KDE 3.5.1 is already on kubuntu :)
<1> Yeah
<4> Zyclops: paste it
<6> yeah maybe, i don't know basically every page has like 4 or 5 major components(just like dynamic tables or stuff) and each of those components is made up of various stuff
<1> Stormchaser: Happy with gnome for now, cause as long as amaroK works and docks in gnome panels, I'm happy lol
<3> Well... I hear SuSE has planned that on 10.3 (or 11)
<4> Zyclops, then start from the beginning
<1> Stormchaser: Oddly, I saw a Clearlooks clone on KDE, and it was ROCKIN' man.
<1> Looked better than Clearlooks on GNOME.
<1> Stormchaser: It was just smooth and shiny at the same time, ****ing awesome. Purely magnificant.
<3> kuja_: Hm... check out plasma.kde.org
<4> Zyclops and scale it in your head... in other words instead of {BLOGS} just make {CONTENT} and decide c{CONTENTS} well.. content based on logic
<4> Zyclops I have one template file that runs a lottt of pages.
<4> You can even take bloggers approach and make the whole thing dynamic even to the tags
<3> okay... BAck to work... Laters...
<4> Which I dont suggest.. but whatever suits your needs
<4> later stormchaser
<7> apache 2.2 compiled with php 5 as best i as i can tell... i can view my phpinfo.php on the root of the website but <site>/directory/foobar.php comes up blank... where do i begin tracking this problem down
<1> Stormchaser: Later :)
<6> hmmm, mind you if it's working and quite managable at the moment, is there any point in changing to a template system... i already separate my html and php quite a lot
<8> flipping hell
<4> Well this is the only system that I Think in a way, doesn't at all interact with logic, it just sits there.
<4> I would say revise it all and think of ways you could make it easier on yourself
<4> my entire template engine i've been using for... ever is like 120 lines of code
<6> can you return the results of include to a string? i'm ***uming same as with eval, just ob_start() require_once ob_get_contents
<4> just apply the concept of database normalization to your cl***es (If you're using OOP for it)
<4> Zyclops.. that's pretty much file_get_contents()
<6> heh :)
<4> file_include_contents() would be an alias for include() :\
<7> ?
<4> err
<1> str_replace(), file_get_contents()... all you'll ever need for basic templating, and basic templating is all you'll ever need :)
<1> Unless you need to cache crap.
<4> yeah, screw caching
<4> what did it ever do for anything
<9> file_get_contents is not an alias for include
<4> I know it isn't
<1> $vars = array('{foo}' => 'foo', '{bar}' => 'bar'); echo str_replace(array_keys($vars), $vars, file_get_contents('template.html'));
<4> that's why I said err, I said basically it can be looked at as doing the latter, "$blah = include('file');
<7> would it be a handler that i am missing in the php.ini or httpd.conf for processing .php globally on the server? login.php returns <html><body></body></html> *grr



<10> http://pastebin.com/569838 - shouldn't this grab all rpms in a directory, add it to an array, and then the array being organized alphabetically? They aren't being sorted properly. Any ideas?
<3> foo: Ew. Use glob()
<10> Stormchaser: hmm, apparently it's sorting .. but it puts capital letters before lowercase. Weird.
<10> Stormchaser: woah, glob. Sweet. Let me recode this.
<10> Stormchaser: I did this ok, right? Is what I did equavalent to the commented out code? http://pastebin.com/569842
<10> Stormchaser: I am pretty sure it is, but can you confirm? Thanks
<3> foo: Yep, that's okay, but I think, that glob has also some switches for internal sorting... You should check that out.
<11> hmm
<4> http://us3.php.net/glob look at the comments foo
<10> Stormchaser: hmm, ok, thanks.
<10> tek_: yeah, thanks
<3> foo: Um... Why the heck do you need foeach there, since you're stuffing that into another array?
<10> Stormchaser: hmm. Oh, glob is an array in itself. heh. That's redudant. Thanks.
<7> why is 250 lines of php code turning into a blank page when i open it and the source is just <html><body></body></html> ??
<4> wease100: Fedora?
<7> ya
<3> weasel00: PRobably it's errored out
<4> wease100: No clue
<7> tek_: where would i start looking... www.com/phpinfo.php works but www.com/subdir/login.php gives the blank page... is this a permission someplace? im lost in tracking this down
<12> check the logs
<4> wease100: no, I had this problem before but I have no recollection of what happened, I just remember checking httpd logs and finding something about my memory limit I think
<4> so would it be a dumb idea for me to search googlepages.com for all the 200 header returns on *.googlepages.com and then add those to an index and sell them to Sony for their next email marketing campaign?
<7> tek_: i did to but it was long ago... off to dig logs some more i guess
<13> why can't i access mysql? it shows up in phpinfo(), and my user/p*** are ok
<13> (i can access fine from terminal)..
<7> tek_: depends on the what sony is paying *wink*
<3> weasel00: ATRAC3?
<14> Is it possible to define an enumerated constant list in a cl***? eg, const { FOO, BAR } where FOO == 1 and BAR == 2 ?
<1> AzMoo: Parallel ***ignment?
<1> Not for constants.
<11> hey, do I have to escape anyother characters besides the " and ' when using echo?
<14> kuja_, bummer, thanks.
<1> list ($foo, $bar) = array(1, 2); // Closest to what you want, but not constants.
<1> ironpig: That depends, \ should always be escaped too, unless you're adding meaning to it.
<13> why can't phpmyadmin access mysql ???
<11> what about the ; character ?
<3> kuja_: \ is fine in single quotes.
<1> In single, yeah.
<1> As long as it ain't '\'
<3> Greves: You don't have support for it?
<3> kuja_: Yes, that WILL be a problem :)
<1> ironpig: A string is a string, it's a string of characters that don't have specific meaning to the syntax of PHP.
<1> "" have special meaning, though.
<13> Stormchaser: i do
<1> "$foo" means to replace $foo with the value of $foo, whereas "\$foo" is a literal $foo
<13> Stormchaser: it comes up and asks for my user/p***word, i put it in and no dice
<11> well, yah, in a string of charaters like #000000; do I need to espace ; ?
<13> works fine on the command line with mysql -p
<1> ironpig: It doesn't matter what you do with the ;, it's just going to be a semi colon.
<11> ok :)
<3> Greves: Which PHP / MySQL?
<13> Stormchaser: 5/4.1
<3> Greves: And phpinfo() says you have mysql support?
<13> yes
<15> Ah, doing Haskell again after years of PHP dev at work is amazingly refreshing.
<3> Greves: And what is the error?
<16> studying again ?
<13> Stormchaser: nothing other than "Wrong username/p***word" but it is quite obviously not wrong if it works from the command line
<15> p0windah: My next project at work involves Haskell.
<15> Whereas before I was doing PHP dev.
<15> I already know Haskell.
<3> Greves: Make a testbed with mysql_connect or di() thingy
<3> er... die()
<12> FlamingCows: you again?
<16> FlamingCows: sorry, thought you meant the author
<15> Jymmm: Huh?
<17> is PNG a ok graphics format for menus ?
<17> cause opera doesnt see my png's
<1> lol
<17> ?
<12> $500 cash (no questions asked) that deliver a 100% functional 150Watt CO2 laser engraver
<1> raden: Oh, it was funny.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

pipelinegr
#perl
neural net is a function approximator
roadfighters c++
#debian
#web
#perl
#gentoo
How to send post data php
difference y2pmsh installation_sources



Home  |  disclaimer  |  contact  |  submit quotes