Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
2 answers
2k views

Load other files (from outside public_html) under index.php

I wanted to load every page under index.php with a simple index.php?do=login For example when the link index.php?do=login or <...
J. Doe's user avatar
  • 183
2 votes
1 answer
34 views

Apache2 mod_rewrite directive

The website I'm working on is essentially project-management software. Each project has a code (alphanumeric lowercase, with hyphens). The URL must include the codes and treat them as directories. <...
Dellowar's user avatar
  • 267
4 votes
1 answer
655 views

.htaccess using public folder and SEO friendly URL

.htaccess is not my strong suit. Is there any there can optimize this code? ...
TheCrazyProfessor's user avatar
0 votes
2 answers
4k views

Protect against XSS with .htaccess file

My .htaccess redirects everything to my index.php, but I wonder if it's vulnerable to XSS attacks. Am I safe? .htaccess file ...
Sample_d's user avatar
5 votes
2 answers
349 views

Securing PHP using a gateway that consults a whitelist

My site was recently infected and running malicious scripts. Once I discovered this, I cleared everything, the hosting company re-initialized the VPS and I setup my site anew. This is how I run my PHP ...
BeetleJuice's user avatar
7 votes
1 answer
7k views

Creating an object-oriented router class in PHP

On my way to learn OOP, I am developing a little CMS using the MVC pattern. I would like to have some feedback about my router class, mostly about if I am correctly using OOP. Right now, I have a ....
ThemesCreator's user avatar
8 votes
2 answers
6k views

MVC router class

Below is what I have come up with for a router/dispatcher system for my personal framework I am working on. Can you please review and tell me any improvements that could be made? The first part is ...
JasonDavis's user avatar