Jump to content

premiso

Members
  • Posts

    6,951
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by premiso

  1. You are including it via a URL. You will only get the parsed version. You have to include it on the file side for the file variables to actually work (remove the http://www.etc.com/" from the include and it should work.
  2. $result = mysql_query("SELECT count(idto) FROM replys WHERE idto='$fo->id'"); $replys = mysql_result($result, 0, 0); Should do what you want.
  3. A backup would have been your only way. Unfortunate but no one can help you. I do not think that without using transactions you can un-do this in MySQL. Moving to the MySQL forum as someone there may know a way and that is the proper place for this.
  4. Use an array then the in_array function. <?php $number_three = $_SERVER['REMOTE_USER']; $validNames = array("dsmith", "jdoe"); if (in_array($number_three, $validNames)) { echo '<a href="http://www.domain.org/members/admin/"><img src="http://www.domain.org/images/admin.jpg" alt="Administration" vspace=2 border=0></a>'; } ?>
  5. We cannot help you without seeing any code.
  6. What type is the numberfield being stored as. My bet is it is stored as varchar and no an INT like it should be.
  7. echo <<<OUTPUT <div id="left_c"><div class="g_content"><h3> Become A Respected Mobster</h3><div class="g_text"> <table width='100%'> <tr> <td align='left' width='58%'> You're not a Respected Mobster yet! Why not?<br /><br /> You're missing out!<br /><br /> <a style='font-size: 18px;' href='http://game2.mafiadeath.com/elite.php'>Upgrade Now!<br />Starting From $3.00!</a> </td> <td width='42%'> <li>Energy Regenerates <b><u>Twice</u></b> As Quick</li> <li>Bank Interest is <b><u>DOUBLED</u></b>!</li> <li>Yellow Name</li> <li>Respected Mobster Status</li> <li><b><u>Cash Bonus</u></b> on Purchase</li> <li><b><u>Points Bonus</u></b> on Purchase</li> <li>Access to <b><u>RM Only</u></b> Cities</li> <li><b><u>Larger</u></b> Inventory Size</li> </td> </tr> </table></div></div> OUTPUT; Would be one way, you could also close the php tags ?> then after the output reopen it and continue processing. If you want to escape quotes you could echo it out like a string. The syntax I shown is called HEREDOC.
  8. Do you want to keep the BBB or AAA part? If so strip_tags may be what you are after.
  9. He is just trying to convince his town to encase all caskets of buried people in Concrete to avoid them becoming zombies...needless to say he is having a hard time with that.
  10. lol, figured I would mention it
  11. strstr $string = "test-dash"; if (strstr($string, "-") !== false) { $string = null; }
  12. Not sure if you can do an html to flash deal. Then store it all in a flash, but I think it would still have the same issues, unless you created an index file...
  13. Maybe with javascript. But not with PHP. Especially a PDF since the plugin effects the browser to auto-open that type.
  14. I think your best bet is to use a site-ripping software to download the site and archive it up and send it out that way. Given that you tried the pdf etc, that would be the next "best" thing. But you cannot do a search on this, like you want.
  15. 1, .htaccess cannot be overwritten by anyone but the server as in the http.conf for apache it is set to be able to downloaded/read from anyone else. You are safe with that one. 2. You can lock the config files and unlock with chmod to write to it then just chmod it back to lock it up.
  16. Just run the update query. No need to pull the information out... mysql_query("UPDATE tickets SET counter = (`counter`+1) where tick_id = '$ticketid'"); Would update the counter variable to add one to it. One query and no extra code needed.
  17. You could use BBCode to do this. That would protect you, but allow user for customization of the output.
  18. That is the only way to prevent the webpage from executing it. You will not find another way, other than maybe using <pre> </pre> tags around the output or showing the output as a text file not an html file.
  19. define( 'TEMPLATE_DIR', FULL_PATH . 'templates/' . curServerName() . '/'); That would work. You were using a function as a variable. It does not work that way.
  20. I actually used to install Security Camera systems. Funny enough. For the box you need a really decent box, at least for the old type of cameras. I never installed an IP camera (one that runs off the network) but heard they are worth the money, $300-1000 per camera depending on the needs. You just plug them into a router and access them by an IP. As far as recording, I bet you still need a beefed up system. Depending on how many cameras, and how long you want to keep data you may need a terabyte or two of space, plus you would want a redundant backup (maybe). The tower alone can be any tower, just need a bunch of ram, at least 4 GBs for video if you ask me. If you go the old cameras, non-ip, they need power ran with the RG6 wire, and I would suggest connecting them upto a panel instead of using the power cords that are supplied with them. All in all the camera mounting is the pain, as you have to run the wires and depending on the house, if it is finished or not, can prove tough without the right tools. As far as how many cameras you need, I think you are way over shooting it, but I do not know how much space you have to cover and what you want covered. For that price of a system installed with the DVR unit, you would be looking at a steep price, around $10,000 from what I remember that we used to charge for that large of a system. Hope that helps, on a side note my bud sells this stuff (hopefully this is allowed, if not remove the link and PM me for it) www.denverdvr.com which sells cameras, dvr systems etc.
  21. Alternatively, you could code properly for mysql and allow the use of apostrohes. See mysql_real_escape_string as it will properly escape the right items to prevent mysql from causing a fuss over stuff. <?php if (isset($_POST['submit'])) { // given that your submit button is named submit $field = isset($_POST['field'])?mysql_real_escape_string($_POST['field']):null; // mysql items } ?> Just now that this is for textual data, if a numeric data you should verify it is numeric etc. But that would escape your field properly and allow you to store apostrophes without worry of an error.
  22. sort you can also look for more exact ones under array and that will give descriptions of each item and what it does.
  23. $var = isset($_REQUEST['name'])?$_REQUEST['name']:null;
  24. file_get_contents or curl
  25. RedHat has always treated me nice, but CentOS is a nice build too. Ubuntu is debian based, which can be easier to find/install packages via apt-get. So yea. No clue I am currently on Debian, which I love for my server.
×
×
  • 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.