bevtech wrote:The pchelpware project is on hold until ultra vnc 1.04 is released all the developers are currently working on that ..Thanks for the keeping the pchelpware project moving
malformed header from script. Bad header=296115: php, referer:
thor918 wrote:Hi there Matt.
jeiiii... a comment :p after almost a year after post date
error messages can be deceiving...
have you used any non-english character's in the variables?
does other php-scripts run fine?
I have used this code for near a year now on my server, no problems yet.
Matts wrote:Shorttags is indeed something that can be added, but still, that's no solution yet.
I run
Apache/2.2.8 (Unix)
PHP Version 5.2.5
As you can see linux.
It's really something I can't find out yet, I think we can come to something
thor918 wrote:so you tried with longtags?
My system is running a similar setup:
PHP Version 5.1.2
Server version: Apache/2.0.55
Server built: May 29 2006 01:52:53
Linux Debian based
php: safe_mode Off
php: short_open_tag On
looks like I will have to update my system soon
can you post your test variables?
$customPackage,$sfxPackage,$downloadFilename,$repeater,$ID,$password
echo filesize($sfxPackage)."<br>";
echo filesize($customPackage)."<br>";
echo mb_strlen( $configTxt, '8bit')."<br>";
header('Content-length: 394935');
thor918 wrote:hmm strange...
what does these return?
- Code: Select all
echo filesize($sfxPackage)."<br>";
echo filesize($customPackage)."<br>";
echo mb_strlen( $configTxt, '8bit')."<br>";
Matts wrote:OK, I managed to get it done, the Content-length: was not parsed right, so I ripped that part out and seperated it and made a variable of it.
works ok now
DrNo wrote:I don't need this at this moment, but this is really good stuff.
thor918 wrote:Matts wrote:OK, I managed to get it done, the Content-length: was not parsed right, so I ripped that part out and seperated it and made a variable of it.
works ok now
can you post the code change (only the lines you changed)?![]()
so it was a number til string problem?
$Contentlength = filesize($sfxPackage) + filesize($customPackage) + mb_strlen( $configTxt, '8bit');
header("Content-length: $Contentlength");
Matts wrote:thor918 wrote:Matts wrote:OK, I managed to get it done, the Content-length: was not parsed right, so I ripped that part out and seperated it and made a variable of it.
works ok now
can you post the code change (only the lines you changed)?![]()
so it was a number til string problem?
Just place the stuff in the content length in a variable and place that variable in the content-lenght.
That's all.
Actually we also can check why the contentlength is not parsed right, so I know it's there, maybe we need to place it between () ?
thor918 wrote:okey then.
it's most likly that php got confused by str, number and +
(perhaps newer php versions are more strict)
so perhaps it's just, like you say and pack the numbers in a ()
or we can have a variabel just for total byte count of the body message, like this
- Code: Select all
$Contentlength = filesize($sfxPackage) + filesize($customPackage) + mb_strlen( $configTxt, '8bit');
header("Content-length: $Contentlength");
Users browsing this forum: No registered users and 2 guests