Jump to content

how to link php.ini


NME

Recommended Posts

You could just insert code to each page linking to it, or you can create a dynamic site with an element "php_include(element.php)" - that links to php.ini. And then that would allow each page to be linked to it. Then you can change one element and all pages change by that element. I hope you know what I mean!

Link to comment
https://forums.phpfreaks.com/topic/38417-how-to-link-phpini/#findComment-184281
Share on other sites

okay so here's a basic page:

 

<body>

<?php include('element.php') ?>

</body>

 

let us say elment.php reads:

      ABCDEFGHIJK

 

so then the output by the server is:

 

<body>

ABCDEFGHIJK

</body>

 

 

That is how php include works. Elment.php must be in the same folder as the page your working on.

 

So here's how you would do it:

 

<body>

<?php include('element.php') ?>

</body>

 

and have element.php read:

<a href="php.ini">php.ini</a>

..................

 

and the final output would be:

 

<body>

<a href="php.ini">php.ini</a>

</body>

 

So if you use php include on all pages then one file change, changes all the pages' linkage. Thats how it works.

 

** I don't really know how you are linking to php.ini but thats an example!

Link to comment
https://forums.phpfreaks.com/topic/38417-how-to-link-phpini/#findComment-184294
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.