Advertisement

Receive php script data as soon as it is rinsed

2017-08-11

Suppose I have a php file like this running on a remote server: for ($i = 0; $i < 10; $i++) { ob_start(); echo "Step $i of 9 "; sleep(1.0); ob_end_flush(); ob_flush(); } This prints a line like 'Step x of 9' every second. Suppose now that I w

How do I use a variable in a diff function of date?

2017-08-11

I use an ACF field to allow a client to manage the content of a countdown to its next event. I use JS flip clock on desktop version, but since it is not reactive, I decided to use diff of date to escape the number of days for mobile. The site is curr

How to add microdata attributes in PHP

2017-08-11

I use the microdata attributes in the HTML. How do I add microdata attributes to the next tag (PHP)? if (!empty($speciality)) { echo " "__ ('Specialty', 'framework')." "Specialty." ";} The page does not load when I type the f

Laravel: lang file in subfolder

2017-08-11

I wish to "multilocalize" my Laravel project. I created my directory structure like this: lang - en - front - contact.php -footer.php And I've built my footer like this: {{ link_to('/', trans('footer.frontpage'))}} It works perfectly, but when I

How to get the url of the page for the item is?

2017-08-11

Suppose I have two pages a.php and b.php with a form tag in each page. And the action of these two forms is c.php. Is it possible to detect in c.php what form (since eigther a or b) called c.php? It is not possible for me to simply use one, I need a

MYSQL How do I keep the date data added?

2017-08-11

I am new with the integration of MYSQL and PHP. So I try to create an index where you can add websites and the script displays the URL - Title - Date of the last update. Until I have no problem, but I also want to keep the date / time when the websit

download and create a php thumbnail error

2017-08-11

I make my frms cms for a gallery I have. I wish to upload an image to a folder but, at the same time, download the thumbnail for the same image in another folder. So I tried using GD for the thumbnail part, but I get the following error; Warning: mov