October 22, 2024
Chicago 12, Melborne City, USA
PHP

srmklive/paypal AUTHORIZE Order with platform_fee in 2024

I need to setup paypal orders for a upcoming marketplace website (buyers, merchants and me the platform), but i fail to implement the platform_fee. Internet searches lead me to some paypal marketplace api that I cannot find in my sandbox dev account. The payment goes from buyer to merchant without deducting the platform_fee. I read

Read More
PHP

“Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key”, and “Notice: Undefined offset” using PHP

When I run it in browser it says Access Denied for user root, but when I checked it out, all the privileges were on for root user, it also gives a warning as: Undefined variable $pdo I don’t know why I have defined in $pdo but in a separated page, and the a used the

Read More
PHP

How to get files on root folder drive PHP MS Graph SDK

It can be easy question but the documentation is not clear or has a bug. When you want to get files from known folder, this is the way: GET /drives/{drive-id}/items/{item-id}/children <?php use Microsoft\Graph\GraphServiceClient; $graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes); $result = $graphServiceClient->drives()->byDriveId('drive-id')->items()->byDriveItemId('driveItem-id')->children()->get()->wait(); you have a DriveId and DriveItemdId, and then you ask files… But if you

Read More
PHP

IPC server error in the MadelineProto PHP library

I am using Madeline Proto in the CodeIgniter 3 framework. Library link: https://github.com/danog/MadelineProto I log in with more than 30 Telegram accounts, and for each account, I create a separate folder to store the session. Additionally, I generate individual log files for each account, but a general log file called madelineproto.log is automatically saved in

Read More
PHP

Render form fields in own BE module with TYPO3 FormEngine

Thanks to the power of TCA and FormEngine, it’s no problem to have complex forms with enriched form fields (to enter dates, select links or records, use richtext editors etc.) rendered in the backend. So we know that the TYPO3 backend can do that. It therefore seems obvious to use the same capabilities to render

Read More
PHP

how to pull data from gitlab with php script in laravel?

I create new project in gitlab. I upload my project in host, I need get last update form gitlab with function in laravel. My function: function execPrint($command = "git pull user:pass@gitlab.com/myProject.git") { $result = array(); exec($command, $result); print("<pre>"); foreach ($result as $line) { print($line . "\n"); } print("</pre>"); } After run this function: ssh: Could

Read More
PHP

Azure WAF is blocking URL with .php

We are using own cloud for cloud storage, whenever we upload file to own cloud, we are facing issues in WAF Detection which ever url has .php in it, the url is getting blocked from azure. From azure we are getting error message "Method is not allowed by policy" I had tried to give user

Read More
PHP

How to read code from Azure Blob storage in to PHP?

I have a WordPress plugin that reads and displays image files from the plugin folder, the plugin reads and displays the images name from a CSV as there is almost 200+ files. Now the client wants to migrate the images to Azure Blob storage. The current code looks like below. ‘<div style="background-image: url(‘+csvData[‘logo’]+’)">’ + ‘<div

Read More
PHP

so I am trying to route gayahidup.blade.php to berpakaian.blade.php but it gives me an error “Undefined variable $berpakaian”

it gives me an error like this and then if you take a look at my code in controller and web.php Route::get('/gayahidup/{id}',[GayaHidupController::class,'showGayaHidup'])>name('gayahidup.show'); Route::get('gayahidup', [GayaHidupController::class, 'index'])->name('gayahidup.index'); Route::get('gayahidup/create', [GayaHidupController::class, 'create'])->name('gayahidup.create'); Route::post('gayahidup/store', [GayaHidupController::class, 'store'])->name('gayahidup.store'); Route::delete('gayahidup/{id}', [GayaHidupController::class, 'destroy'])->name('gayahidup.destroy'); Route::get('/gayahidup/berpakaian/{id}', [GayaHidupController::class, 'showBerpakaian'])->name('gayahidup.berpakaian.detail'); Route::get('/gayahidup/kecantikan/{id}', [GayaHidupController::class, 'showKecantikan'])->name('gayahidup.kecantikan.detail'); Route::get('/gayahidup/traveling/{id}', [GayaHidupController::class, 'showTraveling'])->name('gayahidup.traveling.detail'); Route::get('/gayahidup/kuliner/{id}', [GayaHidupController::class, 'showKuliner'])->name('gayahidup.kuliner.detail'); Route::get('/gayahidup/berpakaian', [GayaHidupController::class, 'berpakaian'])->name('gayahidup.berpakaian'); and if you look my controller

Read More
PHP

PHP PDO Microsoft Access Driver is returning a 500 error

Attempting to read an access file into a PDO. $db = "D:/VacConJobTrackerbe.accdb"; if (!file_exists($db)) {die("Could Not find database file.");} else {echo "Found Database file.<br/>";} $jobTrackerConn = new PDO("odbc:Dbq=$db;Charset=UTF-8;Driver={Microsoft Access Driver (*.mdb, *.accdb)};Uid=Admin;"); I get a 500 error. The php logs are clean. Other parts of my application successfully read from a sql server. odbc Data

Read More