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



Comments:

<Meltir> s/da/de/
<kuja> dad: In the real world, it depends on your situation. If you work for a company you'll probably have some internal codebase. If you freelance, it's entirely up to you.
<kuja> dad: A lot of PHP code is GPL, which gives you the flexibility to reuse it and still sell your code, open source or not.
<ruben> I have set open_basedir = .:/opt/web/php/share/pear, but one user can open my /etc/p***word how is possible?
<dad> kuja: nice!
<ruben> any idea?
<dad> kuja: i know i could find someone else's DB object, use it as i would, but again, it's also for learning...
<Meltir> ruben: upgrade your php ? google says there were multiple fixes regarding issues with safe_mode and open_basedir in generall.
<Nam> is there an equivalent to substr which leaves control characters?
<Nam> when I use substr it remove any \t's that where in the line
<Meltir> also - you shouldnt rely on those, and secure your system with proper privs for certain dir's/
<Meltir> dad: imo there is no point in reinventing the wheel - even when learning. dba's are there for a reason. but thats just me.
<fromvega> Nam: I don't know why this happens but you could make a function to simulate substr based on array indexes, $string[0]....$string[5]
<kuja> Meltir: Often reimplementing something with your own hands gives you an idea of how things work. Things stick better in memory.
<Nam> yea, i was just hoping someone knew of a function which was control char safe
<Meltir> kuja: my opinion differs from that of most people, so im not going to argue. lets just say im _really_ lazy :)
<kuja> Meltir: Everyone in here has reinvented the wheel at one point just to learn something better. 100% EVERYONE.
<kuja> In one way or another, everyone *has* reinvented the wheel.
<fromvega> Nam: mb_substr maybe?
<Meltir> sure. but dba's are a large topic, and i dont like to meddle in those :P
<kuja> Meltir: DBA's are overrated.
<Meltir> kuja: why ?
<kuja> Meltir: They're utterly useless for large projects. DB objects are rather useful though/.
<Meltir> then i must be missing some idea about what a dba really is. i understand it as an object/cl*** that handles the database connection. time to google around and reeducate myself :/
<dad> Meltir: i was just wondering if i should build a query function into my database object - p*** it a query string, and it'll return a result set...
<kuja> Meltir: People blindly use DBAs for large projects and result in never having to switch out databases, so most people don't know how useless they are.
<fromvega> I have a cl*** used to abstract db access, and another cl*** to make common actions based on database data that will need to use the functions from the DB cl***. Should it, the common cl*** inherit the DB cl***?
<kuja> Meltir: Once you make the attempt to switch out a database, you may find yourself rewriting ***loads of SQL, as if it were no different from NOT using a DBA anyways.
<Nam> hmm... when i try mb_substr i get "Call to undefined function mb_substr() in"
<fromvega> Nam: I'm sorry, I just gave a look at the manual, I've never used this function
<kuja> dad: A DB Object is more better understood as a table-object mapping of a table in your database.
<kuja> s/more //
<Nam> yea, same here
<Nam> ahh, i need to add --enable-mbstring to my php install
<shawn_g> ask v
<shawn_g> Jymmm
<shawn_g> all and powerfull Jymmm!
<fromvega> I have a cl*** used to abstract db access, and another cl*** to make common actions based on database data that will need to use the functions from the DB cl*** everytime. Should it, the common cl***, inherit the DB cl***? What's the best aproach?
<kuja> fromvega: It should, yes.
<weasel00> after i recompile php with mysqli do i need to restart anything besides apache to see the changes?
<kuja> No
<stedios> eh, so i'm setting up mysql with php.. in my php.ini i removed the ';' infront of the extention.. but i get "unable to load dynamic library ./php_msql.dll' , suggestiosn? (i do have mysql.dll in the php dir)
<weasel00> gdi
<Meltir> but remember to restart, and not just reload apache.
<weasel00> Mel: difference?
<kuja> stedios: Set your extension_dir directive in php.ini to point to the absolute path of your extension directory.
<Meltir> weasel00: huge. reload just rereads the configs, it doesnt reload the libs.
<Meltir> more like frags :)
<weasel00> thanks... as you noticed im losing itover this lol
<stedios> "extension_dir = "c:\php\" " same thing ;0
<kuja> stedios: Why are your extensions in C:\php?
<kuja> If PHP4, it should be C:\php\extensions, and in PHP5, C:\php\ext
<weasel00> Mel: how do i reload it to get the libs then?
<stedios> i don't know honostly.. i've never used extentions before . and don't have an extention folder
<stedios> php5.x
<kuja> stedios: You don't have ext?
<stedios> er
<stedios> "ext"
<stedios> i see
<stedios> i was looking for "extensions" and ext was too short andi over looked. heh.
<fromvega> how do I call a father constructor?
<Meltir> parent::foo
<weasel00> Mel : apachectl -k restart?
<stedios> ok, same thing. 'unable to load c:\php\ext\php_mysql.dll"
<Meltir> weas: apachectl stop; apachectl start; <-- sure way.
<kuja> stedios: You also need to be sure that your libmysql.dll is in somewhere recognizable by %PATH%.
<weasel00> Mel : TY
<Zyclops> i have a variable called $today definined in my script, later on i eval some php code, and $today is not accessable, the scope of the variable should p*** to the evaled script?
<Jymmm> yo_pops::blah
<stedios> kuja: mm
<Zregika> i am having problems with mediawiki install
<Zregika> i was told y'all could help me
<kuja> Zregika: Not with a mediawiki install. No, we cannot.
<Zyclops> Does global scope extend to evaled scripts?
<Meltir> Zregika: wrong channel. you want #wiki or #mediawiki
<stedios> kuja: mind being more specific?
<stedios> even tho it sounds specific already.. heh
<kuja> stedios: Do you know anything about your own OS? Do you know how to set your %PATH%?
<stedios> kuja: you mean evir variable?
<kuja> Yes.
<stedios> oh
<Jymmm> how ya doin jiggster?
<kuja> stedios: ***uming libmysql.dll is in C:\php, you want to add C:\php to your PATH variable.
<Meltir> ;)
<kuja> stedios: Or just move libmysql.dll to somewhere that is recognizable by your PATH.
<jiggster> pretty good Jymmm, yourself?
<stedios> i remember reading about that earlier, will go do now . thank
<stedios> thanks*
<Jymmm> jiggster working on a design (as usualy)
<kuja> Jymmm: Shut up
<jiggster> ah cool stuff
<kuja> :D
<jiggster> if i ever write an irc client, i'ma put in a "Ban Kuja" button :p
<kuja> Screw you :P
<jiggster> i used to like you!
<kuja> My IRC client is going to be out... someday...
<kuja> If the guy ever gets around to writing it lol
<jiggster> then you went all weird with RoR
<kuja> Only Ruby
<jiggster> oh
<kuja> And some Ruby-GTK2
<jiggster> well then there's hope for you yet
<kuja> If PHP is hope, then God is Satan.
<jiggster> i watched a RoR movie on their site... my god it's ... weird :\
<Meltir> kuja: no, im satan.
<kuja> PHP will never be hope to GUI or command-line programming :)
<jiggster> tbh, i dont know what i'd prefer, i only know Java and PHP, and i'm not proud to say that :P
<kuja> At least you know Java.
<jiggster> i wish i knew more, but i question the worth of it all
<jiggster> so i go MS like and go the .NET route, or stay into the less recognized non .NET route?
<kuja> Meltir: Uh, why not use a more suited language for GUI programming? Python is well-suited for the scripting language depo.
<jiggster> do i go*
<kuja> jiggster: Go C, contribute to the OSS community, stick it on a resume :)
<jiggster> perhaps
<|Lurch|> does PHP have a serialize/unseralize format that is more convenient/human readable? something like print_r would be nice, but it doesn't look like there is a get_r equivalent..
<Meltir> kuja: keeping one codebase. a www enabled controll panel, and a phpgtk client side panel :/
<kuja> |Lurch|: var_export()
<mr-russ> the PHP manual defines OpenSSL "Purpose checking flags" such as server and client. None of the function documentation says where they are valid, or what variables they need to be ***igned to to be effective. Where can I find information on that?
<jiggster> i know C++ has pointers... but does C?
<Meltir> |Lurch|: var_export ?
<kuja> Meltir: That's... kind of sad.
<Meltir> kuja: not sad really. just painfull.
<RhastaW> jiggster, err yes
<jiggster> thought so
<kuja> Meltir: I fear for your company, using PHP-GTK
<jiggster> man, pointers do me in completely
<kuja> Meltir: Does your company realize that PHP-GTK is not meant for serious use?
<|Lurch|> Meltir: lemme take a look...
<Meltir> kuja: we... you could say that we dont care :P
<kuja> lol
<RhastaW> just dont inhale
<kuja> Meltir: The authors even state somewhere that it's a "proof-of-concept" and not really meant to be used :)
<Meltir> kuja: keeping one codebase is a priority. the company isnt big enough to run two projects side by side :P
<jiggster> i'm working on my AMD box... redid gentoo on it, my old compile was quite cluttered and well... x was very, very broken
<stedios> kuja: all good now. thanks ;0
<kuja> stedios: You're welcome
<jiggster> i'm kind of excited, this setup looks hopeful
<kuja> Meltir: Depending on your setup, it should have been easier to use 2 languages.
<kuja> Meltir: It tied in too much PHP, apparently.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

sendmail daemonoptions
#lisp
no mirrorselect in knoppix
#web
#lisp
#sql
#lisp
dh_make w32codecs
esddsp slow
value of htmlspanelement



Home  |  disclaimer  |  contact  |  submit quotes