1,463,547 questions
1 vote
0 answers
16 views
created_at (server time) is sometimes earlier than clicked_at (client time) — why?
I’m tracking button clicks on my website and storing both client-side click time and server-side insert time in my database. Frontend (JavaScript) I capture the click timestamp like this: clicked_at: ...
Advice
1 vote
3 replies
100 views
Confused which one to take: js or php for back end (Laravel or Node.js)
I am currently learning Laravel PHP, but I feel a bit confused. From what I see, there seems to be less demand for Laravel at the moment. On the other hand, I hear that JavaScript—especially Node.js ...
1 vote
0 answers
57 views
Laravel app handling redirects unexpectedly
I have two apps running on the same server behind a Webscale proxy (Apache). A Laravel 11 app works correctly, returning a proper 302 with session cookies. My new Laravel 12 app returns 200 OK with no ...
3 votes
1 answer
115 views
How to accurately "JSON.stringify" in php (codeigniter4) according to Node/express JSON.stringify for Sha256 validation?
I'm having problem comparing a sha256 for a webhook validation from this documentation: api doc: https://docs.api.delyva.com/?version=latest#a207fce6-44cb-43f6-aa30-e3234aedcb3d api guide: https://...
0 votes
0 answers
45 views
Laravel localization using session not applying globally (locale changes in session but app()->getLocale() stays unchanged)
I am trying to implement localization (English/Japanese) in a Laravel 12 project using session-based language switching. I have a route to switch language: Route::get('/lang/{locale}', function ($...
0 votes
1 answer
76 views
How can I iterate through a JSON file with PHP and access the second element of the file? [duplicate]
I have a JSON file with geo coordinates and some features like this: { "type": "FeatureCollection", "features": [ { "type": "Feature", ...
1 vote
1 answer
48 views
phpMyAdmin very slow when moving to version 8.3 and later
I recently made a PHP update in phpMyAdmin from version 8.2.1 to 8.3.0 and things started getting really slow in the admin console. When I say slow I mean it's very slow when trying to edit some table ...
1 vote
0 answers
137 views
Query in model does not work errors 1054/1064 [closed]
When performing this query, the Forum model is not recognized, but other models are, and the query only works using facades. Why does this happen? use App\Models\Forum; use Illuminate\Support\Facades\...
Advice
0 votes
4 replies
93 views
When selecting data from a database, how would I put it into a HTML table with a PHP PDO connection?
As of right now, all I have is this: <?php $stmt = $pdo->query("SELECT id, name, email FROM users"); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> This is selecting the data and ...
Tooling
1 vote
1 replies
39 views
Recommended tool for sending WordPress form data to REST APIs with Bearer Token auth?
I am looking for a reliable way to connect various WordPress form builders (specifically Gravity Forms and Elementor) to an external CRM via a REST API. The requirements are: Support for Bearer Token ...
-2 votes
0 answers
109 views
How to setup a PHP file to return static files [closed]
I am trying to use a single index.php file to protect static files created on docussaurus. I created an NGINX config to force all links to be parsed by index.php like below: server { listen 8000; ...
-4 votes
0 answers
67 views
Problem with values of $_SESSION values across a session [closed]
I have a number of websites running under a single domain as www.sub1.domain,org, www.sub2.domain.org, ... They use some common code and that in effect resides in the parent domain. At logon some ...
0 votes
0 answers
54 views
crop a full pdf page into two pages [duplicate]
use App\Models\User; use Smalot\PdfParser\Parser; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Laravel\Socialite\Facades\Socialite; use ...
Advice
1 vote
7 replies
250 views
How do I stop rewriting my incomplete projects in different languages?
I am building a meal planner for my partner. I wrote it initially in Rust and almost got it working, but then I decided to rewrite it in PHP. I made more progress then rewrote it in Java using Swing. ...
0 votes
0 answers
99 views
Multilingual routes with parameters [closed]
How to correctly display a route with multiple languages. route that needs to be refactored Route::get('/community/{subcategory}', [SubCategoryFreeController::class, 'index'])->name('...