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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.