PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Setting up a program that can be accessed by all domain on a server
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Setting up a program that can be accessed by all domain on a server

Réponse
 
LinkBack Outils de la discussion
Vieux 08/05/2008, 17h47   #1
Richard Kurth
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Setting up a program that can be accessed by all domain on a server

I have a program that I am writing that I what to install on my server
that can be accessed by all domains on the server just like it was on
there domain. Could somebody give me an idea on how I can do this or
point me to some article that tells how to set this up.
  Réponse avec citation
Vieux 08/05/2008, 17h50   #2
Dan Joseph
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Setting up a program that can be accessed by all domain on a server

On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <richardkurth@centurytel.net>
wrote:

> I have a program that I am writing that I what to install on my server that
> can be accessed by all domains on the server just like it was on there
> domain. Could somebody give me an idea on how I can do this or point me to
> some article that tells how to set this up.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Accessible as in able to talk to it and pull information, or be able to
integrate it into the web site? If its just needing to get data, you could
build a web service and give access to it for all other domains.

--
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month. Reseller plans and
Dedicated servers available.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

  Réponse avec citation
Vieux 08/05/2008, 17h54   #3
Richard Kurth
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Setting up a program that can be accessed by all domainon a server

Dan Joseph wrote:
> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <richardkurth@centurytel.net>
> wrote:
>
>
>> I have a program that I am writing that I what to install on my server that
>> can be accessed by all domains on the server just like it was on there
>> domain. Could somebody give me an idea on how I can do this or point me to
>> some article that tells how to set this up.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>

>
> Accessible as in able to talk to it and pull information, or be able to
> integrate it into the web site? If its just needing to get data, you could
> build a web service and give access to it for all other domains.
>

To Be able to integrate it into the web site is what I am trying to
figure out

  Réponse avec citation
Vieux 08/05/2008, 20h44   #4
Dan Joseph
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Setting up a program that can be accessed by all domain on a server

On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <richardkurth@centurytel.net>
wrote:

> Dan Joseph wrote:
>
>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <
>> richardkurth@centurytel.net>
>> wrote:
>>
>>
>>
>>> I have a program that I am writing that I what to install on my server
>>> that
>>> can be accessed by all domains on the server just like it was on there
>>> domain. Could somebody give me an idea on how I can do this or point me
>>> to
>>> some article that tells how to set this up.
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>>

>>
>> Accessible as in able to talk to it and pull information, or be able to
>> integrate it into the web site? If its just needing to get data, you
>> could
>> build a web service and give access to it for all other domains.
>>
>>

> To Be able to integrate it into the web site is what I am trying to figure
> out
>
>

You should be able to configure Apache (assuming you're using Apache) in a
way that for instance: http://domain.com/globalapplication/ would be
pointing to a specified folder. You would just have to tell it to make that
path for all domains on the server. Although that might be better suited
for someone on an Apache list or forum to explain better.

--
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month. Reseller plans and
Dedicated servers available.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

  Réponse avec citation
Vieux 08/05/2008, 23h37   #5
Richard Kurth
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Setting up a program that can be accessed by all domainon a server

Dan Joseph wrote:
> On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <richardkurth@centurytel.net>
> wrote:
>
>
>> Dan Joseph wrote:
>>
>>
>>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <
>>> richardkurth@centurytel.net>
>>> wrote:
>>>
>>>
>>>
>>>
>>>> I have a program that I am writing that I what to install on my server
>>>> that
>>>> can be accessed by all domains on the server just like it was on there
>>>> domain. Could somebody give me an idea on how I can do this or point me
>>>> to
>>>> some article that tells how to set this up.
>>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>>>
>>>>
>>> Accessible as in able to talk to it and pull information, or be able to
>>> integrate it into the web site? If its just needing to get data, you
>>> could
>>> build a web service and give access to it for all other domains.
>>>
>>>
>>>

>> To Be able to integrate it into the web site is what I am trying to figure
>> out
>>
>>
>>

> You should be able to configure Apache (assuming you're using Apache) in a
> way that for instance: http://domain.com/globalapplication/ would be
> pointing to a specified folder. You would just have to tell it to make that
> path for all domains on the server. Although that might be better suited
> for someone on an Apache list or forum to explain better.
>
>

Thanks that is what I needed to know I will now check on an apache list
  Réponse avec citation
Vieux 09/05/2008, 01h41   #6
Nathan Nobbe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Setting up a program that can be accessed by all domain on a server

On Thu, May 8, 2008 at 3:37 PM, Richard Kurth <richardkurth@centurytel.net>
wrote:

> Dan Joseph wrote:
>
>> On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <
>> richardkurth@centurytel.net>
>> wrote:
>>
>>
>>
>>> Dan Joseph wrote:
>>>
>>>
>>>
>>>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <
>>>> richardkurth@centurytel.net>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> I have a program that I am writing that I what to install on my server
>>>>> that
>>>>> can be accessed by all domains on the server just like it was on there
>>>>> domain. Could somebody give me an idea on how I can do this or point me
>>>>> to
>>>>> some article that tells how to set this up.
>>>>>
>>>>> --
>>>>> PHP General Mailing List (http://www.php.net/)
>>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> Accessible as in able to talk to it and pull information, or be able to
>>>> integrate it into the web site? If its just needing to get data, you
>>>> could
>>>> build a web service and give access to it for all other domains.
>>>>
>>>>
>>>>
>>>>
>>> To Be able to integrate it into the web site is what I am trying to
>>> figure
>>> out
>>>
>>>
>>>
>>>

>> You should be able to configure Apache (assuming you're using Apache) in a
>> way that for instance: http://domain.com/globalapplication/ would be
>> pointing to a specified folder. You would just have to tell it to make
>> that
>> path for all domains on the server. Although that might be better suited
>> for someone on an Apache list or forum to explain better.
>>
>>
>>

> Thanks that is what I needed to know I will now check on an apache list



if your webserver is hosting multiple domains, all you have to do is put the
shared stuff outside the webroots in some common location. then simply
include that in your scripts in these various places. the only thing you
have to make sure is the user the webserver is running as has permission to
read from the external location.

say for example you are using linux, you create a directory such as,
/var/www/commonPhpStuff. and in there you have a class file
FrameworkCore.php or something. then in all your sites you can simply do
include('/var/www/commonPhpStuff/FrameworkCore.php');

alternatively, you could add '/var/www/commonPhpStuff' to the include_path
in php.ini, a .htaccess file, or a set_ini() call. then the include call
would become
include('FrameworkCore.php');

-nathan

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h02.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17986 seconds with 14 queries