# PHP and .INC

**URL:** <https://forum.kirupa.com/t/php-and-inc/106925>\
**Category:** Uncategorized\
**Created:** [April 10, 2004, 8:57am UTC](https://forum.kirupa.com/t/php-and-inc/106925 "2004-04-10T08:57:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EviLudy](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@EviLudy](https://forum.kirupa.com/u/EviLudy)\
**Post date:** [April 10, 2004, 8:57am UTC](https://forum.kirupa.com/t/php-and-inc/106925/1 "2004-04-10T08:57:54Z")

</div>

So I have this file, It’s called percentage1.inc and it includes this miniture script:

\<?php $percentage1 = “70”;  
print("$percentage1"); ?\>

And in some files I call them with this:  
\<?php include(“percentage4.inc”); ?\>

well guess what, that works perfectly!  
But then there’s this page (change.php) , and I need a code that changes the data in percentage1.inc… It says:  
$percentage1 = “70”;

The bold part (70) is what has to be changed into the value of the variable verrandering in the file change.php

Example:  
Data of “verrandering” is 22  
The .inc file (witch is: \<?php $percentage1 = “70”;  
print("$percentage1"); ?\>)

Will then be changed in:  
\<?php $percentage1 = “22”;  
print("$percentage1"); ?\>

How do I do that? I have no clue
