ASP Site Master page and linked PHP Footer - php

Can I include an external PHP footer document in an ASP.NET Web Forms Site Master?
The idea is, we have a CMS site and an Application Site, both on the same domain. The CMS Admin will update the footer quit often (which is called footer.php), WordPress CMS, and all I want to do is link in my Site Master section to that footer.php file? Don't know if that will be possible at all?
Thanks

If you add the response text to from the php page to the asp page it should work, just make sure that the PHP file is parsed first (eg. running on a server).

Related

WordPress Section of site will not Load Over SSL

I have been recently working on a new site for a small business named Stick'em Stickers.
Right now the site is set up so that the front end that the uses see is a static webpage. In the background I have a WordPress instance running that we use to load dynamic content onto our site.
For a better understanding, you can just visit the website here.
My problem is that any pages or content that is trying to load that are WordPress related, will not load correctly or all the way.

Add google analytics to an existing site created with CodeIgniter

Firstly I'm not a web developer! My site was created by a company that is no longer in business, so I have access to the admin page to add content, but know nothing about the back end.
I have been asked by an SEO company to add Google analytics, when I tried to add the script.../script to my footer, which is included in all pages, it shows up in the page source of a web browser, but does not run, and Google tells me it's not installed.
Is there a way to add either a script to via the admin tool, or a < ?php include_once("analyticstracking.php") ?>
If the latter, into which directory should I ftp the analyticstracking.php file?
First of all, if it shows up in the page source, you are halfway there. You just probably did not copy-paste it right. Try copying the EXACT code in google analytics, put it in the footer and try again.
The include functions won't do anything different than putting the code straight in the footer.
Note that you need to have some visits on the site so that GA knows the script is installed.

Include ASP.NET Header and Footer on PHP Website

I'm building a Wordpress blog for someone with an ASP.NET website, their hosting provider won't install PHP on their server so we're having to use an external Linux server.
My question is, is there a good way to include their ASP.NET header and footer into the Wordpress blog despite it being hosted externally on Linux server.
Thanks.
Assuming the header and footer are ASP controls of some form, and assuming those controls are likely to includes things like links and images with relative urls, the easiest solution would be to create a simple ASP page with the header and footer controls, and in the middle an iframe pointing to the server hosting the blog.
The other option would be to create two "hidden" ASP pages that contain the header and footer controls. Then your wordpress code could use something like file_get_contents to get the contents of those pages, and the PHP DOM API to parse out the parts you need and rewrite any relative urls.

Theme Not Working When Visited from Separate Computer on New Wordpress Blog

I am using WAMP with a new WordPress blog. I am hosting this on a local computer. Upon my arrival at this URL from a separate computer a lack of CSS appearance becomes evident. To clarify myself further, when I view this site on another computational device designed to compute the CSS that ought to load does not perform its designated task. Perhaps the scripts are not performing their tasks? PHP scripts that WordPress uses may have errors impairing the overall performance from an external device. My English, please excuse, and have my deepest respect comrades.
Maybe you installed your blog with an url like http://localhost/blog
In the WordPress database the url is used to find the link for CSS, theme files, etc...
Accessing from another computer with your ip address (let's say that is 192.168.1.5) will break the css, because, if you look at the code of your wordpress page you'll see links pointing to localhost, that has no meaning for the other machine (or better, for the other machine means "myself", so it will look for css on its filesystem and not on your remote pc).
Sorry for the bad english. :P

Using wordpress as landing page that works with silverlight back end

I am web developer working on a wordpress landing page that will lead the user into an all silverlight page. Now my programmer says this can't be done and it's not supported php conflicts with silverlight/asp and so on.
My web address will be www.maddog.net... I need the wordpress and silverlight portions of the website to reside in the same URL.
One more note I had a a login developed for the wordpress site that will need to talk to the silverlight logon... is this possible?
Just have your PHP (wordpress) redirect to a .NET based subdomain application if need be. The silverlight elements need to be hosted by asp.net based pages so for example:
You should be able to set this up in IIS, PHP root level site and /Subsite as its own virtual directory hosting asp.net site.
User logs into php page, you can server transfer to next page with login details etc or any other way to want to pass the creds to the .NET page and automatically log the user in then display the silverlight component.

Categories