I am trying to get Polly to read something for me, using PHP. I have created a new project, installed Amazon composer require aws/aws-sdk-php and then created a file with code from SDK documentation example and modified a few minor things such as changing credential from default to value, var_dump to var_expo…
Tag: php
How to ignore specific private static function with PHPUnit?
I’m new to PHPUnit and wondering is it possible to write a test for which ignore specific method. The code is like examine whether $data is Valid or not, and if it find irregular data, send message to slack with it. My question is, is it possible to run a test without sending alert message, like ignore …
PHP cURL login and loop through URLs stuck on first URL
I am trying to loop through part numbers to get their associated information. If I echo the part number it is always the same. even though the starting part number is correct. Ideas? This outputs… The first one is the only one that is correct. NOTICE WE04X10010 is being echoed as the part number in all …
Output PHP already encode to json, and send to javascript to be json, not working
I’m do output with json_encode to sending to javascript, with this code. so output show like this, [{“id”:”121353568″,”name”:”Baju Casual – Black”},{“id”:”556903232″,”name”:”Tas LV – Red”},{“…
PHP Laravel – Get array of models by search or return empty array
Very new to PHP and Laravel so this is probably a noob question. I know the $sites variable has content in it when I dd($sites); but when it comes to actually returning a value, I get nothing. Any thoughts what I am doing wrong? EDIT: The other function referenced above is here (shouldn’t really need it…
Placing Error Message from PHP to specific place in HTML [closed]
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 last year. Improve this question I have created a log in system. My PHP is on a separate script file than my …
adding a hyperlink in a sms email
What I am trying to do is send a registration confirmation sms via email from my website. I have it working now but I want to make sure that people are putting in correct phone numbers and carrier data. When my message sends it will send the word link but its not clickable is there a way to make the
I Can’t show my database tables through migration command on powershell terminal (Windows 10)
I tried to run: php artisan migrate Also to connect to MySQL using terminal on Windows. I Got this error: .env file: I tried to change my DB_HOST to “localhost” but it didn’t work. When I want to show databases it shows those; But even if I create tables like these it didn’t see As you…
How to hide a div if a value from db matches – Laravel
I want to hide a <div> element if the value is_admin === “0” in table admins. Here is my Controller Code I want to hide this div if is_admin === “0” Answer
PHP Fatal error: require(): Failed opening required lib prestashop
I have installed prestashop api lib in local (xampp) and works great, but when I upload the it to my server, it throws a exception. Log file: autoload_files.php: composer_real.php: composer.json: I supose that laravel doesn´t get correctly the lib but I don´t know how to fix it correctly. Please help, thx. An…