Results 1 to 6 of 6

Thread: could I load more than one ice profile in one php script

  1. #1
    ucdriver is offline Registered User
    Name: haitao zeng
    Organization: bupt
    Project: tencent
    Join Date
    Mar 2009
    Posts
    6

    could I load more than one ice profile in one php script

    hi

    there seems IcePhp doesn't support load tow profile in none php scripts. When I did so. It raise ProfileAlreadLoaded exception.

    so I read the IcePhp' source code . and modified the Profile.cpp as attached. commented some code.
    what's the risks of the modification? and then how could my php scripts commucate to two ice server in C++? load tow profile
    HaitaoZeng
    =====================
    beijing university of post and telecomunication
    www.bupt.edu.cn

  2. #2
    ucdriver is offline Registered User
    Name: haitao zeng
    Organization: bupt
    Project: tencent
    Join Date
    Mar 2009
    Posts
    6
    I'm sorry. it failed to attatch the profile.cpp.
    Attached Files Attached Files
    HaitaoZeng
    =====================
    beijing university of post and telecomunication
    www.bupt.edu.cn

  3. #3
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi,

    Could you explain why you need to use two profiles?

    Thanks,
    Mark

  4. #4
    ucdriver is offline Registered User
    Name: haitao zeng
    Organization: bupt
    Project: tencent
    Join Date
    Mar 2009
    Posts
    6
    thanx for your reply.

    I setup tow ice server in C++. One for message sending. one for bill processing. each has their own configurationin.

    the php in client need to interact with both the tow server. the ice profile is like this in php.ini

    [msg]
    ice.slice=/usr/local/ice/msg/msg.ice
    ice.config=/usr/local/ice/msg/config.msg
    [acct]
    ice.slice=/usr/local/ice/acct/acct.ice
    ice.config=/usr/local/ice/acct/config.client


    and i try to load both profile in php like
    LoadProfile('msg');
    LoadProfile('acct');

    then exception raised.
    HaitaoZeng
    =====================
    beijing university of post and telecomunication
    www.bupt.edu.cn

  5. #5
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    You most likely don't need two profiles to do that. Specify both slice files on the ice.slice profile entry, and ensure the configuration file has the information necessary to talk with both server.

  6. #6
    ucdriver is offline Registered User
    Name: haitao zeng
    Organization: bupt
    Project: tencent
    Join Date
    Mar 2009
    Posts
    6

    Smile

    Quote Originally Posted by matthew View Post
    You most likely don't need two profiles to do that. Specify both slice files on the ice.slice profile entry, and ensure the configuration file has the information necessary to talk with both server.
    haha,it works. thanks
    HaitaoZeng
    =====================
    beijing university of post and telecomunication
    www.bupt.edu.cn

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to Load ice.slice in PHP-Code?
    By oVi in forum Help Center
    Replies: 1
    Last Post: 08-28-2009, 11:35 AM
  2. ICEphp ... profile methods ..
    By manojsingh in forum Help Center
    Replies: 1
    Last Post: 03-22-2009, 10:53 AM
  3. how to invoke an external shell script in ice?
    By ewiniar in forum Help Center
    Replies: 2
    Last Post: 04-21-2006, 03:28 AM
  4. PHP Can't load extension php_ice.dll
    By AdrianM in forum Help Center
    Replies: 6
    Last Post: 03-11-2006, 09:46 PM
  5. IcePHP: Profile not found.
    By René Pedersen in forum Help Center
    Replies: 5
    Last Post: 03-01-2005, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •