@# 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 34 35 36



Comments:

<0> Drakas: what i need is runkit_import
<1> xored: it's in pecl http://pecl.php.net/
<1> if you have PEAR, you can install through pear
<0> how ? *duck* ( i have pear )
<2> thanks guys, the problem was s/ROOLBACK/ROLLBACK/g
<1> xored: i forgot how to do it exactly, but you gotta do something like "pear install ..."
<1> xored: go to pecl and look fort the package. it should say somewhere in the descriptiobn
<1> here, pear install pecl/packagename
<0> Drakas: ok.
<0> thank you a lot
<1> enjoy :P
<3> Drakas: what version of php are you using ?
<4> Anyone From http://pastebin.com/750863 to http://pastebin.com/750971 <---- I had set the SESSION 'db_is_logged_in' but it wont trigger the if
<1> Rubberneck: The thing works now; 5.1.4
<4> session won't trigger
<3> Drakas: what did you do to fix it ?



<1> Rubberneck: few fixes, you want me to paste ?
<3> Drakas: nah just wondering
<1> the clas sis just fun :]
<4> Rubberneck: http://pastebin.com/750971 <--- $SESSION['db_is_logged_in' is not working
<5> mynullvoid, have you tried something as simple as echoing out the session var
<4> Rubberneck: the if won't catch
<6> what else do I need to do in order to enable mysql support for php? so far, I uncommented the line extension=php_mysql.dll, edited extension_dir to be "./ext/" and restarted apache
<3> mynullvoid: you have $SESSION and not $_SESSION
<4> I am stupid
<3> mynullvoid: it happens
<7> hello all, I use curl and wanna know where is server-certs is stored and how it can be stored for future verifying, using curl?
<4> Rubberneck: thank you very much man
<3> mynullvoid: np
<3> i am going to bed night guys/gals
<0> ERROR: `phpize' failed
<0> Drakas that what happende, when he tryied to compile/install runkit
<1> hm..
<1> in your shell, type phpize
<6> what else do I need to do in order to enable mysql support for php? so far, I uncommented the line extension=php_mysql.dll, edited extension_dir to be "./ext/" and restarted apache
<1> xored: you should really ask in #pear about this
<0> Drakas: no command found do i need to isntall that ? what shoudl that be ?
<8> anyone here used UTF8_encode?
<1> xored: I am unsure, or I can't recall how to install phpize :/
<1> vanderkerkoff: if you want utf8, then don't use that funciton ;]
<8> hi drakas
<8> mate, pulling hair out here
<8> xml doc with ascii characters not working
<9> hi
<8> obvioudly
<8> need mechanism to remove ascii characters from xml file
<1> vanderkerkoff: you're trying to do... what?
<8> some monkeys have pasted a load of msword characters into my database
<8> so, when I try to create xml output it falls down as it's not properly utf-8 encoded
<1> vanderkerkoff: mb_internal_encoding("UTF-8"); mb_http_output("UTF-8");$string = mb_convert_encoding($string."UTF-8","ISO-WHATEVER");
<8> ooh, that looks like the stuff
<1> replace $string."UTF-8" with $string,"UTF-8", sorry
<8> mb_internal_encoding("UTF-8"); mb_http_output("UTF-8");$string = mb_convert_encoding($string,"UTF-8","ISO-WHATEVER");
<8> like that?
<6> hello? am I read?
<0> Drakas: phpize is in the dev package of php
<8> drakas, I"m not sure what to do with that code
<1> well, $string should be the ascii data that you don't like and then you save it to your database... if utf-8 is enabled
<1> hm, i am actually unsure; What [type of] database are you talking about?
<8> mysql
<1> ok, so they put some characters in your mysql database. you can delete them using phpmyadmin
<8> now were talking
<1> ?
<8> I didnt know that
<1> really? ;0
<8> do you mean browse the database and remove them?
<1> yes..
<8> or run some script in phpmyadmin
<8> no
<8> it's m***iv
<1> aah :/
<0> any simple PHP function to check, wheater a specific PHP extension is installed ?
<1> xored: phpinfo();
<0> Drakas: heh, no runtim
<1> xored: if phpize failed then you don't have the extension
<0> :)



<1> xored: you can always check with if(function_exists("whateverfunction"));
<0> Drakas: nono, i have isntalled in. I mean runtime ( i want only sue runkit, if its installed)
<1> ..or extension_loaded(0
<0> Drakas: oh, damit. iam stupid. sorry
<1> ;0
<10> "if phpize failed" <-- wha?
<11> Wolfpaws, you wont bite today=
<11> ?
<1> Wolfpaws: xored doesn't have phpize in order to compile the runkit package from pecl using pear installator
<10> Drakas: your wording is... funky
<1> :P
<1> installer
<10> biberao: Depends on stupidity level.
<8> drakas, how about this for an idea
<8> in the mysql database all the special characters that are causing me propblems starts with &#
<11> Wolfpaws, i was joking and you start offending me?
<1> what idea?
<10> biberao: But I wasn't joking
<1> biberao: that was a joke i guess
<8> so, mysqwldump the database
<1> :0
<8> run a grep command to strip out anything htat starts with &#
<8> import the sql back ion?
<8> hows that?
<8> think it'll work?
<10> TIAS.
<0> vanderkerkoff: one sec, i think i had the same issue
<1> vanderkerkoff: if the records were entred at almost same time, and they have primary keys, you can always do delete from table where id > 50 and id < 60;
<11> Wolfpaws, whatever
<11> want a cookie?
<1> vanderkerkoff: but always back up the data..
<8> i hear you
<8> oh I hear you
<0> vanderkerkoff: you are importing a dump, created with PHPMYADMIN, through the console, cause its too large for importing into phpmyadmion, right ?
<1> so you take the highest and the lowest ID.
<8> no
<1> xored: no
<1> :)
<0> sorry, than i missed somethign :)
<0> whats the problem then ?
<8> drakas, theyr'e all over the database though
<8> ascii characters pasted from word stopping xml output
<8> rss output
<8> that sort of think
<8> thing
<1> well..
<1> vanderkerkoff: one thing to consider is that you have to htmlspecialchars() twice when outputting rss
<1> :]
<0> vanderkerkoff: what about iouf exporting and importing with a specific character type ?
<1> or ..once
<1> :)
<1> depending on what you're doing
<8> drakas, I'm not even getting to the point of displaying it as the xml file is not properly UTF-8 formatted, so will not import
<1> :s
<0> mysql --character-sets-dir=utf8 --default-character-set=utf8 < dump.sql
<0> would that convert all that stuff ?
<1> what is up... i'm actually confused now
<1> xored: i think you're getting something wroooong...
<0> heh
<8> hang on
<0> ok, iam getting outa this :)
<1> vanderkerkoff: if you have &#1234; for example, then there's nothing bad
<1> all you'll need to do is to add htmlspecialcahrs() when outputting
<8> are you sure
<8> that is ascii isnt it
<1> ..when outputting the XML
<8> and not utf-8
<1> it is ascii
<1> you don't actually need to have utf-8 to show chinese characters.. i think
<1> ;]
<8> drakas, this line will fail
<1> though i am unsure :/
<8> $library = simplexml_load_file('/Library/WebServer/glamlife/***ets/eventsout.xml');
<1> htmlspecialchars(); , a typo


Name:

Comments:

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






Return to #php
or
Go to some related logs:

gaim not authorised
DecodeACRunLevel
#php
vga=0x31E
#python
#math
joystick ubuntu
#bash
TextCtrl boxsizer multiline fill
installing libreadline4 on ubuntu



Home  |  disclaimer  |  contact  |  submit quotes