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



Comments:

<0> hrm
<0> i'll try it
<0> may be overkill for simple substitution
<1> Tough call, I'm (re)writing my own DB cl*** now, and although I love the option to do whatever I want with it, I constantly find myself asking questions such as "How did X project do it?" "Should I copy their method?" "If I copy it, why the **** am I writting my own?"
<2> I'm having the same problem now. I'm actually going to try SMarty / PDO
<2> Or maybe extending PDO. Or just writing my own functions that use PDO.
<2> I don't ****ing know.
<3> what do you need in PDO that isn't already there?
<2> Now that I think of it, probably nothing.
<2> Just custom functions to perform common database tasks, which doesn't require *extending* PDO.
<4> Hey guys, anyone know a way I can export some fields I have in a mySql db, to a csv format with php?
<5> wtf is pdo
<6> is there a way of overloading calls to static methods?
<7> hey
<7> is here somebody who know php? scripting or what
<7> ?



<8> hi LIndividu
<7> common ....
<7> lame
<3> nope, none of us know PHP
<3> ...but we can sell you some blue carpet.
<9> ?
<10> if i have mysql installed, it should appear on my php_info(), right?
<3> no
<3> PHP doesn't *know* if you have the server installed, just the extension
<10> oh ok, thanks
<10> but should it output that on info() that it is enabled?
<3> the extension, yeah
<10> its under the Environment table, under Path to be exact...should it really be there or is it to be found somewhere else like under its own table under Mysql ?
<3> no there should be another group that has defaults for the mysql driver
<10> weird...i already uncommented php_mysql.dll on the ini file
<10> what am i missing?
<3> does it know how to find the client library?
<3> oh **** you're on Windows... nevermind
<3> I had all sorts of grief trying to get mysql working on Windows, gave up and stuck with SQL2005
<10> i had this working last time, but i forgot how i did it
<10> *sigh*
<10> but thanks anyway, il try to find some solutions on this
<10> thanks
<3> I'm kinda bored right now... maybe I'll see if I can get it going again
<10> btw i havent installed php on a *nix box, what does it have instead of php.ini?
<3> same thing
<3> it's just stored elsewhere
<3> sigchld: did you put libmysql.dll from the MySQL you're using in C:\PHP or wherever you're using it?
<10> oh ok
<10> oh that! wait, i think i forgot to check on it
<10> its on the root dir of php
<3> where it's supposed to be, yeah
<10> yep, its there
<3> hm, I can't tunnel it from my host, ****ty
<3> sigchld: mind if I have a look at your phpinfo() page?
<5> someone in here know prolog ?
<11> hey, anyone got a job there for me, looks like we're all being made redundant :p
<3> uh oh
<11> tell me about it
<11> quick! take annual leave!
<12> when i type php and then the script im trying to execute the code just goes by the terminaql
<12> *terminal
<12> why?
<11> half the team is off 'sick' today
<11> Black_Hat: huh?
<12> i am trying to run a script setup.php
<11> sure, and you are running it from a web browser?
<12> when i type "php setup.php" the code from the script im trying to run just goes by the terminal
<11> or from the CLI?
<12> no
<12> CLI?
<11> command line interface
<12> yes
<12> cli
<11> what do you mean 'goes by the terminal'
<12> but when i open setup.php in my web browser all i see is the code as well
<3> oooo yay, I got the PHP5 ISAPI module to work now
<3> it was crashing before
<12> phatlip, the code just gets outputted to the CLI
<11> Black_Hat: so when you run it, it outputs the code to the terminal
<12> yes



<11> right. sounds like PHP is not compiled for the command line.
<11> try php -r phpinfo()
<11> should give you a html doc outputted.
<13> php -i
<11> Novell: sure, but we want to make sure PPH is parsing the php code.
<11> php, even
<11> though PPH is awesome too
<14> ok
<14> this will be easier.
<14> ~ blackhat$ php -r phpinfo()
<14> -bash: syntax error near unexpected token `('
<3> try php -r "phpinfo();"
<14> yeah that worked
<14> heh
<13> better to use ' in the shell especially if you have variables in the code
<14> it did the same thing as php -i as far as i can tell
<15> lamers
<14> Tamahome, so whats next?
<3> blackhat_: what are you trying to do?
<14> run a php script in CLI
<14> php setup.php just outputs the code to the terminal
<3> oh... why not just use a #! line at the top of the script?
<14> #!/usr/bin/php
<14> ?
<3> summat like that yeah, whatever the path is for your php binary
<14> then all i should have to do is "php setup.php"
<14> correct?
<3> what is setup.php for?
<14> im trying to install phpmyadmin :)
<3> oh well crap... that should work out-of-box then
<3> read the instructions
<14> i did
<14> its foroscommerce
<14> when i go to the location in my webrowser of index.php
<14> again
<14> it shows nothing but code
<16> blackhat_ check your webserver configuration
<3> ohhhhhh
<3> yeah definitely check your webserver config
<14> for what?
<3> you probably don't have the PHP module loaded
<11> Black_Hat: yeah thats your webserver, but its weird that your php is outputting that to your terminal as well.
<14> so i have to install a php module
<14> for my webserver
<15> cai's my bitch
<3> blackhat_: yes... they don't usually have one by default.
<14> do you know of a decent one ?
<14> i see a few on moduels.apache.org
<14> *modules
<3> that's the one you want, probably... but if you have a Linux distro, you can probably get it from them
<9> cache size : 128 KB thats mean he has 128 of ram?
<3> no.
<14> Tamahome, i instaled the complete php source a while ago. the module isnt includedin that is it?
<3> actually, it should be
<14> well ****
<14> Tamahome, how can i tell if i did install it?
<11> blackhat_: read the installation part of the PHP manual, it is very thorough in how to get php to work with apache
<14> ahhh
<14> ok
<14> why wont it run in CLI?
<14> thats my next question
<17> because you touch yourself at night
<14> probly
<14> damnit
<14> ive already got apache installed. i wonder
<17> lol
<17> what distro u running blackhat
<14> this is on osx
<3> wb sigchld
<17> blackhat thats hot :D
<14> im just trying to get oscommerce running so i can test something out. and this is turning into a huge project
<3> waitasec, doesn't OS X already have PHP installed by default?
<17> no


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#c++
ABAUTH SEX
virus_86
#linux
#php
outtie pussies
#linux
lower_bound sucks
#java
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes