allow function.unpack()

Status
Not open for further replies.

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Could you try install SMF manually by downloading all files and uploading them?
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
you can also use sofalicious to install SMF

make sure you change [yourdomain]
http:/[/yourdomain].com:2082/frontend/x3/softaculous/index.live.php?act=software&soft=79
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
The most (free)hosts support this. why does x10hosting not?

If you are talking about the PHP function unpack, it runs on x10hosting.

Try running

PHP:
<?php
if( function_exists( 'unpack')) {
    echo "Yes" ;
} else {
    echo "No" ;
}
echo "<br />" ;
$binarydata = pack("c*", 76, 83, 65, 66);
echo $binarydata ;
echo "<br />" ;
$back = unpack( "c*", $binarydata  ) ;
echo var_dump( $back ) ;
 
echo "<br />" ;
?>
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Install SMF using the downloads on SMF's website, or through softaculous/fantastico.
 

felabria

New Member
Messages
88
Reaction score
0
Points
0
why does smf say this? Warning: unpack() [function.unpack]: Type H: not enough input, need 1, have 0 in /home/felabria/public_html/webinstall.php on line 982
Edit:
If you are talking about the PHP function unpack, it runs on x10hosting.

Try running

PHP:
<?php
if( function_exists( 'unpack')) {
    echo "Yes" ;
} else {
    echo "No" ;
}
echo "<br />" ;
$binarydata = pack("c*", 76, 83, 65, 66);
echo $binarydata ;
echo "<br />" ;
$back = unpack( "c*", $binarydata  ) ;
echo var_dump( $back ) ;
 
echo "<br />" ;
?>
the code give me this: Yes
LSAB
array(4) { [1]=> int(76) [2]=> int(83) [3]=> int(65) [4]=> int(66) }

and also the code by the smf webinstall.php is
// If this doesn't return the right signature, it's not a gzip.
$id = unpack('H2a/H2b', substr($data, 0, 2));
if (strtolower($id['a'] . $id['b']) != '1f8b')
return false;

$flags = unpack('Ct/Cf', substr($data, 2, 2));
 
Last edited:
Status
Not open for further replies.
Top