Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Metamod and curl / php code

Metamod and curl / php code

Trying to make this curl call work - works in mod_php ( in 1.5 - in 1.7 - using metamod? - does not seem to work -)
<?php
    $ch = curl_init("http://redacted");
    $output = curl_exec($ch);
    print "$output";
curl_close($ch);
?>

gives blank -

tcnrahul
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: Metamod and curl / php code

If you're using it in MetaMod, don't include the <?php and ?> parts. They will make it fail. Just put in the raw code in the middle.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
158

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked