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



Comments:

<0> Within the $desc variable
<0> The reason why I am doing it , it is because not All the $desc should be htmlspecialchared... I enter Html within the form...
<1> For the foreach loop: foreach ($array as $key => $val) { ... } where $array is a two dimensional array, the first dimension being defined numerically, how would I change the order of the output of the val?
<1> (The lowest dimension being 0.)
<2> Is it not possible to let a cl*** inherit more than one other cl***?
<1> Because in a foreach () loop, things are done in the order they show up in the array...
<1> Any way to otherwise manipulate it?
<3> Capso: is $array an actual hash/***ociative array or is it really just an indexed array?
<0> dvj, sure you can say cl*** A implements C, D ...
<1> JAJMaster: The first dimension is indexed, the second is ***ociative.
<2> m0, I wish to use A extends C, D
<0> you acannot extend more than one cl***
<2> Oh, ok. That's too bad :)
<3> Capso: So, you might have a $array[0]["monkey"] and a $array[3]["cat"]?
<1> JAJMaster: Yes.
<3> Capso: and you want to sort by "monkey" and "cat" or by the scalars (or whatever) they point to?



<1> JAJMaster: Actually, I just wanted to be able to reverse the array formation... and I figured out I can use array_reverse().
<3> Capso: heh, was going there. You might also be able to use array_walk for something...depending on how complex you want to get
<1> JAJMaster: Ah, alright. Thanks.
<4> anyone use prado
<3> my wife likes prada (note the a), but I really don't think that's what you are after
<5> how can i get the mime type of a file?
<3> Jezek: of an uploaded file (post, multi-part data), or of a file on the HD?
<6> Playing\\ simon and garfunkel - greatest hits - 10 - mrs. robinson\\
<6> Playing\\ Simple Plan - 02 - Welcome To My Life\\
<6> Playing\\ slinkee minx - Summer Rain (2004 Dance Remix)\\
<6> Playing\\ Sonia Dada - You Don't Treat Me No Good\\
<7> dimitri: turn it off
<8> Jezek: http://au.php.net/manual/en/function.readfile.php#52722
<9> http://pastebin.com/714696 :: any ideas on why the StrRotate doesn't work on the first call but does fine on the second?
<10> dimitri: ROFL simple plan hahaha EMO
<3> ansimation: question #1, why are you setting $i to a string value of '1' and then immediately using it as an integer loop counter?
<9> im not. i forgot to delete it before i posted.
<3> ansimation: okies ;)
<3> ansimation: it seems to me like the code is working as it should. Do you realize that your loop is ending with $l having a space as the last character. When that gets "rotated" and printed in HTML, you don't see the space.
<9> i just trimmed it
<3> ansimation: working as expected now?
<0> .
<9> yea
<9> tyty
<9> that space was what was doing it.
<3> ansimation: np :)
<3> ansimation: a good trick to use for catching those is surrounding your debug echos with a "*" or something
<3> just so it's easier to notice whitespace
<9> yea
<9> im trying to convert some actionscript to php
<11> with php how do i select an existing postgres schema
<12> for some reason my variables arn't being p***ed to the script
<12> ie, index.php?blah=blah when i try to simple print "blah" it shows no value.
<3> deaden: can you shove something into pastebin?
<12> yeah, but im thinking its the webserver not php
<9> $_GET? $_POST? $_REQUEST?
<11> normally a p***ed variable will work as just $blah
<12> right
<3> uhh, only if you have register_globals set to true...which is REALLY bad juju
<11> jaj do you know how to select a scheme with postgres?
<12> http://pastebin.com/714725
<11> ive been stumped
<11> If you want query existing schemas, try the following query:
<11> xxxxx=> select * from pg_namespace ;
<13> it's taken a few hours but the ftp chmod solution seems to be working
<12> JAJMaster: so how would i p*** variables then?
<11> that what i pasted doesn't say anything
<11> is pg_namespace a schema?
<11> :(
<3> deaden: one should normally access then with $_GET, $_POST, $_REQUEST, $_SESSION, etc.
<12> k, ill need to read up on that.
<3> ph: I'm unfamiliar with postgres
<3> deaden: in the code you posted, I ***ume $pageid is something that is p***ed in like http://url/script.php?pageid=383838
<3> deaden: go here for a talk on why register_globals is bad: http://shell-shocked.org/article.php?id=83
<12> right
<12> ok, thank you
<12> it seems to be off by default anyways.
<3> yeah, in modern builds it should be
<3> deaden: you would then easily access your variable using $pageid = $_REQUEST['pageid'];
<14> Hello ! I got a "Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: db_create" when trying to start httpd .. Someone got a clue ? Thanks .. (Running Centos 4.2
<12> i could see how it would be a security risk.



<12> would = could
<15> Adylas: how did you instal php and your webserver?
<14> zircu, It was a working machine... httpd and php is installed ..
<3> adylas: could be a lot of things. Might be a problem with shared library problems between what Apache was compiled with vs. what php was compiled with.
<14> JAJMaster, Its Centos 4.2 so we do not compile anything .. (RHEL 4.2)
<6> Playing\\ Steps - Tragedy\\
<13> but you're unable to actually run php right?
<14> Spoom, I m unable to start apache
<3> adylas: could be a problem with the version of libdb you have installed verses the one that the packages you have installed were compiled against.
<9> 48 - 70 + 1 % 10 : what does the % mean in that?
<13> mod
<15> Adylas: so what did you do to break it?
<13> modulus, it's an operation
<14> libdbi-0.6.5-10.RHEL4.1 ?
<15> Adylas: you still didn't explain how you installed php or the webserver
<14> zircu, Good question , I just started apache .. Its a "managed by more then one person" server ... (Thats bad I know)
<13> it's shared
<13> ?
<13> as in it's not your box?
<15> Adylas: oh, that complicates things
<14> zircu, Hee yum install httpd php [enter]
<14> dam I got it ..
<14> Look
<14> [root@poseidon new]# ldd /etc/httpd/modules/libphp4.so | grep db
<14> libdb-4.2.so => /opt/n1ge6/lib/lx24-amd64/libdb-4.2.so (0x0000002a95ed9000)
<14> wrong libdb
<3> interesting...would have thought it would have been caught by the dependancy checker
<14> How I can say to my ld to take the right lib ?
<15> Adylas: well, i would first find out why it has changed
<15> Adylas: changing the lib manually can cause more problems
<14> zircu, I seen that probleme before ..
<3> you "might" be able to play with the order of things in your /etc/ld.so.conf ... but that's hokey and may only work if you have the correct version somewhere (and zircu has an excellent point)
<14> What decide order (I know that lib IS wrong for my system .. Only n1ge6 is using it ..
<15> Adylas: and how did you get into this situation? you can fix it now but later.. wala your back in the same situation
<14> Yeah , you got a point ..
<12> JAJMaster: cool i got it working using the $_GET method...thanks again
<3> daaden: anytime
<15> it sounds like some tool that was installed added a new version of libdb and ldd is using that first
<15> i would take a look at last added packages first and check the dependencies it added/needed
<14> Heh .. Can I exclude that directory .. somehow .. I dont want it in all times .. its just garbage ..
<14> Hmm why my ldconfig is right now but the .so still point to the old lib ?
<16> hi, wich is the best forum (or wich are the best forums) available for php? (i want something 100% done, that is quite easy to install/manage but with lot's of power/features, etc...)
<17> anyone here familiar with parsing xml files? what is the best way to parse xml with php?
<8> texasnewbie: if your using php5, you can use simple_xml
<17> maskd, thanks for the response. have u used simplexml before? what is your opinion of it?
<8> ive never used it before, but if you look at the php.net entry it looks pretty easy to use: http://php.net/simple_xm
<8> http://php.net/simple_xml
<3> even the pre simple_xml stuff isn't rocket science...just tedious
<17> thanks for the suggestion. i've tried dom and expat xml methods with limited success. it's kind of aggrivating
<8> yeah but simple_xml is as the name suggests; simple :)
<3> yeah, I wrote a parser for the XML output from mame's listxml with expat...definitely tedious
<17> JAJ, you're correct. thanks for using the better term for my problem. it isn't hard, but VERY TEDIOUS
<16> any suggestion for using any forum?
<17> maskd, that only works with php5. are you hosted somewhere remotely with php5? would you recommend a certain isp that offers php5? i'm with jumpline and they still run 4.x with friggin mysql 3.x
<3> pegazus: there is lots of material from a google search on the topic...but I've found phpBB works well and is easy to maintain
<15> Pegazus: fudforum
<18> Spoom: back:)
<17> i will second the phpbb recommendation. very easy to setup, use, and maintain. several nice video tutorials on the site that hold your hand through installation
<15> well, go ahead and use phpbb if you want security issues
<8> texasnewbie: nah i make all my stuff locally, never had a remote server
<3> I'm currently running 5 phpBB forums for different sites...no work for me as the admin except to upgrade them occasionally...and that's easy
<18> zircu: looks like it all worked out - now i'm just trying to manipulate the array Spoom gave me so its dynamic - calls the array from the db.
<19> rofl
<19> "life stories of those who use phpbb!"
<20> kuja: hey kuja
<19> "phpbb ****s my cock! phpbb lets me **** its cock!"
<19> "win win situation!"
<17> maskd. thanks. just thought i'd ask.
<20> kuja: eww :P
<3> zircu: just run them in safe mode, tell them to back up their crap, and let god sort them out
<19> Yeah, until it ****s on you :)
<19> Hi tsume


Name:

Comments:

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






Return to #php
or
Go to some related logs:

infobot.config nickServ_pass
christor combos
k31th debian
cipherfunk w32codecs amd64
gnome network servers codepage
unable to find libgd.a
#linux
#gentoo
#linux
#perl



Home  |  disclaimer  |  contact  |  submit quotes