Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Phpslash-devel digest, Vol 1 #186 - 1 msg: msg#00001

cms.phpslash.devel

Subject: Re: Phpslash-devel digest, Vol 1 #186 - 1 msg

On Mon, 2003-04-07 at 23:11,
phpslash-devel-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx wrote:
> Send Phpslash-devel mailing list submissions to
> phpslash-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/phpslash-devel
> or, via email, send a message with subject or body 'help' to
> phpslash-devel-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
>
> You can reach the person managing the list at
> phpslash-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Phpslash-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: root_url and http_host (Joe Stewart)
>
> --__--__--
>
> Message: 1
> Date: Mon, 7 Apr 2003 14:29:40 -0500
> From: Joe Stewart
> <joestewart-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx>
> To: PHPSlash Developers List
> <phpslash-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx>
> Subject: Re: [Phpslash-devel] root_url and http_host
>
> On Thu, Dec 19, 2002 at 11:32:57AM -0600, Joe Stewart wrote:
> > In short to paraphrase Mike:

Love it when things get shorter..

> > "Would it just be easier to specify a host:
> > $_PSL['http_host'] = $_ENV['HTTP_HOST'];
> >
> > & have the root url be somthing like this (if it's in a subdirectory of
> > the site):
> > $_PSL['rooturl'] = '/public_html';"

It's great to be able to specify it, but it's probably even better if
you don't have to..

<snip>

> Worked OK except for the scripts in the admin directory. The rooturl
> changed and screwed it all up. The rooturl has /admin appended. Then
> adminurl appends /admin again. Anybody got any good ideas? I sure
> don't.

Now the convention is (I think) that all of the scripts in the /admin/
directory call on 'config.php' in that directory which calls up the
'../config.php' script, right? So couldn't you just fillet out the
extra rooturl?

$_PSL['rooturl'] = str_replace('/admin/', "/", $_PSL['rooturl']);

Or am I missing something...

<snip>

Mike
--
Mike Gifford <mike-i3Ha2xlg0scJWAZjvljUTg@xxxxxxxxxxxxxxxx>
OpenConcept Consulting http://www.openconcept.ca



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation