Skip to content

Check proxy before cURL

I need to check whether the selected $proxy is active or not and do a loop until a working one in proxy.txt is found before using it in a cURL. How could I do that? Below is a given proxy function. Thank you. Answer maybe you can ping, something like this

Laravel redirect from index.php and index.html to domain

I am beginner webdeveloper. I have small problem with redirect. I have this htacess: It’s work fine. Now I need redirect from https://domain.pl/index.php and https://domain.pl.html to https://domain.pl I use Laravel 8. How can I make it? Answer The simplest way would be

Laravel query json column array

I am trying to access specific data in a json column using a laravel controller, the DB column is called ‘figuresinorder’. I want to access the “wants” key but it’s not working when there are multiple values stored. {“wants”: [“1”], “trades”: […

Extract links from a list of urls

I am trying to extract all the links from a set list of or urls in a text file and save the extracted links in another text file. I am trying to use the script below which was originally meant to extract Emails: I changed the the email extract part to extract links like this: Here is the full code:

PHP get_headers function always HTTP/1.1

The PHP get_headers function returns an array, eventually including a string like HTTP/1.1 200 OK. The URLs I pass to the function are https. For some reason the successful response of get_headers always has HTTP/1.1, but Firefox devtools – network tab says it’s HTTP/2. I call the function like $h…