Jump to content

dreamwest

Members
  • Posts

    1,223
  • Joined

  • Last visited

    Never

Everything posted by dreamwest

  1. dreamwest

    mysqld

    I have skip-innodb in my /etc/my.cnf but it doesn't help
  2. dreamwest

    mysqld

    Why is it using so many resources. I killed the proccess but it keeps returning, ive restarted mysql server, check /etc/my.cnf for errors, still no luck I assuming --log-error=/var/lib/mysql/site.com.err is writing to a log and the PID's are lasting for 74Hours+ . Ive checked the site.com.err log and it doesnt have any errors So whats causing mysqld to use so many resources?
  3. dreamwest

    mysqld

    Ive set up my new VPS and mysqld is using 60% - 90% cpu and 6% memory per process (6-8 processors). Im not running any databases yet, so its currently not being used Heres the PID thats causing the issue /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/site.com.err --pid-file=/var/lib/mysql/site.com.pid
  4. I put alert("ok"); in find.js but I get nothing
  5. No didnt work
  6. Im trying to include javascript inside javascript but not working for some reason page.html <script> function find() { var head= document.getElementsByTagName('head')[0]; var script= document.createElement('script'); script.type= 'text/javascript'; script.src= 'http://site.com/find.js'; script.onreadystatechange = callback; script.onload = callback head.appendChild(script); }; </script> <form name='f' onsubmit='find(); return false;'> <input type="text" name="q" size="60" maxlength="755" value="" /> <input type="submit" value="Search" /> </form> <div id='results'></div> and in find.js document.getElementById("results").innerHTML ="Hello";
  7. Which bigtable is the best? Hypertable Hadoop Any other suggestions?
  8. You can also make $items an array before the script if $rss_link has no value $items = array();
  9. Im trying to make this array unique but its making both keys and values unique is there a way around this? $arr = array ( [funny] => 1 [space] => 1 [chimp] => 1 [funny] => 0 [lobster] => 0 ); $track = array_unique($arr); print_r($track); Basically i need the output to be: Array ( [funny] => 1 [space] => 1 [chimp] => 1 [lobster] => 0 )
  10. Awesome! Works perfect ...i love you long time
  11. Im trying to highlight some words within a html string but its returning highlights between tags. $txt = "Hello this is a <a href='/link.php' title='hello php'>link</a> within php"; echo preg_replace("/\b(hello|php)\b/is",'<b style="color:black;background-color: #FFFF00">\1</b>',$txt); I need it to return: <b style="color:black;background-color: #FFFF00">Hello</b> this is a <a href='/link.php' title='hello php'>link</a> within <b style="color:black;background-color: #FFFF00">php</b>
  12. http://www.wizecho.com/wiki/Php_email
  13. Gotta love boundaries http://www.wizecho.com/wiki/Php_email
  14. $file = "http://www.wizecho.com/images/programming.jpg"; //if you dont get the attachment check to see if the image is still availiable $attachment = chunk_split(base64_encode(file_get_contents($file)));
  15. Boundry attachments are always fun http://www.wizecho.com/nav=php&s=email
  16. <?php $string = file_get_contents("http://site.com/index.php"); if(preg_match('~<title>(.*)</title>~is', $string, $m)){ print "The title of $url is <b>{$m[1]}</b>"; }else{ print "The page doesn't have a title tag"; } ?>
  17. session_unset(); session_destroy(); Then on page reload if(session_id()){ session_regenerate_id(true); }
  18. Youll need to delete your existing fields and write them again. Also make sure the collation is "utf8_bin" not UTF-8 General
  19. http://www.wizecho.com/nav=php&s=intro
  20. Change database collation to : Utf8_bin Change html header to: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  21. Youll have to replace the whole element <script> function img(id,img){ document.getElementById(id).innerHTML = "<img src='"+img+"'/>"; }//end replaceImage </script> <td><button type="button" onclick="img('x','image1.gif');">Show Image 1</button></td> <td><button type="button" onclick="img('x','image2.gif');">Show Image 2</button></td> <span id='x'>Default img<br /><img src='http://i4.ytimg.com/vi/SvxkSKqY6cU/default.jpg'/></span>
  22. my bad im doing 10 things at once. <script> function replaceImage(id,img){ if(img == 1){ document.getElementById(id).innerHTML = "<img src='http://www.wizecho.com/images/wiz_start.jpg'/>"; }else if(img == 2){ document.getElementById(id).innerHTML = "<img src='http://i1.ytimg.com/vi/8jUU3yCy3uI/default.jpg'/>"; } }//end replaceImage </script> <p><a href='#' onClick="replaceImage('image',1); return false;" title='Reload image'>option1</a></p> <p><a href='#' onClick="replaceImage('image',2); return false;" title='Reload image'>option2</a></p> <span id='image'><img src='http://i4.ytimg.com/vi/SvxkSKqY6cU/default.jpg'/></span>
  23. RewriteRule ^title/(.*)\.html$ /page.php?title=$1 [L,QSA]
  24. <script> function replaceImage(id,img){ if(img == 1){ document.getElementById(id).innerHTML = "<img id='image' src='image1.gif'/>"; }else if(img == 2){ document.getElementById(id).innerHTML = "<img id='image' src='image2.gif'/>"; } }//end replaceImage </script> <p><a href='#' onClick="replaceImage('image',1); return false;" title='Reload image'>option1</a></p> <p><a href='#' onClick="replaceImage('image',2); return false;" title='Reload image'>option2</a></p> <img id="image" src='image1.gif'/>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.