Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-01-07 04:30:57
- dukny
- Member
- Registered: 2006-02-20
- Posts: 14
Using PHP code in Textpattern :(
how can i use this php code in textpattern?
This is not work :(
help me plz,,, thanx
<?php if ($iphone == '1'): ?>
<![if !IE]>
$ch = curl_init("iphone/topalbums.php");
curl_exec($ch);
curl_close($ch);
<![endif]>
<?php else: ?>
$ch = curl_init("/topalbums.php");
curl_exec($ch);
curl_close($ch);
<?php endif; ?>
Last edited by dukny (2010-01-07 04:34:17)
Offline
Re: Using PHP code in Textpattern :(
Hi dunky
Check the FAQs. You have to enable php in Admin>preferences and you also have to use the <txp:php>
syntax.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1