Hey All!
I've been developing sites using PHP for some time now, but actually never got any further than using the basic stuff. Last week I ran into a Flash + PHP script which I want to start using, but which I can't get to work just yet.
The Flash part is done, PHP is working like it is supposed to, but since I want to make the script dynamic instead of being available for one user I had to change some settings which aren't working yet.
This is the original code:
class ImageBrowser {
// albums base path
var $base_path = "../../data/user/";
function ImageBrowser() {
$this->methodTable = array(
"findAlbumByName" => array(
"description" => "Returns list of images in album",
...
...
Now this is what I tried to make it dynamic (depending on what link is clicked a differend album (thus different $base_path)):
// db started using inc.
$username = $rsAlbum->Fields('username');
class ImageBrowser {
// albums base path
var $base_path = ../../data/".$username."/";
I even tried creating a function, but since that is not my area (yet) I decided to ask you guys... (looked like below..)
...
class ImageBrowser {
// albums base path
var $base_path;
function Location($_base_path="../../data/".$username."/") {
$this->base_path = $_base_path;
}
Could anyone help me out? I can't find the solution on any site, because the whole "class" subject is still too large.
(looking for class in the php.net function list doesn't work for example...)
Thank you in advance!!
AleXander.