» 2013 » April の記事

apt-get install php5-mysql php-apc php5-gd php5-mcrypt

 

~ php get current directory or filename ~

connie 2013.04.03 | php | | No Comments

目標:

/var/www/connie/test.php

output = "/var/www/connie/test.php"

echo __FILE__;

output = "test.php"

echo basename(__FILE__);

output = "test"

echo basename(__FILE__, '.php');

output = "/var/www/connie"

echo dirname(__FILE__);

output = "/var/www/" (parent folder)

echo dirname(dirname(__FILE__));

~ Jailbreak PS3 ~

connie 2013.04.02 | PS3, Uncategorized | | No Comments

必要東西

  1. PS3 firmware 必須為原廠3.55或以下 
  2. 3000機不可
  3. 3.55 OFW(原廠 firmware)
  4. 3.5.5 CFW kmeaw 
  5. QA Flag
  6. Rogero 4.30 v2.05
  7. multiman

最安全既做法係restore 3.55 OFW->3.55CFW->Rogero 4.30 v2.05

如果你之前用過trueblue 的話都係restore 去OFW好一點。

RESTORE時唔想嚇自己的話,就去restore mode , 記得玲D碟出尼

將3.55 OFW 的PS3UPDAT.PUP 抄去USB的

/PS3/UPDATE

之後入restore mode

進入restore 方法:

  1. Turn off your Playstation 3.
  2. Hold the Power button down. The system will turn on and turn off once again.
  3. Once the system has been shutdown, Re-press and hold you finger until you hear 2 consecutive beeps.
  4. When you hear the 2 beeps take finger off power button. You will be promted to plug in your controller via usb and then press the PS button. The Recovery Menu will pop up. 

完成後reboot , 做多次係3.55CFW

成功JAILBREAK 後會係game section 出現

  • /app_home/PS3_GAME
  • Install Package Files

install-kmeaw

之後將QA Flag.pkg 抄到USB 及安裝 QA Flag 聽到滴滴滴三聲之後ps3自動退出到XMB界面【如果没到滴滴滴的音說明 Toggle QA 没正確開啟,如果之前安装并運行成功過QA Flag】

去到XMB介面的settings>network settings
同時按下L1+L2+L3(冬菇制)+R1+R2+十字制的下制
便會在settings>network settings下出現edy viewer,debug settings 及 install package files
進入debug setting 將system update debug 改為on

1zf5x6u

確定debug mode 開左後可以unzip Rogero 4.30 v2.05

將"Rogero_CEX4.30_V2.05" 改成 "PS3UPDAT.PUP" 及抄到USB到

/PS3/UPDATE

之後再去restore mode 刷成Rogero_CEX4.30_V2.05

reboot 後抄multiman的pkg去USB到, 返去PS3的game> install package files install multiman

用FTP抄game 去HDD0 的game 內就完成

必需東西

  1. Root機(笑,未root 可以再見了
  2. Android Terminal Emulator , 即putty
  3. Hacker's Keyboard , 感覺好小小既keyboard skin,最小你會講小左好多粗口:)
  4. Complete Linux Installer , linux container
  5. Astro File , android file system

 安裝晒以上東東後,開啟 Complete Linux Installer 

去install guides 到choose 你要安裝既OS 到,尼到會用ubuntu 12.04 尼做example

Screenshot_2013-04-01-19-47-49

Page 1 主要係叫你開USB debugging mode , 同夠位donwload ubuntu OS images

Screenshot_2013-04-01-19-47-58

之後Page2 donwload image 

Screenshot_2013-04-01-19-48-01

之後有3個size可以 download , 睇餸食飯。

Screenshot_2013-04-01-19-52-28

sourceforge 係幾好,用4G download 都好快完成, (小妹係唔係就係另mobile network 塞車的兇手,喂

Screenshot_2013-04-01-19-52-31

download 完成後就解壓,內有2個file , 一個係img , 一個係md5

Astro File check 一下md5 有無問題,按實>properties>MD5 checksum

之後將img放到你想放既位置。

完成後回到Complete Linux Installer , 去launch

SETTINGS>Edit 變更images link

save> Start Linux

開了後會自動跳到Android Terminal Emulator,問你開唔開ssh, vnc, y晒佢你就有好日子過

之後save ,一切都變回你懂的東西,update 一野

apt-get upgrade && update

install LAMP

apt-get install apache2 mysql-server php5

Screenshot_2013-04-01-19-23-02

完成

| HOME | Next Page »

Smiley face

April 2013
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930