I’ve problem with read date value from import value (Excel) to mysql database. i’ve code as below : i tried use strtotimeto define value from excel, but i’ve problem to save it into database, if my value in excel with excel date format is 1/1/2018 (it read as 1 Jan 2018, English time format)…
Passive FTP connection does not work via PHP
My application connects to FTP clients that are connected to the server via VPN. So far all clients supported active PHP and the library I used went with active FTP by default, so there was no issue. Now however we have installed some new clients that don’t properly work over active PHP, so I found out …
PHPMailer sent but Not received
I am using PHPMailer, it seems works but not received any message from them I don’t know what is wrong. I’m using tester email address from this site. Mail Tester here is my code. contact-form.php PHPMailerAutoload.php When I click Send Message I can see “Your message has been sent to usR…
Fetch value from Database and fill all textbox if dropdown value change
I am trying to fill all textbox value depend on dropdown value selection. And I also fill dropdown value by SQL query. Here is HTML Code:
Apache virtual host always redirecting to /dashboard
I’m having what appears to be a common problem but any solutions I’ve found don’t seem to work for my case. I’m trying to set up a virtual host so that I can access the public file of my Laravel …
CORS Errors only with 400 bad request react fetch request
I’m trying to make ‘POST’ request in react but i’m getting a few problems regarding CORS. I was just following what console says and fix them in server side [which is PHP] and client side everything works fine when the status is 200 but when status 400 it shows login:1 Failed to load h…
Testing in laravel against MySQL
Hello i m testing in laravel 5.5 an api using Mysql as database and DatabaseTransactions. Suppose that i have a model Team which may be active or inactive and i want to test getting an inactive Team. This piece of code is problematic if there is no inactive team in my fake seeded database. So what’s the…
Add value to custom column on customer’s orders page in woocommerce
I was trying to add new column to the orders page of the customer’s recent orders table, the new column should show the details of the product like product name & description. Tried different …
{php} is not working in latest smarty while using SmartyBC class file
I have came across my first issue and it has to deal with PHP in smarty. I read the smarty manual where it said to include the SmartyBC.class.php file instead of the regular Smarty.class.php file and i did change the default file to the BC file. I went into my .tpl file and add {php}Messages::displayMsg();{/p…
Laravel method Auth user redirect to login with message
I want redirect guest on login with message, but method: Auth::user(); redirect on page login only without message. How I can add message? Example: redirect()->route(‘login’)->with(‘error’,…