Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2010-01-07 06:21:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,251
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB