Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, Im working on a school website project. i have no much experience with PHP.
first go to the bellow image URL.

GO TO THIS IMAGE LINK : http://www.freeimagehosting.net/newuploads/ijcdw.jpg[^]

If you check above image, i think you can understand what i want to ask, like that i want to change a attribute in one php file when fire a function in another php file..
please help me for my school project. thanks
Posted

1 solution

There is not such concept as "call a file". In PHP, files are reused by inclusion (yes, PHP is pretty primitive language). Please see:
http://php.net/manual/en/function.include.php[^],
http://www.php.net/manual/en/function.include-once.php[^],
http://www.php.net/manual/en/function.require.php[^],
http://www.php.net/manual/en/function.require-once.php[^].

See also: http://www.w3schools.com/php/php_includes.asp[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900