I’ve been searching PHP tutorials for two days, have the folders for main, footer, header, etc built, they work if i change the page to .php .. they do not call the css file in the .html version..
~LadyH
you can also include something like this in an html file
include ('/myfile.php'); ?>[/CODE]
I say something like this because it depends on your server. and the version of php it’s running. And some require a mod rewrite.
here’s some good mod rewrite sites for you
xxhttp://www.mod-rewrite.com/forum/
xxhttp://www.mod-rewrite-wizard.com/
I’ve done what you’re trying to do, it just seems to be a little different every time because of hosting issues.[CODE] include ('/myfile.php'); ?>[/CODE]
I say something like this because it depends on your server. and the version of php it’s running. And some require a mod rewrite.
here’s some good mod rewrite sites for you
xxhttp://www.mod-rewrite.com/forum/
xxhttp://www.mod-rewrite-wizard.com/
I’ve done what you’re trying to do, it just seems to be a little different every time because of hosting issues.
you can also include something like this in an html file
? include (‘/myfile.php’); ?
I had to leave out the < > from the beginning and end of that or it wouldn’t show
I say something like this because it depends on your server. and the version of php it’s running. And some require a mod rewrite.
here’s some good mod rewrite sites for you
xxhttp://www.mod-rewrite.com/forum/
xxhttp://www.mod-rewrite-wizard.com/
I’ve done what you’re trying to do, it just seems to be a little different every time because of hosting issues.
You’ll find the .htaccess code here:
AddType application/x-httpd-php .htm
AddHandler application/x-httpd-php .html .htm
Then upload it to the directory you want to use and rename it .htaccess
Now use the PHP include tag as described above.
AddHandler application/x-httpd-php .html .htm
Then upload it to the directory you want to use and rename it .htaccess
Now use the PHP include tag as described above.
I rarely mess with my .htaccess but since I aready have one.. I assume I can just add this line to it? Does it matter where? Top or bottom?
Messing with an empty domain right now, using code from old pages, in hopes of not screwing up 400 pages in one shot .. but when I move the codes and new groovy menus n such to the exsisting page, i’ll want to keep its htaccess file ” title=”” class=”bbcode_smiley” />
Thanks for your replies guys! Saved me hours of searching already!
~LadyH :hattip:
Please login or Register to submit your answer