Search results

  1. mephis

    Site not working in IE.

    as far as I noticed, inside your <style> tag, you're using <!-- (to hide from older browsers, I assume) but you're not closing that (with --> before you close the <style> tag) which results in hiding the remaining content on some browsers
  2. mephis

    Need text editting script

    tinymce is a good js editor for such things, I normally use it on my CMS (it replaces a <textarea> input) and you can store it on the database under a TEXT field
  3. mephis

    redirect

    check the $_SERVER["HTTP_REFERER"], if it doesn't come from where you expect it to come from, redirect it
  4. mephis

    MySQL Help, can somebody move this thread if it does not belong here

    it might be easier for you to just install WAMP (assuming you're running a windows OS), it just about configures everything for you you can get it from http://www.wampserver.com/en/ it's also a good idea (if you do this WAMP thingy) to uninstall the MySQL, Apache and PHP installations you...
  5. mephis

    Help with php array

    you can merge two (or more) arrays with array_merge() http://uk3.php.net/manual/en/function.array-merge.php
  6. mephis

    Need help: been getting "double newline in headers"

    in the source code: /*1442*/ // most documentation of sendmail using the "-f" flag lacks a space after it, however /*1443*/ // we've encountered servers that seem to require it to be in place. /*1444*/ if ( ! mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str...
  7. mephis

    PHP paging help

    Where you have: while(list($row) = mysql_fetch_assoc($result)) I don't think you need to call list()... try: while($row = mysql_fetch_assoc($result))
  8. mephis

    PHP Help

    I beg to differ... $stats = array("attack", "defence", "strength", "hitpoints", "range"); foreach ($stats as $index=>$value) { echo " index ($index) = value ($value)<br>"; } outputs: index (0) = value (attack) index (1) = value (defence) index (2) = value (strength) index (3) =...
  9. mephis

    CRON Jobs and PHP

    you can pass args on the first line if I'm not mistaken: #!/bin/php -q (your code) and if you're not sure where php is located you can probably use: #!`which php` -q (your code)
  10. mephis

    PHP Help

    ok... when you define the array $stats it's creating an array like this: [0]=>"attack", [1]=>"defense", (...) so instead of: foreach ($stats as $skill) { try: foreach ($stats as $i=>$skill) {
  11. mephis

    PHP Help

    how about adding some echo's at certain points in the code and see where it stops echoing? then you know where the error is located
  12. mephis

    CSS Positioning Help

    you'll probably want a <div> that encompasses every other element in the page (start it right after <body> and close it just before </body>). set style="border: 1px solid #000000;" or set it in the CSS and you'll probably also need "display: block; float: left;" on every other <div> inside
  13. mephis

    Timeout

    CRON jobs are definitely not affected by server timeouts, it's only when PHP scripts are parsed through the Apache server that they have a timeout (set in php.ini, default is 30 seconds). Therefore, you can set up a CRON job to run your PHP script outside of Apache (i.e. in the command-line)...
  14. mephis

    Your Favorite Instrumental Songs

    I'd say these are some of my favourite instrumentals (not in any particular order): Metallica - Orion, Call of the Cthulu Opeth - Deliverance Erik Mongrain - most of his stuff is instrumental Sepultura - Kaiowas there are a few more, but I can't recall the names...
  15. mephis

    open source tools

    good point xmakina... I've been using Aptana Studio lately and I quite like it. It's free, open source and cross-platform (Linux, Mac, Windows) which makes it perfect for me. You can run it stand-alone or as an Eclipse plugin (you might want to check out Eclipse as well).
  16. mephis

    add layer over active content

    in addition you might also want to add the tag wmode="transparent" to the <embed> tag of your flash <object> same sort of thing happened to me before: even with CSS z-index of >1000, flash would still get the topmost layer...
  17. mephis

    Update Form not submitting

    It might also be a good idea to dump your $_POST vars, since you say: You might be generating some malformed HTML there which is screwing up your _POST, and in turn screwing up the query
  18. mephis

    PHP help continued...

    not sure that the problem lies there (although it's a good point). I think the problem is in the second SQL query: $map_query = mysql_query("SELECT * FROM map WHERE 'co_ords_long' = '$co_long' AND 'co_ords_lat' = '$co_lat' LIMIT 1"); it should be: $map_query = mysql_query("SELECT *...
  19. mephis

    syntax error

    try this: (...) onmouseover='this.src="../images/comment1.jpg";' onmouseout='this.src="../images/comment.jpg";' (...) using single quotes both in the html and the javascript is giving you the error, just use single quotes for one thing and double quotes for the other
Top