@# 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> I'm using Curl to using post I have curlopt_post, 1 and curlopt_postfields is set to a pretty long string
<0> I can take the url created by the url and postfields and it works fine
<0> should say works fine when I put it in the browser
<0> but when I it in curl I get a 401 error
<0> I'm using a http://login:p***@domain.com:port as the url
<1> can anyone reccomend an authentication cl*** that uses sessions and i can call at the start of each script easily?
<2> http://pastebin.com/730606 someone help no errors or anyhing, it just deson't $add and $delete
<3> Hey
<4> "p
<4> :o
<3> Is it possible to have a Var that is always globaled? So that if I have a function I don't have to keep going: global $varname; to use it?
<4> as far as i know you should just keep using global $varname; keep it on the safe side
<3> True, it's just annoying
<5> AlexC_: I don't know a way to force a variable to always be global. Only superglobals work like that and I'm not sure you can create a super global within php code.
<4> for more info: http://us3.php.net/variables.scope



<6> AlexC_: it's not only impossible, but also quite.. not a nice thing to do
<3> mst, It's not impossible - you can use the $GLOBALS thing
<5> I'm pretty sure you'd just be using $GLOBALS['somevar'] though. So... well...
<6> AlexC_: that's not what you said you wanted
<6> Global variables considered harmful. Film at 11.
<7> AlexC_: If you have a variable which is needed as a global in so many places you should think about re-factoring your application.
<3> mst, a var that is always globaled.....$GLOBALS['Varname'] - tis what I need
<6> AlexC_: again, you better have a damn good reason to use global variables
<3> I know the problems it _can_ cause, yes
<4> yeah, or else microsoft may bust down your door and start smashing up your computers
<4> (i saw it on a simpsons episode)
<8> Lets say i have in my DB a load of scripts each script has a title. And there's a search box that when you type something into it it searches all the script titles and displays the ones that have the keywords in is that hard?
<6> dschreck: oh man that was a great one
<4> lol
<4> at least someone else remembers it
<6> and I'm not even american
<8> Lets say i have in my DB a load of scripts each script has a title. And there's a search box that when you type something into it it searches all the script titles and displays the ones that have the keywords in is that hard?
<8> Anyone?
<9> It shouldn't be hard
<7> not really
<10> how would i do it
<10> http://pastebin.com/730648
<10> I have that so far
<10> There's a form that p***es the keyword they typed in through on another page
<10> Wouldn't i need a WHERE in the query
<11> Zelnen: Most people rely on their databases fulltext indexing features to support keyword search
<6> except if your database of choice is MySQL, in which case it makes you cry and then you have to use the boolean searches and it makes you cry some more and then a little bit
<9> lol
<10> http://pastebin.com/730656
<10> I donesn't seem to work
<12> hi
<10> anyone?
<12> does readdir affect the fileaccess/filemodified time?
<10> ?
<10> Wait i figured the problem it only works for exact titles
<10> How can i make it work for key words
<10> http://pastebin.com/730674
<13> afternoon
<13> all
<13> Anyone here know much about registering functions into cl***es?
<14> How do you mean, registering functions into cl***es? You mean you want $anInstance -> aFunction(); ?
<15> hi there !
<16> Hello.
<15> i did $query = 'INSERT into student(name,rollno,cl***) values('$name','$rollno','$cl***')';
<15> it is not working
<17> $query = "INSERT into student(name,rollno,cl***) values('$name','$rollno','$cl***')";
<17> if you put echo '$name', it will display $name, not the value of $name
<15> yes, obviously !
<15> name, rollno, cl*** are variables
<15> how to execute a query using variables
<15> ?
<18> apt-abhi: how does PHP know where your string ends?
<18> apt-abhi: and, PHP doesn't parse strings started with ', only with "
<15> i got "Query failed:Query was empty" error
<18> which is what maskd_ said
<18> apt-abhi: $query = 'INSERT into student(name,rollno,cl***) values('$name','$rollno','$cl***')'; is a parse error
<17> $query = 'INSERT into student(name,rollno,cl***) values('.$name.','.$rollno.','.$cl***.')';
<18> apt-abhi: please go read a tutorial about strings until you're comfortable with them
<19> apt-abhi: soround the whole query with double quotes
<15> double quotes not working
<19> dont change anything inside it



<19> $query = "INSERT into student(name,rollno,cl***) values('$name','$rollno','$cl***')";
<15> thyko: i got Query failed:Query was empty
<19> mysql_query($query) or die(mysql_error());
<19> is that how you're running it?
<17> apt-abhi: try getting rid of the 's
<17> or put in `s
<13> jory|school, sorry, got dragged away.....
<13> jory|school, I want to tell a cl*** that this defined function is a method of a pre-defined cl***
<13> so, to add a fucntion to a cl*** after it is defined
<20> good morning...
<21> i know this isnt for scipt support, but im not sure exactly what to look for as my google results have been that great. So i am just asking for suggestions on what to search for. Im looking for a php snippet for that basically uses session/cookies to tell if the person has been to the site before. I only want to display the flash version of my header once
<20> I want to store some $object->method() constructs in the database and want to be able to run them from the database. I thought about to save these constructs into an array like: $array[object] = 'method'; and when running them I wanted to be able to do something like: $key->$val()... could this be possible?
<21> woops, google results HAVENT been that great
<22> Is there some special aproach in unit testing if one test depends on another?
<19> mcrypt is acting weired here
<6> mcrypt is universally weird
<19> http://www.rafb.net/paste/results/Oj2Cfp78.html
<23> hi there, is there a way to get an error logfile per user/domain? At the moment all php errors are logged centraly
<19> that, is producing :
<19> Warning: mcrypt_generic(): supplied argument is not a valid MCrypt resource in C:\Program Files\xampp\htdocs\p252.php on line 16
<19> that
<19> buuuut
<24> is there a irc chat for google earth?
<19> when i call the stuff from not within a function
<19> it works!
<25> thyko, yeah, you're having scope problems
<19> yeah?
<19> but where?
<19> mcrypt_generic_init($mcrypt_object, $key, $iv);
<19> thats where it fails @
<25> well your mcrypt_object doesn't exist in your function
<19> syf: its created within the function
<25> have you var_dumped your mcrypt_object var?
<18> mcrypt doesn't use objects so I don't know what you're both talking about
<18> thyko: please try and type in complete sentences, rather than pressing enter every pause
<20> can please someone tell me how to store something like this: $var['foo']['bar']->method() as a string in a mysql table to be able to run this at a later time after getting this back out of the table (and then how to run this?)?
<18> dma147: that's a really bad idea
<20> aidan: why?
<19> aidan: i have been typing complete sentences
<18> dma147: the answer to your problem is eval(), you can find a million pages about google about why this approach is not the right one
<19> and yeah, mcrypt doesnt use objects, its a variable name
<18> dma147: I suggest storing the varname, then using call_user_func
<18> thyko: what the ****, why do you lie? <19> that <19> buuuut <19> when i call the stuff from not within a function <19> it works! <19> yeah? <19> but where?
<26> can anyone remember that homepage that could that an image of your site, and then show how it would look like in different browsers, firefox opera epiphanty IE etc. ???
<18> thyko: then pick a better variable name?!
<20> aidan: well, I need a possibility to let a plugin store some methods which have to be called from the parent-script at the end of the runtime which ignore_user_abort()...
<19> that was to create a chain of thought
<20> s/which/with/
<18> thyko: exactly, which is not a complete sentence. I don't want to see your train of thought, just give us the completed thought when you are ready.
<19> or what?
<11> thyko: Or find somewhere else to get help
<18> thyko: or you'll be banned, please read the channel guidelines
<20> aidan: sop I wanted to create a function which will be called at the end of the parent-script and which then looks in the table, gets the plugins methods and runs them...
<18> thyko: it's not a big deal, it's just easier for us to help others if we keep problems concise
<18> dma147: yeh, that's still a bit funky. Will you always have $var, $key1, $key2 and a method?
<18> dma147: avoiding eval, ignoring all the security implications, is probably a good idea just because it's damned slow
<20> aidan: all plugin-methods are called like this: $apcms['plugin']['pluginname']->method()
<18> dma147: ${$var1}[$key1][$key2]->$method() will work, and you can store var1, key1, key2 and method
<20> aidan: ahh... that sounds better. ;)
<20> one moment.-
<25> just for a second there it looked like i joined #perl instead of #php
<25> :S
<27> I have a html WYSIWYG editor in replacement for a textarea box. The problem is that my client requires the html to be valid XHTML, but the editor produces HTML. I have been trying to do this using preg_replace and regular expressions but it is not really working. Can anyone suggest a module or extension that can convert/modify html into XHTML?
<28> how to detect is value a string or any binary data?
<20> aidan: cool, that works. thanks.
<18> aukstas25: can't, php makes no distinction until php6
<29> How can i calculate out a % from a number? with php? i cant find any document about this.
<30> roniez: what do you mean? The mod operator?
<29> naw, like i have 1900persons saying Yes, and 1800 persons saying "no", how can i calculate out the % they are?
<28> how to detect, is value a text or any binary data?
<31> roniez,
<29> like 60% Yes sayers and 40%no sayers.
<29> hawkaloogie: ?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

codeblocks dapper
#linux
balack xs
ubuntu kill xserver
php.core malware
fish acvarium
ignorantcow
392315089702606E_02
three-cubed efnet
fedora 6 diskboot



Home  |  disclaimer  |  contact  |  submit quotes