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



Comments:

<0> stormchaser: i know about the little mistake of putting usame instead of uname. ihave since changed it on the server
<0> shadow_mil: yes cause thats the only way my host will let me access the database
<1> How do i execute a php script on another server and display the output without messing up the relative links?
<2> dj_segfault: toString is not done in concatenation
<3> TML:Huh?? Ok, that seems a little silly, but I'll try putting just the $e in a print() Thanks.
<2> dj_segfault: It is worth noting that the __toString method will only be called when it is directly combined with echo() or print().
<2> Direct from the documentation on __toString
<0> tml: ok i have found out it is a problem with the md5 encoding. but i dont understand how that can happen?
<1> Any ideas anyone?
<4> can someone point me to the place in the manual where it talks about Perl and PHP p***ing variables to each other... I can't remember how it is done/
<5> lig: Use perl module from PECL
<6> biggahed hi!
<1> Are there any alternatives to include/include_once/require ?
<5> like?
<4> Stormchaser: isn't there a place that perl and PHP can "place" vars and so each can read them?
<2> walterwoj: require_once



<2> lig: No
<7> IllegalC0de: will let you run mySQL querys
<8> sorry, What is "pear" ?
<8> the command is for ?
<5> pear.php.net
<5> lig: There is a perl module in PECL for that... I have heard some questionable stability issues on that...
<5> okay. Nap time
<9> snow_ru, check out http://pear.php.net
<0> shadow_mil:what do you mean?
<1> TML: I am trying to execute a script on one of my servers from another server and i want the output to be displayed but i don't want the relative linking to be messed up as it does with include/require.
<10> could anyone help me with this extension for domdocument? I think the whole approach is wrong http://phpfi.com/101747
<9> walterwoj, use full path linking or if avaliable via web full domain linking
<1> I was afraid you'd say that....
<3> TML: The Exception docs say "The __toString() method can be overriden to provide a custom output when the object is presented as a string." That's not the same as "only works with print() and echo()." Is that mentioned on a different page?
<2> KyleMac: Elements::addElement() returns an instance of DOMElement
<2> ($newnode = $this->createElement($name, $content); .... return $newnode;)
<2> dj_segfault: As I said, it's on the page that documents the __toString method. php.net/language.oop5.magic
<10> yeah I figured that out since I pasted that a few hours ago, but I can't see a way to do what I want
<10> otherwise the whole thing is just recursive
<11> I'm looking for a user authentication script to go above gallery2/wordpress I'd like to have users signup and it email me for authentication, I'd also like to be able to track users logs such as when they login last etc... Where's a good place to look for scripts like these
<12> Hi, please does any one know afree web host that supports php??
<2> ADN2: php.net/links
<3> TML: I see now. Thanks.
<2> ComTech: You're unlikely to find such a thing. You'll almost certainly have to write your own.
<3> ComTech: What about http auth?
<10> TML, is what I want to do possible that way?
<2> KyleMac: Hard to say, I don't really understand what you want to do. It looks to me like you're trying to recreate the DOM from scratch, and doing it poorly, but that doesn't make sense.
<2> So I'm ***uming that I just can't tell what you're trying to do
<13> What's the proper way to format strip_tags() so it excludes <b>, <i>, and <u>?
<10> I want to build xml from data in the database that can either be output raw or transformed server side. I've already done it various other ways but I'm always looking for ways to make it neater
<14> ComTech
<14> mambo uses that kind of authentication script
<10> I used to just use a function to do createElement, setAttributes etc, but it gets messy transfering the parent and the like around
<13> What's the proper way to format strip_tags() so it excludes <b>, <i>, and <u>? Anyone?
<15> Whats the best photo gallery software (free)
<16> webdz9r: I use Gallery2
<17> In PHP 5.1.2, is the configuration command "--enable-zend-multibyte" a replacement for the old mbstring configuration command? phpinfo() shows mbstring present.
<15> thanks for the tip
<1> DJ_Necrogami: You told me to use full path linking if possible but full path linkng doesn't work with file functions ( like file_exists ). do you have any suggestions?
<9> uh
<9> across multiple servers?
<9> are they on the same LAN or distant?
<1> Distant
<9> uh
<9> what are you trying to make?
<9> do you have shell access on both serverS?
<1> I have shell access but not root access.
<9> SOL
<1> Is there aother alternative to include/require?
<9> no
<18> i'm backing up my server, what sort of things are recommended? (I'm complettly starting fresh: new distro) so far i've got /home/* /root/* /etc/ my apache conf. files, my svn/cvs repositories, and pgsql databases
<1> Ok Thanks anyway.
<19> Can someone translate this for me? "Benfica Natal Oceanario"
<19> I think it's portuguese but I'm not sure
<20> I know I can check isset on a cl***, but do I do the same thing to test existence of a key in that cl***?
<21> nforbes: It's Portuguese. Did you try Babelfish?
<19> It says "Native Benfica Oceanario"
<19> :\
<21> nforbes: What's the context?



<19> Someone has a zip file in their home directory titled that
<19> :\
<21> Sounds like a worm.
<19> It's like 41 megs
<19> 30, sorry
<22> hmm just a coding problem i'm having i'
<22> m trying to create a nested <ul> using a database that has id, parent id, text... any ideas on how to go about?
<21> nforbes: Unfortunately, I only speak Spanish - and not well at that.
<19> Hmm
<21> nforbes: Do an Amazon Mechanical Turk task ;)
<23> nforbes, benfica is the name of a Town, Oceanario is humm... (I got a blank in traslations) a place where you can go and see sea fish? Sortof like a seaworld joint
<19> Oh
<23> nforbes, does that help
<21> aquarium
<19> Possibly
<23> yeah... that's the word :)
<19> I think the best thing to do would be to download the file
<21> Zyclops: Where are you getting stuck?
<22> my first idea was to start of with all the parent_id 's that = null, and then keep itterating through the array
<22> Cwhiz: conceptually :)
<23> As it's portuguese portuguese... I'm not too sure about the Natal bit, but in brazilian portuguese it would mean that the fish in the aquarium are of native origins
<21> Zyclops: Output your <ul>. Then, query the database, and in your database result loop, write one <li> per row. Then add a </ul> at the end.
<22> my idea was, find id where parent_id = null, iterate through parent id for all other ones with that id and print out the li
<22> Cwhiz: i don't have a problem with that, it's more the nesting part
<21> "Natives at the Benfica Aquarium!"
<23> :)
<22> eg 1 null Folder, 2 1 fileinfolder, 3 1 fileinfolder2, 4 null folder2
<8> sorry, I use phpDocument web-interface to parse php files, but I can not find the output ?????
<19> [bugzEl_food]: Oh, so asking in #brasil wasn't the best idea, hrm? :\
<21> snow_ru: RTFM.
<24> nforbes, probably not, but they should get it though... I'm Brazilian
<24> there again... I'm probably one of the smarter ones :)
<21> Zyclops: You're trying to make a file picker?
<8> CWhiz, ???
<22> no just a nested tree for a photo tagging system
<8> CWhiz, you mean ?
<21> snow_ru: We don't support scripts here that you didn't write yourself. The phpDocument manual should tell you where the output files are.
<8> I use phpDoc webinterface to parse php . but at the end it says: ERROR: template directory "/usr/lib/php/data/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/" does not exist
<8> CWhiz, sorry
<24> Zyclops, to do a nested tree you'll probably want to look at a recursion algorithm
<21> Zyclops: Okay. You want to get all the rows with one query?
<21> Zyclops: Because the easiest way would be to do multiple queries, but that's probably not the most efficient way.
<19> humph. Well it seems like the zipfile is corrupted anyway.
<22> cwhiz: done that tag_array[$row['id']] = array($row['parent_id'], $row['tag_name']);
<21> Maybe it's not a ZIP file.
<22> Cwhiz: yeah i thought multiple queries would not be as good
<24> Zyclops, google around for php recursive. There are some pretty good examples, specially using arrays
<22> bugz: ok
<21> The recursion part is easy; the hard part is figuring out how to query the database most efficiently.
<24> Zyclops, you might want to add "tree array" to the query to narrow things down even a bit more
<24> I have something like that on a site somewhere... let me look for it... If I find it I'll give you the link
<24> or the code :)
<22> bugz: hmmm i don't understand that "tree array" bit, googling. Thanks guys
<24> Zyclops, search for "php recursive tree array"
<22> http://www.codecomments.com/archive228-2005-12-733593.html << funny
<21> Zyclops: How are you getting the rows into an array? Looping mysql_fetch_row() or one of the other built-in function?
<22> found an awsome tutorial on sitepoint
<22> thankyo
<22> looping mysql_fetch_row()
<22> I didn't know of a bult-in function?
<22> fetch_***oc() even
<21> That is a built-in function.
<25> lol insin
<21> But what you could do is order by parent_id (I believe you said that earlier), and create a nested array keyed by parent_id. That's probably not the most efficient solution either, but it's better than hitting the database over and over again.
<18> insin: reinstall?
<26> I wasn't loling when every page on the site which was using UNION and subselects was blowing up :/
<24> itrebal, how's the server comming along?
<22> Cwhiz: nice
<18> bugzElMagnifico: hehe, well - i'm burning the debian iso to a disk now :)
<24> itrebal, nice


Name:

Comments:

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






Return to #php
or
Go to some related logs:

tvtime+ubuntu+audigy
#perl
#php
libphp5.c
/bin/sh: cant access tty
kulhas
#php
ORDER BY COUNT(*) DESC top 10
#xine
knoppix disabling intel_agp



Home  |  disclaimer  |  contact  |  submit quotes