Category : performance

https://gtmetrix.com/reports/www.markskitchen.com.pk/kkRUV4NY/ This is the Link to My Site I don’t want google fonts on my site, And I try Lots of Plugins Including Wp rocket asset Cleanup and Much more that are available in the market. But It Doesn’t Effect on Fonts Requests, Fonts are Still Loading and Taking 80 requests. I use System Fonts ..

Read more

I’m trying to send a message to users through their user_id this is my controller public function messagesend(Request $request, $user_id){ $data = array(‘details’=>$request->details, ’email’ =>$user_id->email); Mail::send(‘transactionmessage’, $data, function($message) use ($data){ $message->from (‘[email protected]’); $message->to($request->email); $message->subject($data[‘details’]); }); // echo $$request; return redirect(‘ongoingstatus’)->with(‘success’,’Message Sent!’); } and my route is Route::post(‘/messagesend’, [UserController::class, ‘messagesend’])->middleware([‘auth’])->name(‘messagesend’); don’t know why i’m getting this ..

Read more

I have a php script which writes csv files to disk, this is the function: function fputcsv_content($fp, $array, $delimiter=",", $eol="n") { $line = ""; foreach($array as $value) { $value = trim($value); $value = str_replace("rn", "n", $value); if(preg_match("/[$delimiter"nr]/", $value)) { $value = ‘"’.str_replace(‘"’, ‘""’, $value).’"’; } $line .= $value.$delimiter; } $eol = str_replace("r", "r", $eol); $eol ..

Read more

A client has a woocommerce store with special shipping requirements. Some products can only be shipped with some shipping methods. I have written custom code to remove rates based upon product criteria. I am using the woocommerce_package_rates filter to loop through the $rates and $package and then selectively remove certain rates based on product meta. ..

Read more

I’m in the process of App development that involves profile setup with a picture. It also includes messaging option with attachments. It will be a global rollout with multiple users creating profile and message at the same time. We use PHP/Laravel code to write into the database in AWS. Question In AWS I’m looking for ..

Read more