[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2009-04-21
Medium Priority
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: "http://mydomain.com/exitsplash.php"

Yup, PHP. So, I'm hoping there is some way to convert (if that's the right term) "http://mydomain.com/exitsplash.php" 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
  • 4
  • 3
LVL 34

Accepted Solution

Beverley Portlock earned 2000 total points
ID: 24198367
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
ID: 24198381
Typo alert - where it says "PHP forms really on PHP" it should say "PHP forms rely on PHP"

Author Comment

ID: 24199747

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) "http://mydomain.com/exitsplash.php" 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?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 34

Expert Comment

by:Beverley Portlock
ID: 24200022
"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='http://new.server.com/myExitSplash.php' .....

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=http://my.new.server/exitSplash.php" >

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
ID: 24200026
I see the EE editor has done it again. That last bit of HTML should be

<meta http-equiv="refresh" content="5; URL=http://my.new.server/exitSplash.php" >

Ignore the <pre> </pre> stuff.

Author Comment

ID: 24200176
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

ID: 24248300
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month20 days, 6 hours left to enroll

873 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