Te encuentras en la páginas de Blogsperu, los resultados son los ultimos contenidos del blog. Este es un archivo temporal y puede no representar el contenido actual del mismo.

Comparte esta página:

Etiquetas: [Adsense]  [blogger]  [digital]  [html]  [javascript]  [marketing]  
Fecha Publicación: Thu, 11 Oct 2018 17:15:00 +0000

Avoid losing your AdSense account with this anti-fraud click for blogger

many times we lose our account for not having protected the ads and banning the Adsense account as google tells us that we as publishers must protect from invalid clicks that make malicious users, by the Google Adsense policies this 2019 maximum you could receive 3 clicks per ad and the rest could be taken as invalid clicks.

This is why MBA java has taken the honor, to highlight a code in javascript to avoid that danger of our account be discharged and lose our dollars in that way easy that we give you the free code without much more preamble we proceed to install our code in blogger.

1. The first thing we should do is go to our blog:

click antifraud for blogger Adsense free
2.the second thing we should do is go to topic -> edit html:

click antifraud for blogger Adsense free2
3.the third thing that we must do is when we are already inside html we look for the label </body> it's like at the end:

click antifraud for blogger Adsense free3

4. Just before that label you must paste this code, just before:

.estilotextarea4 {background-color: transparent;border: 1px solid #000000;scrollbar-arrow-color: #000066;scrollbar-base-color: #000033;scrollbar-dark-shadow-color: #336699;scrollbar-track-color: #666633;scrollbar-face-color: #cc9933;scrollbar-shadow-color: #DDDDDD;scrollbar-highlight-color: #CCCCCC;}
Etiquetas: [date_default_timezone_set]  [php]  [time]  
Fecha Publicación: Wed, 26 Sep 2018 16:06:00 +0000

get year, month, day, hour, minute, second with php ,code

get the year, month, day, hour, minute, second with php code easy

for the programming and php MBA data of dates is very necessary, especially when using any database manager such as MySQL, PostgreSQL, Oracle, etc.

and have the exact time of a record in a tuple, here on this web page we will teach you how to take the exact date, to be able to register it in the database or show it on the page.

the first thing to do is call the variable date_default_timezone_set this variable is responsible for obtaining the time zone of the region in this case we are going to use America / Los_Angeles.


So we will tell you to take the region of the angels if you want to know more about this variable here:
date_default_timezone_set php.net

we just need to call the variable time (), which will give us the exact time of the server to which we consulted and we will obtain in several variables the year, month, day, hour, minute, second with its respective letter:

$time = time();
$day = date("d", $time);
$month = date("m", $time);
$year = date("Y", $time);
$hour = date("h", $time);
$minute = date("i", $time);
$second = date("s", $time);

  1.  date("d", $time); we will get the day. 
  2. date("m", $time); we will get the month.
  3. date("Y", $time); we will get the year
  4. date("h", $time); we will get the time
  5. date("i", $time); we will get the minute
  6. date("s", $time); we will get the second
In this way we can store it in a string, concatenate it and show it on an exact date:

$todaydate = '' . $year . '-' . $month . '-' . $day. ' ' . $hour.':'.$minute.':'.$second;

and finally all the code as it would be:



$time = time();
$day = date("d", $time);
$month = date("m", $time);
$year = date("Y", $time);
$hour = date("h", $time);
$minute = date("i", $time);
$second = date("s", $time);

$todaydate = '' . $year . '-' . $month . '-' . $day. ' '
. $hour.':'.$minute.':'.$second;

echo "today date is: ".$todaydate;


if you liked it you can leave a comment or share this post with a friend programmer =)
Etiquetas: [_SESSION]  [php]  [session_start]  [vectores]  
Fecha Publicación: Sat, 22 Sep 2018 14:52:00 +0000

Send an array object for $ _SESSION php

In our MBA course in java Many times we find that in the login of our project, especially when starting the section, we must send some parameters to get the data entered and verified in the user record to save them in a section in php, and use them later in our project in java but it turns out that it is unorthodox and ordinary to have to call or save several $ _SESSION or sections knowing that we can use an arrangement in php, a bad programming tendency is to use it in the following way, consulting in the base of data an example so to speak:

Send an array object for $ _SESSION php and use it in another xclass by calling the row


echo 'etc...etc... =)';

The above is a shame for programming should not use it, for that there are the arrays or programming vectors a way to use it in our project is like this:

1. obviously we must load the start section in our project:



Where we are going to use the $ _SESSION we must add the code above hopefully in the first lines of php, now suppose that you already have the configuration and the connection with the database

now once the users enter by means of the login in the part where the section is saved, let's take as validadar.php that comes after the login.php where you enter the data in this way:

$lasentencia="select * from mytable";
$sql= mysqli_query($link,$lasentencia);

where mytable is the name of your table and  $link is the result of  @mysqli_connect connection.php:

$link = @mysqli_connect($db_host,$db_usuario,$db_password,$db_nombre)
or die(mysqli_connect_error($link));

now we only search the row with a condition that if there are results of that query:

if($row = mysqli_fetch_array($sql)){
$_SESSION['objLogin'] = $row;


$_SESSION['objLogin'] = $row; we save it in this object as an array or vector here all the data of the query will be saved name, surname, telephone etc ...

with this we are sending an array to the section and ask it to save that vector to use it later, now after saving let's say we are in validar.php we use it in another xclass for example called content.php let's say we need user information as the name:

if (isset($_SESSION['objLogin']['name'])) {//we validate that it does not arrive empty https://www.mbajava.com/
echo 'your name is:

echo 'sorry not data';

and so we can consult each row of our database in a single line another way is to call it by means of its location of the vector example the first attribute or data of the vector in position 0 is name then we will call it like this:

if (isset($_SESSION['objLogin'][0])) {//we validate that it does not arrive empty https://www.mbajava.com/

echo 'your name is:

echo 'sorry not data';

and so we can call each one in a different way I hope I have helped them do not forget to subscribe to this page of masters of MBA programming leave a comment if I help you or any questions

Etiquetas: [methods]  [metodos]  [php]  
Fecha Publicación: Wed, 19 Sep 2018 01:49:00 +0000

¿how remove an extension in PHP? 

remove an extension in PHP

 In programming times we need to remove or delete an extension of a directory that we have hosted on our server and for that we are going to use php programming that this language helps us with possible solutions for that I will only put a method which is sent the name of the file by parameters with the extension and returns the name of the file without this extension here the code:

function quitar_extension_php($nombre){
$archivo = $nombre;
$extension = pathinfo($archivo, PATHINFO_EXTENSION);
$nombre_base = basename($archivo, '.'.$extension);
return $nombre_base;


we emphasize that when we want to call the method we must place it first before making its call as an example:

echo quitar_extension_php("nombre_archivo.txt");

and that's it