I am learning Laravel Passport and developing an OAuth2 server. After creating a client I made the following call to get the authorization code The call works as expected and I got the authorization code, however when redirecting to the callback route which is defined like so It didn’t work, the respons…
Creating a Cron job for URL
I have a have a website that automatically pulls feeds and the operations works fine if I input a URL on my browser but I cannot open the URL on my browser every time. So I created a cron job on my …
Register Form PHP not inserting values into DB, just reloading the page
I really can not find what am I doing wrong in my registration form, unfortunately the page is just reloading instead of inserting values from form to my DB table. Register.php Connection.php Register Form Answer Please make sure the following line has no problem when it is interpreted by the PHP: On the othe…
What was PHP’s “o” serialization format for?
The list of backwards-incompatible changes for PHP 7.4 contain the following note: Serialization The o serialization format has been removed. As it is never produced by PHP, this may only break unserialization of manually crafted strings. (Note that this is referring to a little-o, not the big-O format which …
How to create a json php api that only connects given with the expo react native app?
I have the following PHP code where I intend to convert it into an API to show my sports news that is hosted in a PHP application and the data stored in MYSQL, so I want to show those records of my news in an application developed in Expo React Native. The code already generates a JSON structure for me,
Cannot set breakpoints on Visual Studio Code
I’m not sure what happens, I can’t set breakpoints on php files, but I can do so on javascript files. I’ve been using vs code with php for months without a problem, I haven’t changed anything, but …
This message always puts me into the yahoo blacklist temporarily. Is there anything wrong with it?
When ever I send this message to yahoo, I get a temporary block right after. I only sent it to myself, so no spam reporting done there. # all variables declared before… $mail = new PHPMailer(true); …
How to cURL image-type projected image? [closed]
I have this problem. There is a Joomla site that has a image presented via PHP file image.php that has some Content-Type to be projected as Image. I want to get that image with cURL or …
How to use a for loop to insert multiple records in a database table
I have simplified my problem into the following code: I am trying to get 10 records in the table, with each incrementing by one in the ‘x’ field. However, all I see is: Please advise. Thank you. Answer Here is how you can do that.
Laravel not calling function inside if statement
In laravel 8 I’m trying to pass data to the view blade template. This is my code: I thought that it should call the function inside [privatecar::class, ‘list’] and return the results but it just returns Array ( [0] => AppHttpControllersprivatecar [1] => list ) . How should I do to call…