@# 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> does anyone have a magic way of stripping ALL of the MSWord garbage out of pasted in text? I have a series of steps I take to try to make my text clean but there always seems to be something new that pops in and hoses XML down the road. Any thoughts?
<1> boro_O funny
<0> I would be happy stripping all text down to 7-bit ASCII
<2> what is the best way to loop through each line in a string?
<3> Make it an array?
<2> is there a function to split by '\n'?
<3> No, but there's a function to split by any character.
<3> http://php.net/explode
<2> ah yes explode, then I have a loop to join em back up?
<3> Or you could use http://php.net/implode
<3> Also aliased by join()
<1> kso
<2> explode/implode combo seems by best bet, thanks
<4> and you may want "\n" instead of '\n'
<5> ive got an old nokia here (step up from the 3310, black and white) anyone know how i can find the model number ?



<6> hello all
<6> I have probably the most idiotic newbie question there is
<7> ozzy: Congrats.
<8> !tell Xsploit about fgi
<6> but when connecting to mysql from web based php code, should I maintain one connection open or should i keep opening a new connection everytime I need to query some data?
<7> ozzy: Keep one connection open
<6> kjaer: thanks, that's kinda what I was thinkingbut wanted to check
<9> errr... has anyone performed HTTP authentication against IIS via php?
<9> i did it with CURL, but the authenticated session doesn't follow the user into the site...
<9> so (1) user enters login/p***... (2) i use curl to authenticate... (3) i setcookie() and forward response to site... (4) but user gets the HTTP authentication dialog box!
<9> arg :\
<9> ;)
<10> fumanchi, back here
<11> why would you use a heredoc instead of just ***igning the value with = and .=?
<4> when i see code with 50 $foo .= ' '; i delete it immediatly :)
<12> nater- because you don't have to escape quotation marks in heredoc
<4> heredoc has advantages, like not worrying about ' and "
<13> philip: whats teh point of that..?
<4> i was referring to the questiona bove
<14> php, even run standalone, on debian linux, is giving me a PHP Warning: mime_magic: type regex [stuff] invalid in Unknown on line 0 (see http://pastebin.com/625818 ) Google isn't helping so far, any thoughts?
<4> Shroom: php --version for example does this too?
<14> wow.. yes. o.o
<15> Afternoon everyone.
<16> good night :)
<15> Stupid planet, with the sunside, darkside .. grrr. *heh*
<16> :p
<15> So, someone was asking on Friday about the broken XML extension for PHP 5.
<15> Anyone remember who it was? I think I found/fixed the bug.
<17> If i wanted to store say, three names in a database field, what would be the best way to do it? Some sort of hashing function? or would i just use something like john smith; paul johnson; david jones ?
<3> ph8: If you have any reason to access the names separately, you want them in different fields.
<12> You'd have a separate table of names
<18> Don't Do It, but if you have to, a serialized array works
<17> what if the number of names is variable?
<3> Then you make a table for them.
<17> ah
<17> cunning
<3> Normalization.
<17> you mean Normalisation.
<17> :)
<8> He ment cookies, but that's close enough.
<14> So does anyone have an idea of where to go from here? (see http://pastebin.com/625818 does this for --version too)
<4> so it works when disabling mime magic extension?
<19> Jews Did WTC!!! http://www.jewsdidwtc.com
<19> SUKI: New WORLD RELIGON http://www.sukireligion.org/
<19> Jews Did WTC!!! http://www.jewsdidwtc.com
<19> SUKI: New WORLD RELIGON http://www.sukireligion.org/
<20> big spam night tonight
<8> ****. wrong nick :(
<21> Shroom: http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/4317bda4c8d4ac32/ab0f186dba8864f4%23ab0f186dba8864f4 seems interesting
<22> TML: ^^^^^^^^^^^^^^^^^^
<14> philip Well, it is just a warning, is mime_magic in php.ini? Would packages that depend on it like drupal be at risk of breaking if it turn it off?
<21> In any case, disabling the mime_magick extension in php.ini would be a good diagnostic step.
<23> when uploading a file in a form, $_FILE[img][tmp_name] => /tmp/phpu8pNOL but /tmp is empty. What could be the prob?
<4> drupal should not use that deprecated extension
<14> uh... mime_magic isn't found in the ini.
<13> Jymmm: i thought tor was already well-banned?
<4> xahlee: it gets deleted, move it in your script before that happens



<14> maybe a different ini? Can I find out somehow which config file it is using?
<8> php -i
<24> You ever find yourself wishing that if someone was going to spam you that they'd at least have the courtesy to have something worth viewing at their site besides a holding page or a 404 Error?
<22> itrebal it was, got removed
<4> Shroom: httpd.conf
<13> Jymmm: by who?
<21> Shroom: Did you check out the google groups posting?
<23> philip: i have the move statement right there but is not in the dest dir neither...
<8> itrebal: Cleanup lady
<13> Stormchaser: gotchay
<25> wazzaaap
<4> xahlee: move func returned what?
<4> anything in [error]?
<13> good to know that "jews did WTC"
<23> philip: philip didn't put a check in move fuc... will do now
<21> Ahroun: Both were non-404 for me. The WTC one is by the GNAA, which is a well known Slashdot trolling gag group.
<24> Tres: I got the suki one. It suk-ied alright. *snicker*
<13> "Word of caution: In it's deepest roots jewsdidwtc.com is not a hate site... it is a theorem based off many postulates and axioms. We do not wish to promote or condone violence or hate, but spread what believe is truth." directly off the jewsdidwtc.com
<26> funny ****: jewsdidwtc.com
<26> did you see the "loose change" documentary
<26> download it from googlevideo
<14> Can I disable mime_magic in the ini? I have a precompiled debian package, so I can't use the compiler flags. Google isn't helping
<22> adggg enough, please.
<27> I keep getting a PDO/mysql error saying that "Table 'marco.syndicated_accounts' doesn't exist" even though It does and the table name has been backquoted in the code.. What might be causing this?
<28> itrebal: By me.
<13> TML: ok
<4> Shroom: look in php.ini for included .so files
<14> philip: only mysql.so and imap.so
<4> i don't believe debian would enable mime_magic by default, something is strange here
<29> hello
<29> does anyone knows a free program to make program diagrams ?
<14> I agree. It started showing up in my logs about a day ago, after a package update. But.. Its a little over my head at this point.
<30> how do you lengthen the time a session is kept?
<13> Toerkeium: create_program_diagram(file)
<28> philip: mime_magic is on by default
<30> Toerkeium: uml pad is a nice simple one --> http://web.tiscali.it/ggbhome/umlpad/umlpad.htm
<29> thanks guys
<31> hi
<4> debian enables a depreciated extension by default? that's unfortunate
<31> is there any way to get all atributes' names from an object?
<14> It doesn't seem to hurt anything, it's just that the warnings are cloging logs and cron emails. :/
<28> philip: I don't believe it's deprecated in the version of PHP shipped with stable. :)
<4> heh
<14> (testing in my case, but probably similar)
<4> Shroom: does it find your mime file?
<28> Shroom: Last I checked, the build packages haven't been changed from stable yet
<14> Uh.. I would ***ume it would chuck another error if not?
<8> a_me: Um... var_dump()
<23> philip: apparently is_uplooaded_file is true but move_uploaded_file returned false. What should i check for errors?
<31> I need them in an array or something
<4> Shroom: php.net/mime-magic for info on mime file location setup, but perhaps you are right... the error is strange though so i'd think this could be it
<4> xahlee: check php.net/features.file-upload for an example use, and info
<4> xahlee: be sure to use full paths everywhere
<23> philip: my code is pretty much based on that... yeah full path
<14> Hrmm.. It could be something upgraded a mime file it wasn't supposed to? Can I get a mime file to rub its face in? :P
<4> xahlee: so [error] is what?
<23> 0
<4> permissions of new dir are okay?
<23> philip: could there be some server setting thing at all?
<4> it could be anything :)
<32> hey
<4> file upload questions are almost as bad as installation questions, and worse then session questions
<33> Morning
<32> I am running php on my home server (win32) and I want to limit php's file access to the htdocs folder only.. same with its exec() shell() and whatever other functions that can be used to run files or access files outside of its limits
<32> how can I do so?
<4> endra: consider open_basedir or something like that
<4> yep, that's the one :)
<34> endra: Enable safe mode, and fopen_basedir on that directory. Disable all functions which execute things.
<8> ew
<25> safe_mode already does that.
<34> OR, don't enable safe mode, just set fopen_basedir and disable all the execution functions
<34> Yes, btu safe mode ****s badly
<8> yes
<32> is there a certain list of all the execute functions?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#lisp
gentoo fam gam
ubuntu+nForce 410+ethernet
convert odb mdb
install mlocate
/etc/motd uname -a
aticonfig x200 suse
g ubuntu uninstall kde
DB_FETCHMODE_ASSOC pdo
#mysql



Home  |  disclaimer  |  contact  |  submit quotes