Web Hosting Vodahost    
Home Take a Tour Testimonials Tutorials Features Products & Prices Search Engine Submission Help Me Order Now!
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

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

Welcome to VodaHost!

The official web hosting company for the BlueVoda Website Builder. You are currently viewing our support forum as a guest which gives you limited (read only) access. By joining support forum you will be able to ask questions and participate in discussions. Registration is fast and simple. Click Here To Join our support forum today! We look forward to helping you build and publish a fantastic website.

Reply
 
Thread Tools
  #1  
Old 05-02-2008, 01:17 AM
pipesportugal's Avatar
pipesportugal pipesportugal is offline
Sergeant Major
 
Join Date: Jul 2007
Location: Oporto - Portugal
Posts: 95
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
Reply With Quote
  #2  
Old 05-07-2008, 08:35 PM
Phouber 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?
Reply With Quote
  #3  
Old 05-08-2008, 06:30 AM
Collectors-info's Avatar
Collectors-info Collectors-info is offline
General
 
Join Date: Feb 2006
Location: London (UK)
Posts: 4,556
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

Reply With Quote
  #4  
Old 05-09-2008, 12:47 PM
Andy128's Avatar
Andy128 Andy128 is offline
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,268
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!)
Reply With Quote
  #5  
Old 05-09-2008, 07:39 PM
navaldesign's Avatar
navaldesign navaldesign is offline
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,552
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
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!
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTS Logger: A DB driven, Multifeatured , Customized Login script
Reply With Quote
  #6  
Old 05-10-2008, 12:10 AM
Andy128's Avatar
Andy128 Andy128 is offline
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,268
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!)
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump


All times are GMT +1. The time now is 07:22 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0 RC2
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