Posts by Ana P. Messina • 360 points
4 posts
-
3
votes3
answers1871
viewsA: File or character encoding error
I usually do it this way: In PHP code, use the top of the Index code header('Content-Type: text/html; charset=utf-8'); In HTML, put <meta charset="UTF-8"> In your editor, crop all content,…
-
3
votes1
answer1865
viewsA: Redirecting a domain to a subfolder without changing the URL, but not allowing otherwise?
I got the solution to my problem by merging several tips I found on the internet. RewriteEngine On # Redireciona as requisições externas na public_html para a raiz RewriteCond %{THE_REQUEST} \…
-
3
votes1
answer1865
viewsQ: Redirecting a domain to a subfolder without changing the URL, but not allowing otherwise?
I have the following problem, I have an application with the following structure: app - Folder to store project files as controllers and models. public_html - Stores public documents on the web,…
-
15
votes4
answers4258
viewsQ: How to prevent direct access to my PHP code?
I have a PHP application and I don’t want the user to be able to type the name of a specific file in the address bar, for example { example.com/send.php }, all my files are called by index.php, as I…
phpasked Ana P. Messina 360