Parse PHP in HTML Pages on GoDaddy Hosting
Sometimes it is helpful, mainly to avoid broken links, to make sure your html files (with a .htm or .html extension) can parse PHP. On GoDaddy hosting, this threw me for a loop.
Sometimes it is helpful, mainly to avoid broken links, to make sure your html files (with a .htm or .html extension) can parse PHP. On GoDaddy hosting, this threw me for a loop.
An earlier post of mine provides a fairly good example of a PHP script that renames a file as you upload it to a server. In this post, I’ve decided to take another look at that type of script and make it easier to use. I’m going to break the code you’ll need into two parts: the HTML and the PHP.
I’m restructuring my blog to only focus on these languages and environments: Apache, PHP, MySQL, Javascript (usually via jQuery), XML, Actionscript, CSS, and HTML. Very rarely have I had to extend my reach out into other languages to accomplish the creation of a quality web page or web application.
I’ve looked at parsing weather data with PHP before, but I’ve found that using Yahoo’s weather service it more stable and flexible. Luckily PHP has some excellent built in functions to parse complex XML.
Eventually every programmer will be required to find a way to upload a file to a web server. I recently started a project that required a way for me to upload a word doc to a web server, which, in turn, required me to write a upload and rename script in PHP.