php Questions

4

Solved

I would like to translate the fields of a composite JSON object using Google Cloud Platform, instead of translating every single sentence on its own. Is it possible? Example (from English to Itali...
Muco asked 16/7, 2018 at 13:40

6

Solved

I need some help i have this code that Uppercase the first character of each word in a string with exceptions i need the function to ignore the exception if it's at the beginning of the string: fu...
php
Nitpicking asked 16/8, 2012 at 22:39

2

Solved

I have a the following routes defined: //Leases Route::resource('properties.leases', LeaseController::class) ->only(['show']) ->shallow(); //Invoices Route::resource('leases.invoices', Inv...
Otoole asked 8/2, 2022 at 7:32

3

Solved

I'm using Laravel's schema builder with mysql to make a unique column. But when I use the unique method it is case insensitive. I need it to be case sensitive. How can I do that? Schema: Schema:...
Sisco asked 4/2, 2017 at 19:2

3

I'm using Laravel and I just added a new migration for increasing column size. The first generated table has a column named latlong of type Point. I can't modify any column size? When I try to modi...
Bookcraft asked 25/11, 2017 at 9:57

3

Solved

I have a strange behaviour that I don't understand I've changed the woocommerce_shop_loop_item_title hook to add a link to the title of the product. This is my code inside functions.php // Add HR...
Bohannan asked 12/9, 2017 at 10:57

2

In a OpenLiteSpeed server I used php_info() to find the path to php.ini Loaded Configuration File /usr/local/lsws/lsphp73/etc/php/7.3/litespeed/php.ini Then I edited max_input_vars and tried seve...
Runner asked 2/6, 2020 at 16:14

2

I'm trying to make a simple query to a DHT server. I'm trying to make a simple simple example to test queries to the servers, but I don't get a response from the server in any form... Little exam...
Augusto asked 18/2, 2012 at 9:57

4

Solved

I have a string value that I'm trying to extract list items for. I'd like to extract the text and any subnodes, however, DOMDocument is converting the entities to the character, instead of leaving ...
Dray asked 8/9, 2011 at 4:56

4

Solved

Is it possible to use one parameter in a prepared mysqli-statement multiple times with only binding it one time? something like this $stmt = $mysqli->prepare(SELECT * FROM user WHERE age BETWEE...
Criticize asked 29/3, 2014 at 20:16

2

Solved

Strange issue in Symfony4: Doctrine works, I can validate the schema, create the database etc using php bin/console doctrine:schema:create. But my PHPUnit test does not have a connection. By runnin...
Applause asked 9/1, 2018 at 15:6

2

Solved

I have a public method for a class and I would like to document the available string values that the method can accept. Would this be acceptable: /** * Set size of photos * * @param string $size ...
Unexceptional asked 25/6, 2011 at 9:9

10

Encountered the following error in My Laravel app: FatalErrorException in CollaboPDFController.php line 14: Class 'PDF' not found This is my CollaboPDFController.php: <?php namespace App...
Draw asked 7/12, 2016 at 9:28

7

Is there a built-in way to do something like this? Let's say I have a search-page that has a few parameters in the URL: example.com/search?term=foo&type=user A link on that page would redir...
Limitless asked 8/2, 2014 at 18:32

5

Solved

I want to add a substring (text) at beginning of string only if this string doesn't have already this text at beginning. Example: // let's say I want to add "Has" at beginning (if doesn't...
Arguelles asked 20/6, 2019 at 16:21

7

Solved

I am working on a project where I need to make a function that will parse the 4 default math operations (addition, subtraction, multiplication, division). It would be nice if the function could par...
Hydrophobia asked 27/4, 2011 at 11:56

13

I'm trying to learn PHP and am encountering some issues early on. When I setup my basic file, then select PHP serve project, I receive a message at the bottom right of the screen saying PHP not fou...
Pintsize asked 5/4, 2021 at 10:30

2

Solved

Hi i'm using laravel and I want to validate create a regex which will allow a specific format for duration (not time as this can exceed a 24 hr format). so for example 124hrs 30 mins and 24 secs wo...
Zealous asked 21/11, 2015 at 22:50

2

Solved

I am intermediate in Laravel. I have some published projects in Laravel for my clients. I started a Project with Laravel with Vue using Inertia. I used a starter kit of Laravel 10 with the breeze a...
Mortgage asked 5/3, 2023 at 10:15

2

I am trying to fetch Gmail sent items using Imap but it gives me error saying "Notice: Unknown: [NONEXISTENT] Unknown Mailbox: Sent (Failure) (errflg=2) in Unknown on line 0" $hostname = '{imap.gm...
Angstrom asked 22/10, 2012 at 8:15

3

I am using CraftCMS, and I am getting this error: Invalid Configuration – yii\base\InvalidConfigException craft\web\Request::cookieValidationKey must be configured with a secret key. The longer er...
Guatemala asked 23/11, 2020 at 15:30

3

How to make an element array inside an array explode again. I have an array like this echo "<pre>"; print_r($pks); The Result. Array ( [0] => 2017-04-15||KMTC_HOCHIMINH [1] => 201...
Helve asked 19/5, 2017 at 2:41

9

Solved

I got this code from some tutorial about linked signup, but the tutorial provide just the basic information. I need to get the user email also... How can I do that? Here is the code: auth.php Th...
Jamilla asked 3/1, 2013 at 19:14

5

Any pages with page type posts, order type posts, or posts show this error. This is only visible on a hosted environment. I cannot replicate the errors locally I have done the following in this or...
Gabriel asked 11/9, 2019 at 1:42

2

Solved

First off: this is no duplicate as the solution provided differs from any solution for similar questions and "[notice] child pid XXXX exit signal Segmentation fault (11)" in apache error....
Roundlet asked 23/2, 2019 at 11:50

© 2022 - 2024 — McMap. All rights reserved.