Posts by Cyber Hacker • 469 points
39 posts
-
1
votes1
answer2442
viewsA: Accept cookie button
I managed to do it that way /front javascript e jquery <div id="termo-de-cookie" style="display: none"></div> <script src="https://code.jquery.com/jquery-3.4.1.js"…
-
-1
votes1
answer237
viewsQ: Crawler
Currently I develop Crawler in php using guzzle, and lately I’ve been looking if it would be possible to use javascript to create Crawler, using the user’s ip and such, you know if it is possible?…
-
0
votes0
answers83
viewsQ: Curl with jquery
I am trying to make a request for a page just like I do when I use Curl in php but I want to via jquery but it ta q n I have permission, I wanted to know how to fix it. my code until the moment:…
-
1
votes1
answer93
viewsQ: check if a video link is still working
I am developing a site and I use a link q in time in time It gets off, I already have the system I run to update this link but it is in manual mode to run. I was wondering if you have any way to…
-
-1
votes2
answers36
viewsQ: I am tempted to send a formlario without the ultimalization of the Ubmit input
I was wondering if it’s possible to submit a <form> as a standard text: <form method="POST" action="#"> NOME </form> When you click on the text NAME it must submit the form.…
-
1
votes3
answers203
viewsQ: sort array by date
I created a function that makes the selectt in the database and returns the data in array and now I want to sort its answer by date example Response returned from function Array ( [dados-0] =>…
-
-1
votes1
answer88
viewsQ: Create a superglobal php variable
I’m creating a website, and all my functions that I use on it are in a file called Funct.php. So when I have to use some function, I have to call these files using the request Funct.php and,…
phpasked Cyber Hacker 469 -
2
votes1
answer147
viewsQ: Error switching hosting server - Laravel PHP
When switching hosting server, the application shows the following error. session_start(): open(/var/lib/php-cgi/Session/sess_bd836c00fd2e50a6ad60859449d28a85, O_RDWR) failed: No such file or…
-
1
votes3
answers307
viewsQ: transform result into an array so -Function select php
I’m trying to create a Function to do select in the Database. However, it is now bringing an array within the array. How to leave it in an array only. Code I created : <?php include 'conect.php';…
phpasked Cyber Hacker 469 -
2
votes1
answer96
viewsQ: Laravel - default route
Hello I’m new in Laravel and I was wondering if you can leave a default route in case someone misses the route typed in the Return page
laravelasked Cyber Hacker 469 -
0
votes1
answer188
viewsA: Use result of an SQL query as attribute to another query.(MYSQL)
I have an example that I’ve done a do, so yours will stay but or so in my bank has then he shows <?php $host ="localhost"; $usu="root"; $senha=""; $bd="ts"; $link = mysqli_connect($host, $usu,…
-
0
votes1
answer47
viewsQ: Database , event or routine ? would work?
I am new to create event and routines in the database and I came up with a question I am making a payment system and I wanted to know if it is possible to put this function as an event or a routine…
databaseasked Cyber Hacker 469 -
0
votes0
answers37
viewsQ: jQuery doesn’t want to run on mobile
I’m using a function so that when one clicks on the inputs the value is replaced by monetary value, but on mobile only works if one clicks on "ok" or "go", and I wanted it to run as soon as one…
-
-1
votes1
answer52
viewsQ: run Function even if input is disable - Jquery -javascript
wanted to run an Alert if Submit input even if input is disabled follows the code. <input type="submit" value="Cadastrar" class="col-md-12 col-xs-12 col-lg-12" id="submitCadastro" disabled="">…
-
0
votes1
answer165
viewsQ: Decrease php hours
I’m having trouble fixing the time to decrease it in php. My idea take the time that comes from the database and decrease with the current time and bring the rest , however. code I’m using as an…
-
0
votes1
answer45
viewsQ: Am I required to call a Parameter if I determine it in a function?
Hello am I with a slight doubt type if I determine a Parameter in creating the javascript function I am obliged to call it ? example: function ts(metodo){ //código aqui } Can I give an onclick…
javascriptasked Cyber Hacker 469 -
0
votes2
answers1000
viewsA: Change Input color when typing x characters
<input type="text" id="ex" onBlur="ts()"> <script> function ts(){ var a = document.getElementById('ex').value; var b = a.length; if(b<10) …
-
1
votes1
answer185
viewsQ: Save div to a cookie
I’m starting to mess with cookies, so I don’t know much. I was hoping he’d save a certain <div> but I don’t know how to do it. Like I’m doing: check if that cookie exists: $nomecoook =…
-
0
votes0
answers45
viewsQ: I can’t connect to the server - Websockt
I am not able to connect to my Websockt server always error can anyone help me ? Server - PHP <?php $host = 'localhost'; $port = '1234'; $null = NULL; $socket = socket_create(AF_INET,…
-
1
votes1
answer57
viewsQ: Paging of php pages
ola I am creating a search system and need to create a paging thought to use $_SESSIONbut I noticed that it would be an error below the code I developed so far Research: <?php…
-
0
votes1
answer568
viewsQ: Artistic key error while trying to generate
I pulled an example of a design of Lockable and when having give a php artisan generat:key he returns me the following mistake [Dotenv\Exception\InvalidFileException] Dotenv values containing spaces…
-
0
votes0
answers30
viewsQ: Websocket Server - Error in the npm server.js command
I tried to execute the command npm server.js and he turns me into that mistake: Error: System EADDRINUSE ::3000 At object. _errnoException (util.js:992:11) at _exceptionWithHostPort…
-
1
votes0
answers183
viewsQ: Reactphp - error
I am trying to make a test using Reactphp but it keeps coming back this error someone can help me: Fatal error: Uncaught TypeError: Argument 1 passed to React\Socket\Server::__construct() must…
phpasked Cyber Hacker 469 -
0
votes1
answer31
viewsQ: reactphp - Undefined index
I’m Learning reactphp and when I try to pay back the data bank information of that mistake Undefined index I don’t know why code q am using: <?php require 'vendor/autoload.php'; $loop =…
phpasked Cyber Hacker 469 -
0
votes1
answer46
viewsQ: mysql error in creating Foreign key
I’m trying to create a Foreign key, but it’s wrong. Follow the code I’m using: CREATE TABLE foto( id INT(10), img varchar(25), nome varchar(25), link varchar(25), vew INT(10), tkm VARCHAR(100),…
-
7
votes1
answer169
viewsQ: Broadcasting with Laravel
I’m creating a chat and for that I need to do a real-time mode so I don’t have to drip several times on the server SignalR who does this job, I’m working with Laravel-PHP and read the documentation…
-
0
votes1
answer165
viewsQ: Send form without loading page via json
I’m developing a website and I’m using Windows, and I need to send a form without updating the page, I’m using jquery but I don’t know much how someone can help me?. html form <form>…
-
0
votes0
answers65
viewsQ: Jquery-Send Post to save to database
I’m developing a site that takes the data of a particular location and when clicking the button it has to save elsewhere and for this I’m using Jquery but I’m not able to save in my bank someone can…
-
0
votes1
answer200
viewsQ: It is possible to use Curl to pick up a certain ID or CLASS from a page
I am studying php and I was looking at the Curl function and wanted to know if it is possible to take the content only of a certain ID of another page example: <div id="teste2"> n pegar esse…
-
-1
votes1
answer280
viewsQ: Laravel - do DB::table() without using Join
I’m playing with Aravel and I’m learning object orientation and I wanted to make a select without using the Join as and object oriented and I know little n I’m getting. as I’m used to using:…
-
2
votes2
answers213
viewsQ: Laravel - Use OR inside the Where
I’m using the remote ->cont to count the return number, and for that I put a condition using the ->WHERE but when I try to put a || in the condition of the error he searched and I can not find…
-
0
votes2
answers667
viewsQ: Know all the $_SESSION
I have a doubt and I searched and I found no corner an answer, I wanted to know if it is possible to give a echo $_SESSION and know all the session that my browser has at that moment and if yes as?…
-
0
votes1
answer315
viewsQ: See how long it takes for an event to happen - [mysql]
I’m new to mysql and has an event created in mysql database, and I was wondering if you have any way to check how much time is left for that event to run. That is possible?
-
2
votes1
answer155
viewsQ: Mode of echo echo type
I recently started using the Laravel and found the function {{}} very useful, because even if it is a Javascript, not active, unlike the echo in the PHP. I was wondering if you could do the same…
phpasked Cyber Hacker 469 -
0
votes1
answer308
viewsQ: Laravel - View [.site.Home.index] not found
I opened my localhost today to continue to start my project and I will have this error in all the pages I try to access, yesterday before closing the pages was working can anyone help me? error View…
-
-1
votes1
answer485
viewsQ: Laravel - Insert to database
I’m New in Laravel and I’m trying to insert data to the database but it keeps giving error n I know if I’m doing right as I am doing: $nome=$_POST['nome']; $sobrenome=$_POST['sobrenome'];…
-
2
votes1
answer246
viewsQ: add and remove input number
I am creating an image selection page and wanted q when clicking choose the number to be for the input and if you click again it exit the input because there will be several fts chosen body <?php…
javascriptasked Cyber Hacker 469 -
1
votes1
answer609
viewsQ: Laravel - view does not work
I’m in trouble: I’m editing a site and Laravel’s view is only working on / and when I put another guy http://localhost/blog/public/Termos she gives as if she had not found codig routes:…
laravelasked Cyber Hacker 469 -
2
votes1
answer200
viewsQ: Laravel call variavel
I am new in the Lockable and I’m trying to call the variable as I saw in the video class but still giving error control <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class…
laravelasked Cyber Hacker 469