mgomez03
05-08-2006, 01:24 PM
My .swf and .php files are currently in the same directory together. I now want to move the PHP scripts that my LoadVars instances call into a directory outside my home directory... where I have hosting, the home directory is:
/home/username/public_html/index.swf
I want to move the scripts to something like this instead:
/home/username/newfolder/
this is how i've been calling it in AS:
my_lv.load("../newfolder/test.php")
but it's not working. i even made a quick .php file (parent.php) and placed it in the home directory to make sure i've got the string correct...
<?php
require_once('../newfolder/child.php');
?>
and made another .php file (child.php) and placed it outside of the home directory...
<?php
echo('test');
?>
and the parent is able to call upon the file just fine from home. at this point, i began to wonder if maybe LoadVars requires absolute paths but i was able to make a subdirectory in home and that worked fine...
// home/username/public_html/anotherfolder/test.php
my_lv.load("/anotherfolder/test.php")
i dug around and came upon this thread:
http://www.actionscript.org/forums/showthread.php3?t=71021&highlight=loadvars+relative+paths
but not much help. any suggestions?
/home/username/public_html/index.swf
I want to move the scripts to something like this instead:
/home/username/newfolder/
this is how i've been calling it in AS:
my_lv.load("../newfolder/test.php")
but it's not working. i even made a quick .php file (parent.php) and placed it in the home directory to make sure i've got the string correct...
<?php
require_once('../newfolder/child.php');
?>
and made another .php file (child.php) and placed it outside of the home directory...
<?php
echo('test');
?>
and the parent is able to call upon the file just fine from home. at this point, i began to wonder if maybe LoadVars requires absolute paths but i was able to make a subdirectory in home and that worked fine...
// home/username/public_html/anotherfolder/test.php
my_lv.load("/anotherfolder/test.php")
i dug around and came upon this thread:
http://www.actionscript.org/forums/showthread.php3?t=71021&highlight=loadvars+relative+paths
but not much help. any suggestions?