Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

andyandy's avatar

Using .php file...where to put it

I want to create a .php file, that would be accessed directly as www.site.com/../file.php and would be unaffected by Laravel = only code in that file would be executed when file called.

No matter where I save this file I can't get it work. Usually a blank page. I don't know if this is issue with apache, htaccess or Laravel itself?

0 likes
1 reply
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Inside the public directory (next to the index.php file)

Please or to participate in this conversation.