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



Comments:

<0> but I want content that comes through tcp-ip pipes
<1> :s
<2> wisp: i was wondering how can i do that
<3> redduck666: i doubt that
<0> Zope is a python app server, kind of like the entire LAMP, but OOP based
<1> i'm not a noob but i think you are saying something that doesnt make sense
<4> wisp: i see what hes doing
<0> redduck666: maybe you saw some kind of template file (not regular html)
<5> redduck666: what happend was it was a small templating engine, and the variable $my_variable was declared, and then in bar.html they put {MY_VARIABLE}, then in foo.php they use something like file_get_contents or something on bar.html, and did str_replace('{MY_VARIABLE}', $my_variable, $contents_of_the_template);
<6> redduck666: echo str_replace('{MY_VARIABLE}', 'some whack*** value', file_get_contents('bar.html'))
<7> So I can get the http response code if I open a socket to a server and read from that, but can I get it from a function like file_get_contents? It would be much easier that way.
<0> Drakas: anyway, I was just curios if that's possible. I'm a python guy anyway, so I'll use mod_python
<6> afd_: Hurrah! :)
<1> :]
<0> kuja: yeah, plone rules :) (hope I'm not breaking some channel rules)
<6> :P



<2> itrebal, kuja: thanks
<8> How can I determinie what the server address on which a php script excutes?
<9> $_SERVER["SERVER_ADDR"]; I think
<7> Yet again I am annoyed by Microsoft. Do all IIS servers return 200 when it should be 404?
<8> How can I get the http addres not the ip addres?
<7> $_SERVER['SERVER_NAME
<7> $_SERVER['SERVER_NAME']
<7> oober, you can see all of the $_SERVER values in phpinfo();
<1> it's quicker to just do print_r($_SERVER);
<7> that too.
<3> or var_dump() :)
<10> hi
<10> can anybody explaing to me why this doesn't work?
<10> http://pastebin.com/571814
<10> i'm tryig to learn by reading the zend.com tutorials and php.net documentation, but i can't seem to get it to work
<11> for what thing?
<10> Stormchaser: sorry, you joined after I pasted my link...
<10> Stormchaser: here it is:
<10> Stormchaser: http://pastebin.com/571814
<11> cosmo: And what is not working?
<12> hey
<12> I can't get mbstring to load
<12> I built php with --with-mbstring
<12> and I have mbstring in /usr/local/include/php/ext/mbstring/
<10> Stormchaser: i get a "arse error: parse error, unexpected T_OBJECT_OPERATOR, expecting '(' in ... " error
<12> but ( I don't see any modules/binaries for it)
<11> cosmo: "$xml->address-list" <-- this isn't valid...
<12> help?
<11> aptiva: Did you build it as an external module?
<12> I don't know
<12> just threw in the --with-mbstring directive
<10> Stormchaser: why isn't it valid? because of the "-" in the middle?
<11> cosmo: yes
<12> php_info() shows '--with-mbstring'
<12> but nothing more about it
<10> Stormchaser: is there a way around it?
<12> and extension_dir/usr/local/lib/php/extensions/no-debug-non-zts-20020429
<12> that dir doesn't even exist
<11> *blink*
<12> hm?
<12> checking whether to enable Zend multibyte... no
<12> does this have anything to do with mbstring?
<11> cosmo: print_r($xml->person->{'address-list'}->address['uid']);
<10> Stormchaser: thank you very much!
<10> Stormchaser: it works now
<11> aptiva: didd you compiled the PHP or...?
<13> is there a quicker method to remove only the first char o a string than substr?
<11> $str[0] = '';
<3> http://www.fjolletobak.com/detail.php?type=1&content=13860&cf= <-- :)
<14> hello
<11> haha :)
<13> Stormchaser: this does replace the first char with a NULL char or actually remove it?
<13> gives a weird char here
<11> kon: No, it replaces the first char with nothing... null would be $str[0] = null;
<15> why is it such a mission to have php5 on debian! *sigh*
<11> it is? apt-get install php5
<13> both '' and null make the char turn into a quad "[]"
<11> you mean something like
<11> kon: Wel then, just use substr, if that doesn't work for you...
<13> yep =)
<16> Question: http://pastebin.com/571866



<17> hi ppl, I have a very simple question about functions:
<17> function PrintSortableHeading($_page, $sessid, $_CurrentOrder, $_NewOrder, $_head, $_help)
<16> use pastebin
<17> I want $_help in that function (above) to be optional
<17> so that I don't get this warning: Missing argument 6 for PrintSortableHeading() in /var/www/html/admin/layout.php on line 218
<18> $_help=''
<18> you can set it to an initial value in the parameter list
<17> roaet: wow, that's easy, thanx
<19> Hello, I need a small jobb done, can do payments, offer webbspace/domains..
<19> Is this the right place to ask? :S
<15> _chillyD that is quite vague, explain more :P
<19> I own a company and I need some kind of bill system, I have an example bill., i want a form with fiew text fields, and an email, and when you fill out the right data it replaces it with some places in the "example" bill, and sends it to the mail of the costumer you are billing too..
<20> i'll do it for 100
<19> 100$ ?
<20> yea
<19> lol
<18> prepaid?
<20> laugh it up bitch
<19> haha :P
<16> www.rentacoder.com
<11> !+jobs
<21> no job posting / asking for jobs on ##php (see /msg php-bot g7). You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities".
<19> ow sorry
<19> Prepaid, well no I would like to see the script, and then ill pay for the codes..
<16> aha
<16> you copypaste it and run
<20> this kid's a clown
<19> uhm, copypaste php codes?
<20> uhm, YEAH
<19> no not see it like that, just trough the web
<20> in that case
<19> like test it and see if it works properly..
<20> i can just write some fake html
<20> and say its a bomb *** script
<19> :)
<20> and run off with your money, punk
<20> and feel no regret
<19> haha
<19> :D
<19> How about some free webspace with a domain? payed and done for few years
<19> unlimited subdomains/mysql databases and w/e you need
<19> :D
<18> Um. is rentacoder to be trusted?
<22> im trying to create a regexp to match occurances of \t, \r and \n and trim them off the beginning and ending of a string, leaving them intact between regular characters.
<18> chomp
<18> i believe
<22> i **** at regexp, this is the best i can do: /^[\t\r\n]+|[\t\r\n]+$/
<20> |)/\ |)i2E\/\/
<18> xeer why not do rtrim() and ltrim()
<22> trying to use regexp
<18> i see
<18> /^[\t\r\n]*\(.*\)[\t\r\n]*$/
<18> i think.
<18> but rtrim and ltrim would be faster.
<18> maybe just trim
<18> yea just trim
<23> hi what's new/interesting on php6?
<18> 6 is bigger than 5
<23> and I bet it has twice the dependencies
<23> ...and?
<24> whats new in php6
<24> cant find it on their website :o
<23> no because I'm on palmos now
<20> at night i cant sleep, i toss and turn
<20> i got my hand on my pistol when will these mother****ers learn
<24> hopefully some better OOP :o
<25> I want 'static', myself.
<23> and it's a bit difficult for me to open a web page right now
<24> :)
<24> using my own PHP version ;-)
<26> draakje__: This might be what you're looking for: http://www.php.net/~derick/meeting-notes.html
<27> Hmm anyone who might know why a table does not draw the last <tr>...</tr> section?
<24> adding goto right :X


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#kde
xcompmgr fluxbox slow
#centos
easyubuntu.deb
dmraid linux software nvidia raidtab
debian etch x64 install-cd
cheesesoda
#debian
ubuntu live cd failsafe
#perl



Home  |  disclaimer  |  contact  |  submit quotes