Skip to content

PHP autoloading namespace on xampp

I am trying to autoload php class under namespace on xampp. But for some reason it cannot find class under its absolute path. here is my autoloader: here is my class This is my file system: This i error i am getting: Warning: require_once(C:/xampp/htdocs/app/admin/modules/smartForm/smartForm.php): Failed to o…

SFTP Opendir failing when called via Function

I have a bunch of php pages that are running on a schedule that pull data from different SFTP sources, to try and minimise this as a temporary fix I am turning them into functions and having one page that calls each of them However, when converting these to functions the pages are giving me error 500, through…

Problem with WordPress call_user_func_array() and add_action

I am programming a WordPress plugin, but I had trouble creating WordPress metadata. Please guide me. Thanks My metabox file code : Note: I am creating a metadata for posts. Answer You have added wp_api_savee_prices_metabox function inside wp_api_add_price_metabox Try the below code.

Need to pass dynamic values inside CURLOPT_POSTFIELDS

I have to make a post request and have done the same using postman for testing. Now, the code base is using php and I have never used php ever before. Upon checking the code section in postman, I got this: The problem is that I have to pass dynamic values instead of firstname, lastname4 etc. The values I have