473,587 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is problem with curl_init()

8 New Member
here is my code:
=============== =============== =============== =========
<?
$ch = curl_init();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitl ed Document</title>
</head>
<body>
JUST ECHO TEXT
</body>
</html>
=============== =============== =============== ==========

WHY I M NOT GETTING ANY ECHO IN DOCUMENT BODY... WHAT IS PROBLEM WITH curl_init() function ???

please help me,
Jul 31 '07 #1
2 1708
kovik
1,044 Recognized Expert Top Contributor
WHY I M NOT GETTING ANY ECHO IN DOCUMENT BODY... WHAT IS PROBLEM WITH curl_init() function ???
You are not doing ANYTHING in your code. All you do is call curl_init().
Aug 1 '07 #2
rohitsavalia
8 New Member
You are not doing ANYTHING in your code. All you do is call curl_init().
=============== =============== =============

thanks for your replay,

but please look again at my code, i put "JUST ECHO TEXT" in my body tag, and i think it should display..???

i m telling that curl_init() function generate php error which wipe out my all output.
Aug 1 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2051
by: Andres Baravalle | last post by:
Hi, I have a problem using a URL fetching algorithm (HTTP 1.0). To download an image, I used to use this algorithm: <?php Header("Content-type: image/gif"); $referer = "http://www.creators.com/comics_show.cfm?comicname=mrh";
1
2385
by: Bib | last post by:
I'm working on a box that allegedly has curl support, but when I run a script that access curl, I get this error: Fatal error: Call to undefined function: curl_init() in /usr/local/apache/htdocs/CHECK.php on line 6. Line 6 is: $ch = curl_init();
0
1424
by: chad.arimura | last post by:
Hey all, I've been trying to write a short script using curl w/ php but can't figure something out: I'm simply trying to login to a website using a posted user/pass combo to an html form (login.php) that, if correct, sends a Header("Location: success.php"). The problem I'm running into is when I successfully login, i'm watching
6
4255
by: Wescotte | last post by:
I'm writing a tiny php app that will log into our bank of america account and retrieve a file containing a list of checks that cleared the previous day. The problem I'm running into is when I perform actions with php/CURL the output is different than when I use IE and I'm completely stumped as to why. The final output should list files...
2
10851
by: McHenry | last post by:
I am trying to use curl however am not having any success with a CLI script. Fatal error: Call to undefined function: curl_init() in C:\PHP4\cli\processweb.php on line 65 Windows XP PHP 4.4.2 php info shows: CURL support enabled
1
1368
by: csteimonts | last post by:
Hey there, if it would be possible, since you have figured out the login function of logging into yahoo from PHP CURL, could you post that solution? I'm having quite a time figuring that out......... here is my code: <? $c=curl_init(); curl_setopt($c, CURLOPT_USERAGENT, "BiogetBot"); curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE);...
4
4832
by: sandeept | last post by:
Hello, I am trying to access a website which is hosted on secure server. Code looks as follows, <?php //open connection $ch = curl_init(); //set the url, number of POST vars, POST data
3
3743
by: Meglio | last post by:
Hi experts and professionals. My goal is to automatically download PDF files and convert them to HTML using pdftohtml library. Here is how it works: 1. It downloads PDF file using file_get_contents() 2. Uses pdftohtml library and perform conversion My problem is when I'm trying to fetch PDF files from symantec FTP
1
4600
by: swethak | last post by:
Hi, i used the curl_init() function in my application. function exchangeToken($token) { $ch = curl_init(); /* Create a CURL handle. */ curl_setopt($ch, CURLOPT_URL,"https://www.google.com/accounts/AuthSubSessionToken");
0
7852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.