How can i pass a parameter to a function in a class from a different directory?
For example i have mycode.php in the /php/path/ directory.
I want to pass my $var variable to getdata.class into the function recievevar() in the /class/path/ directory.
Thank you for your notice
^__^
passing parameters on a file in a different directory
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
The PHP manual is a good place to start:
http://www.php.net/docs.php
Specifically the OOP sections of the Language Reference:
http://www.php.net/manual/en/language.oop.php
http://www.php.net/manual/en/language.oop5.php
http://www.php.net/docs.php
Specifically the OOP sections of the Language Reference:
http://www.php.net/manual/en/language.oop.php
http://www.php.net/manual/en/language.oop5.php
(#10850)