FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » can't get includes to load
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: cleaning up first php page was Re: can't get includes to load [message #180936 is a reply to message #180935] Wed, 27 March 2013 08:06 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
On 27/03/13 08:00, Cal Dershowitz wrote:
> On 03/26/2013 07:14 PM, Jim Higgins wrote:
>> Let's say the page you want to work on is named ORIGINAL.PHP. You
>> make a copy of that file and you call it something like
>> ORIGINAL.PHP.BAK. Then you work on ORIGINAL.PHP. If you need more
>> copies og that original, you can append a date or a letter or whatever
>> after BAK to differentiate them.

Just a reminder, use git instead of making backup files.


> What is a person supposed to do about the fact that if you just type in
> www.merrillpjensen.com , you get the old index.html? Should I just
> re-direct that to a php version?

Delete the index.html and problem solved.

Another case, as you seem to give out a link with index.* it can be good
to use the apache rewrite module to redirect those who try to access the
index.html file directly, in your .htaccess you could have something
like this:

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ /index.php [L]

Haven't tested it, so in worst case you need to make some tiny changes.


> Also taking any and all suggestions* on how to make this start looking
> like a webpage that you would show a client.

You maybe want to look at a CMS and just make a theme for it and then
add on your own plugins to do things you want it to do and no one else
has already done, then you don't have to reinvent the wheel.


--

//Aho
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mysql dynamic binding and pass-by-ref deprecated
Next Topic: Java conferences in India...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 13 07:05:39 GMT 2024

Total time taken to generate the page: 0.04904 seconds