Google Groups Home
Help | Sign in
Message from discussion problems with OSX
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Joel  
View profile
 More options Nov 27 2005, 10:29 pm
From: "Joel" <joel...@gmail.com>
Date: Sun, 27 Nov 2005 19:29:04 -0800
Local: Sun, Nov 27 2005 10:29 pm
Subject: Re: problems with OSX
Hi Will,

I haven't figured out why you're having the unarchive problem using
Stuffit exander. But here's a workaround to unzip the file through the
command line instead:

try this:
CTRL-click on the download and choose "Download Linked File" (Safari)
or "Save Link As" (firefox).

save the zip file to your desktop.
next:
open up terminal in the utility directory.
from terminal type:
cd desktop [ENTER]
unzip filename.zip -d directory name

for example:
unzip 1133146193.php.zip -d pog

should unzip all the files in the zip file like this:

Archive: 1133146193.php.zip
inflating: pog/class.database.php
inflating: pog/configuration.php

As for your 2nd issue (the gibberish characters), this is happening
because you're outputing stuff from the database that wasn't inserted
through POG. POG automatically encodes the data using base64 encode
upon Save() and decodes it upon Get(). Since the data in the database
wasn't inserted using POG, POG is trying to decode stuff which isn't
encoded, which causes the gibberish characters.
A workaround is to insert the data using POG in the first place, or to
comment out the Escape() and Unescape functions in class.database.php
like this:

function Escape($text)
        {
                /*if (!is_numeric($text))
                {
                        return base64_encode($text);
                }*/
                return $text;
        }

function Unescape($text)
        {
                /* if (!is_numeric($text))
                {
                        return base64_decode($text);
                }*/
                return $text;
        }

Hope this helps. Let us know if it works.

Joel


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google