By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!


  1. JosiahMaybe

    PHP How to encrypt AND decrypt passwords?

    Okay so I use openssl_encrypt and openssl_decrypt but that just sounds like it depends on SSL certificates and since they only last a year, how am I supposed to encrypt and decrypt passwords? I know password_hash won't work because I need to get origin again. Also, unsure what happens if I use...
  2. JosiahMaybe

    HTML Best way to have GIF favicon but icon in all browsers?

    Okay, I want a GIF icon for https://gugquettex.com but Yandex complained about no valid icon found. It cannot do animated icons. Is there any way I could have a default icon for incompatibility? I hear at root of hosting puting a file named favicon.ico makes an icon regardless of whether it is...
  3. JosiahMaybe

    PHP Maybe 443 error with seemingly valid SSL?

    Thus are my errors: I have https://gugquettex.com/index.php. I also have https://gugquettex.com somehow not showing that. Like my main problem is it is not calling https://gugquettex.com/stats/hits.php. It should call that and increment or make a hit counter file in that stats directory. That...
  4. L

    JavaScript Passing data from (html-JavaScript) table to JavaScript Function

    Hi, I've got a button for adding rows (select option value and Input) to a html-JavaScript table, When I select an element from the select option value (idmedico) I use onchange option in the select for going to a JavaScript function for fetching the name for the idmedico and the populate the...
  5. JosiahMaybe

    PHP Anyone want to review like my selling plans?

    Okay so I have made products, I plan to sell. Basics of my plan are 1d3.com for payments and taxes, asurahosting.com/hosting web hosting, weatherapi.com geolocation, and proxycheck.io to make that accurate. My email is [email protected], you can also direct message me but I prefer privacy for...
  6. W

    Current best method for storing uploaded documents (2024)?

    Hi all, What is currently the best method, in terms of security as well as scalability and least complexity, to store user uploaded documents on a shared hosting platform? Is it to store the uploaded documents in a secure folder(s) location with a reference pointer (file path) in the...
  7. Kaworu

    PHP The most basic PHP program is not working correctly

    Hi! I have written the most basic PHP program and the output is not as it should be :( Can somebody help me? I am using XAMPP v 3.2.4 Source code and the output below: [/SPOILER] I mean, I really do not get why what is printed is printed...? Any help? ;-)
  8. T

    PHP Help with Mysidia Adoptables

    Trying to call imagemagick using this code. The errors are with the appcontroller, myadoptscontroller, and index. I have been talking to someone who also uses the Mysidia Adoptables code and they provided me their code to edit, I edited their code but it is throwing these errors and I’m not well...
  9. K

    PHP How do you fix image not found in database error

    I keep getting errors that my images that are stored in my db are not found it gives me this error message: Failed to load resource: the server responded with a status of 404 (Not Found).
  10. phpio

    PHP Asking for your feedback on a PHP code security scanner in beta

    Hi, I'm Theo! Just to preface this for the mods: this is not an ad nor is this a commercial project -- a small team of devs (myself included) has recently finished working on a PHP code security scanner and we are humbly asking for your feedback. We have already been told that integration...
  11. I

    How do I display the new comment in the comments section when added and still keep the submission ajax code?

    My code is below: $commentsQuery = "SELECT username, created_at, content FROM comments WHERE post_id ={$row['id']} ORDER BY created_at DESC"; $commentsResult = mysqli_query($con, $commentsQuery); $commentsCount = $commentsResult->num_rows; if ($commentsCount > 0) { echo "<details>...
  12. I

    How do I make this layout possible?

    I have tried many, many times to make this possible but can't figure out how to get the comments box and button to be inline with the reactions emojis and I can't get it working. It has frustrated me so much that I have thought of quitting the project but I'm hoping I won't have to and I'm...
  13. I

    PHP How do I get the video to unmute when scrolled into view but mute when out of view?

    I'm working on a social media platform and I need help fixing my code below so that when the user scrolls to a video, that specific video is unmuted and all other videos are muted, and when the user scrolls to another video, all videos are muted (including the one they just watched) and the new...
  14. JosiahMaybe

    How to restrict access to PHP scripts to only be called from a single web site on same server?

    I know $_SERVER['HTTP_REFERER'] should be like my web page. I also would have dedicated IP and could check that address but can't someone have a duplicate or spoof that? If it helps, I would be using shared hosting from Asurahosting.com, Unlimited Plus plan. I have not made this site yet. I am...
  15. JosiahMaybe

    PHP How can I avoid lack of sending of purchases in PHP with email (mail(...))?

    Okay, so I can have unlimited email addresses, unlimited storage per each, and a set number of sends per hour per each. How do I make something that tests if an email was actually sent? I would be using in PHP that function called "mail" and sending a file along with it. I know how to send said...
  16. D

    PHP Simple powerful PHP library for data sanitization

    Hello, I've created a highly efficient and robust PHP library designed specifically for data sanitization. It combines simplicity with remarkable power, ensuring swift processing. This library empowers you to effortlessly sanitize diverse data types, eliminating the need for extensive manual...
  17. rajko

    PHP I dont know why my product isnt showing up in my shoppingcart when i press buy, btw i work with session variables

    this is my idfk.php i have markt the buy button. <?php session_start(); // Initialize the cart session if it hasn't been set if (!isset($_SESSION['cart'])) { $_SESSION['cart'] = array(); } // Check if the product ID is passed via GET request if (isset($_GET['productId'])) { $productId =...
  18. RealImmortal2004

    How do I redirect the webpage in the code below?

    I’ve tried using the code below but I’m stuck as to what I need to add to make it redirect. This is what I’ve got so far: <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { function get_data() { $name = $_POST['name']; $file_name='login-data'. '.json'...
  19. P

    Add a button on the single page product that add's the product to the cart with an amount of 0$

    I want to show a button in my single product page template that says "Try at home for free" under the product description and when you press the button it will add the product to the woocommerce cart with an amount of 0$. I'm using woocommerce with elementor. I have the following PHP code on...
  20. H

    would Firebase be good for making a forum/chatroom?

    i struggle with php, so i was thinking should i use firebase instead of mysql, or should i keep using mysql and use node.js instead of php
Top Bottom