I have been developing a blogging application with CodeIgniter 3.1.8 and Twig. The application has a newsletter subscription system. I make use of a table named newsletter with 3 columns: id, email and subscription_date. In the class Subscribers controller, I have created an export() method intend to export s…
Error Message: “The GET method is not supported for this route. Supported methods: POST”
when i access to endpoint this http://localhost/newsapp_api/public/api/register,this message is showed “The GET method is not supported for this route. Supported methods: POST”. look to the …
PHP socket_read waits for data to read
I’m new to socket stuff, here is my piece of code: client read method is just: Nothing will be executed after $status = $this->client->read(), untill socket_read() reads new data. I would like to stop socket_read() acting like waiting for data to read or call socket_read() only when there is any d…
Do someting if user does not interact after some time – PHP
I`m building a whatsapp bot, the bot is fully operational, but I want to do a API call if user does not interact with the api after some time. I tryed to do with session, but is not working, I tryed the following code. Answer Unfortunately for you, “any API” is purely “server side.” Th…
How can I automatically add random description to posts with empty content posted to WordPress?
I would like to automate the process of adding descriptions for articles published on my site. I would like to automatically insert a random description from a list of pre-edited (Advanced Custom …
Can’t get a list of streets to create a card [closed]
public function create() { $streets = street::get(); return view(‘dashboard.house.created’); } public function store(Request $request) { $this->validate($request, [ …
uploading image not working in codeigniter 3
i’m new learning codeigniter 3, i have problem that i can’t upload image in edit method. i’m really stuck, i already figure it out from the internet and documentation but there is no answer and my …
Add the results from a PHP array into a SQL Select for each Result to be procesed
I am a newbie so I want to know if what I am asking is possible. I have a SQl Select query that returns a While loop and I convert the results (peoples names)to a php Array. In a another SQL Query …
redirect to 404 page instead of Fatal error: Uncaught ArgumentCountError: Too few arguments to function
I made an MVC framework for training, and I get this error and I’m not sure what is wrong with my function. when I open link like this : http://mvctrav.com/posts/show/6 it show me the post but when deleting the id like this http://mvctrav.com/posts/show/ it shows me the error My error looks like this: a…
How to pass variable to markdown? laravel mail
I am using MailMessage to send a mail message to mailtrap, and I pass a variable email. My problem it doesn’t recognize the variable that I pass in the markdown. It returns an error below Facade…