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



Comments:

<0> nononono
<1> I would like to strangle you.
<0> kuja: i programmed in ada95
<0> so i know what i am talking about
<0> kuja: ;P
<1> russleon: Funny that you should use PHP.
<1> I got the idea that you don't know what you're talking about.
<0> kuja: my boss wants too , grrr
<0> kuja: i think you do not know what i am talking about :D
<2> hello all
<0> kuja: let me exaplin again :)
<1> I do, you just don't know the best way to approach it *in PHP*
<1> There are approximately 3 ways to do what you want.
<1> Of all, only one is the "most ideal" for PHP.
<2> what means Resource ID # 13? I'm trying to echo a variable
<1> jolmash: That variable contains a resource.



<3> jolmash: And you're succeeding.
<2> really?
<1> Yes? Don't you see?
<3> The variable is, for example, a database connection, an open file handler, etc.
<2> but, I guess it have a special meaning, Do you know what meaning is?
<0> kuja: i have a cl*** that is called checker , it checks a given string for a number of criterias. it has number of methods. the possible checks are also written in the string. thy define how to test it . all possible keys are savbed in a global array. also in this array is saved a method which is called to make a check. i would like to have it in different file which contains this methods and not put everything in one cl***
<4> jolmash: a resource is something that is not human-readable, such as a connection
<5> has anyone seen asort stop at 142 when there is a 170 in the array?
<0> kuja: why then there is something like $_POST ?
<1> I think whoever thought of the idea of having resources needs to burn.
<0> ok thx a lot
<1> russleon: Those are called super globals. They are general purpose constantly needed variables you refer to 70% of the time you're using PHP (for what it is, the web scripting language)
<2> kuja, mattmcc, CryWolf: ok, thanks
<0> kuja: and this global i refer 50% of the time i am using my program :=
<0> kuja: and it is called from different cl***es
<1> russleon: Like I said, p*** the needing variable into the constructor and store it.
<0> kuja: how to p*** it automatically to a constructor ?
<1> You don't, you p*** it manually.
<0> kuja: something like cl*** bla($_POST, $defaultarray = $defaultarray) ?
<6> kuja, what's wrong with resources ? What do you want as an alternative ?
<0> kuja: i want to kiss you
<1> $foo = 'bar'; cl*** Foo { function Foo($a) { $this->a = $a; } } $obj = new Foo($foo); echo $obj->a; // outputs 'bar'
<0> kuja: that sux
<1> colder: They're retarded.
<0> i do not like it
<1> russleon: Too bad.
<1> Use another language then.
<0> kuja: this variable is getting p***ed everytime :(
<0> kuja: hmmm :((((
<1> So p*** it every time then.
<0> kuja: can not
<6> kuja, what would you have as an alternative then, objects ?
<0> kuja: thx a lto
<0> lot
<1> colder: Yes, objects.
<4> russleon: why not create a singleton cl***?
<0> CryWolf: it is singleton
<5> does asort actually work for anyone?
<0> CryWolf: why is it not a singleton ?
<7> how can i post to a page without using a form?
<0> CryWolf: singleton cl*** for what ?
<6> kuja, but there are problems with objects ( at least in the current way PHP handles them)
<4> russleon: I was ***uming it isn't, because you're talking about p***ing the variable every time.
<0> CryWolf: for array ? , yes it could be an idea
<0> CryWolf: i see
<0> CryWolf: you mean i save array in a cl***, right ?
<1> colder: You see, it's much easier once you claim that "everything is an object" in a given language, like Python or Ruby. That way handling connections/files is much more transparent.
<0> CryWolf: do i need to initialize the cl*** then each time. or is it not needed, when i only wnat to access this array stored in the cl*** ?
<0> funny . no globals , but cl***es ARE global haha
<4> russleon: there's a chapter about patterns, including singletons, in php.net/oop5. You should be able to apply that to php4 as well.
<6> yep, I agree with that, but at the current state PHP wouldn't be able to translate every resources into objects. 1) it would be slower 2) objects can't handle persistency
<0> CryWolf: unfortunatly php4 has crypled oo
<0> cripled
<3> colder: That's fine, neither can resources.
<6> mattmcc, yes, resources can.
<3> colder: Show me a resource that persists.
<1> Resourcces are no different from objects.
<6> mattmcc, mysql_pconnect()
<0> CryWolf: will read
<3> colder: No, that's not a resource persisting. It has to be reopened in PHP land, even if it may happen to use an already opened connection in the mysql space.



<4> I wonder how php would handle serializing a connection or file object
<3> It wouldn't.
<6> mattmcc, kuja, http://marc2.theaimsgroup.com/?l=php-dev&m=114640389322984&w=1
<4> With resources, it's clear (to those who read the docs) that they can't be saved. Everything as an object would probably cause some confusion. Not that it's difficult to confuse most people anyway.
<5> Does anyone know how to get the value of the last key of an array if the keys arent numbered sequentually?
<4> DogWater: there's functions for that at php.net/array
<8> hey mattmcc
<8> have you seen or heard of any good php/adodb support ticket systems?
<3> colder: Hmm. I believe we have a different notion of persistance. I expect a 'persistant' resource to remain in existence across script instances, which isn't what, e.g, mysql_pconnect does.
<8> I've found several but development has been discontinued or they were in the middle of transitioning to new code bases, et cetera
<9> Hi. I'm having a problem. I can't send email from smf forum but from joomla I do. I have already written to the smf forum for support but I haven't received any answer. On the joomla channel I have been redirected here. Someone willing to help me out?
<10> does anyone know of a way to script in javascript or some other client side scripting launguage to get the clients ip?
<6> mattmcc, fair enough ;)
<10> even if its a 192.168.0.3 or something
<4> scotepi: #web
<9> colder, thx
<3> colder: Traditionally, one uses an application server to accomplish this. People have written application server type tools for PHP, but none have really ever caught on.
<11> hello, i'm thinking to write my own discussion board .. any suggestions. code to reuse or not...
<10> CryWolf they had to hard of atime understanding my question ><
<9> colder, sorry. I thought you misspelled my nick.
<8> for that matter, has anyone here seen a good ticket system?
<11> Marticus: people seem to be using trac?
<11> oops.
<12> Marticus: trac, fogbugz, rt
<11> trac is python ...
<3> Trac is nice, but it doesn't decouple from Subversion very well.
<8> well, the main use would be for departmental computer requests
<8> and electronics shop or machine shop requests
<8> trac would be a bit overkill :)
<12> Ehehe.
<12> If you're avoiding overkill, ignore my other two suggestions as well.
<12> RT is a bit of a monster.
<3> Trac is designed to be minimalistic. I'm not sure how it could be overkill.. :)
<13> is there a way of fetching a session from example: www.MyDomain.com when you are in files.MyDomain.com? only the subdomain changes
<8> Tresnar: yeah, I just noticed
<8> they are for software development anyway :)
<14> if I have a cl*** and I call the cl*** as $cl*** = new cl***file(); if I want to later redirect the script file to another location, is there a way to p*** the current $cl*** with all its contents unchanged for processing in the new script file?
<8> for dev, I would use trac
<8> but I can't very well recommend that to my boss for his needs
<8> hehe
<12> At this point, I'd just ask google, I guess.
<8> I looked at php ticket and its evil spawn, but they are stale projects
<8> and osticket seems to be dead project, but its community spawned project also seems to be in a transitional state
<8> I think I'll ask the web guru over in IT
<8> he probably looked into a few
<3> Man, kdiff3 is spiffy for directory merges.
<13> forget it
<13> :D
<13> thanks
<3> kuja: Well, 'diff3' already exists.. :)
<1> Then, time for a gdiff3 :)
<15> is open_basedir basically the way to restrict file uploads to the uesrs docroot, and not other vhost's docroot ?
<3> Actually, I'm not aware of a GTK visual differ..
<1> mattmcc: I'll have to look at kdiff3 and maybe write one in Ruby/GTK
<16> hi, how i remove \n from a string?
<17> what is the difference between using " and ' for declaring strings and variables?
<1> amak: php.net/str-replace
<1> Cyno: Everything in '...' is literal.
<17> ok thanks
<3> Cyno: http://php.net/types.string
<18> kuja: even \\ and \'?
<1> et: Nitpicker
<1> :P
<3> kuja: Because a KDE app existing without a GTK counterpart isn't allowed? :)
<15> java!
<15> ;)
<1> mattmcc: Of course not, The GNOME devs would hunt me down :)
<3> Jax: Hey, Debian can distribute Sun's JDK now. :)
<1> !


Name:

Comments:

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






Return to #php
or
Go to some related logs:

nuller efnet
WorkArounds2
fc5+nolisten
fuseftp ubuntu
sql set commant
yum libssl.so.5
linux e297 write error swap file
-j nfqueue queue-num
liveconnector.com
guiss extension



Home  |  disclaimer  |  contact  |  submit quotes