Category : parameters

Let me introduce you to my problem. I am newbie to .htaccess… Untill my .htaccess worked pretty well, here is the code I was using for two url parameters (f.e. www.page.com/en/articles): # DISABLE CACHING <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 Header set Access-Control-Allow-Origin "*" </IfModule> ..

Read more

I want to pass the id from the controller to route but I’m having trouble with it. I am a newbie at this so I would really appreciate your help! Controller: public function fetchVideo(Request $request) { $client = new Client(); $input = $request->all(); $headers = [ ‘Authorization’ => ‘Bearer ‘.$input[‘token’], ‘Content-type’ => ‘application/json’, ‘Accept’ => ..

Read more

I’m making a redirection on the login required pages. If user is not logged in and he/she tried to open the login required page directly then he or she will be redirected to the login page with a destination parameter Like this:- https://localhost/example-app/login?destination=login-required-page And when it will redirect to login page then there will be ..

Read more

The function is working for me to extract an extension from a long photo encoding but shows me that this; Argument 3 ($length) is (strpos($value, ‘;’)) of type false|int but substr() takes int (false is incompatible) for this below. $value = data:image/jpeg;base64,/; $extension = explode(‘/’, explode(‘:’, substr($value, 0, (strpos($value, ‘;’))))[1])[1]; Sourc..

Read more