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



Comments:

<0> scott_: whats the mysql error being outputted?
<1> scott_: this isn't about php, it's it about your system have mysql libs in place so that php_mysql can find that, read the readme.
<2> Wow, inflation must be getting bad. I remember people used to say, "here's a quarter, buy yourself a clue..."
<3> atal error: Call to undefined function mysql_connect() in C:\www\db.php on line 36
<4> Ahroun: I gotta make money somehow
<5> that with $_POST["next_$i"]; doestn work
<0> scott_: is the directory "c:/program files/php5/ext/" is there a file called php_mysql.dll ?
<0> in*
<3> cyberdummytom: yeah
<1> hyksos_: echo "next_$i";
<1> hyksos_: and print_r($_POST);, make sure you have one
<3> cyberdummytom: so for some reason that file isn't getting loaded...phpinfo() doesn't mention mysql at all
<0> scott_: are you editing the correct php.ini file as the outputted in phpinfo() ?
<6> scott_: is php5/ext in the path?
<6> maybe you have to move that .dll in php5/
<1> scott_: php_mysql.dll is just a wrapper for libmysql, you mUST copy the libmysql files into your windows/system32/



<1> crist people, read the damned readme!
<6> I have no php_mysql.dll in system32 :-)
<1> you arne't listing
<1> libmysql goes in system
<7> no
<1> or add the php dir to your path
<8> hello
<3> ||cw: install.txt doesn't say anything about copying it to system32
<9> it's ok to put the require before a cl*** declaration right?
<3> I have php5/ext in path and it still doesn't work
<7> ||cw: Why the PHP dir? scott_: Just fix the paths to have the libmysql.dll in it
<6> scott_: have you restarted apache?
<7> lra_: You can also put it in the constructor
<1> read the "Installation of extensions on Windows" section
<10> Stormchaser - i've tried both, but i still can't access the vars for some reason
<7> what vars?
<3> maver, yep
<11> does anyone know what is the best captcha ? (undefeated), i want to use it for my project ^^
<1> scott_: specificaly, the part that says "* Some of the extensions need extra DLLs to work...
<10> the vars inside the required file
<7> lra_: Declaring a variable outside of the scope doesn't make it global.
<10> well, even if it's inside the constructor, i still can't :(
<7> lra_: Then you're doing something HORRIBLY wrong
<6> ||cw: "The default location PHP searches for extensions is ... C:\php5 in PHP 5"
<1> maver: and keep reading...
<10> yeah - maybe :(
<3> ||cw: libmysql.dll is in php5\
<1> scott_: and php5 is in your path?
<3> yeah
<10> this is my constructor storm: http://pastebin.com/632963
<7> lra_: And what is in included file?
<10> just a few vars defined
<7> lra_: pastebin that tooo
<12> Does PHP have an equivalent to warn(), something less severe than die()?
<10> i know the included file is fine because i can include it in main file and access vars that way
<7> no
<7> Beryllium: You can trigger your own errors, tho
<12> Stormchaser: output to stderr and everything?
<7> lra_: Pastebin. NOW.
<7> Beryllium: You didn't specify on what level. Is it for CLI?
<10> atm, one line: $background_colour_comp = array('r' => 0xff, 'g' => 0xff, 'b' => 0xff);
<13> Hello, i tried to remove newlines from a string, altho this: $FILE= eregi_replace("\n", "", $FILE); isn't working as i expected...
<12> yes, cli
<7> lra_: I don't see that you're using that var anywhere.
<12> the stderr thing isn't a firm requirement, it would just be neat to know
<7> Beryllium: php.net/features.command-line. I remember spotting it somewhere aroun there.
<7> RvGaTe: Why the heck are you using eregi? Any good reason?
<10> storm - because it's in another method
<7> lra_: Now we're getting somewhere. Pastebin the code.
<13> Stormchaser: i have more things to check, and using regexp for those, just copied that for a new replacement... but that should work anyhow..
<10> this is the method: http://pastebin.com/632977
<7> !+regexp
<14> regEX There's no P. See the POSIX documentation. Adding a p is a common spelling mistake.
<13> Stormchaser: you trying to help me, or complain about my english/programming grammer? :)
<10> RvGaTe - just use str_replace?
<6> common spelling mistakes are the only thing that makes a language alive :)
<10> maver - keeps :)
<10> keeps a language alive ;)
<13> nvm, ill figure it out guys
<13> somehow
<6> oh, ok :)



<10> uhm, rvgate - i've answered your q
<6> isn't __autoload() needed anymore in PHP5?
<7> RvGaTe: you're not thinking rationally -- Why the heck do you want to use a function, that is 10 times slower than string parsing functions?
<6> uhm, no: it's needed
<13> becouse i need to use patterns
<7> maver: Er... __autoload() IS php5
<15> maver, 'needed' is a strong word
<7> RvGaTe: Where did you mentioned that you need patterns?
<12> hey, quick question ... if I do $x = intval(str_replace('xserver','',"xserver02"));, will $x contain the integer "2"?
<13> Stormchaser: besides, i dont care about the speed, the string is 3000 lines long, and only needs to be executed onze
<6> ds-: strong?
<10> Stormchaser - i can't even do this: http://pastebin.com/632994
<7> Beryllium: TRY it.
<6> ds-: oh, ok I have understood
<15> :)
<13> Stormchaser: patterns becouse i use 1 large array for replacement... and using patterns in some... thats why im using eregi
<15> Beryllium, yes http://us2.php.net/intval look at the first example....in particular the '042' one
<13> Stormchaser: so i need to remove the \n so that the 3000 lined string gets back to 1, so that i can do some more replacement and couunting more easily
<16> Is there a way to force an email with php mail functions to plain text or do you need to manually regex out all the html?
<10> let me guess - cl***es can't access outside vars
<17> are there any common exploits ***ociated with mysql taggers? i just made a really crude one :P
<10> RvGaTe - str_replace
<7> RvGaTe: <13> Hello, i tried to remove newlines from a string, altho this: $FILE= eregi_replace("\n", "", $FILE); isn't working as i expected... <-- you failed to say that.
<7> hi, FlamingCows
<17> could someone check it out for me?
<18> Hi Stormchaser.
<13> Stormchaser: well, now you know...
<7> dirty: Ask in #mysql?
<13> lra_: read previous messages, so you know why i cant use that
<10> uhm, that's not an aswer RvGaTe
<10> oh, i have read it, and that still doesn't mean you can't use it
<7> RvGaTe: $string = preg_replace('#$#', '', $whateverstringyouwanthere);
<13> ok, let me state the question different then
<13> Stormchaser: lemme give it a try
<7> lra_: Um... Do you even execute that constructor?
<17> Stormchaser: cool thanks
<19> any idea why the cursor doesn't stay in the textfield box in firefox ?
<13> ehmm.. Stormchaser... didn't work...
<19> when i click the textfield it jumps
<19> in other words it loses focus
<10> Stormchaser - of course
<7> BigSinep: Is this an #html or something? We don't deal with stuff like that here.
<13> let me state my question different
<10> i get the var come out, with no value next to it
<13> Is it possible to trim a 3000 lined string, back to 1 lined string by replacing the \n, using eregi_replace? if so, how?
<10> why use eregi_replace though?
<13> becouse there is no other option
<13> at least not for this script
<10> ok
<7> I just show it to you.
<13> i told you it didn't work...
<7> LEt's see...
<1> RvGaTe: what's wrong with str_replace ?
<13> ||cw: nothing wrong with it, just cant use it in this script
<10> [18:04] <13> becouse there is no other option
<10> it's the "don't use str_replace in this script" challenge
<1> i see
<10> haven't you heard of it cw ;)
<1> then preg_replace? ereg is kind of crappy no?
<1> and IIRC will be dropped in php6
<1> or at least moved off to pecl
<20> What is a sensible way to store configuration constants (like an enum, e.g. that go into a DB) and be able to easily retrieve the value of a key -or- visa-versa? Preferably in an OO manner.
<21> is htmlspecialchar enough to ensure that users don't insert malicious code ?
<1> hackel: depends on what granularity of access you need, comon ways are to make a table like (key, value) or to serialize() your config array and store that in field
<1> or even a combination
<7> VisezTrance: no, use <your>sql_escape_string (or for mysql) use mysql_real_escape_string.
<22> hey
<22> don't advertise
<22> i'm here for an advertisement free experience
<7> !+g14
<14> Guideline 14) never argue with the guidelines or an Op [See Also: Patriot Act]
<1> some thing like SET key='email', value='".sericalize($email)."'... wher $email is an array that hold smtp host/port, imap/pop3 server, etc


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#freedesktop
Nostur
w32codecs suse 10.2 x86_64
#gentoo
apt-get ivtv repository dapper
skinfusionz
#fluxbox
gentoo m5461
tune2fs remove ext_attr
J_Rey



Home  |  disclaimer  |  contact  |  submit quotes