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