Any alternatives to php scripts when my server doesn't allow them?

Posted on 2009-04-21
Last Modified: 2013-12-13
Hi EE,

Let me first say that I am WAYYYYYY out of my comfort zone here, since I dabble in html and have used javascript a little. But, a coder/programmer - I'm not even close. I mention this so you can understand that phrasing your answers as you would to an 8 year old, is preferred.

I have a website hosted on SiteBuildIt. They are fantastic in most respects, exit this one:

This is  list of their Allowed and Not-Allowed scripts and file types:

Supported script and support file types:

.js, .css, .swf, pdf, .txt, .xml, .flv  

Not accepted or supported:

ColdFusion, ASP.NET, ASP, JSP, PHP, SSI, Perl, CGI, and .zip or .exe files.

I would like to purchase a new software product (Exit Splash); however, the very first action that's required after using their code generator is to "Enter in the location of the Exit Splash script on my website." But the example they show is: ""

Yup, PHP. So, I'm hoping there is some way to convert (if that's the right term) "" to a form I can use on my website, OR have the PHP script loaded somewhere NOT on my site, but somehow called into it, when needed.

Thanks for any solution, direct, or creative, you can offer.
Question by:photoman11
    LVL 34

    Accepted Solution

    If the software you want to use is PHP based then you are stuffed.


    Copying the HTML form is not liable to help you as PHP forms really on PHP to validate them and send them. Most other script processing is done by CGI or Perl both of which are on your list. You could host the PHP on another PHP supporting host and set up an IFRAME to contain it. The other solution which is to use AJAX to pull in the stuff and populate your page is likely to be beyond your capabilities given how you described them.

    You may need to consider moving hosts.
    LVL 34

    Expert Comment

    by:Beverley Portlock
    Typo alert - where it says "PHP forms really on PHP" it should say "PHP forms rely on PHP"

    Author Comment


    A few things...

    When you say "PHP Form," is that the same thing as a PHP script, because that is what the s/w produces?

    I may have given you the wrong impression from how I worded my question. When I said: "...convert (if that's the right term) "" to a form ..." I didn't mean a form, literally. I meant to be able to convert php to something else, in a similar way I converted the html contents of a page to a javascript file.

    If all that is not possible, is there any way the php can be hosted on a different server, and called into action when need, on the one with my website?

    Moving hosts is not an option because their services, tools, etc go way beyond simply hosting, and it's an all-in-one package deal.

    Any thoughts?
    LVL 34

    Expert Comment

    by:Beverley Portlock
    "When you say "PHP Form," is that the same thing as a PHP script, because that is what the s/w produces?"

    A bit of loose terminology on my part - generally speaking a "PHP form" is an HTML form whose data is processed and handled by PHP. Things such as validation, error handling and sending via email or updating into a database. No "standard" HTML form can do all of this which is why we use PHP.

    "I meant to be able to convert php to something else,"

    But to what? From the list you gave all the scripting languages are blocked, so even if you could rewrite the PHP what could you rewrite it as? I guess the biggest question is "What does this exit splash script do?". If it writes to a database then you're dead in the water. Even so, to take someone else's script and attempt a conversion on a machine which blocks all scripting seems to be a hopeless position.

    "is there any way the php can be hosted on a different server, and called into action when need, on the one with my website"

    Yes there is. You would need to have another machine that supports PHP and install the scripts on that. On your original machine you would then need to craft an HTML page that includes an IFRAME that references your other machine  and the relevent page. Thanks to Microsoft changing settings in IE7 you would also need to create a P3P framework and download the P3 policy generator on your PC and  create the policy documents which would then have to  be installed  on the new PHP server. This is not trivial.

    A second option which is simpler is to create the HTML page on the "old" server and set the FORM's action parameter to proceed to the "new" server and the exit splash page. Whether this will work will depend on how the exit splash software is coded. This option is probably your best shot. So on the form on the "old" server make the action redirect to the "new" server like this

    < form action='' .....

    I suspect you would have to do all the validation in javascript so that the PHP machine never has to manage an error due to missing or  bad data. If you can avoid having the form on the "old" machine then why not simply redirect users to the "new" machine by having a page that does an http-equiv redirect. Basically have an HTML page that is empty in the BODY section and includes this

    < meta http-equiv="refresh" content="5; URL=" >

    Open in new window

    in the HEAD section so that people are immediatley directed off the old machine and over to the PHP machine?

    [Note: I've left spaces around the '<' tags because when doing formatted postings the EE system sometimes picks the tags up and tries to use them - take the spaces out when you cut'n'paste.]
    LVL 34

    Expert Comment

    by:Beverley Portlock
    I see the EE editor has done it again. That last bit of HTML should be

    <meta http-equiv="refresh" content="5; URL=" >

    Ignore the <pre> </pre> stuff.

    Author Comment

    WOW. It sounds like it's harder than landing a man on the moon.

    Thanks for all your expertise. It certainly is way beyond me, that's for darn shootin.

    I'm including something here that is a feature my host provides. They call it "Infin It" and they define it this way:

    "Infin It! allows you to add functionality to your site by creating a subdomain and then mapping it to a third-party provider for blogging, shopping carts, forums, and so forth. Both humans and search engines consider this as being part of your master domain, because it is!

    And its easy. All you need to do is create and name a subdomain, map its CNAME to the provider you have selected, and optionally add a NavBar button and/or a Table of Contents link and subdomain description."

    Needless to say, I've never used it, and don't really understand it. If it seems like it may work for this situation, I've included the text from their complete write up about it as the attached file.

    In any case, thanks so much for your help.

    Author Comment

    Here's another thought, as I may be starting to understand 5% of the concept...

    If php scripts and the php folders generated from Exit Splash need to stay on a php-supported server, would the following work (at least in theory)?

    I move all my sales pages from my current site (on SBI, where php is not allowed) to a new php-supporting site.Excuse the following statements because I very likely will screw up terms and concepts in my idea. Here goes:

    I move all 23 or so sales pages and perhaps my newsletter sign up pagel to the new php-supporting server.

    Everything on the new server can be considered as my "store" which is a sub-domain of my manl site. To the visitor, it's fairly transparent (if done correctly< I'm assumin) as to which site the visitor is even on.

    My SBI site has something called "Infin It!" which I believe communicates between both servers, as the communication interface. I believe the terminology referres to it as a Subdomain.

    Do you have any personal background in this arena? i guess, bottom line, do yo believe this idea would work?

    Thanks for listening.


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now