I’m integrating an external script with my wordpress theme and I’m getting this error in one of my files: PHP Fatal error: Call to undefined function get_bloginfo() this script is located in themes/mytheme/myscript And all files are included as following: how can I fix it? Answer you must include …
Tag: php
IIS+PHP 7 +Firebird
I am trying to configure IIS+PHP 7 + firebird. IIS and PHP are working fine but when I try to connect to a firebird db it shows this message: “Could not connect to localhost: We were unable to use the Firebird database because the ibase extension for PHP is not installed. Check your PHP.ini to see how y…
Laravel Middleware / Route Groups
I’m fairly new to Laravel, so this question may obvious to some. In the case of running checks per HTTP request, for example User Authentication. Is there a better, more efficient or simple correct …
What are the generated files when creating a table in MySQL (.opt, .frm, .MYD, .MYI)
When I create a database in MySQL and create a table called flat in it, 4 files are generated: This happens every time a table is created. What are these files? Answer The file db.opt contains the database characteristics. It is updated every time the database is altered. For the remaining 3 files: table.frm …
WooCommerce order status change from payment gateway
I have integrated a payment gateway to accept online payments for my store running on woocommerce. Everything works fine but I noticed that woocommerce is changing the order status to wc-processing for all the online paid orders by default. As per my store’s functionality I want all the online paid orde…
How to retrieve a url parameter from request in Laravel 5?
I want to perform certain operations with a model in a middleware. Here is an example of what I want to achieve: My question is, how can I retrieve the desired parameter from the $request? Answer
Php flip the echo result
I confused the method to flip the place of the echo result, below is my code while ($looptools == 0) { $mysqlihelper = ” SELECT * FROM soal WHERE nomorsoal = $numberofmysqli “; $…
Php base base64 encode and decode not working correctly
I want to encode and decode in php using base64, but the encode and decode function does not give me correct output. I am using code from online php functions. I encode this string “best arabic songs loves 2013 nonstop أفضل من الأغاني الحب الجديد كلمات العربي” and get the output: “YmVzdCBhcm…
phpseclib error bigInterger not found on line x
hi this my error when i want implement RSA algorithm in PHP how to fix this problem everything seems okay and i not changing anything Fatal error: Class ‘phpseclibMathBigInteger’ not found in phpseclib/Crypt/RSA.php on line 509 this is line 509 in __construct method of RSA class $this->zero = n…
Getting unknown property Exception in yii2
here I have a model in yii2 when I want to submit the form I face with this error. Getting unknown property: appmodelsCarAd::used_value but as you see I have this field in my fields. My table name is car_ad. what is the problem with my code? Answer Because this field is not present in the @property comment I …