Categories
PHP

Elfinder Laravel Private folder ?

I Would like to know if anyone could help me. I use Elfinder Laravel : https://github.com/barryvdh/laravel-elfinder And I try to make some folder private, I mean all my user had an company and a role in this company for example : company : XXX role: YYY path : CompanyName/UserRole I would like only people in […]

Categories
PHP

How to check if there are values in a table in the database in CodeIgniter

I’m creating a project where in I want to verify if there is a data that has been inserted in a table by a certain user and display it if there’s any. I’m fairly new to CodeIgniter and I’m unsure of how to display all the lists that has been by a certain user if […]

Categories
PHP

APNS notification using swift

iOS 11.x Swift 4.0 Yes, I know there a dozens solutions out there that will send push notifications for you, but I am looking to create a native solution. Now I managed to put some PHP code together that works, within it I construct a APNS payload and then pack it’s way off to Apple, […]

Categories
PHP

how to send and recieved whatsapp messages using php api through proxies?

i have whats app Api with sending panel, i am trying to send all data through specific proxies.any one can tell me how to do that.i ill import proxies and check its live or dead. it done active proxies will be assigned to whats app channels/accounts. now want to know how to send all whats […]

Categories
PHP

Which cache plugin to use for multisite wordpress [on hold]

I need a cache plugin recommendation for wordpress multsite. I only found plugins for sites that are not wordpress multsite. Thanks.

Categories
PHP

Laravel Eloquent join table realtionships

I went through multiple examples and previous posts here, but I can’t find what I am doing wrong. I have two tables: Users id username 1 test1 2 test2 3 test3 Scores table id user_id points 1 1 52 2 2 62 3 3 12 And now I want to get all scores and replace […]

Categories
PHP

How to distinguish paragraph words from arrays PHP

For example I have a paragraph like this Today I went to a beautiful park, there I saw a white rabbit that was very funny. Then I have keywords in the array <?php $keyword = array(‘beautiful’, ‘rabbit’); ?> I want to make it Bold format, only keywords in the array are not bold. Example : […]

Categories
PHP

Cannot get variables into included file with function [duplicate]

This question already has an answer here: Reference: What is variable scope, which variables are accessible from where and what are “undefined variable” errors? 3 answers How to use include within a function? 2 answers My include.php: <h1><?= $sample ?></h1> This work: $sample = “Hello World”; include ‘include.php’; // But this don’t work: $sample = […]

Categories
PHP

Using Web applications to manipulate content in Word Document

I am using PHP to accept a file as input. I want to make text bold or italic or change font size Before writing the contents of the file into a word document. How to do that?

Categories
PHP

How to Solve Method Not allow Must be one of: PUT IN php

I am writing a php in this i got error message in output Method not allowed. Must be one of: PUT here is my php codes $h[]=’Content-Type: application/json; charset=UTF-8′; $h[]=’User-Agent: okhttp/3.9.1′; $postdata='{“my_link”:”abcd1234″}’; $url=http://myurl.com $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_USERAGENT,$agent); curl_setopt($ch,CURLOPT_VERBOSE,1); curl_setopt($ch,CURLOPT_POST,TRUE); curl_setopt($ch,CURLOPT_POSTFIELDS,$postdata); curl_setopt($ch,CURLOPT_HTTPHEADER,$h); curl_setopt($ch,CURLOPT_HEADER,1); curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE); $output=curl_exec($ch); echo “$output”; How to solve this problem guys help me out […]