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



Comments:

<0> Can someone help me with the php error I get in http log "PHP Notice: Undefined offset"
<1> Is it possible to un-global a var?
<2> easypwn is the iframe and the outerframe all from the same server?
<3> unset().
<0> I also get "PHP Notice: Undefined index: Username in" and "PHP Notice: Undefined index: P***word in"
<4> AlexC_, uhmm.. no.
<5> yeah, theyre both on same server
<0> Because of these errors I cannot login to the script
<6> Stormchaser: well... I'm writing a webmail-plugin for an application in which every username is allowed to be registered and logged in. So usernames like this: $~HeReIaM~& are allowed there too. And I want to be able to use these nicknames as maildirs for the mailclient.
<4> AlexC_, you can "unset()" the variable, but that makes it "disappear" not make it "unglobal"
<7> bocha911: You tried to do $foo['P***word'] on an array that doesn't have an index 'P***word'
<1> jonez, yeh I was just reading on that. Oh well nevermind
<8> Is there a way to figure out if there are three or more consecutive characters in a row in a string?
<2> easypwn did you check to see if the session cookies are getting set?
<3> dma147: I'd use htmlspecialchars() for that
<0> TML: this is the line with the P***word --> $names = array('Full_Name','First_Name','ID','Username','P***word','Email');



<0> Do you think its a database issue ?
<5> I think so.. I set it with $_SESSION['logged_in'] = TRUE; and on members page I do this for checking: if($_SESSION['logged_in'] != TRUE) {die('you need to login..');}
<7> bocha911: That creates $names[0] = 'Full_Name', not $names['Full_Name']
<6> Stormchaser: which makes something like that: &auml; out from german umlauts or &quot; out of " ... is the & allowed in the unix filestructure?
<7> dma147:
<7> dma147: It has to be escaped properly
<2> easypwn, check if the cookies exist on the browser
<1> Are functions case sensitive? if I have a function called MyFuNcTioN() { } can I call it be going myfunction(); ?
<5> how do I do that?
<2> shoudl have a cookie called phpsessionid or other
<3> dma147: htmlspecialchars() doesn't do that... That does htmlentities()
<2> what browser do you use for testing?
<6> TML: hmm... okay, I thought so, but then there'd be no need for htmlspecialchars(), right?
<9> TML: I don't think cookies are being sent to my browser(s), what could be causing this?
<5> ie
<10> Stormchaser how are things? :)
<7> AlexC_: function names are not case-sensitive, but you should use identical case in both declaration and call in the event this ever changes.
<3> Works
<11> Stormchaser "if comething goes wrong" :(
<2> easypwn: have firefox?
<3> rolemodel: fine, fine
<5> yeah, sec lemme try with it
<6> Stormchaser: TML: maybe the preg_quote() function could work for this?
<1> TML, yes I usualy do keep to the same case - was just wondering.
<1> thanks,
<10> Stormchaser man i need another php project.. :p
<3> xshad: Well... I could be killed by a nuclear explosion, ya know?
<6> hmm, I see, I have to try this out... ^^
<3> rolemodel: Than make it
<5> still no workie :\
<11> Stormchaser correct that! you've mistyped "Comething"
<10> Stormchaser my last one got away from me far too quickly... changing scope and fuzzy step-by-step storyboarding. :p
<11> :)
<3> xshad: oh, shaddap! :)
<2> easypwn: get web developer toolbar extension for firefox. so you can see what cookies are set
<12> how do i create a regex for the following logic: match everything that starts with "reg1" and ends with "reg2"?
<2> it also has many other handy features to help with web development/design
<12> including everything in between?
<6> Stormchaser: TML: I've a much better idea... ;) ...I'll do a $userdir = md5($username); *gg*
<2> FiEe /req1(.+?)reg2/
<2> like that?
<2> maybe
<2> /req1(.*?)reg2/ might be better
<12> cythrawl: i'll try it, thanks
<3> dma147: you realize there is a possibility of collisions with that method?
<6> Stormchaser: well, okay... a very, very small possibility... ;)
<6> but maybe too dangerous...
<3> dma147: Still, a possibility
<3> "dangerous?
<2> i think the chance for an md5 collision is something like 1 out of 2^23 or something like that i forget
<5> ok i installed it now.. when I attempt to view cookes it says 0 cookies for my domain.
<13> any reason tidy.so would core dump php at the end of the execution of a script?
<6> Stormchaser: dangerous for the user who has secrect stuff in his mailfolder. ;)
<3> er...
<3> DeathWo1f: PRobably busted libs
<9> ok, this is odd it isn't sending cookies to Firefox or IE, but it is sending them to Opera
<6> Stormchaser: maybe I should simply use the userid, not the username...



<2> mythril: i bet it has something to do with the iframes
<9> I have explicitly allowed cookies to be set by localhost in Firefox, yet they aren't being set
<9> cythrawl, I don't use iframes
<2> oh your the other person sorry
<2> got you confused with someone else
<3> with an alien?
<0> TMI: Can you help me find where the error is ? It started all of a sudden for all domains
<14> Hi there I have a script/site that works fine on my standard debian php4 install moved it to someones cpanel hosting and now its adding loads of random items to my array, sessions can store arrays without the need to serialize them first right?
<5> cythrawl: I've installed it now.. when I attempt to view cookies it says 0 cookies for my domain.
<3> row: no.
<14> ah I must serialize them first then.
<14> I see
<6> must a .htaccess file have special permissions set to work properly?
<3> erf... rowYes, you're right... you don't need to serialize the valllues before sending them into sessions
<14> ah hehe
<14> its been really lame, I insert $_SESSION['bla'][1]['foo'] = TRUE; into a empty ['bla] array and then all of a sudden next page load duplicated it to ['bla'][0]-['bla'][11] wtf would tha thappen?
<14> infact seems to add **** each page load
<9> is php 5 stable yet?
<9> nm stupid question
<14> ah I think I found out why
<3> mythril: It has been marked as stable for more than a year now...
<9> what are some possible reasons why cookies might not be set when using FF/IE but are set just fine in Opera?
<14> it seems if I access the session varible it is created even if its not there :/
<14> why is it doing that ?
<14> as in a value in a array inside of $_SESSION
<15> is there any real point to session_name()?
<16> Sure. If you want to set the session name to something other than the default.
<14> my god this is ****ing insane
<14> i hate bastard cpanel users.
<17> bastard cpanel users?
<17> you must mean stupid cpanel users :P
<14> their php4 install is being VERY lame
<15> mattmcc: do you have any examples as to when that might be useful?
<16> mikedub: The most practical would be running two apps that have their own sessions from the same domain.
<15> i see
<16> The session name is used by the session cookie, remember.
<15> yeah
<15> so i imagine you need to call session_name('YOURNAME') each and every time you begin a session_start()
<16> Or set it through an ini file or apache directive.
<18> hello people!! i be happy!! i can run php4 + php5-cgi on apache2!! yess!! thanks my got!
<18> :D
<3> cesarstafe: I believe you just re-descovedred hot water.
<3> *discovered
<18> :-\
<14> lol
<18> wath? i undestand!!
<18> wath? i understand!!
<12> what is the regex for: href="http://www.link.com">; ?
<3> o.O
<14> can $_REQUEST ever have merge with $_SESSION on some php4 setups?
<15> thanks my got!!
<14> nah infact thats not happening as I am print_r'ing them both and they are not
<12> i tried: /href\=((.+))>"/
<3> ok, that's *really* enough
<12> that's not working too well
<3> #href="(.*?)"
<19> I'm new to php5 and am move some php4 code over - the problem I'm having is in a loop I'm creating an object using a constructor to fill it from the database, but on the 2nd p*** of the loop, it doesn't create a new object, it keeps the old one.
<3> oops... missing a > there
<20> where to put session_start() this time...hrmmm :/
<20> i know! I'm going to put it in footer.php :D
<3> Fushuing: o.O
<12> Stormchaser: cool, that worked, thanks
<21> Say I have 100 records in my DB and select them all with my query. How can I show only the 20 more recent ones? Could I just do that by changing my query? I'm using MySQL as my DB.
<3> #mysql then
<20> Stormchaser: nobody tried it :|
<20> so i am being innotative!
<22> bluetree, limit 20
<3> Fushuing: *stab*
<20> :<
<21> Jy: that's gonna be in my SQL query?
<22> bluetree, yes.. read up on LIMIT in the mysql docs
<21> thanks a lot:)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

emerge nomerge
mount floppy ubuntu dapper server
yast unbearably slow
msiexec,80030002
iscsitarget invalid module format
dapper + module nvidia not found
#math
openzaurus mysql-native
rpblems with parents
skipe on ubuntu problem



Home  |  disclaimer  |  contact  |  submit quotes