Issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bidoun
Forum Newbie
Posts: 7
Joined: Sun Nov 01, 2009 6:45 am

Issue

Post by bidoun »

Hi,



Issue solved.
Last edited by bidoun on Mon Nov 02, 2009 9:24 am, edited 1 time in total.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: curl Issue

Post by Eric! »

Send your debug info to a file using the following

Code: Select all

//redirect stderr to file stream
$fp = fopen("debug.txt","w");
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt ($ch, CURLOPT_STDERR, $fp);
//don't forget fclose at the end...
And see where the error is.
bidoun
Forum Newbie
Posts: 7
Joined: Sun Nov 01, 2009 6:45 am

Re: curl Issue

Post by bidoun »

Hi Eric.

working now
Last edited by bidoun on Mon Nov 02, 2009 9:25 am, edited 1 time in total.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: curl Issue

Post by Eric! »

Have you tried it without urlencode() on your posted data? I'm not sure you want to it urlencode your fields.

Also, try the debug snipet and view the debug.txt file, you might find more ideas there.

Sorry that I don't have the desire to do the work for you on your account. Post the debug.txt file back here if you are still stuck.
bidoun
Forum Newbie
Posts: 7
Joined: Sun Nov 01, 2009 6:45 am

Re: curl Issue

Post by bidoun »

Eric! wrote:Have you tried it without urlencode() on your posted data? I'm not sure you want to it urlencode your fields.

Also, try the debug snipet and view the debug.txt file, you might find more ideas there.

Sorry that I don't have the desire to do the work for you on your account. Post the debug.txt file back here if you are still stuck.
Okay, as I work on local "my machine". the file which contain the code is located in /var/www which is not writable. If you can't do this so tell me where to add the debug code exactly on the code above and I will run it from a remote server, my hosting provider.

Think You
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: curl Issue

Post by Eric! »

before line 90 and put in an fclose($fp) after line 90
bidoun
Forum Newbie
Posts: 7
Joined: Sun Nov 01, 2009 6:45 am

Re: curl Issue

Post by bidoun »

Are you sure about the position you give me, because when I do what you tell me, it create a file debug.txt but this file is void didn't contain any data.
bidoun
Forum Newbie
Posts: 7
Joined: Sun Nov 01, 2009 6:45 am

Re: curl Issue

Post by bidoun »

.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: Issue

Post by Eric! »

Why did you delete all your posts? It might have helped someone else in the future.
Post Reply