Another way to get PHP responses in hosted mode is like this

Create the url...

    String url = Framework.getBaseUrlWithSlash() + filePathAndName;

where getBaseUrlWithSlash() is

    public static String getBaseUrlWithSlash()
    {
        String url = GWT.getModuleBaseURL();
        String baseUrlSplitOnSlash[] = url.split("/");
        if(baseUrlSplitOnSlash[2].equals("localhost:8888")) url = "
http://localhost";;
        return url + "/";
    }
Then point your web server at your /public/ folder

If you regularly swap between projects, it can be a pain to reset the doc
root and restart, so you can have different projects using different ports.
Abyss is good for this. the free version only allows you to have one site
per server, but you can run as many copies of the server as you like, and
start them up as and when and if you need them.

Don't forget that if you are developing the client side, you can put a valid
response as plain text in the (supposedly) PHP (*.php) script file and then
you don't need PHP or a web server. You can also test invalid PHP responses
this way without having to screw up your system to get the invalid response.

Ian

http://examples.roughian.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to