CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Server Profiles

Print topic Send  topic

Author Message
lvalverdeb

Posts: 299
Posted: 06/21/2007, 10:37 AM

Is it possible to know, at runtime, which server profile is being used? I was hoping to find a
 global $CCSServerProfile;
. But Server Profiles do seem to be stored anywhere in the App.

Anyhow, I am looking for an easier way to deploy apps using common libraries to different servers.

  
$pathtolib = "http://localhost/mylibs/";  
include_once($pathtolib."common/lib1.php");  
include_once($pathtolib."other/lib2.php");  
......  
Right now, I am manually changing the setting of $pathtolib before publishing to different servers. Is there an easier way to handle this or is this as easy as it gets?

Luis
_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
DonB
Posted: 06/21/2007, 12:19 PM

In the past I've added 'wish' items along this line. The 'Common' file
ought to be split up so that there is a separate file with database
connection info and all other publish-specific info. That way, what was in
'common' really would be common - to all published variants.

In addition, the connecton parameters for database name, user, password,
host, port ought to be in this separate file and be named symbols rather
than directly declared in the connection class.

In other words, publish a config file separately from the 'common' file
which isn't so common when you get right down to it.

--
DonB

http://www.gotodon.com/ccbth


"lvalverdeb" <lvalverdeb@forum.codecharge> wrote in message
news:5467ab763a1771@news.codecharge.com...
> Is it possible to know, at runtime, which server profile is being used? I
was
> hoping to find a
 global $CCSServerProfile;
. But Server
Profiles
> do seem to be stored anywhere in the App.
>
> Anyhow, I am looking for an easier way to deploy apps using common
libraries to
> different servers.
>
>
  
> $pathtolib = "http://localhost/mylibs/";  
> include_once($pathtolib."common/lib1.php");  
> include_once($pathtolib."other/lib2.php");  
> .....  
> 
> Right now, I am manually changing the setting of $pathtolib before
publishing
> to different servers. Is there an easier way to handle this or is this as
easy
> as it gets?
>
> Luis
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.