forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: wfs on October 17, 2006, 07:14:22 am

Title: Parsing PHP in html files
Post by: wfs on October 17, 2006, 07:14:22 am
Hi,
I'm not sure this is the right place to post.

I have a html page. If I insert some php code into it, will it be parsed?
I'm using cpg 1.48.

do I need to amend the htaccess file?

pse advise.

thanks.
Title: Re: Parsing PHP in html files
Post by: Sami on October 17, 2006, 07:18:05 am
I have a html page. If I insert some php code into it, will it be parsed?
No , use theme.php or anycontent.php or custom header or custom footer instead !

I'm using cpg 1.48.
Upgrade,

do I need to amend the htaccess file?
No , Nothing todo with htaccess
Title: Re: Parsing PHP in html files
Post by: Joachim Müller on October 17, 2006, 08:25:01 am
If you just want to rename a (non-coppermine) file that contains PHP code (like foobar.php) to something like foobar.html, then yes - you can accomplish this by editing your .htaccess file (if your webhost allows you to do this). Not related to coppermine, and as Sami suggested this does not apply to Coppermine's template.html file. Details: http://www.spiderpro.com/bu/buphph001.html
Title: Re: Parsing PHP in html files
Post by: wfs on October 17, 2006, 02:51:26 pm
Thank you, GauGau, for the clarification.
 :)
Title: Re: Parsing PHP in html files
Post by: Joachim Müller on October 17, 2006, 06:58:07 pm
You're welcome. But as this is not related to coppermine at all, we'd prefer it if you'd be googling for such stuff instead of posting questions not related to coppermine.
This is not the "general purpose www stuff board".
Title: Re: Parsing PHP in html files
Post by: wfs on October 18, 2006, 02:32:54 am
Thanks again Gau Gau. I'll remember that.

Now I'm preparing to upgrade to 1.49. I want to be sure that nothing goes wrong.

According to the instructions, "If the file install.php exists in the root directory, delete it."  Is this referring to the file in my server ? I note that there is also this file in the cpg 1.49 package. Is this file in the package to be left alone and uploaded as well ?   

I notice also the include/config.inc.php file is not in the include folder of the package - I suppose this is meant to ensure we don't overwrite the existing file in the server on uploading.

Pse advise.

thank you so much.


Title: Re: Parsing PHP in html files
Post by: Sami on October 18, 2006, 06:56:09 am
- We have one issue per thread policy , please respact the rules
- Upgrade process doesn't need install.php you can safely delete your old install.php and leave the new one alone as well
- config.inc.php will create after first installation automaticlly by install process and it's not part of installation package
Title: Re: Parsing PHP in html files
Post by: wfs on October 18, 2006, 08:56:24 am
thank you so much.
sorry, if I've broken any rules.