| |
| |
| |
|
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> Would anyone here know why this apc_load_constants always returns false? The data is definitely in the cache... http://rafb.net/paste/results/SELblT70.html <0> I'm completely lost on what is wrong there <0> haven't found gotten any replies on devshed either <1> looking at the source code for this SDO kind of tells you something about what Zend has up their sleeve. <2> lig: yeah i figured as much, which is why im wondering how things like PHPBB manage to keep you logged in for 30 days or whatever <3> http://pastebin.com/730468 $add and $delete Doesn't work, and i tried mysqlerror(), nothing shows, anyone know what's going on? <4> chronos-: they may set some kind of identifier that has nothing to do with the p***word... in a cookie... *shrug* <2> alright, well im sure i can figure out some sort of way to do it <2> thanks for the feedback <5> NVM, i made the p***gen in C++ instead ;d <5> pretty damn fast for someone who doesn't even knows C++... <6> oh knows? <0> chronos-: Here is what I do. I generate a random hash, set that as a key, set the field in the user's row to the key, then put it in the cookie <0> that key is good until the user logs out, destroying the cookie <0> or he logs in again with remember me <7> in what situation would u use split compared to using explode?
<0> explode is faster: http://byster.net/?page_id=48 <3> anyone? <7> k <4> Elekchron: put up the code that has the mysql_error() <0> So no one here has worked with APC? <0> :/ <3> lig: http://pastebin.com/730482 <8> I've got a form input that I want to contain either a default value or one from an URL parameter <8> <input name="bool" value="<?php echo $_REQUEST['bool']; ?>"/> <8> how can I put a default avlue in there if $_REQUEST['bool'] does not exist or is false? <8> oh wait, how about echo $_REQUEST['bool'] ? $_REQUEST['bool'] : default; <8> nice <8> sorry to bother you i answered my own q <9> guys <9> i just used AJAX <9> ie. the fad technology <9> its gay, but it works <10> ajax rox <10> checkout roundcube mail <4> Elekchron: a slight alternate way of doing it http://pastebin.com/730488 <4> Jymmm: darlin! haven't seen ya in a bit <1> the federal reserve bank uses php, wow, that is suprising ;) <9> yep <9> no wonder US economy is going down <3> lid: i did what u did, still nothing <4> Elekchron: you have display_errors=ON? <3> yes i do <3> other errors show <3> i just don't have any errors <3> btw it's connected to paypal <3> when i do check out <11> !+enter <12> Don't use the enter key as punctuation. Think in complete thoughts, then type. <13> hmm <13> lol <4> Arrrg - so sloow <4> Elekchron: something had to have happened with that adjustment I gave you - it either went one way on the branch or the other <3> but there are no errors <3> everything went fine i guess.. <3> but it doesn't add or delte.. <3> so confusing <4> Well Elekchron - you could always add little echos through the script to follow the logic and see where it goes <14> I'm trying to debug a possible curl error so naturally I call curl_error() but I keep getting a warning instead of the error code that I am looking for. The warning is "Warning: Wrong parameter count for curl_error() in". I've looked around a bit on google and turned up noothing useful. Any ideas? <15> I can't get custom session handling to work <15> http://paste.devpipe.com/183 <15> session_set_save_handler always return false <3> what happened <11> !tell Elekchron about enter <16> kinda confused on something, if i turn of register globals in my php.ini does that mean i can no longer use global $var to p*** a varible into a function? or is there a better way to p*** varibles into functions? <3> i suddenly left ##Php <3> is my $query_cart = mysql_query('SELECT * FROM cart WHERE customerID = \'' . $customer['customerID'] . '\' ORDER BY dateAdded DESC'); correct? there are more than 1 row of data from each customer <17> complexity: uh, by using function arguments? <17> complexity: you're confused about the register_globals though, look on php.net for an explanation. <16> guess i am sorry <18> I'm having trouble isolating a problem, since my server won't give me any errors even though I've enabled all possible errors to be displayed <18> I recently added the portion of code in lines 573-713 to this script: http://pastebin.com/730507 <18> and now, I get this blank page: http://youth.ang-md.org/auth.php <3> can someoen help out?
<19> Does anyone know the function to convert a number to a string? <11> chr ord <20> hi guys. I'm looking for advice, direction, help on a search of mine. What I'm looking for could be a library, a cl***, or a complete system. My need is to get or put together an ***et requesting/management system. In other words, I currently use a web-based request form that people can use for requesting the use of equipment. I then use a spreadsheet to track equipment reservations and check-outs. Is there anything out there <21> hello im looking for a way to read a text file with laid out like "Item 1\n Item2\n..." and i want to take each line and put them as seperate choices in a dropdown menu. anyone know how to do that? <17> CLucas916: foreach (explode("\n", file_get_contents("/the/file")) as $option) { echo "<option value=\"$option\">$option</option>"; } <21> sean_micken, wow is it really that easy? <17> CLucas916_x64: effin a <21> ? <17> CLucas916_x64: yes. <17> :P <21> lol <21> thank <21> thanks <22> is there an equivalent to "realpath()" that does NOT verify that the computed path really exists? i.e. a function that translates "..", "." and multiple forward slashes? <23> hmm, i'm trying to use preg_match to start to find a match text match on a page (example searching for the word baseball). i've got that part down, but i'm trying to have the array collect everything six <p> tags down. i'm thinking this is accomplished with the pattern syntax but not sure exactly how. any suggestions? <21> is this syntax right? "fwrite($add_gal, $new_gal.'\n')" <17> CLucas916_x64: no. that \n needs to be in double quotes. and is $add_gal the result of an fopen() ? <24> right <17> CLucas916_x64: well then if $add_gal is a file pointer, then fwrite($add_gal, "$new_gal\n"); <21> oh i didnt know you could put variables in qoutes <21> quotes <17> CLucas916_x64: in double quotes you can. <21> oh ok <21> i keep getting parse errors with this line "fwrite($add_gal, "$new_gal\n");" <17> what's the parse error? <21> unexpected t_string <17> look at the lines before it <21> damn semicolon again <21> sean_micken, ok i might need your help with the function you wrote for me <17> CLucas916_x64: it's not a function, just a bit of code. what the question? <21> oops sorry, it would be better to have your code in the actual html code rather than in a seperate php file right? <17> CLucas916_x64: well yeah, because it's run where it's placed. you could easily put it into a function and then call it later if you wanted though. <21> ok im gonna give this a try <21> sean_micken, ok it didnt work http://pastebin.com/730536 heres my HTML code <17> CLucas916_x64: you obviously need to replace /the/file with the file the content is in. <21> ya i got that <21> anything else wrong with it? <17> CLucas916_x64: besides the missing > on the </option>, no. <17> CLucas916_x64: why? what behavior are you getting? <21> well it just wasent working before, but now im getting unexpected symbol errors <21> first it was unexpected ";" <21> so i took that out <21> no im getting unexptected "}" <17> CLucas916_x64: well paste your new code <21> http://pastebin.com/730536 <21> jeez pastebin is taking forever, the code hasent updated yet <21> sean_micken, http://rafb.net/paste/results/0vcfMy91.html <21> the errors are on line 12 <17> CLucas916_x64: echo "<option value=\"$option\">$option</option"> needs to be echo "<option value=\"$option\">$option</option>"; <20> hi guys. I'm looking for advice, direction, help on a search of mine. What I'm looking for could be a library, a cl***, or a complete system. My need is to get or put together an ***et requesting/management system. In other words, I currently use a web-based request form that people can use for requesting the use of equipment. I then use a spreadsheet to track equipment reservations and check-outs. Is there anything out there <17> CLucas916_x64: and are you certain that gallery_list.txt is in the same directory as this script? <21> positive <21> sean_micken, nice it worked, thanks a ton! <17> CLucas916_x64: no problemo. <25> CLucas916_x64: Use file() instead of explode() on file_get_contents() <17> very true. brain fart. <26> hey, if I have $a=1; $b=2; $c=""+$a+$b; is this the best way to string concatenate two numbers? <17> save a step. <21> so what do i replace? <17> CLucas916_x64: foreach (file("gallery_list.txt") as $option) <21> oh ok <27> matthewk: what does $c = $a . $b; do? <17> matthewk: with $c = "$a$b"; <26> ok thanks both <28> hi... I have a question. I have two $_POST arrays (price[] and description[]) -> I would like to display each with a foreach statement. Any ideas? <27> sean_micken: which is faster? <17> schmalls: without quotes im sure. <29> hi, anyone know what's wrong w/ this port_scanner: http://pastebin.com/730555 <29> http://pastebin.com/730562 these are the errors i'm getting when I run the portscanner <27> jon_blaze: you could use array_combine like so: $combined = array_combine($price, $description); and then do: foreach($combined as $price => $description) but I'm not sure if this is the most efficient way <17> schmalls: same speed on my system, though.. both 0m0.033s <27> sean_micken: that answer was quick <28> ok... I'll try that thanks. <17> schmalls: it wasa?
Return to
#php or Go to some related
logs:
fasttrak sx4100 ubuntu driver gtetrinet *** glibc detected *** double free or corruption (fasttop): #javascript #debian ./nwn: /bin/sh: bad interpreter: Permission denied insight cannot initialize thread debugging library: generic error T_ENCAPSED_AND_WHITESPACE ldap #css debian VITESSE 8201 gdi curved text
|
|