Results 1 to 6 of 6

Thread: Pointer to another folder
      
   

  1. #1
    pipesportugal's Avatar
    pipesportugal is offline Second Lieutenant
    Join Date
    Jul 2007
    Location
    Oporto - Portugal
    Posts
    129

    Default Pointer to another folder

    Hello everyone,

    For the group of companies that I work for I have developed a crm software in php which is hosted at VH with domain name crmpt.com.

    I have created several subdomains ex: aaa.crmpt.com, bbb.crmpt.com, one for each company, and cpanel creates a "aaa" and "bbb" folder below the html_public/www folder.

    I am forced to have the same php files(they are so many....) on all subdomain folders.

    Is it possible to have a "pointer" from each subdomain to the upper folder just like the www and html_public, one of them is pointing to the other right ?

    This way I would point all the subdomains to the upper folder and would avoid me having all the same files in every folders.

    The subdomain folder would only have the login/configuration file (one file only) for that company.

    Also in software updates there would be the great risk that one of the subdomains could be forgotten to update.

    I want each company to see in the browser line his own "aaa.crmpt.com" and the other one "bbb.crmpt.com" and so on.

    I hope my question/doubt is clear. Is this possible or does anyone recommend something different as solution for my problem ?

    Thanks in advance for all the help,
    pipesportugal

  2. #2
    Phouber is offline Corporal
    Join Date
    May 2008
    Posts
    10

    Default Re: Pointer to another folder

    I'm not quite sure i understand what your saying but,
    Would setting cookies to access your entire website work? Set arrays or variables in the cookies to hold the info?

  3. #3
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Pointer to another folder

    If it cant be easily done with php, could you pop an iframe in each site for these links.

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Pointer to another folder

    or..........you could have the php processing files in only one folder and then link to them from the form. For instance, if the form is in folder aaa and all your php processing scripts were kept in xxx then you would link to them like so:

    action =" http: //www.yoursite.com/xxx/whateverscript.php"

    or

    action ="/xxx/whateverscript.php"

    That is if I understood you correctly.

    Andy
    PHP- is a blast!

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Pointer to another folder

    The main problem is that you want your customers to see in the browser www.aaa.crmpt.com . To achieve this, they need to be always in that folder. So the only solutions are:

    1. An Iframe, as Chris suggested, so that all scripts run in this iframe
    2. Design a script structure that only contains a couple of files, and then it makes calls to the scripts (using the "include" or "require" command) from the folder that will hold all these scripts.
    This is common procedure where you usially have only an index page in each subfolder, and the requested action is passed to the same page using the GET method . As soon as the page refreshes, it "sees" the action required, and includes the ne cessary script from the "includes" folder.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Pointer to another folder

    I want each company to see in the browser line his own "aaa.crmpt.com" and the other one "bbb.crmpt.com" and so on.
    Good point Navaldesign- I missed that cavaet. With out that requirement- things would be simpler.

    Andy
    PHP- is a blast!

Thread Information

Users Browsing this Thread

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

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49