Author Topic: iclude in templates  (Read 15704 times)

0 Members and 1 Guest are viewing this topic.

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
iclude in templates
« on: August 12, 2005, 03:59:42 PM »
write "include" to the 4images templates is good idea?
Code: [Select]
<?php include("my.php"); ?>
ex: in the details.html

TheOracle

  • Guest
Re: iclude in templates
« Reply #1 on: August 12, 2005, 04:44:11 PM »
That would be unadvisable without following this FAQ instructions :

http://www.4homepages.de/forum/index.php?topic=4295.0

;)

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: iclude in templates
« Reply #2 on: August 12, 2005, 05:01:05 PM »
thank's, but why not
<?php include("my.php"); ?>
if in my "my.php" there is just template, not php script


TheOracle

  • Guest
Re: iclude in templates
« Reply #3 on: August 12, 2005, 05:06:11 PM »
Quote

but why not
<?php include("my.php"); ?>


By doing so, your template location will not be tracked as your included template file will not be able to load.

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: iclude in templates
« Reply #4 on: August 12, 2005, 05:12:34 PM »
i place "my.php" at "images" directory and all ok :)
in "my.php" is not php script, just peace of template

But, what you think, there isn't problem with sessions?

TheOracle

  • Guest
Re: iclude in templates
« Reply #5 on: August 12, 2005, 05:15:58 PM »
If you mean that you did placed your PHP file inside the images folder, that would not be recommended either due to security issues. As for the sessions, it ' might ' also be a problem. That said, I'd still suggest you follow the URL I posted above.

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: iclude in templates
« Reply #6 on: August 12, 2005, 05:16:16 PM »
in my site is big problem with sessions, 1-5min. and user logout

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: iclude in templates
« Reply #7 on: August 12, 2005, 05:18:00 PM »
but with others templates work good 4images

TheOracle

  • Guest
Re: iclude in templates
« Reply #8 on: August 12, 2005, 05:18:13 PM »
I have read your topic regarding this problem. I did had problems with sessions during the past few days. I couldn't even log on into my admin sessions under ACP.

Unfortunitely, since I do not use the same 4images version as you, I cannot simply post the readings of sessions.php file to you.

However, which PHP version do you use ?

TheOracle

  • Guest
Re: iclude in templates
« Reply #9 on: August 12, 2005, 05:18:50 PM »
Quote

but with other templates work good


Other templates as part of the core of 4images or other additional templates imported from the HTML templates ? ;)

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: iclude in templates
« Reply #10 on: August 12, 2005, 05:26:16 PM »
PHP Version 4.3.10-15

what do you mean?
Quote
Other templates as part of the core of 4images or other additional templates imported from the HTML templates ?
what there is my mistake with <?include?> ? :)

TheOracle

  • Guest
Re: iclude in templates
« Reply #11 on: August 12, 2005, 05:33:53 PM »
As said above, please follow the FAQ instructions. You will see where you made your mistake by comparing these results with yours.

TheOracle

  • Guest
Re: iclude in templates
« Reply #12 on: August 12, 2005, 05:35:06 PM »
Quote

PHP Version 4.3.10-15


PHP Manufacturer did report sessions problem from the server end with that version in the past. Request an upgrade procedure to your ISP for PHP version : 4.4.0.0. It should stabilize your situation. ;)

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: iclude in templates
« Reply #13 on: August 12, 2005, 05:48:58 PM »
Quote
PHP Manufacturer did report sessions problem from the server end with that version in the past. Request an upgrade procedure to your ISP for PHP version : 4.4.0.0. It should stabilize your situation.

BIG thank's for you, you very very help me :!: