Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP SaaS (software as a service)
Old 12-05-2010, 10:35 PM PHP SaaS (software as a service)
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
I've seen commercially available scripts that allow you to host THEIR scripts on THEIR web-server(s), so long as you pay X amount of dollars per month

I was wondering HOW you can use PHP to make something like this possible?
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-06-2010, 08:14 AM Re: PHP SaaS (software as a service)
Skilled Talker

Posts: 76
Name: Nick Cousins
Location: Northern Ireland
Trades: 0
That's a much bigger problem than just a little PHP function you're asking for there.

A hosted software service could be ANYTHING!

I have quite a bit of experience in writing SaaS applications with PHP - but there is no one magic trick to know I'm afraid.

There are many possible ways of implementing such a scheme, and it really does depend on what the software does. Key things to remember are to make the software as configurable as possible to make it easier to "clone" instances of it with different properties. You should make such software very secure too, if you're hosting client scripts you don't want them being able to talk to eachother on your server!

In my experience, designing something to work as SaaS involves writing an application which takes parameters to run it - and those parameters govern the application's behaviour and data.

For example, I was hired to create a "hosted website" system which could be used to publish a clone of a site, tailored to each customer's name and branding, and accessed by different domains. Each site could have a different colour scheme and logo, and use the customer's name in copy text.

Rather than create a "site" which could be copied into a folder, and build a new apache VHost each time, I made a single piece of software which read the domain being accessed, loaded it's configuration from a MySQL database and served custom content to the user.

This means when we find a bug or want to update everything, rather than patch 200 customer sites, I simply update my code and all of the sites are patched in one fell swoop.

When doing this, take into consideration the possible scale of your application and code with that in mind. This is when you need to look at perhaps multiple servers, load balancers, primary, secondary, tertiary and more DNS servers, cache servers, database replication.... the list goes on.

I'm not saying it's incredibly difficult to do - but it's not trivial!
__________________
Join
Please login or register to view this content. Registration is FREE


Knowledge is power. Never underestimate the power of stupid people in large numbers.


Last edited by HandCoder; 12-06-2010 at 08:14 AM.. Reason: Typo
HandCoder is offline
Reply With Quote
View Public Profile Visit HandCoder's homepage!
 
Old 12-06-2010, 09:43 AM Re: PHP SaaS (software as a service)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So are you talking about things like blogger.com. wordpress.com where it runs from a core script but it appears runs as an independent entity?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-11-2010, 02:16 AM Re: PHP SaaS (software as a service)
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
chris: that would be the product of this.

I thought I was asking a different question than before, looks like it's the same question... asked (again, however) due to a lack of an inability to fathom the components of it's construction.

What tripped me up was the idea of dealing with automation as far as a payment plan is concerned with SaaS.


Basically: "not CAN it be done with PHP?"

but How are the pros doing it?
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 12-11-2010, 05:37 PM Re: PHP SaaS (software as a service)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yes of course it can, all web applications run as independent entities anyway, each request from a different user agent creates an instance of the application (session) in the server memory space.
So it is only a small step to having the instance also have an independant database as well.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-12-2010, 04:18 AM Re: PHP SaaS (software as a service)
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
aroo-gah.

thank you.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP SaaS (software as a service)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23363 seconds with 12 queries