[PHP] Solution to MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-03 Thread Rebekah Garner

I wrote in a message:
> Here is the URL to a project that is far as I am concerned was finished.
> http://www.overbrookfarm.myiglou.com
> It is a Flash site that uses PHP for dynamically updating text in some
text
> fields. .  There should already be text inside of it.
> I see it.  My client can't see it 
Any ideas?


Ready people? Here is the solution:
He was using the url of
http://overbrookfarm.myiglou.com

Take note of the missing "www".  Anyone familiar with Flash will see where
the problem is with that. Sorry to bother the list with a problem that in
the end really ended up not being a PHP problem persay.  But something to
remember if you ever come across in the future.

Rebekah Garner
"Remember kiddies: CONTRACTS! CONTRACTS! CONTRACTS!"










-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-02 Thread Rebekah Garner

Here is the URL to a project that is far as I am concerned was finished.
http://www.overbrookfarm.myiglou.com

It is a Flash site that uses PHP for dynamically updating text in some text fields.  
If I can direct you to the Stallions menu---pick a horse.  
A page should load that has a picture of a horse on the left hand side and a green box 
on the right.  The box on the right is dynamic text field.  There should already be 
text inside of it. 

I see it.  My 4 other PCs see it.  About 5 people on this list  can see it.  A dozen 
of my friends can see it. The guy at tech support for where this is being hosted can 
see it.  My client can't see it on his PC running IE5, but can see it on his Mac.  His 
girlfriend can't see it, but one of his friends can. 

We had a fully working version up on a host that ran the PHP from Apache and everyone 
can see it.  The site (and scripts) are now on a  server that runs the PHP  as CGI.   
It boggles the mind.  Has anyone EVER heard of such a thing??  Are there security 
settings on the browser that won't let a CGI script execute, even from Flash??  
Already made him clear his cache.  Any ideas?

Rebekah Garner




[PHP] PHP and Flash

2002-10-01 Thread Rebekah Garner

Okay, this may be a bit off topic, BUT we just finished a website using PHP, MySql and 
Flashwell, I need someone...anyone to check out this URL for me and click on the 
Stallions menu, and tell me if anything loads into the text field.  The client swears 
that it isn't, but it is dammit. Or is it?

http://www.overbrookfarm.myiglou.com/

Rebekah Garner



[PHP] FLASH, MySql and PHP as CGI Problem.....

2002-09-29 Thread Rebekah Garner

Okay, I have come down to the wire and I am at  a complete loss.  I have a project due 
and to make a long story short (no lectures on this aspect of my problem please, I 
have already beate myself up over it)---I had to develop without the server/hosting 
information due to retarded clients.  Any, I have a Flash project that uses a MySql 
database via PHP.  It works perfectly on servers that have the PHP in Apache. I end up 
with PHP running as CGI.  No problem, I think.  I change what needed to be changed and 
it wouldn't work.  After a week of pulling my hair out and bugging the support 
department they recompile something and install the newest version of PHP and it 
works! Or so I thought. I was only testing the "fetching" script which pulls from the 
database for display in the SWF.  It works. I thought that I was in the clear.  Wrong. 
My SWF won't send the content of the variable to the database.  The script runs, but 
it is making an empty entry.  The damned things work on any of the three other servers 
that I have tested it on, but not this.  So.if anyone out there has any experience 
with this or can direct me to someplace that they know for sure would have the 
information, then please please do.  I had gotten my base scripting of this from PHP 
for Flash, but I can't find anything that helps.   

I am including my php code for retrieving information from the database (which works) 
and my code for inserting into the database (which executes, but doesn't pass the 
varible information).
I am also including my ActionScript code and the guidelines set down by the hosting 
company for use of PHP on their server.  I have the PHP scripts outside of the 
cgi-bin, but with the cgi exstension and a permissions setting of 755.  I know that 
the scripts are executing because when I run them from a browser they send a blank 
entry into the database also (as in when used in the SWF also).


fetchdefaultTableName.cgi-

#!/usr/local/bin/php

 0)
{
$newsText = "";

  
while($row = mysql_fetch_array($result))
{

$posted = strftime("%a %d/%m/%y %H:%M", $row['posted']);

$newsText .= stripslashes($row['newsText']) . '';
}

print "&newsText=" . urlencode($newsText);
}
else
{

print "No new items yet";
}


mysql_close($link);

?>

updatedefaultTableName.cgi---
#!/usr/local/bin/php



Flash ActionScripting:



Code that contains the posting info for display in the SWF (and it works fine):


_root.clearNewsText();

_root.generateText();

newsText = "";

loadVariables("http://www.url.com/fetchdefaultTableName.cgi?"+(Math.random()*100), 
_root.newsText, "POST");

stop();



Code that contains the posting info for input:


on (release) {

_root.sendTextUpdate();

loadVariables("http://www.url.com/updatedefaultTableName.cgi";), _root.newsTextHolder, 
"POST");

}





WebHosting Facts:

We do support PHP scripting, but it is not built into the web server. What this means 
is that you can execute PHP code like you would execute C or Perl code, as a CGI 
script. You will not be able to use the PHP "includes" or "extensions" however. 

If you wish to use it, be sure to put your file/s in your cgi-bin. 

If a CGI script is not in the cgi-bin/ directory, the file must end in .cgi. It also 
must be set executable and it needs to have the standard #!/path/to/interpreter 
reference on the first line of the file. The path to PHP is /usr/local/bin/php. 

The current version installed (from the -v flag) is: 4.0.2 





Sorry for the redundancy, but I wanted to make sure that I was understood and didn't 
leave anything out for you gurus out there.  Show me the way to your infinate light 
and wisdom ;)



Rebekah Garner