I often use this method, but I do not know if it is appropriate, to redeem the id in JS I use echo php
<script type="text/javascript" src ="js/jquery.js"></ script>
<script type ="text/javascript">
$("document").ready(functi...
I need to create an automatic method to schedule my email marketing system, to trigger email automatically, without using the browser. Today my system is using cron, and every time I enable it on a server, I need to configure the url of the scri...
The variable receives a value that is supposed to be an email address, but the doubts arise:
Will it be an email address, a random text, or something else?
Being an email address, is it well formatted?
Assuming a valida_email() f...
Since PHP 5.5 was implemented in the Generator language. It can be used inside a function from the keyword yield .
In the Manual , we have an example where one is compared to the function range(0, 1000000) (which theoretically...
I have an android app project that is similar to EasyTaxi (it does not have anything to do with taxi, but follow this logic of using map to locate "taxi drivers" in real time, with account registration and everything ...).
Well, I know Android v...
Should we always use the attributes of a class as private?
What do private variables help prevent?
How do you decide whether a particular property should be private or not? CASE, by default, each field is private, so why are there public da...
I'm developing a blog platform where users submit their template and Laravel uses that template to build the blog. The user / developer will only tell you where the values will be, for example:
<h2>{{$blog->title}}</h2>
Can I...
I refer to this link link.
The documentation is very vague. I already changed the "action" of the "form" but without success.
Html5 form:
<form id="fileupload" action="bloco_img_upload.php" method="POST" enctype="multipart/form-data">...
I would like to get through the information date, the person's age in years:
For example:
06/09/1991 - > 24 years
05/12/1998 - > 16 years old
Suppose I have these dates in php
$data1 = new DateTime('19910906');
$data2 = new DAte...