Skip to main content

Questions tagged [php]

PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

2 votes
2 answers
42 views

Sending Firebase Cloud Messaging Notifications via FCM HTTP v1 API with PHP

This is my first time using FCM, and I had a lot of trouble finding up to date examples on how to send notifications using Firebase Cloud Messaging Notifications via FCM HTTP v1 API with PHP. I'd ...
tony's user avatar
  • 383
4 votes
3 answers
88 views

Reversing string in PHP

I got this task to evaluate my knowledges in PHP. I was asked to avoid using functions like strrev() or array_reverse(). ...
user avatar
1 vote
0 answers
42 views

Testing PHP CodeIgniter 3 controller with PHPUnit

I want to unit test my PHP website, which uses the outdated framework CodeIgniter 3. CodeIgniter 3 uses the MVC pattern, and each page on the website corresponds to a public method in a controller. I ...
RedDragonWebDesign's user avatar
0 votes
0 answers
30 views

injecting the laravel debugbar into a VueJS app served via vue-cli-service

My team develops an app with an API using the Laravel framework and the front-end is developed with VueJS. Locally vue-cli-service serve (a wrapper around Webpack) ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
3 votes
1 answer
174 views

Detect the social network of a given URL

I am making a class in PHP that detects the social network or instant messaging platform of a given URL: ...
Dimitrios Desyllas's user avatar
1 vote
0 answers
82 views

comment-monk - Comment hosting script for static blogs and websites

So few days ago, I had created another review request for sqlite database schema for a comment hosting system. Now that the app development is complete, I have pushed the initial version on github. As ...
Prahlad Yeri's user avatar
2 votes
1 answer
35 views

Open Source Disposable Email Filter PHP Package

I’ve recently developed an open-source PHP package called Disposable Email Filter and would greatly appreciate a thorough code review. The purpose of this package is to filter out disposable email ...
sint's user avatar
  • 21
1 vote
0 answers
82 views

Add a Custom Billing Field to WooCommerce Checkout, Order Meta, and User Meta

I have implemented a custom WooCommerce checkout field to collect a Tax Exempt Number in the billing section. This field's value is stored in the user meta upon checkout to facilitate future orders. ...
intothevoid0's user avatar
2 votes
1 answer
134 views

Count how many numbers in a range have exactly three divisors

The challenge Given array a of n numbers, I need to count how many positive numbers less than each aᵢ have exactly 3 divisors. Constraints 1 <= aᵢ <= 2.5 * 10¹³ In other words, the minimum ...
Muhammad Usman's user avatar
3 votes
1 answer
107 views

Evaluating Extended Operating Hours Past Midnight Across Timezones in PHP

I am working on a project that involves tracking the operating hours of businesses across different timezones. Some of these businesses operate past midnight, and to accommodate this, operating hours ...
tony's user avatar
  • 383
6 votes
3 answers
272 views

Simplified VarDumper in PHP

I wrote a simplified VarDumper and wanted to get feedback on areas I can improve on my code. My biggest area of concern is the captureContext method making sure I get the correct file and line ...
CodeWithPhpX's user avatar
4 votes
1 answer
428 views

Get visitor current city via API or display the city the user searched for

I am writing a simple PHP script to display all my available stores in google map. If the user just came in, I need to set the user current city as default city using geolocation (3rd party); ...
Cooperative's user avatar
1 vote
1 answer
92 views

Telegram YouTube upload video notification Bot

I made a simple script that notifies a Telegram Channel when a new youtube video is uploaded upon a YouTube channel: index.php ...
Dimitrios Desyllas's user avatar
3 votes
1 answer
182 views

Sending only modified data from a table to the backend as form data

The frontend has a table with hundreds of rows. Each row consists of different inputs (text, file, ...
pileup's user avatar
  • 421
2 votes
2 answers
210 views

Is showing an HTML file that the client uploads safe?

I have created two pages (one straight HTML, the other PHP) to show an HTML file in the context of my server. The reason for this is simply to get access to / the styles in the CSS spreadsheets - not ...
ControlAltDel's user avatar

15 30 50 per page
1
2 3 4 5
285