Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Parsing PHP in html files  (Read 3695 times)

0 Members and 1 Guest are viewing this topic.

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Parsing PHP in html files
« 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.
« Last Edit: October 17, 2006, 06:56:36 pm by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Parsing PHP in html files
« Reply #1 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Parsing PHP in html files
« Reply #2 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
Logged

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Parsing PHP in html files
« Reply #3 on: October 17, 2006, 02:51:26 pm »

Thank you, GauGau, for the clarification.
 :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Parsing PHP in html files
« Reply #4 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".
Logged

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Parsing PHP in html files
« Reply #5 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.


Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Parsing PHP in html files
« Reply #6 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
« Last Edit: October 18, 2006, 09:37:20 am by Sami »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Parsing PHP in html files
« Reply #7 on: October 18, 2006, 08:56:24 am »

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

Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.