Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 months ago. Improve this question I am creating an endpoint to be able to send an email to a user in case t…
Php Or operator doesn´works propertly [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 9 m…
Can I use Visual Studio Code plugin Live Server instead of Xampp?
I’ll try to learn PHP for back-end, to create a localhost is it really necessary to use Xampp ??? Because in the past I’ve got lot of unsolvable problems with Xampp. Answer you can Install PHP Server and Live Server from VS Code marketplace and use them instead of xampp for more info please check …
Get Error “Warning: Trying to access array offset on value of type null in”
Here’s the error I wan’t to add text “You” Before msg but it getting error. my php code : ($outgoing_id == $row2[‘outgoing_msg_id’]) ? $you = “You: ” : $you = “”; Answer i think this error returned due to the nullable of the $row2 this besides the wr…
Make word bold with setValue in PHPWord
How to make the replaced word bold and underline when using TemplateProcessor in PHPWord? Found solutions are very old (2016). I tried to create my function, to edit xml document, but done file is crashing. My code: Tried this function: Answer
Filled many Textbox with Select box using laravel
I want to display data in a text box based on the selected options. for example if If I select the title of the book, it will display the author of the book, the price of the book, the year the book was printed. I want to display the book based on the selected option chosen my Controller my Model
PHP file reading
I have a txt file with name source.txt and has the following content. I read and echo all the content. But I want specific data and assign to the variable. if I need name. Then read the file and select john and assign to the variable Answer Here an mini code example exemple script
Add class only on first carousel-cell (flickity)
i would have the class “opacity” inserted only at the first “carousel-cell”. For the rest in the loop, they should not be there. Answer You could use the $loop->first variable to add a class only on the first iteration of the loop. Like this: <div class=”carousel-cell {{ $l…
Yii2: Controller action parameters with a dash?
If I have a URL like https://example.com/controller/action?customer-id=7414 how do I get customer-id in my action parameters? Since a dash is not allowed in variables names I cannot do the following! Documentation is usually excellent but on this exact point it’s just silent. How do I solve this? Answer…
How to redirect all requests to a PHP file inside a subdirectory in apache2?
My document root is /var/www/html/. I created a directory called myapi inside like /var/www/html/myapi. The folder structure in /var/www/html/myapi is like I want all the requests such as http:localhost/myapi/books would be redirected to the index.php inside the src folder. my current .htaccess setup: Rewrite…