Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 06:25
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  Slots Jackpot
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Print
Author Topic: Slots Jackpot  (Read 7605 times)
Benji1298
Server what's that
*
Posts: 14


View Profile Email
« on: 12/21/08, 22:42 »

Hi guys.... i am trying to make my game work and i need to have a progressive jackpot... currently i am doing this with amfphp and MySQL... i keep receiving the NetConnection.BadVersion error... i looked at the thread at the top but none of those were the problem... this leads me to believe that my php is not uploaded with xml (or whatever it said)... currently i am using byethost.com (vistapanel)... does anyone know if that would be my problem, and if so what another site i could use is (it needs php and MySQL)
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 12/22/08, 08:24 »

Did you try a simple helloWorld example to check if it works?

Jorge
Logged

Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #2 on: 12/22/08, 21:26 »

http://import flash.net.*;

function onHelloWorldResult(response){
trace("Success "+response);
}

function onHelloWorldFault(response:*){
trace("Fail "+response.description);
}



function doHelloWorld(){
var gateway = new NetConnection();
var answer:Responder = new Responder(onHelloWorldResult, onHelloWorldFault);
gateway.connect("http://moolagaming.byethost9.com/amfphp/gateway.php");
var aUsername="Ben"
gateway.call("CTestClass.helloWorld",answer,aUsername);
}
doHelloWorld();


well, this is my "simple helloworld" program.... should this be working with this amfphp?


<?php
class CTestClass{
   function helloWorld($aUsername){
      return "Hello ".$aUsername;
   }
?>
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #3 on: 12/22/08, 22:38 »

Try better http://www.flash-db.com/Tutorials/helloAS3/

Jorge
Logged

Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #4 on: 12/23/08, 21:18 »

ya, i just tried that... no luck, so i guess it's my server.... anybody know of one for free/cheap that offers MySQL and works with amfphp??
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #5 on: 12/24/08, 05:26 »

Hostrocket, where flash-db is have decent prices, check http://www.hostrocket.com/

Jorge
Logged

Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #6 on: 12/24/08, 12:40 »

just want to be clear before i pay... you are suggesting signing up for the "Reseller Web Hosting" correct? also, will they let me get a dedicated IP?
« Last Edit: 12/24/08, 12:54 by Benji1298 » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #7 on: 12/24/08, 14:37 »

Reseller? Just a normal hosting. Check his hosting plans or drop an email to support, I'm not really familiar with the latest hostings plans

Jorge
Logged

Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #8 on: 12/24/08, 17:41 »

dedicated hosting? cause all i see are reseller hosting and dedicated hosting.... dedicated hosting is like $100/month! that's out of my budget!
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #9 on: 12/25/08, 08:19 »

Ok, have looked the offers, reseller plan is fine

Jorge
Logged

Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #10 on: 12/27/08, 22:34 »

Thanks for your help!
Logged
Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #11 on: 01/28/09, 11:10 »

Hi guys... back for help  Embarrassed ok... so i purchased the hosting and my site is moolagaming.net.... now, this is all great, but when you go to moolagaming.net/amfphp/browser you get an error... any idea why? i'm lost because i know that php works on that site...
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #12 on: 01/28/09, 11:18 »

You need to point to http://moolagaming.net/amfphp/gateway.php to know is it's correct installed. Since the server hides the error messages, is difficult to know what happens. Try adding

error_reporting(E_ALL);

At the very beggining of gateway.php to see if you get something, if not you should ask your provider for an error log (many hostings save error logs somewhere on client space)

Jorge
Logged

Benji1298
Server what's that
*
Posts: 14


View Profile Email
« Reply #13 on: 01/28/09, 13:54 »

the message didn't change... i looked at the error log and this is what it said...


[Wed Jan 28 13:50:53 2009] [error] [client 24.91.221.241] File does not exist: /home/moolagam/public_html/500.shtml
[Wed Jan 28 13:50:53 2009] [alert] [client 24.91.221.241] /home/moolagam/public_html/amfphp/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

not sure what that means... any ideas?
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #14 on: 01/28/09, 14:06 »

The .htaccess file on amfphp folder says:

#If you're working with a server which doesn't seem to display errors and you don't
#have access to httpd.conf and you have a good reason to develop remotely instead of
#locally, you may have luck with uploading this configuration file to the server

php_flag display_errors on
php_flag display_startup_errors on
php_value error_reporting 2047

Seems flags are not supported in your server. You can delete the .htaccess file, but you never will receive message errors ... and this is not good if you work remotely

Jorge
Logged

Pages: [1] 2 Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything