| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> #2 sit <0> #2 sir <1> hacked``: php.net/mysql-num-rows <0> k <0> thanks guys <2> Hi! , is it possible to change the url/page without sending a header("Location: blah.php"); ? <3> mod_rewrite <2> da-drew: i cant find it in php.net how do i use it? <3> its apache <3> .htaccess **** <2> ahh okey nasty <3> im drunk as a skunk, thats all the info im capable of givin <3> ha <4> xnor: meta HTML tags are capable of doing that. <2> Is it true that you only can have one header("Location: blah.php"); in same file? <1> xnor: It's true that you can only end up sending a client to one location
<2> TML: even if one header("Location: blah.php"); resides in a if statement that never gets exexuted? <5> xnor: That's fine. <5> xnor: You just need to end up with no more than one Location. <1> You can even send more than one <6> Hi guys, Is there any other way than var_dump to output what the data type is of a variables value? <1> But only the last one has any effect <1> jimmiehansson: php.net/gettype <6> TML: thanks :) <0> guys <0> how do i like, lets say i have an sql statement <0> like so: $sql = "INSERT INTO `p1_routing` (`bankroutingnum` , `bankname` , `bankaddress` , `bankcity` , `bankstate` , `bankzip` , `bankphone` ) VALUES ('$routing[$j]' , '$bankname[$j]' , '$bankaddress[$j]' , '$bankcity[$j]' , '$bankstate[$j]' , '$bankzip[$j]' , '$bankphone[$j]')"; <0> but if one of those vars has a quote, the sql statement fails <0> any way around this ? <7> Has anyone used and would recommend an iCal feed parser? <6> hacked``: do '".$array['something']."' <7> hacked``: you need to mysql_real_escape_string everything that goes into an SQL query <7> hacked``; have a look at the examples on php.net/mysql_real_escape_string <0> so like, mysql_real_escape($sql); correct ? <7> no, you need to escape each value <7> look at the examples. <0> $sql = "INSERT INTO `p1_routing` (`bankroutingnum` , `bankname` , `bankaddress` , `bankcity` , `bankstate` , `bankzip` , `bankphone` ) VALUES ('$routing[$j]' , '" . mysql_real_escape($bankname[$j]) .' , '$bankaddress[$j]' , '$bankcity[$j]' , '$bankstate[$j]' , '$bankzip[$j]' , '$bankphone[$j]')"; <0> err, sorry, but something like that in the middle <0> k <8> dl() [function.dl]: dl() is deprecated - use extension=ffmpeg.so in your php.ini........ <8> So, you're telling me I can't use dl() when reporting all errors? <7> put @ infront of it <7> or, do what it says, and load the module properly <9> php is deprecated, use python <7> I agree <8> aidan, I don't want to have to load the ffmpeg extension on every page. <10> rixth, PHP is getting removed in PHP6. <5> Python is a nice, but a little strange. It's hard to get used to. <10> So you bette get used to it. :) <7> rixth: if it's compiled in, you're not loading it at all <11> python is deprecated use c++ <5> yuck <5> i'll take python :) <1> rixth: But...that's EXACTLY what dl() does <7> rixth: extension= will slow down your page loads by microseconds, it's not an issue <9> I like php for web pages, but I don't want to keep up with another ang just for the web <12> hi there <12> anyone here? <12> i have a dedicated server, shall I use PHP Safe mode or not? <9> you want it to be safe <0> that mysql_real_escape_string() crap, added like 4 minutes to the page execution time <0> totally unacceptable <13> you insert a couple million rows into mysql? <12> redir: but does not php safe mode restrict the usage of certain things? <14> harrrr <0> nope <0> 23,434 records <11> i have 3000 queries per page is it okay? <15> what the hell do you do that for? format a raw insert file and run it through mysql console <0> cause you cant automate that, on a scheduler <11> youeve got hacked <11> do you know Boney M <11> ?? <16> hacked``, yes, you can... its called a cron job <0> k <11> do you know Boney M
<0> but my parsing loop, runs 23,000 times <16> hacked``, what could possibly need that kind of script, regularly? <16> maybe that is a stupid question..... <11> do you know Boney M!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <15> hacked``: what do you parse? <15> kibibyte: crack? <11> what crac? <15> that thing you're smoking <11> Boney M music band <15> Boney M is related to PHP... how exactly <11> they played in my university last friday in poland <17> hey guys, I have a form that submits to itself, after some validation is done i do a header('location:foo.php'). Is there any way to redirect to foo.php and keep the post vars? <11> they use playback it ****s <15> Gordo: sessions? <17> mst: yea there is a lot of data, sessions could get ugly! Its an option thou i suppose....im sure there has to be a way... <1> Gordo: No, there's not. <1> Other than sessions. <17> I was going to use javascript to do my validation but it doesnt seem to like my array of checkboxes (products[]). Seems to have a problem with [ in names.. <1> Gordo: You can't do it by name if it has [] in the name, you have to do it by index or id <17> TML: thanks.... <18> hallo <18> kann mir jemand das extreme styles mod installieren???? <18> hello <17> TML: thanks i had no idea i could use ID with javascript. I thought it was just another useless attribute! thanks <18> can someone install me the extreme styles mod <1> Gordo: o.O <19> roar! <17> sandmann03: drunk? high? <1> Gordo: getElementById, one of the single most useful Javascript functions <18> can someone install me teh extreme styles mod??? <11> ja wohl mein fuhrer ich dir sagen aber weiss ich nicht <17> TML: thanks. (I hate javascript) <11> TMP i soperator we must be careful <6> another german chan :) <20> Hi! Is there any function which will replace '\n' to '<BR>' ? How can i do it? Is there any simply replace function? <11> nl2br <15> nl2br() <21> zzz: str_replace <20> GarethAdams|Bed: thanks, that' s the function i looked for. <21> nl2br turns \n into <br /> which is XHTML rather than HTML <20> or, nl2br will be good, too :- ). <22> I'm looking for a function somewhat similar to 'file' that will take a string containing several newlines and put each line in an array element. <23> Vasistha: explode <24> there is any diference between OR and ||? <23> strat: yes, they have different precedences <22> GarethAdams: excellent, thanks <8> ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush. <8> Can someone please explain that error to me? <8> Even if I put 'echo 'test';' before it, I still get the error <25> no ob_start()? <7> ... you haven't started a buffer <7> what can we say that the error doesn't? <8> I'm calling it like this: ob_flush(); flush(). <8> It has worked in the past. <7> you don't have a buffer to flush!!!!!! <7> you haven't called ob_start, you can't call ob_flush! <8> flush() has no effect on the buffering scheme of your webserver or the browser on the client side. Thus you need to call both ob_flush() and flush() to flush the output buffers. <7> try and understand what that is saying <8> aidan, all I know is that I HAVE used ob_flush(); flush(); in the past to show the current pafe progress to the user. <7> rixth: then you used ob_start your ob_flush, add one in if it makes you happy <8> aidan, I didn't. And can prove it. <7> rixth: haha, sure you can <7> if you're not using ob_start, don't use ob_flush ... it's that simple <8> http://pastebin.com/729400 line 355, aidan. <8> I didn't use ob_start() and I don't get an error. <7> god damn I hate charsets <7> in firefox this page is fine, http://virtualexplorer.com.au/journal/2004/17/ <7> in explorer it looks like monkeyballs <8> aidan, no comment as to my proof you are wrong? <7> rixth: how is that proof? you'll get an error. <8> Er, I don't. <26> hello, i wonder if there is a way to know the exact error when xsltprocessor::transformtoxml fails <7> then you've implicitly started an output buffer in your php.ini <7> vinadelmar: in php5.1 yes, look at php.net/libxml
Return to
#php or Go to some related
logs:
#debian #gentoo grub don't root password Control-D #perl #kde NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin. klibidio #css DISTCCD_OPTS sources.list smbmnt
|
|