Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

php serverpackage online creator

thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

php serverpackage online creator

Post by thor918 »

Okey.
I just created a very easy script using php programming.
I have no idea if anyone would be interested in something like this, but i'm all for sharing ideas. the script requires a webserver with php capabilities.

With this online creator, you could have one package, and just change pchelpware settings in strings (in the file getPackage.php) instead of building the package using the viewer. the server package(singleclick pchelpware exe) is dynamicly put togheter when someone access getPackage.php page.

http://labs.seln.no/
http://www.7-zip.org/

If you have any questions or some comments, go a head and post theme!
and it would be nice if anyone posts feedback if they find it usefull!
Last edited by thor918 on 2010-01-10 15:46, edited 2 times in total.
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

would be nice to at least get one comment :P

the forum seems almost dead silent latly. hope to see some more action here. and I hope we will se another version of pchelpware ;)
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Re: php serverpackage online creator

Post by bevtech »

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
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

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
Thanks for the update.
well from the activity on the forum, one could come to the conclusion that the project is dead.. so it's good to hear that it's progress going on.

and for the script. it seems like nobody had use for it.
at least I find it usefull :D
I got sick and tiered to create a new package and upload a new package, when the only change was the ID or connection setting.

hopefully we can see a pchelpware with full vista support soon ;)
Last edited by thor918 on 2007-09-29 13:14, edited 1 time in total.
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Re: php serverpackage online creator

Post by bevtech »

pchelpware works fine in vista i use it everyday..:) I agree it needs some work but will not be any updating till uvnc is completed. so we will just have to wait..:)
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

So it does work with helping out vista users?
I tought it had some problems there...
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Re: php serverpackage online creator

Post by bevtech »

problem is with uvnc 1.02 and the dsm plugin not with pchelpware. Also if using encryption with single click you may have issues with vista. The DSM plugin is hit and miss on vista and they are trying to correct that..
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

@bevtech
thanks for pointing out that it does work in vista.
I just tested it my self, and it seemed to me that it worked without flaws
:D
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

I'm getting a:

Code: Select all

 malformed header from script. Bad header=296115: php, referer: 
I was not able to find what part of the header is wrong, someone an idea ?
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

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
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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.
Yes, I like it even more that you still be active after a year here ! that's good and not often seen that people check their old topics :)

As far as I can see everything is stock, other script are running OK... I'm debugging now.

Do I need some extra packges on the server for the server itself or PHP maybe ?

At least it's good that it works from your side.
Last edited by Matts on 2008-07-27 19:10, edited 2 times in total.
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

non of the code require any extra packages.
I noticed that I used short tags, so you can at least change <? to <?php

what server do you use? IIS/Apache? windows/linux?
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

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

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 :)
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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 ;)
If it ain't broken, don' t fix it ;)

Maybe you miss some stuff, but I think you even don' t need it :)

can you post your test variables?
$customPackage,$sfxPackage,$downloadFilename,$repeater,$ID,$password
Mh.. I use your package as stock, so.. like it's in the package you have it for download.

What must I change in in your idea ?

/me is going to check the short/long tags further in the time between.
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

oh yes. it should work even if the download package is changed. I just tried the 7z-content here. worked without any errors.

the code dosent report any errors with php shorttag support is turned off. it's just posts the whole php.file as it's suppose to do.(I was thinking for a moment that it returned an error)

hmm. the only thing I can recommend is to try, commenting out line by line from the bottom and upwards till you see a change in error code.
Last edited by thor918 on 2008-07-27 20:52, edited 1 time in total.
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

I have tried that, if comment the the following line out, I get output of the configTXT in my browser:

header('Content-length: '. filesize($sfxPackage) + filesize($customPackage) + mb_strlen( $configTxt, '8bit') );

So, it echo' s it than, and something there is going wrong.

I was not able to see what goes wrong using var_dump and so on.

Thanks so far already, nice too see this progres.
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

hmm strange...

what does these return?

Code: Select all

  
   echo filesize($sfxPackage)."<br>"; 
   echo filesize($customPackage)."<br>";
   echo mb_strlen( $configTxt, '8bit')."<br>";
on my server the total bytecount of the message using the stocked files and vars is this:

Code: Select all

header('Content-length: 394935');
that header is required to have compability according to HTTP spesifications:
http://www.w3.org/Protocols/rfc2616/rfc ... tml#sec4.4
however I may have used another header that conflicts with this line.
as I recall that I struggled a little to have IE follow. there may be a header there just to suite IE :p
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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>";
I get the following:

98816
295946
170

Everything together makes indeed: 394932

This is weird if you ask me.
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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
Posts: 2
Joined: 2008-07-27 23:43

Re: php serverpackage online creator

Post by DrNo »

I don't need this at this moment, but this is really good stuff.
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

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?
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

DrNo wrote:I don't need this at this moment, but this is really good stuff.
Thanks! ;)
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

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");
thanks for your input ;)
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 () ?
Last edited by thor918 on 2008-07-28 08:43, edited 1 time in total.
Matts
20
20
Posts: 38
Joined: 2008-07-26 12:39

Re: php serverpackage online creator

Post by Matts »

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");
Indeed, that is what I do now, I thought to post it later on when I know for sure the way you made it will not work, some PHP guru's thought it also should work.

Maybe you can check it when you upgraded your box ;)
thor918
20
20
Posts: 43
Joined: 2007-08-19 15:34

Re: php serverpackage online creator

Post by thor918 »

if the code I posted above works for you, there is nothing to dwell about ;) that code is more easier on the eyes to read, so I may change the original download with this change...

Thanks. one bug destroyed/avoided ;)
filemakers
Posts: 1
Joined: 2009-07-24 11:37
Contact:

Re: php serverpackage online creator

Post by filemakers »

Thor918, I would apprecate if you can help me, your solution may be something I can maybe pay you for, could you drop me a PM or give me a contact email and perhaps we can help each other out?
silekonn
8
8
Posts: 12
Joined: 2009-07-30 23:11
Location: WI, USA

Re: php serverpackage online creator

Post by silekonn »

i share a portion of filemakers' interest. can you provide a working link for downloads?
scrooge313
Posts: 6
Joined: 2009-11-16 23:17

Re: php serverpackage online creator

Post by scrooge313 »

Hi,

unfortunately the link is down
Would anybody could be so kind to give me a working link?

That would be great. Thanx a lot!

Regards,
scrooge313
Post Reply