Skip to content

I can’t get element on PHP website with Selenium

I need to build a script to automate action on this website that is builded using PHP. For that, I’m using the Selenium package for python. So I instantiate the browser and made login using the xpath …

Php Disabling past days in datetime_local picker

I am making an event calendar. I am currently looking for ways to disable the previous dates on datetime_local and the minimum date and time is the current. Are there other ways? <div class="…

php -> sql missing leading zero

I am passing ID´s, with a query to a SQL database. The ID is generated by new DateTime(), which I format afterwards. The whole workflow works, SQL database connection is established and the ID´s are …

Unable to validate empty json object in PHP

Surprisingly, validate_json function is returning false at an empty json object; $empty_json_obj = “{}”; if(validate_json($empty_json_obj)) { print_r(“VALID”); } else { …

How to prevent PHP SESSION closing when the page is refreshed?

I have created Signup and Login systems for my gallery website. When a user tries to login into system, their user and password and admin privilege is checked. If it was successful, the username is appeared on top left corner of the home page and Login turns to Logout. The problem is that when I refresh the p…