Questions tagged as 'php'

3
answers

How to call scripts in a Wordpress child theme?

I'm trying to put together a Wordpress template. What I can not do is still call the script in the child theme I created. CSS worked, but the scripts did not. There are several, and I got lost in how to put them in functions.php . I'm t...
asked by 20.02.2014 / 03:11
1
answer

How to simulate arbitrary concurrent traffic / access in Apache?

I'm using EasyPHP 14.1 Devserver , which comes with Apache 2.4.7 / MySQL 5.6.15 . I want to simulate high traffic and concurrent access to observe the performance and behavior of my site under these conditions, to make the...
asked by 24.12.2014 / 16:22
2
answers

How to make basic live stream with HTML5 video API and PHP?

I would like to know the basics about how to create a live stream system ... I have a blog script in php where I created a system of users and even a friends system but I would like to add the possibility of each user to create a channel "kind"...
asked by 28.12.2014 / 20:06
1
answer

Create check multiple values of a variable

I have a set of rules that are taking up a lot of space in my code: if ($ni == '1' && $status2 == 'Aberto' ){ $url_edit = "<a href='edit_os.php?id1=$id1'>"; }elseif ($ni == '1' && $status2 == 'Em Andamento'){ $url_...
asked by 15.01.2015 / 00:13
1
answer

Automate tasks with Laravel 5

Good morning, people. I need to create some tasks on my system that run automatically (such as a Cron Job). Example: Every day the system sends an email to the customers of the system with the amount of their charges, and the ones that are cl...
asked by 09.03.2015 / 14:49
2
answers

How to read a digital certificate file with php

I have a system in which it does the digital certificate store, I need some information besides the file itself, one of this information is the expiration date of the certificate. The question is, how to read this file so that I can pick up t...
asked by 17.03.2015 / 15:59
4
answers

How to execute a PHP function in the background?

I'm using the cPanel API to add dynamically parked domains. So far so good, I send the required data via jQuery.post() only this process takes a while to complete, about 1 minute. Are there any alternatives for the process to continue...
asked by 12.08.2014 / 06:06
1
answer

htaccess for web.config

I moved my site to the Windows Azure platform and their server is IIS and my old one was apache so the routes configured in htaccess are not working, I need to know how to convert this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-...
asked by 27.06.2014 / 15:34
1
answer

Float with PHP precision

I am bringing the sum of the values from the database and as a result it returns me according to the example below:    6.3285714285714 I would like it to look like this:    6.32 I've tried ceil() and round() , but both...
asked by 25.07.2018 / 22:51
1
answer

How to extract text in parentheses with regex in php

I have the text: Regular expressions (often abbreviated to "regex") are a declarative language used for correspondence. How do I get the content included between parentheses? I tried: $texto = "As expressões regulares (muitas vezes ab...
asked by 31.10.2016 / 17:42