Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 08:51
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
| |-+  Web Services: XML, Soap, WSDL, UDDI, and Flash Integration (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  Successful Floogle
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Print
Author Topic: Successful Floogle  (Read 8450 times)
sherman wellons
Jr. Programmer
**
Posts: 55



View Profile Email
« on: 04/09/08, 10:26 »

[Folks].

Has anyone been able to get the Flash Google API application found here to work on your server:

http://www.flash-db.com/Google/

I've been trying to learn how this works for days and I am stuck on just getting data to return from Google. Anything else that needs to be done besides obtaining a key from Google? Once I got my key I  entered that string into the $key varriable located in searchGoogle.php. I read the instructions several times now....which seems straight forward and pretty simple. I uploaded FloogleMX_Flash-db.swf, FloogleMX_Flash-db.html, nusoap.php, and searchGoogle.php up on a few servers just in case my server restricted outgoing connections. The results are blank data on the same servers which are running php 4.0 and php 5.0. In the searchGoogle.php file I changed the $soapclient    = new soapclient('http://api.google.com/search/beta2'); to $soapclient    = new soapclient('http://api.google.com/GoogleSearch.wsdl'); just to see what happens. I got the result "Untitled" when doing a simple search on "adobe". I have to be missing something simple......would anyone be kind enough to point me in a direction if you have had success getting this Floogle flash client to work on your server. I can't figure out where the disconnect is. Thanks.

[Flash rookie]
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #1 on: 04/09/08, 15:13 »

Can you POST the URL of your movie to take a look?

Jorge
Logged

sherman wellons
Jr. Programmer
**
Posts: 55



View Profile Email
« Reply #2 on: 04/09/08, 15:50 »

[J].

Thanks for the response. The url is:

http://www.inertiart.com/FloogleMX_Flash-db.html

I've been doing some additional research to see if my server is the culprit. I found a value on www.php.net that you have to set in the php.ini file to allow access to remote files:

allow_url_fopen = On

I was hoping that was the problem, but my results are the same. I am wondering if I am even going down the correct path on this one.

My host is www.mediatemple.net. They are huge and not cheap.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #3 on: 04/10/08, 11:22 »

My personal hosting is Mediatemple also, and it works just fine:

http://jorgesolis.net/floogle/FloogleMX.html

I don't see nothing strange ... probably a parsing problem?

Jorge
Logged

sherman wellons
Jr. Programmer
**
Posts: 55



View Profile Email
« Reply #4 on: 04/10/08, 16:35 »

[J].

Now that is strange. One of those mystery issues. I'll keep looking into it. Did you switch over to the Grid Server with MediaTemple? I am wondering if that change may be an issue within the environment. When I migrated I know I had to change my register_globals = On in the php.ini file to get simple php data capture forms to work because how I was declaring my variables....just fishing for some ideas here.......
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #5 on: 04/11/08, 04:58 »

I take my hosting in the end of 2005, and it includes a small FMS account (that's the reason I choice Media Temple) but I don't know the kind of account. My PHP version is 4.4.1
If the problem is nusoap.php, you should not receive nothing (neither undefined), but the serarch routine is outputting an empty answer .... did you recheck that the key is valid?

Jorge
Logged

sherman wellons
Jr. Programmer
**
Posts: 55



View Profile Email
« Reply #6 on: 04/15/08, 20:03 »

Still doing some research but I found some interesting documentation on NuSOAP (for those who are php virgins like me). I checked with Media Temple and the customer support person said the NuSOAP classes will work on my Grid Service box. Once I read that I assumed that my problem may be that the NuSOAP classes may not be installed to communicate with searchGoogle.php (natural thought). So I found this link and went there:

http://wiki.cdyne.com/wiki/index.php?title=PHP

I downloaded the NuSOAP Toolkit to see what was in it and there were a list of classes. Now because of my lack of server knowledge I was thinking that those classes needed to be located somewhere on my server for the FlashGoogle.swf to work. I have a strong feeling either my key is wacked (which I obtained another one), I went to the wrong spot to get a key "http://code.google.com/apis/ajaxsearch/signup.html" , or something on the server side isn't configured. Since you have Mediatemple, did you have to configure anything on the server side or did you just dump your files on the server like in the tutorial and it worked?

Thanks for responding....and the education
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #7 on: 04/16/08, 04:02 »

I just put there and worked. The key works OK (well, is the same as Flash-db), but my plan is not Grid Server I think. Since you're looking for NuSoap, I'm sure there are many examples around there using it, even on this site, that also works based on Nusoap and you can try, i.e this one: http://www.flash-db.com/StockQuotes/

Jorge
Logged

kwstas_pap
Server what's that
*
Posts: 8


View Profile
« Reply #8 on: 06/05/09, 05:44 »

hi,
i have exactly the same problem.
i put the files on my server.
i input the correct license but i get blank page after the search.

i believe that there must be a "detail" on the server settings that we do not know.
does anybody found anything related?
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #9 on: 06/05/09, 06:12 »

You need the nusoap library. I have upload a modified version here http://www.flash-db.com/temp/nusoap.rar.
The only difference with the standard nusoap.php file is that soapclient class was renamed to soapclientw, because it collide with the buiild-in nusoapclient class since PHP 4.Huh (don't know exactly the version)
Then you need to make a few changes to the script searchgoogle.php

Lines 22-23, put nusoap.php on the same folder or modify the path
// Include nusoap.php file.
require_once('nusoap.php');

Line 54, rename soapclient to soapclientw to avoid class name collision
$soapclient = new soapclientw('http://api.google.com/search/beta2');

Jorge
Logged

kwstas_pap
Server what's that
*
Posts: 8


View Profile
« Reply #10 on: 06/05/09, 06:49 »

thank you..

i did all the changes but i still have the same result.
NOTE: i run php 5.2
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #11 on: 06/05/09, 07:19 »

Post the url to take a look

Jorge
Logged

kwstas_pap
Server what's that
*
Posts: 8


View Profile
« Reply #12 on: 06/05/09, 07:37 »

http://www.laspi.gr/floogle/

thank you...
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #13 on: 06/05/09, 08:04 »

No errors on your script, just an empty response. Do you have a valid Google Key? Why you load a http://www.google.com/jsapi?key=XXXXX in your page?

Jorge
Logged

kwstas_pap
Server what's that
*
Posts: 8


View Profile
« Reply #14 on: 06/05/09, 08:12 »

i load the "..www.google.com/jsapi?key=XXXXX.." just for test. i removed it now..nothing changed.

the key is valid.. i got from http://code.google.com/intl/el-GR/apis/ajaxsearch/key.html
is there anywhere else in Google a "key supplier"..
i just know this one and i did't find any other (if there is)..


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!