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



Comments:

<0> i need to separate the db connection vars
<0> any ideas?
<1> Simplex3: pcrelib was upgraded for php5.1 :)
<0> can i define a var in the php.ini so that can then check this var to know that i'm working locally and not on the server?
<0> coudl that be done?
<0> is it the correct way to do it?
<2> use $_SERVER['SERVER_NAME'] or something similar
<2> one of the $_SERVER variables should help
<3> Bazzi: By "upgraded" do they mean "made to work"? ;)
<4> Simplex3, looks like its isolated to 5.0 then, because it work on 5.1.2, 4.4.1, and 6.0.0-dev, do you use the bundled lib ?
<0> GarethAdams: i just print_t($_SERVER) and there's really nothing in there that couldn't be on another pc
<3> Yeah.
<4> and out of interrest, what is the version of the lib ?



<0> aint the a way to define a key in the php.ini and then read it from a script?
<3> I just tested it on a 4.4.0 server that worked.
<4> the one in trouble I mean.
<3> 4.5 01-December-2003
<2> sal: yes, but another php.ini could set the same key
<2> just as easily as a $_SERVER variable
<4> Simplex3, well ok, explains a lot ;)
<0> GarethAdams:no.. not if you set a 32 hex key
<4> on 4.4.1 its 6.2 01-Aug-2005
<3> WTF? So where did I get this old POS? lol
<2> sal: if someone had the code to look at, they could set the same key
<2> I ***ume you're trying to add 'security
<0> i don't care about that. i only need for e.. for local testing. i need to keep 2 db connections and i can't find a way to do it
<0> u have any ideas?
<2> on any production server, $_SERVER['SERVER_NAME'] won't be 'localhost'
<2> on most local servers, it will
<0> ok, i'l run a phpinfo on the server to see
<0> thanks
<4> Simplex3, because the 5.0.0 beta3 has been released on 2003 (which introduces pcrelib 4.5), and the pcrelib version hasn't changed until PHP 5.0.5 (2005), that's it ;)
<3> So php5.0.5 changed to pcre ~6.2?
<5> Simplex3: No, 5.1 has that
<4> php 5.0.5 includes pcrelib 5.0
<3> Ok. Well, I'm just going to give up on the Suse rpms and roll my own.
<1> ooo suse
<5> bah... SuSE...
<5> I lived 3 y4ears in it's shadow... It's not as good as they say...
<3> I don't have this issue on my servers because they run FreeBSD, but I'm too lazy to wait for X to compile on FreeBSD.
<6> EvilWalrus are you here?
<7> Hello
<8> hello
<8> I just got an error when installing a php script
<8> Session save path /var/lib/php4, Unwriteable
<6> !+g8
<9> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
<6> !+g10
<9> Guideline #10) We don't support xyz script. We help you *write* PHP, not download and install/hack/use pre-written scripts
<10> hi
<8> should I make it writeable?
<7> If I p*** a variable in a line (like index.php?body=text) How can I obtain the data of the variable $body?
<11> Nomius: $_GET'body']
<11> $_GET['body'] even
<12> $body = $_GET['body'];
<7> Ok
<6> !+gv
<9> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<7> Thanks :)
<12> Nomius, be sure to inspect information p***ed to your application via _GET and _POST.
<7> Cyphon, yes, I put it in a case...
<6> !+xss
<9> [XSS - Cross site scripting] See: http://en.wikipedia.org/wiki/XSS and http://www.technicalinfo.net/papers/CSS.html
<13> Jymmm: i'm here, but not for long.. what's up?
<6> EvilWalrus I was just gonna ban your nick, you've bene bouncing all day.
<13> sorry, been having CPU problems
<6> EvilWalrus that why asked if you were here or away =)
<13> :)
<6> EvilWalrus I know you can unban yourself, so no biggy
<13> yeah
<6> EvilWalrus I got a celron 500 cpu for sale =)
<13> lol
<6> EvilWalrus yeah, how much?



<13> i'm running dual AMD 64's... one of them is being screwy and lagging my processing
<13> trying to figure out if it's not in the seat right or what
<6> EvilWalrus and buy me a cute LONG legged brunette
<13> i got one you can have for FREE
<6> EvilWalrus OH I know who you can buy me...
<6> hold on
<6> EvilWalrus her --> http://www.phillyist.com/images/jjg_giadadelaurentiis.jpg
<13> *gag*
<6> EvilWalrus lousy photo, but she's a cutie
<13> damnit, gotta go... my own long-legged brunette is here... time to go buy some ****
<13> laters
<6> hasta
<4> Jymmm, wasn't it d53.64.42.* ?
<6> colder I'm block by subnet, not dns
<6> colder I'm blocking by subnet, not dns
<4> my bad
<6> colder Nah, most aren't aware that you can do that.
<3> Is there a way to compile just one module after php is compiled?
<12> What do you mean Simplex3?
<3> I compiled and installed php 5.1.2, all is working, but I forgot the mysqli module.
<14> I have an array within a session variable but i need to check and see if all of the values of the keys of this array inside this session are empty
<14> any good ways to do this?
<3> Can I just compile the mysqli and install it or do I have to start over?
<12> you have mysqli installed correct?
<3> I forgot "--with-mysqli" when I ./configure 'd
<1> Simplex3: maybe phpize will do the job and create a *.so
<12> you should be able to open php.ini and add the extension
<5> !+modules
<9> Given a copy of the php source in ./php: cd php && cp -a ext/mymodule /tmp && cd /tmp/mymodule && phpize && ./configure --help You're on your own from there.
<12> then locate the mysqli settings lower in the ini file and set them
<1> Ok php-bot has me beaten there
<15> any glaring errors in this line: usort($this->stations, "$this->tail_sort");
<15> Warning: usort() [function.usort]: Invalid comparison function, is the error I get
<5> datasieve: Don't use the function, that you have it in cl***...
<15> :(
<16> datasieve: array($this,"tail_sort") might work, though I'm not sure ;-)
<17> or ... feed it a proper callback
<17> If you are using php4, array(&$this, "tail_sort")
<16> arh. &$this ;-)
<18> Hiho: Problem installing postgresql support for PHP. Freebsd (4.8). There are 2 pg's on the machine and it keeps picking the 7.3 version instead of the 8.1 I want it to pick.
<19> Diffrent ports, or the same?
<18> Well, I'm not using ports. (Can't figure out how you change the ./configure settings in a port.)
<18> So it's from source (PHP) that is.
<20> hi
<20> how well does php and sqlite work compared to mysql and php ?
<18> At least the pg 8.1 is from source as well.
<21> gn8 :)
<19> Appears there are 0 channels on freenode.
<5> freeone3000: /list says otherwise
<22> you don't get a list if the server load is high - check your server status messages
<19> Oh, thanks...
<0> hello
<0> is there a way to p*** variables via POST to a new page witout using forms?
<23> sal: curl
<0> _StarScream: whats that?
<23> sal: curl functions in php
<23> set of functions
<23> for doing stuff like that
<4> sal, http://php.net/curl
<0> thanks
<0> is it one of those modules activated by default?
<23> which distro you running ?
<23> you can type php -m
<23> and it should tell you
<23> or php_info()
<0> ok, thansk again
<24> hi
<24> anyone online ?
<23> well everyone in the list
<24> i want to know, in you opinnion, wich is the best open source CMS ?
<25> e107


Name:

Comments:

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






Return to #php
or
Go to some related logs:

contraposotive
ati 3d rage iic ubuntu
#centos
ubuntu will not boot
et-linux-2.60.x86.run.zip
vesa to vga
#ubuntu
#centos
#linux
xsasl_dovecot_handle_reply: auth reply



Home  |  disclaimer  |  contact  |  submit quotes