Category "php"

PHP echo values of all sub keys [duplicate]

In the following array: "options": { "front-electric": { "pt": "Vidros Eléctricos dianteir

Converting alphabet letter to alphabet position in PHP [duplicate]

$my_alphabet = "T"; The above character "T" should print the exact position/number of the alphabet. i.e 20 So, if $my_alphabet = "A" ; I sho

Custom post type single page not working

I have aj-fashions custom post type. technically i tried to show the loop of all post in a template file named fashio-template.php and now for the single post i

Smarty if isset

Okay so I have some PHP code but I have recently changed to smarty. And I was wondering how I convert that PHP code to smarty code. PHP CODE <?php if (iss

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