Jump to content

Osaze

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Osaze

  • Rank
    Member
  1. Good day PhpFreaks, please i am really confused on what server to go for, please this 2 server grade is hard for me to know which one ill be faster for a download website. Could you please help me check which one you think would be faster in term of speed and handling database and download request. Thanks Intel Xeon-E 2288G - 8c / 16t - 3.7GHz / 5GHz 64GB DDR4 ECC 2666MHz 2x960GB NVMe Soft RAID SSD Public bandwidth: 1Gbit / s unlimited (burst 2Gbit / s) Private bandwidth: 2Gbit / s ### VS Intel i7-7700K - 4c / 8t - 4.2GHz / 4.5GHz 32GB DDR4 2133MHz 2x
  2. No @requinix I edit the secret that not the real one oo 😂,I edited it before posting it. But please now is the security cool after your review 🙏🙏
  3. and the preg_replace have corrected it function Url(&$string){ $url = str_replace(array("'", '', '%20'), ' ', $string); $url = preg_replace('~[^\\pL0-9]+~u', '-', strtolower($url)); $url = trim($url, "-"); return $url; } I noticed the previous error was accepting underscore _, after modifying the code everything now worked fine 😄 Mehn @requinix you're really a genius
  4. Thanks @requinix i have edited the code to be better, kindly check and score me please <?php require "define.php"; $seotitlemeta = "Contact $sitename"; $noindex_page = "1"; // 1 means Google and other search engine can't index this page, while 0 means allow index include './themes/header.php'; function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); $data = strip_tags($data); return $data; } ?> <h1 title="Contact <?php echo $sitename;?>">Contact <?php echo $sitename;?></h1>
  5. @requinix you're right the code is a mess, i just did what u said i am seeing some errors, am correcting them right now
  6. Please @requinix please could u point the area for me please am begging am still an upcoming but i dont know what area i am missing in the code pls help me.
  7. wow am honored @requinix thanks for replying, the code work and changes users input into html for example this code <?php $hack = "my name is osaze"; echo $hack; ?> will become &lt;?php $hack = &quot;my name is osaze&quot;; echo $hack; ?&gt; i just wanted to know if it safe and if hackers can hack me, via the form. Thanks am still an upcoming developer
  8. Good day friends, please i am still an upcoming developer please could you help me check if this contact form code is secured from hackers. Thanks <?php require "define.php"; $seotitlemeta = "Contact $sitename"; include './themes/header.php'; function filter_spam(&$string){ $url = str_replace(array("'", '', '%20'), ' ', $string); $url = preg_replace('~[\pL0-9]+u', ' ', $url); $url= strtolower($url); $url = trim($url, ""); return $url;} function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); $data = strip_tags
×
×
  • 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.