Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Curl - String is too long?

$
0
0
Here is my code to add message on my forum.
I have a problem, because I give too long text in the variable $ message is on the side instead of the ready message only appears the error: "Momentary no connection"
It seems to me that my string is too long.
Will you help me fix it somehow so that I could write a very long threads?
$message = "
[b][size=18][color=white]...................................................................[/size]
[size=12]................[/size][/b][/color]
[b][size=18][color=white].............[/color][/size][/b]
[img]........................................................................[/img]
[b][size=18][color=white]...........................[/color][/size][/b]
[code]....................................... 
........................................................
.........................................................
........................................................... 
...................................................
........................................[/co de]
[b][size=18][color="wh ite"]......................[/co lor][/s ize][/b]
[co de].................................................. 
................................................. 
...............................................[/co de]
[b][size=18][color="w hit e"]Zdjęcia:[/co lor][/s ize][/b]
";
It's on my site shows up: Momentary lack of connection ...
But if I give the example already abbreviated variable:
$message = "
[b][size=18][color=white]...................................[/size]
[size=12]................[/size][/b][/color]
[b][size=18][color=white].............[/color][/size][/b]
[img]........................................................................[/img]
[b][size=18][color=white]...........................[/color][/size][/b]
[c ode]....................................... 
................................
....................................................
...................................................
........................................[/co de]
[b][size=18][co lor="w hite"]......................[/color][/s ize][/b]
[c ode]..................................................[/c ode]
.";

Now its work great... Post are sent...

The Curl sending it by:

  1. &message=$message&mode=reply&

Viewing all articles
Browse latest Browse all 13200

Trending Articles