Category "php"

Want to protect file from copy,download

I have following requirement. Admin can upload any files like jpg,pdf,PPT,DOC file on server. End User or viewer only access the files in display/view mode.

Laravel Nova, route not found

I've installed Laravel Nova (using Laravel 5.6). App\Providers\NovaServiceProvider::class is registered in my config/app.php file. But when I go to https://loca

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

I have ubuntu 14.04 EC2 instance. I have installed php 7 on it. when I execute any php command like php --version or any other. I get following error PHP Warni

How to create a search for a WP_User_Query in a custom page?

I tried to create a search on a custom page that contains a list of users, but I can't make it work. I created a custom page template to mount my page, this pag

Laravel multi auth - Authentication user provider [] is not defined

It works when it put 'merchant' => [ 'driver' => 'session', 'provider' => 'users', ], But It shows error when I set a different

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

I want to get list of survey from surveyGizmo API itself but its not working for Me.For valid token also it always returning error code is 401. Alchemer :Versio

Authorization Required - Error 401 only in firefox

I made a website and put it on a local Linux server. I can access it without problem on Chrome and IE but firefox outputs this : Authorization Required

calling server using nusoap with complextype

i am calling a client in a browser, and sending an array of arrays as a parameter to a server function, it return mein first key value pair that fine, but it on

Rewriting WordPress URLs and parameters with nginx

Help , i need rewrite url with nginx . I have installed plugin "Ajax Search Pro" for replace theme search , but when i search , i got error when i move to page

Reducing authentication calls on external API (Laravel 5.6)

My app requires data to be gathered from an external API. I am using Guzzle. My API methods are written into a separate class stored in a library folder. I ha

How to add a custom field to all Woocommerce attribute terms using add_action

On the Woocommerce Product Attributes page, I have the following working for one Woocommerce attribute (called myattribute). The following adds the custom field

How to display MySQL table using php and edit it in a web browser

i am using a while loop to display all the data in my MYSQL table. the problem is that its not showing the newest entry. after adding a record it does not show

Best Practice to Print Barcode In dompdf

I want to create a label sticker with barcode in PDF. Please give me the suggestion to create this things. Now , I use CI3 and dompdf. I have tried googling a

How can I make Laravel return a custom error for a JSON REST API

I'm developing some kind of RESTful API. When some error occurs, I throw an App::abort($code, $message) error. The problem is: I want him to throw a json form

Confirm Leave on External Links in Wordpress

Here's the situation: This is a bank website, so when a user clicks an external link (perhaps to a Facebook page or a partner website), there needs to be a box

Failing validation doesn't stop code execution in livewire component

I'm trying to show a list of models. Having a text filter posed no problem but when trying to add a year filter, problems started occurring. If a non-numeric va

PHP sort array of objects by two properties

I have an array Array ( [0] => stdClass Object ( [tab_option_name_selector] => 2 [fieldtype] => notes [order] => 12

shopware 5: Unable to load template snippet

I am using shopware 5 for my e-commerce website and I am getting this error when logging to the backend: [![Unable to load template snippet][1]][1] 'string:{in

Yii2 ArrayDataProvider does not show already paginated data

I have an issue with ArrayDataProvider object that Yii2 provides. I have a huge API call that returns more than 7k items (this is a problem because obtaining al

How to install php yaml on CentOs?

On the start I was getting this error: Call to undefined function yaml_parse_file() I have tried everything what I have found over google: yum install libya