Category "php"

How do I Post to .txt document before form submits

What I am trying to do is before I submit a form to Mailchimp with someones email I want to write that email to a .txt file. Mailchimp is using a "get" for the

If action is on a different page do I use fwrite function

I have a form that has an action of a GET on another page.. IT also has a post method that I am using to write form data too .txt file.. When I have an action o

Add bold text and line break into Laravel Notification Email

Laravel 5.6 I'm attempting to send a Laravel Notification via email. I want to make make some of the text bold, and put in line breaks, without a whole new pa

How can I create a Download Page with post php method?

I want to know that how can I create a download page in PHP that download files without reveling the download link to the file, and source to the file and downl

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