Parsing PHP in html files Parsing PHP in html files
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Parsing PHP in html files

Started by wfs, October 17, 2006, 07:14:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wfs

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.

Sami

Quote from: wfs on October 17, 2006, 07:14:22 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 !

Quote from: wfs on October 17, 2006, 07:14:22 AM
I'm using cpg 1.48.
Upgrade,

Quote from: wfs on October 17, 2006, 07:14:22 AM
do I need to amend the htaccess file?
No , Nothing todo with htaccess
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

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

wfs

Thank you, GauGau, for the clarification.
:)

Joachim Müller

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".

wfs

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.



Sami

#6
- 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
‍I don't answer to PM with support question
Please post your issue to related board

wfs

thank you so much.
sorry, if I've broken any rules.