[PHP-users 3865] Re: phpShop の日本語インストールマニュアル

SAKAMOTO php-users@php.gr.jp
Mon, 26 Nov 2001 16:19:17 +0900


坂本です。

プロバイダーのIPを使っていてURLやIPをそのまま
connfigファイルに設定するとIPが変わるたびに設定しなおすのが
面倒でテストでローカルで動かすのは下のようにして
動かしています。たまにこの$SERVER_ADDR関数がうまく
動かない時があるようです。またはプロバイダさんが80番ポートを
塞いでいるのかも知れません。
ログを見ると何人かの人がアクセスしているような痕跡がありますが、、、
http://202.223.122.195/statistics/access.html

$MY_IP = $SERVER_ADDR;

if($SERVER_PORT == "80")
 {
  $TMP_URL = "http://" . $MY_IP;
  $TMP_SSL = "https://" . $MY_IP;
 }
if($SERVER_PORT == "443")
 {
 $TMP_URL = "http://" . $MY_IP;
 $TMP_SSL = "https://" . $MY_IP;
 }
if($SERVER_PORT == "8008")
 {
 $TMP_URL = "http://" . $MY_IP . ":" . $SERVER_PORT;
 $TMP_SSL = "https://" . $MY_IP;
 }


# URL Directive
# -------------
# Designates the URL of the phpShop site.  This URL
# should point to the location of the index.php3 file.

"URL"   => "$TMP_URL/php/shop/bin/",

# SECUREURL Directive
# -------------------
# Designates the URL of the secure server for the phpShop site.  This URL
# should point to the location of the index.php3 file.  Note, if no
# secure server is available, this should be set to the same value
# as the URL directive.
"SECUREURL"  => "$TMP_SSL/php/shop/bin/",

RisaPapa
http://www.osask.net



----- Original Message ----- 
From: "Akira Shinjo" <akira@shinjo3.com>
To: <php-users@php.gr.jp>
Sent: Monday, November 26, 2001 3:52 PM
Subject: [PHP-users 3863] Re: phpShop の日本語インストールマニュアル


> 坂本様
> 
> すいません、早速お邪魔しようと思ったら
> 
> http://202.223.122.195/php/shop/bin がつながらないんですけど・・・
> 
> --------------------------------
> Akira Shinjo - 新城 朗
> --------------------------------
> E-Mail: akira@shinjo3.com
> Web Page: http://www.shinjo3.com/
> --------------------------------
> ネットワーク関係のお仕事、よろず
> お引き受けいたします。16年の経験
> がきっとお役に立ちます。