| |
| |
| |
|
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
Comments:
<0> this warning? This MySQL extension doesn't support full functionality of MySQL versions greater than 4.1.0. For that, use MySQLi. <1> it shows the fals link TML itrebal <2> bigga_: Yes <3> though, it may save you the h***le of escapgin if you use single quotes <4> well i was gonna say the quotes are all backwards <2> mdl003: <?php echo "<a href='javascript:xy(\"url\")'>\n"; -> <a href='javascript:xy("url")'> <4> should be using <a href=""> etc <0> i used --with-mysql --with-mysqli --enable-bundled-mysqli on the config <2> bigga_: That doesn't make much sense. MySQL and MySQLi are sort of either/or. <1> TML: no its not the output here.. <5> if I have $a = array('a','b','c') and $b = array('d','e','f'), how do I join them into one array so $c == array('a','b','c','d','e','f'); ? <4> http://www.php.net/array <2> mdl003: Then you've done something stupid and you need to tell us what it is. <4> it's very much so covered in the manual fearmoth <2> fearmoth: Hint: You want to *merge* the arrays <0> mmm.... maybe im wrong, but i used both before the upgrade...
<5> oh, I've been looking but that one must've slipped by thanks <0> but ill recompile without --with-mysql this time and see what it happens <4> thats what we're here for, lol <6> fearmoth, array_merge <7> anyone have ideas of how a plugin system works, or an article that describes it? <2> bigga_: In fact, that *should* have thrown the error: <2> "--with-mysql (using bundled libs) can not be used together with --with-mysqli" <2> raden: Wow, are *you* late to the party. <0> well... it didnt :) <0> guess im special <1> TML: this is the original code: addAppend("div2","innerHTML", " <a href=' javascript:showGPage( \" $url \" ) '> ".show."</a>") <2> bigga_: Where did mysql_config get installed? <2> mdl003: And what is addAppend()? <6> TML, alot of lag for a bit i didnt see anything till i typed that <1> TML: a special function.. which includes the link to div2 -> <div id="div2"> without changing at all <2> mdl003: Either addAppend() or something addAppend() calls is changing the input string. <1> TML: its from an open source ajax framework which is called xajax.. and the function doesnt change the input.. <2> mdl003: Then you're not being entirely forthcoming. Try it yourself: <?php echo "<a href='javascript:xy(\"url\")'>\n"; <0> TML, /usr/bin/mysql_config <1> TML: is there another way to solve the problem? <2> mdl003: The only way that DOESN'T echo <a href='javascript:xy("url")'> is when you've done something to prevent it from doing so. <2> mdl003: Not that won't run into the same problem your echo is having, whatever that may be. <2> bigga_: What -L arguments does "/usr/bin/mysql_config --libmysqld-libs" return? <0> -L/usr/lib/mysql -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt <0> weird... -lmysqld is there <2> bigga_: Does /usr/lib/mysql/mysqld.(a|so) exist? <8> what would cause getimagesize on a URL make a 400 bad request error when the same url works in a browser? <0> TML, its on /usr/libexec <2> bigga_: What? <0> /usr/libexec/mysql <2> bigga_: Why is it there? <2> bigga_: You didn't install mysql correctly. It should be on the path indicated by the -L <0> dont have a clue... as i said, i grabbed the tgz <2> -L/usr/lib/mysql <1> TML: you r right that framework is ****ty :( .. anyway how could i encode an url to list of unique chars and decode it safe? <2> bigga_: By "grabbed the tgz", do you mean "installed the slackware package" or "installed from source"? <0> the slackware package <2> cw2: When the server at the other end does sniffing to see what client is requesting the image and sends a 400 error to anything they want to reject <9> http://insertdomainhere.org/?source The source is on the bottom. <2> bigga_: Then you should seek help from a slackware forum as to why the slackware package installs a mysql_config that says files are in one place, when they're in a wholly different spot, and what the proper "fix" is for that. <1> is rawurlencode the right fucntion for my purpose? <9> The problem I am having is that its only showing one link at the top. <9> There should be 10. <2> mdl003: I don't understand what your "purpose" is, so it's hard to say. <0> the 'make' is making its work... i think itll compile this time <1> TML: to just send an url to a javascript function.. thats what i want <2> root404: I don't do mysql, so I'm guessing here, but I think you misunderstand how "LIMIT" works, because I read your select statement as saying "return 0 rows at offset 10" <0> Build complete. <2> mdl003: There are no functions in PHP to "javascript escape" a string. You'll need to roll your own. <9> TML: So what should it be? <2> root404: That's really a question for #mysql <0> TML, seens like the problem was that --with-mysql <0> TML, thanks for the help bud <9> TML: I don't think that's the problem because it works on root404.com like that. <10> is there a way to get the call stack from php if/when it crashes? <2> root404: Have you tried checking how many rows PHP is getting back in the result set? <2> whereami-work: No. <9> TML: I'm not sure how to do that... <2> whereami-work: If PHP crashes, it dumps a corefile and goes away quickly. <11> Hello, all. Can I cause Apache to not execute .php files in a certain directory?
<2> root404: php.net/mysql-num-rows <2> pmw: Yes. <10> TML, sorry, i don't mean PHP crashing, i mean bad code crashing, heh. <2> whereami-work: I don't understand the distinction <2> A crash presumably comes from bad code. <11> TML: would you please tell me how, or tell me what to search for? I've not been able to find this so far. <2> Are you suggesting there are crashes that come from GOOD code? <2> pmw: php.net/apache <2> pmw: It's example #1 <10> TML, bad PHP code, like dereferencing a null object, in php, not PHP's C sources. <3> http://www.devhome.org/404.html <11> TML: I ****. Thanks. <3> i find that rather amusing <2> whereami-work: PHP's userland doesn't have things like "dereferencing a null object" <10> TML, $obj = null; $obj->junk; // crashy <4> itrebal: you read my mind i just pasted the same damn link in another channel <2> whereami-work: That doesn't crash. <2> whereami-work: And it's not dereferencing, either, FWIW <3> jiggster: :) <10> TML, i figured it wasn't dereferencing, but i didn't know what to call it. <2> whereami-work: accessing a property <10> ok <2> whereami-work: Try it, though. It doesn't crash. It silently does nothing. <12> whereami-work: You didn't know but yet call it dereferencing. :) <13> Any reason that on apache 2.2 mpm-worker + php5 that the Engine would interpret files ending in .deb as PHP code?? <13> I had to php_admin_flag the engine off .... It makes no sence. <2> sbrath: You know you're not supposed to run PHP on anything other than mpm-prefork, right? <10> tws, i figured anybody who knows C/C++ would know what i was talking about anyway. <2> sbrath: It breaks <2> whereami-work: The problem is that I know what you're talking better than you do, and thus get confused when you start mis-applying terminology. <2> whereami-work: Such as "crash" <13> I didn't have to do the zts with this version, should I set it up as a cgi then for simplicity. <2> PHP doesn't "crash". <2> sbrath: Something like 90% of the libraries PHP uses are not thread-safe, even when ZTS is on. <13> so CGI it will have to be then... <4> er? <10> TML, yes, i know you do, i'm quite sorry, i'm not much of a php guy. <2> sbrath: As for why it's interpreting .deb files as PHP code, I can only figure you have a mis-applied mime-type somewhere. <2> sbrath: Maybe try "grep -sr 'x-httpd' <path to apache root>" <10> TML, ok, i was actually using a bad example, what i meant was something more like $obj=null; $obj->junk(); // Fatal error <2> Or look in /etc/mime.types <2> whereami-work: php.net/errorfunc <2> whereami-work: That's all there is <2> whereami-work: Make sure to pay attention to the portions at the top of function definitions that tell you which version(s) of PHP the function(s) are available in. <2> That's one area of PHP that's been in high flux <10> TML, heh, thanks, debug_print_backtrace() will do nicely ;) (yes, i am using php 5) <1> TML: are sure if there is no encoding function which uses only characters (a ..z) ? <5> can I have two functions with the same name in a cl***, like function set($index, $data) and function set($data) ? so set($index, $data) would update, and set($data) would add to a list? <3> fearmoth: no <14> hello friends <3> fearmoth: though, you could have function set($index, $data=null){if($data == null){//run this if $data is null... return true;} //Run this if $data isn't null <5> can I have it in this order though? function set($index=null, $data) ? <14> anybody knows a tool to generate documentation from mi source code? <3> you'd have it function set($data, $index=null){if($index == null){//run this if $index is null... return true;} //Run this if $index isn't null} <15> hey guys <16> hi there, guys. <15> I have this weird problem... I open up a file to write using fopen command and it says Warning: fopen(settings.dat): failed to open stream: Permission denied in /home/abc/public_html/xyz/index.php on line 13 <15> I've checked to make sure xyz permission and index.php permissions were set at 777 <15> what could go wrong? <15> ello? <15> anyone here? <15> can someone please help?! <17> can I sort a multimensional array by a specific key? <16> murdoc, I'm having a similar problem while uploading a file into the server. <1> pls could someone explain me how i could encode a string in an integer? <18> A... what? int->String, or String->int? <15> ajnewbold: I think you can <19> quit <15> mdl003: do you mean hash it <15> ? <17> murdoc: I've got $array['foo']['bar']['timestamp']... and I want to sort the whole $array by ['timestamp'] <17> there's got to be a way to do this <15> so how does your timestamp look like? what's the format?
Return to
#php or Go to some related
logs:
/usr/src/modules/fglrx-kernel/fglrx/build_mod/2.6.x #math #perl #web GOTHICIZM #sql #css #debian #ubuntu illegal hardware instruction gentoo
|
|