Posts by Vinicius De Jesus • 686 points
59 posts
-
0
votes2
answers115
viewsA: transform string into multidimensional array
I think there’s a better way, but I couldn’t think straight about it. but I think what I did will do. <?php $string = "0/ 0/0 0 maria online 0/ 0/0 0 joão off"; $count = 0; $ar = explode(" ",…
-
1
votes2
answers626
viewsA: How to change the title color of the browser tab?
Try the <meta name="theme-color" content="blue"> but is only good for mobile.
-
0
votes1
answer45
viewsA: Xamarin - Camera does not work
I found the Solution: https://davidwalsh.name/browser-camera It’s Javascript and HTML testing there! I found ball show I didn’t even know I had how to do it. In case Link leaves Air... HTML <!--…
-
0
votes1
answer53
viewsA: PHP - Display correctly entered data message
On the page that makes the insertion in the database, you save a session variable with the message, like this: <?php include 'ligacao_pdo.php'; session_start(); $condutor = $_POST['condutor'];…
-
1
votes2
answers50
viewsA: how to deny direct access to index.php and index.php/
You can use the Array $_SERVER[] <?php $URL= "$_SERVER[REQUEST_URI]"; if ($URL === "/index.php" || "/index.php/") { header("location: home.php"); } ?> But maybe just the header("location:…
-
1
votes3
answers125
viewsA: How to limit extensions that can be saved? (PHP)
For the Front-end you can use: <input type="file" accept="image/*"> or <input type="file" accept=".png, .jpg, .jpeg"> and By the Back-end: <?php $arquivo = "imagem.exe"; $imagem =…
phpanswered Vinicius De Jesus 686 -
1
votes3
answers251
viewsA: Force to fill in php input
The form validation method via the Back-End is more efficient than the Front-End, although ideally the two methods are used.
phpanswered Vinicius De Jesus 686 -
1
votes1
answer673
viewsA: Send PHP message on the same HTML page
As far as I know you can use two types of validation, the back-end, in your case with PHP, and the front-end (With Javascript), usually use both since the front-end validations can be disabled by…
-
1
votes1
answer22
viewsQ: How to start Cakephp3.x
I’m getting agr with the cakephp, I followed the bookmarker tutorial, but is there any material with a simple didactic, explaining the concepts, which are used in cake? I see youtuber using the…