Jump to content

File Include


Dysan

Recommended Posts

When i make semi-large websites with multiple sql scripts, i always find it easier to make the dbconn.php page like you've done below and just include on all pages i need it on, it does make things a lot easier when working and can/will shorten your code slightly.

 

As for increasing security, im not sure that i makes any difference where you place that code, but then again i could be wrong

Link to comment
https://forums.phpfreaks.com/topic/86709-file-include/#findComment-443104
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.