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



Comments:

<0> how about 1_of_1
<0> how about 1of1
<1> don't care about those powerpost does 1/1 by default
<2> itrebal, the problem is the following: session support is enabled, but when i use your example there is no counter between "page" and "times"
<3> hi!
<4> is it possible to get the username of the logged in use from PHP (for an intranet site)?
<1> seems to work so far itrebal :)
<1> I don't have the result yet but seems to work
<5> Andy298: Only if you use authentication by the web server
<6> F0rdPr3f3ct: sorry, i made a goof
<6> http://pastebin.ca/47801 there
<7> hello phpians
<6> lol
<6> i've never heard that one before
<7> I wanna upgrade from php 4 to 5
<7> and



<7> i dont wanna screw things up on the server
<7> any issues i shud consider or directly install php 5 ?
<6> !tell Saurabh about enter
<8> can someone be so kind to optimize this for me: http://rafb.net/paste/results/ROJc6691.html
<5> Saurabh: Well, test all of your applications thoroughly beforehand on PHP5 on your test server, make any adjustments necessary, then upgrade your production server and your apps at the same time
<6> BigSinep: what needs optimizing?
<2> itrebal, ok big thx. seems to work now
<8> the php code
<6> BigSinep: what bout it, though?
<7> thats a good idea , MarkR , but the main thing is that Mysql should work
<8> i would be more than happy to come up with a wiser aprouch
<8> it takes ALOT to return results
<5> Saurabh: You should test the upgrade process on your test server, to ensure that you can upgrade MySQL & PHP without problems
<6> BigSinep: so work through it, find what needs optimizationa nd fix it
<5> Saurabh: Ensure that you have the same packages beforehand on your test server, and you can upgrade them in the same fashion.
<8> itrebal... that is why i asked.. i just don't really know what is wrong
<6> BigSinep: what parts are you looking to optimize?
<7> so on the test server, just install php 5 ? will it overwrite the old verion or will it run in parallel ?
<9> BigSinep: So, instead of you taking the time to read the manual, search the web, etc you want someone else to clean up your ****ty code?
<6> Saurabh: it'll overwrite the old one
<6> (usually)
<7> MarkR and itrebal : thx for the advive guys ...
<6> mmhmm
<6> lol i'm going to make a dumb program...
<6> script*
<10> itrebal
<6> Evonz: yes?
<10> i managed to do it, i won't display it ont he site till iemail them and all
<7> itrebal: what script ?
<10> but one thing
<10> http://evon.be/news.php
<10> u see how it's so spaced out?
<6> !tell Evonz about u
<6> Saurabh: to tell me character locations.... dont ask
<10> how can i get, that too be smaller
<10> i tryed to look for <br> i didn't find any?
<10> but yet the length is huge lol
<6> its the combination of <p> and tabls
<10> o
<10> lol
<11> How can I find out with PHP from what country a visitor comes?
<10> thanks :)
<5> Mr_Morden: I ***ume that asking them is not an option, so you could get an ip-to-country database (there are several of these, they are free and mostly accurate) - and then match that against the REMOTE_ADDR. But it's not guaranteed to be right (but probably will be). Particularly with AOL users.
<7> Mr_Morden: with the $_SERVER global variable . get the ip address and search for that IP in the countried database from a third party tool
<12> Mr_Morden: http://www.directi.com/?site=ip-to-country
<13> anyone heard of setSubscriberIDUsername
<14> hey, does anyone know the modifier to allow preg_replace use "\n"s in the (.*) tag?
<8> Jymmm: i just want someone who already knows how to do it to give me some advices. you don't need to be so evil... i understand that you don't know even how to read my '****ty' code, but you must learn that there are some people that have comprehension limits and there is no ashame to confess it. just speak your mind!
<15> $db->sql_error(); <-- can i tell php if that code gives ANY errors die('my error message'); otherwise $var = $db->sql_error()?
<11> @Saurabh: Or rahter to detect the language used in the browser... I'd just like to give english or german content depending on where the visitors come from ^^
<5> redduck666: You haven't really explained what database system you're using, but you should probably have something raise an exception when a db error occurs. With PDO you can do this by setting the error mode to exception (see the PDO docs)
<7> Mr_Morden :hmm... nice idea , but never done that myself ... will have to play around with it .
<16> Mr_Morden, http://www.fundisom.com/phparadise/php/information/detect_user_language
<6> Mr_Morden: web browsers send the locale
<5> Mr_Morden: Yes, detecting the user's language is easy and it will generally get it right.
<11> jbpros: Thx :)
<11> so far I was only aware that JS can do it
<16> Mr_Morden, you're welcome
<11> but since JS runs client side and php server side
<11> that didn't help much ^^
<14> anyway...



<7> !tell Mr_Morden about enter
<7> hey thats a cool little bot
<6> O.o
<6> http://www.google.com/romance/
<7> who wrote it ?
<14> I am working on a CMS.. does anyone know an efficient way to read an XML file, and use it to get links, etc?
<6> its BlootBot
<16> Mr_Morden, HTTP protocol can be useful sometimes ;)
<6> http://blootbot.sourceforge.net/
<15> MarkR: i`m using mysql, and the error in which i`m trying to give more/better info is "Call to undefined method sql_db::sql_error() ". pde isn`t an option couse my host compiled the php with --disable-pdo
<5> GregVernon: You could use a SAX-based parser, they are the most efficient. But generally speaking, reading XML files is rather inefficient regardless of how you do it.
<14> okay
<14> what would a better way be? mysql based?
<5> redduck666: I believe that if you make a SQL syntax error, calling mysql_query() would throw a warning containing the message. Therefore, you can simply write an error handler which detects any warning and drops out, with a call-stack and the error message.
<7> GregVernon: IBM Developerworks will gve you many tutorials on that . u shud really read them .
<9> !+u
<17> Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
<14> ol aolbonics
<14> *lol
<14> that is the greatest term... EVER
<7> hehe
<5> redduck666: It is my belief, that any Notice, Warning, Error etc, is always bad, hence the script should not continue. So I run all our apps with E_ALL and an error handler which screams and shouts if the slightest little thing goes wrong (even E_NOTICE)
<14> Saurabh: sure... I just don't like reading endless pages of stuff I don't necessary need....
<14> its usually easier to ask someone who knows... rather then try a google search for it
<12> GregVernon: Disagree...
<14> zbq: on stuff everyone uses all the time, google wins hands down
<12> It's better to learn to fish than always depend on someone to fish for you :-0
<18> no, it's better to buy fish at the store
<7> but with tutorials , you learn much more
<18> or better yet, get someone else to go buy it
<15> MarkR: stupid question: a sl syntax error will tell me `call to undefined functions'?
<12> Google is the store and the fish are search results
<14> zbq: but you always have to find the fish you want
<14> and google is a very big fishstore
<18> you don't find fish when you're fishing
<7> instead , be a vagetarian. Dont eat fish .
<14> uhh
<18> fishing is, by itself, a serendipitious act. You get what comes to you
<7> vegetarian
<14> Migs: yeah, like boots
<18> yeah
<5> redduck666: You cannot mix mysql functions, mysqli functions and PDO Mysql functions. Use one and use that exclusively. If you're using PEAR::DB or something, use that exclusively. Mixing database APIs makes no sense at all.
<14> and viruses that dwell in lake water
<7> I told you the specific fish store
<2> itrebal, how do i output the session id?
<7> IBM DEVELOPERWORKS
<18> sometimes you have to throw fish back, too, because they're too small
<14> yeah
<14> or they ****
<7> IBM DEVELOPERWORKS - Has all XML+PHP tuts
<18> and you can only catch as many as you have on your fishing permit
<12> I will agree that there are times when it's hard to find something...BUT...I think that the "smart people" in IRC room are sometimes seen as being rude because they are asked the SAME question over and over and over again when a quick Google search would solve most peoples problems. People are lazy: bottom line
<6> F0rdPr3f3ct: you usually dont need it
<14> Saurabh: i'm at the fishstore now!!!
<2> itrebal, is the session id unique?
<14> zbq: yeah, lazy people do get annoying
<18> zbq: which is why I said it's better go get someone else to go buy fish at the store for you
<12> Mind you, this is probably better suited for ##fish
<14> I always do a google search before asking
<6> F0rdPr3f3ct: yes, but PHP will take care of the sessid on its own
<14> *always*
<12> :-) me too
<18> I usually spend an hour of searching google before asking
<18> that's probably too long
<7> echo "session_id()";
<18> well, unless it's kind of a simple dumb question anyway
<19> if you need the session id, SID will contain something to put in the url... depending on your session directives, and if they accept it via cookie
<18> can't think of any examples right now, but that's why I have other people go to the fish store for me
<20> http://www.openoffice.org/ <- best april fools i've seen yet :p
<21> heh
<18> hahaha
<22> I like Google's new project
<20> yeh
<20> the google one was pretty good


Name:

Comments:

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






Return to #php
or
Go to some related logs:

cat something into crontab
ubuntuebda
#linux
skype missing from notification area linux
#perl
Uncompressing Quake III Arena Demotrap linux
#ai
01101110010111011110001001101010111100
#php
#kde



Home  |  disclaimer  |  contact  |  submit quotes