4images Forum & Community

General / Allgemeines => Chit Chat => Topic started by: ID25 on August 12, 2005, 03:59:42 PM

Title: iclude in templates
Post by: ID25 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
Title: Re: iclude in templates
Post by: TheOracle 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

;)
Title: Re: iclude in templates
Post by: ID25 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

Title: Re: iclude in templates
Post by: TheOracle 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.
Title: Re: iclude in templates
Post by: ID25 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?
Title: Re: iclude in templates
Post by: TheOracle 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.
Title: Re: iclude in templates
Post by: ID25 on August 12, 2005, 05:16:16 PM
in my site is big problem with sessions, 1-5min. and user logout
Title: Re: iclude in templates
Post by: ID25 on August 12, 2005, 05:18:00 PM
but with others templates work good 4images
Title: Re: iclude in templates
Post by: TheOracle 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 ?
Title: Re: iclude in templates
Post by: TheOracle 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 ? ;)
Title: Re: iclude in templates
Post by: ID25 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?> ? :)
Title: Re: iclude in templates
Post by: TheOracle 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.
Title: Re: iclude in templates
Post by: TheOracle 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. ;)
Title: Re: iclude in templates
Post by: ID25 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 :!: