The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
When I create a site I can change pretty much anything with CSS, but if I want to change big chunks of the site layout I have to alter every single page which is not good. So my question is, should I have studied php all those years ago? Is there anything out there that can do all this form me for free so I dont have to change 100s of webpages individually? Or maybe there's a new programming language in development thats better than ASP and PHP, in which case should I start learning now?
Its okay, this wont affect my current site, but I need to know for future projects. Freeola is done in php right? it cant be that difficult. Could I be able to master it within a week?
Thanks for your help guys, I appreciate it.
Thank you very much Garin. Although I just realised, is this set to my server clock or my computer clock? My server is in California, but I want it set to GMT. Is that possible do you know?
<?php echo date('l F j, Y');?>
> Maybe I should write a beginners guide to php as I learn it.
I started writing one once upon a time, a totally thankless task. :) I always thought cjh's beginners guide was pretty good. A cut above everything I could write for certain.
Maybe I should write a beginners guide to php as I learn it.
And if you wanted to move a sidebar from the left to the right, then it's entirely possible, it just means that you'd have to update every page where you wanted it to happen. This could potentially take ages, but then in effect it's similar to a site re-design, which will always take a while to implement.
I recommend being entirely happy with your site layout before you put it all together!
Hmm it would make my job a lot easier but what if I wanted to move a sidebar like that one <- from the left to the right -> I wouldnt be able to do that in includes, I dont think :/ oh wait what if the whole page was an include like a template :) okay perhaps not
I'll do some research now and find out more. Thanks a bunch McLong :D
For example, the footer at the very bottom of every page ('Contact Us | Help & Support' links etc) on our interactive sites is exactly the same on every page, so therefore that part of the code, including the closing table, GetDotted search box and any other odds and sods is created in a separate file and then simply 'included' on all pages that need it. Therefore any changes that need to me made to any part of that section require only one file to be updated.
It's easy to do this, and if includes are all you need you don't need much knowledge of PHP at all. You only need to do the following:
1. Create a new file called something relevant to the code you will be creating, for example
footer.php
or navigation.html
2. Add the code that you wish to include to this file.
3. On the pages that you wish to include this file just type
<?php include('footer.php'); ?>
exactly where you want this include to appear. Your files will need to have a .php extension for this include code to work though.-------------------------
I believe .ASP is for use on Windows servers, and PHP for Linux servers. I've never used ASP, nor do I want to.
And I doubt very much you'd be able to learn PHP in a week!
Hope this helps...