PHP file not being executed when I call curl_exec?

 
Post new topic   Reply to topic    34SP.com Forum Index // Scripting Support
View previous topic :: View next topic  
Author Message
cfogelberg
34SP Newbie
34SP Newbie


Joined: 11 Dec 2011
Posts: 1

PostPosted: Sun Dec 11, 2011 7:00 pm    Post subject: PHP file not being executed when I call curl_exec? Reply with quote
Hi all,

I have a strange problem in a PHP file that has the following structure:

Code:
<html><body>
<?php
// ...PHP code here...
// curl_exec($ch)
// ...More PHP code here...
?>
</body></html>


This code executes as I expect until I uncomment the (essential) line curl_exec. At this point my browser is prompted to download a 0 byte file - it's almost like Apache just doesn't execute the script, even to print out the "<html><body>" and "</body></html>" text outside the PHP code block.

Previously, this code generated internal server errors because I had CURLOPT_FOLLOWLOCATION set to true, but that is now not the case - so I get this problem instead!

Can anyone please help me understand how to use curl with PHP at 34SP?

Many thanks,
Christo
Back to top
View user's profile Send private message
Post new topic   Reply to topic    34SP.com Forum Index // Scripting Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001, 2002 phpBB Group