| |
| |
| |
|
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> dools: that doesn't solve my problem. What if $user='a&b' and I want to p*** the user: echo "index.php?user=a&b"; <1> urupica: oh right, urlencode <2> or use another var value sending method <2> get/post <3> hello, can someoene help me out, I installed php5 and am trying to install forums on my localhost, it says: This PHP environment does not have support for any of the databases that PunBB supports. PHP needs to have support for either MySQL, PostgreSQL or SQLite in order for PunBB to be installed. <3> I have php 5 installed and mysql installed <2> php.ini <2> extensions <3> A2K[], I already set the extensions directory also <3> ; Directory in which the loadable extensions (modules) reside. <3> extension_dir = "C:/php/ext" <2> do you have mysql extension? <4> when i get a resource id #17 when i try to echo a variable.. does that mean it's an array? <3> A2K[], yes still not working <1> minDscrm: you need www.php.net/mysql_fetch_array <4> ahhhh sweet
<4> thanks <2> try mysql_connect('127.0.0.1','user','p***'); <2> if it works try to use another forum :) <2> IPB or SMF <3> I like punbb, and used punbb locally before <3> it's odd its not working <2> mysql_connect does not work??? <5> sup Kronuz <6> :) <6> hey, one question... how come I can't do: $something=function() or return(false); <6> it works with die <7> try : $something=function() or 1; <7> 0 that is <7> or 0 ^^ <6> hmm <2> $something=function() or 'false'; <7> but I don't see the use of it, the value false with or doesn't matter <6> but that doesn't return from the function, that's what I want <7> then change the function, try wrapping it <6> like "breaking" the function execution if something fails <7> more specifically, what do you want to do? <6> just that, if and ***ignment fails return from the function with a false... I just wanted to avoid the use of an if() <6> like if(!$var=funct()) return false; works, but I wanted to do: $var=funct() or return false; <6> 'cause it's simpler to write <8> hi guys, if i get the following: <8> Premature end of script headers: /usr/local/www/cgi-sbin/php-sbox <8> when I'm trying to upload a file, anyone have any ideas where I could begin to debug? <7> Kronuz: your logic is flawed ^^ as I told you, 'OR' with false DOESN'T matter, it works with die, because if the first function fails, it then executes die() <6> I know, but I thought return was a function <6> so if the first ***ignment fails, return would be called and the function would end <7> oh I see, you want to BREAK the function and return immediately <6> but it doesn't work, as return is probably not a function <6> yep <6> remember above: if(!$var=funct()) return false; <7> well, as you've wrote it, return() will only execute when funct() is false <6> oh, I would need extra parenthesis? <7> I don't know, let me write some test code <6> well, the weird thing is that it works with die(), but not with return() <6> it does die, but it doesn't return :P <7> ok, checked it <7> it gives an unexpected return <7> what I did was to wrap the return function with myReturn <6> so? what's the veredict? <7> function myReturn($ret) { return $ret } <-- works <7> then, you can do $var = fun() or myReturn(false); <7> but it won't break the function <7> so there... <6> but that won't break the calling function, just your myReturn <6> exactly <7> yup, can't have it both ways :P <6> I guess I'll use the if() :P <7> try the ternary operator :P <6> just lazy <6> lol <6> weird how it works with die() <6> I'd suppose it should work with return() as well <7> well, not really <7> return is not a function per se, but a control structure <6> 'cause return() is not a function <6> right <6> that's what I figured
<9> sorry for this absolutely basic question: how do I read form post data? <7> :) <7> calamari : $_POST array <6> StarkHalo: I still think it should work :P <7> Kronuz: hehe, but it doesn't :D <6> and don't give me that purism crap about not being a function ;) <9> StarkHalo: thanks <7> oh well, read the php docs <7> Note: Note that since return() is a language construct and not a function, <7> it's right there <7> Kronuz: nps, anytime <6> yeah, but it doesn't say: "it won't work when you need it" :P <6> j/k <7> lol <10> anyone know why I would get a parse error on the last line of my .php file? Where the " ?> " is ? <11> ironpig, look for a missing ; <12> hello? <11> hi sesstreets ^_^ <12> Hey can somebody help me with a quick script? <6> does call_user_func() return the return value of the called function? <6> (it doesn't say anything about it in the docs) <12> On a couple of forums ( I think IBP forums) they show the php usage, mysql usage, and time take to make the page <12> Does anybody know how to do this? Or can anybody point me to a script for it? <10> hey fires, thanks :) <12> anybody? <11> one sec sesstreets, i'm looking for it <12> You do know what I mean right? <11> yep <7> <6> does call_user_func() return the return value of the called function? <-- YES <11> sorry mate, i was thinking i might find it in the reserved variables section of the docs <11> good luck to you <7> sesstreets : use microtime() for page creation time, and with http://mx2.php.net/manual/en/ref.info.php you can extract lots of into from the runtime <7> lots of info* <12> well <12> im actually looking to make a wordpress plugin <12> but to be honest <12> in #wordpress they dont help me <12> so i came here <7> as long as you have php questions, we can help <12> i always do <6> is a heredoc in php much slower than doing: ?> <? <6> ? <13> what's the 2 ways to do PHP_REMOTE? <13> the older way? <13> wait er <13> PHP_SELF* <12> ok next question <7> Kronuz : I would think they pretty much perform the same, both of them turn off the interpreter <12> I made a script that logs ip addresses <6> but a heredoc does interpolation, right? <12> and it uses a file called logfile.txt to write down <12> like the date and time accessed as well as the ip of the user <12> the problem is that i dont know how to get the absolute path of it <12> since the call to it is logip(); <12> and that page that logip(); is not on the main page how do i get it that it automatically finds it <7> sess: realpath() <12> as in how <12> i want to use an absolutepath like http://www.domain.coim/logfile.txt <12> but when i put that in the string it doesnt work <7> that can work only for reading logfile ^^ AND if you have URL wrappers enabled <7> you've got to use the filesystem if you want to open/read a file <7> if you use http, you can still read the logfile, but you can't write to it <12> damn <12> the problem is that the call to the logfile would look in the directory its in <12> IE wp-content/themes/theme/header.php <12> hmm wait a sec <7> [16:58] <6> but a heredoc does interpolation, right? <-- YES, my mistake, then ?> TEXT <?PHP should be faster for displaying PLAIN text <14> FlamingCows, hello? <7> sess: use ../.. as necessary <12> it works if i use the /home/sess/public_html/logfile.txt way <12> but this plugin is for other ppl <7> but you can get from wp-content/themes/theme/header.php to /home/sess/public_html/, say include("../../../logfile.txt") <15> is MBzle still here? <12> so it just looks inevery directory till it finds the file basically?
Return to
#php or Go to some related
logs:
rapidsarede gentoo sg3_utils failed #linux fedora 6 5100cn #lisp DeviceDisappeared #nvidia #kde #php formergirl
|
|