Tag : php

I have text that I receive from the source (can’t change the source) and need to convert the first line lettering (a) from line by line to a consolidated list. The main issue is level 1 and level 3 can both be valid based on the value. The same for level 2 and 5. I thought about using the currentlevel versus the prior level but that doesn’t seem to..

Read more

Automatically deleting WordPress users after registering without logging in within 24 hours is a task that requires careful implementation. It involves setting up a scheduled task to regularly check for newly registered users who haven’t logged in and delete them if they meet the specified criteria. There are various ways to achieve this, including using WP Cron and custom code to handle user deletion based on login activity and registration..

Read more

I seem to be running into some troubles getting in if statement if ($row ['approved'] == "1" && $row ['org'] == "dfa" ) working in the below script. The db has “1” in approved and “dfa” in org however it doesn’t output the db. If I remove it then it works fine however won’t print anything with it in. I had the statement working before I put page numbering in so unsure if that’s whats stopping it. Any help would be appreciated..

Read more

The application I inherited has many hundreds of PHP files and most of them contain conditional logic if/switch statements that within the blocks contain include/require statements. I tried using get_included_files() but it didn’t really help identify all potentially used files. I am wondering if there is free or paid utility that can look at a top level file and scan for the include/require/include_once/require_once statements and recursively traverse the files to get a complete list of all files that potentially can be included. A node tree or similar view would be ideal although a straight list would be helpful. I am trying to find files that are never called because the last developer had a habit of making multiple backups with similar yet somewhat co fusing names as files I know are being executed. Thank you for any suggestions you can..

Read more

Read more