Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 05-02-2008, 01:17 AM
pipesportugal's Avatar
Sergeant Major
 
Join Date: Jul 2007
Location: Oporto - Portugal
Posts: 99
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 05-07-2008, 08:35 PM
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 05-08-2008, 06:30 AM
Collectors-info's Avatar
General
 
Join Date: Feb 2006
Location: London (UK)
Posts: 4,828
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.
__________________
From Chris,

www.collectors-info.com
View sites in FF & IE, with res @ 1024 x 768 on 19” screens.

How to ask for help on the forum. - VH prices. - BV Tutorials. - Using PIXresizer - Image/Photo Tips

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 05-09-2008, 12:47 PM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,275
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
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 05-09-2008, 07:39 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,829
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 05-10-2008, 12:10 AM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,275
Default Re: Pointer to another folder

Quote:
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
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 02:42 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

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 50 51 52 53