Skip to content

strange question about PHP convert string to int

im trying to convert string to integer but return 0 or wrong number. Below is the code i have tested. Anyone know why? Thanks return integer 85 0 0 Answer By default, intval() parses base 10, so it ignores the 0x prefix. If you specify the base as 0, it will determine the base dynamically from the string pref…

NGINX/FastCGI config issues causing 404s

I’m currently trying to configure a WordPress Multisite using NGINX. The NGINX config test passes: But I simply get a File Not Found. page when I load the site. From my config: And from my nginx error.log: My docroot is /var/www/html and the logs seem to show requests are being sent to the right place: …

php automation for some tasks

i must call a php function every second if i place it in a php file it runs a few times every call php file when calling an user index.php or must i call it in server side ? (i dont know what is right way and how to make it runs in server side maybe linux can have a