nubian
05-23-2008, 04:18 PM
i'm running into a flash and php issue.
in my flash movie i have 3 text fields
source: (type intput)
criteria: (type input)
result: (dynamic type)
and a button with the following code:
on (release) {
result = "Searching...";
loadVariables ("search.php", this, "POST");
}
this is my search.php
<?
$result = str_replace($criteria, "<b>$criteria</b>", $source);
print "&result=" . urlencode($result);
?>
ok...here is where i'm getting lost.
if i were to load the contents above from a "real" web server it works just fine.
if i were to load the contents above from a "local" server it does not work.
my apache server setup on my local windows machine is as follows:
Apache/1.3.41 (Win32)
PHP Version 5.2.6
MySQL 5.0.51a
phpMyAdmin - 2.11.6
but if i were to modify my search.php file like so:
<?
$source = stripslashes($HTTP_POST_VARS['source']);
$criteria = stripslashes($HTTP_POST_VARS['criteria']);
$result = str_replace($criteria, "<b>$criteria</b>", $source);
echo "result=$result";
?>
...it works on my windows local apache server just fine.
are there any configurations that need to be done in order for my local machine to behave in the same manner as my real web server?
any help on how to achieve this will greatly be appreciated.
thank you in advance.
in my flash movie i have 3 text fields
source: (type intput)
criteria: (type input)
result: (dynamic type)
and a button with the following code:
on (release) {
result = "Searching...";
loadVariables ("search.php", this, "POST");
}
this is my search.php
<?
$result = str_replace($criteria, "<b>$criteria</b>", $source);
print "&result=" . urlencode($result);
?>
ok...here is where i'm getting lost.
if i were to load the contents above from a "real" web server it works just fine.
if i were to load the contents above from a "local" server it does not work.
my apache server setup on my local windows machine is as follows:
Apache/1.3.41 (Win32)
PHP Version 5.2.6
MySQL 5.0.51a
phpMyAdmin - 2.11.6
but if i were to modify my search.php file like so:
<?
$source = stripslashes($HTTP_POST_VARS['source']);
$criteria = stripslashes($HTTP_POST_VARS['criteria']);
$result = str_replace($criteria, "<b>$criteria</b>", $source);
echo "result=$result";
?>
...it works on my windows local apache server just fine.
are there any configurations that need to be done in order for my local machine to behave in the same manner as my real web server?
any help on how to achieve this will greatly be appreciated.
thank you in advance.