php Questions
3
Solved
I opened some some ini files like mysqli.ini , mysql.ini , pdo_mysql.ini. Inside those files there is an .so extension added for those files. I want to know where these .so files are stored.
Insid...
2
Solved
I want to create a custom middleware that only if the user is authenticated and the email is a certain email to access the /admin page.
Although, when I specify my custom route and then a redirect...
Columbia asked 2/11, 2017 at 16:47
5
Solved
Consider the following code. In the event that an exception occurs, the trace (which will be logged and stored in a database) will include the sensitive password data. How can sensitive data in cas...
Mccay asked 18/6, 2021 at 22:24
7
I have a controller with the "getUsers" function in a controller called "UserController" , and inside it I want to call a function of the "CarController" controller called "getCars", the two option...
5
Solved
I have a problem with laravel and I don't know how to fix it for now. Actually I don't know how I face this problem, but will try to explain you what I did and what I tried for now to fix the probl...
Flowerless asked 20/11, 2020 at 7:53
3
Solved
I have a PHP script that checks URLs availability (basically, the script should return true for a given URL when the URL could be opened in browser and vice versa). There is an URL I stumbled upon:...
8
Im new to API and Vue.
Im working on Laravel 5.8 api.php and controllers and views and it only return 404 Not Found.
this is what ive tried
api.php
Route::group(['middleware' => 'api'], fun...
Arva asked 8/3, 2019 at 3:2
13
Solved
$split_point = ' - ';
$string = 'this is my - string - and more';
How can I make a split using the second instance of $split_point and not the first one. Can I specify somehow a right to left sear...
6
Solved
I am trying to re-order my categories from the default alphabetical order.
My admin backend my categories look like this:
And on the frontend they they look like this:
Is it possible to have...
Kalmuck asked 25/4, 2016 at 8:17
5
Solved
I am working on a system related to tv recordings.
I am parsing the following xml from another system (to which i have no documentation):
<Program FileName="2009.11.07-Saturday 07 November 200...
4
Solved
I'm building a website that will randomly display a yelp listing each time the page is refreshed. The yelp search api returns 20 listings in an array. Right now, I am using PHP's function rand(0,19...
3
I'm trying to backup my site by zipping it all, and putting the zip into an unnaccessible folder, done with PHP. My code is
<?php
Zip('../../', './');
function Zip($source, $destination)
{
if (...
6
Solved
I have the following string and would like to use str_replace or preg_replace to remove the brackets but am unsure how. I have been able to remove the opening brackets using str_replace but can't r...
Sgraffito asked 23/1, 2012 at 13:3
4
Solved
I've created a MVC application using php, but when I try to access the urls it gives me "The server encountered an internal error"
When I check the log it gives me :
Internal Server Erro...
2
Solved
I am new to Laravel and am using Laravel 6.x. I need to write a validation that looks at a date supplied by a user on a form (via a JQuery datepicker) to make sure the user chose a date that is on ...
6
Solved
I'm preparing a query for mySQL to grab record from the previous week, but I have to treat weeks as Monday - Sunday. I had originally done this:
WHERE YEARWEEK(contactDate) = YEARWEEK(DATE_SUB(CU...
9
Solved
I have a symfony project, where I use api-platform.
I have an entity, and I have data providers for it. I am in trouble with definition of additional parameters for a collection endpoint.
An entity...
Boarhound asked 16/5, 2018 at 11:40
5
Solved
I am running nginx + php-fpm. Is there any way how can I know what is each of the PHP processes doing? Something like extended mod_status in apache, where I can see that apache process with PID x i...
4
Solved
Ive been just starting to learn Symfony PHP framework, and Ive run into some problems with its configuration.
When trying to create a new project with command line like so:
symfony new --full my_pr...
Dyson asked 4/10, 2020 at 15:58
6
Solved
I have a field "image", type is file and need only to validate if image is selected, means it can be also empty.
I tried it so: 'avatar' => 'mimes:jpeg,jpg,png,gif|max:100000', but so it is als...
Placencia asked 11/1, 2017 at 10:43
13
Solved
I have a php file which contains only one class. how can I know what class is there by knowing the filename? I know I can do something with regexp matching but is there a standard php way? (the fil...
Rotenone asked 22/8, 2011 at 20:8
4
Solved
I m getting start time 634942626000000000 and end time 634942638000000000. How can I convert it to a Unix timestamp? I want to display formatted date/time in PHP?
4
I know it is possible to nest shortcodes if they use the do_shortcode wrapper, however, the codex states:
"However the parser will fail if a shortcode macro is used to enclose another macro of the...
4
Solved
Currently when someone adds a product to our website it says: "X Product" has been added to your cart | and then has a "Continue Shopping" button in that notice that is on the right.
Since we onl...
Ouzo asked 1/3, 2018 at 21:24
11
Solved
I am creating a php website using the symfony framework and composer.
Operating system: Windows 10
PHP version: 7.3.2
Symfony: 4.2.3 (env: dev, debug: true)
Composer: 1.8.4 (2019-02-11)
When I ...
Assignation asked 13/2, 2019 at 16:53
© 2022 - 2024 — McMap. All rights reserved.