
只不過是產生一個簡單的Gallery居然被圖片的檔案大小卡住,話說有一天新血來潮嘗試拿Android的範例來改寫一下,並把圖片換成一般的照片,心想這下可容易了!正當Build完後要去執行居然出現Unexception的錯誤,後來換回Android的Sample圖片又可以,經過詢問才知道Android有限制應用程式的資源單一檔案大小不能超過 1MB,害我找了老半天以為程式有Bug。
主要是寫程式的學習記錄
Permission denied,意思是指寫入檔案是不被允許的,接著我就朝著權限這方面去設定,出了將IIS中的該目錄寫入權限啟動外,也到檔案總管將該目錄的所有權限打開,執行的結果依然還是
出現 Permission denied,從warning的訊息可以看出是touch這個function,所以我就去官網查Manual上面寫內容如下:
(PHP 4, PHP 5)
touch — Sets access and modification time of file
Attempts to set the access and modification times of the file named in the filename parameter to the value given in time . Note that the access time is always modified, regardless of the number of parameters.
If the file does not exist, it will be created.
The name of the file being touched.
The touch time. If time is not supplied, the current system time is used.
If present, the access time of the given filename is set to the value of atime
Returns TRUE on success or FALSE on failure.
Version | Description |
---|---|
5.3.0 | It became possible to change the modification time of a directory under Windows. |
Important info:
touch() used on a directory always returns FALSE and prints "Permission denied" on NTFS and FAT Filesystem (tested on winXP).
Permission denied的問題!
Among the topics covered by Visual Basic 6 Secrets are complete coverage of Visual Basic's new Web tools and Internet features, creating ActiveX applications and controls, advice on database development, and instruction on producing full-featured Dynamic HTML Web applications.
Visual Basic 6 Secrets is accompanied by a CD-ROM containing third-party evaluation software, including Help Composer, RoboHTML, SpyWorks, InstallShield Express, and much more.
Property Name | Description |
---|---|
Cache Authorization | A Boolean value (read-only) that indicates whether the data source is allowed to cache sensitive authentication information, such as a password, in an internal cache. For the Microsoft Jet provider, this value is always True. |
Encrypt Password | A Boolean value (read-only) that indicates whether the password can be sent without encryption. For the Microsoft Jet provider, this value is always False. |
Mask Password | A Boolean value (read-only) that indicates whether the consumer requires that the password be sent to the data source in a masked form. |
Password | A String value (read/write) that specifies the password to be used when connecting to the data source. |
Persist Encrypted | A Boolean value (read-only) that indicates whether the data source object saves sensitive authentication information in an encrypted format. For the Microsoft Jet provider, this value is always False (no encryption). |
Persist Security Info | A Boolean value (read-only) that indicates whether the data source object can save sensitive authentication information. For the Microsoft Jet provider, this value is always False. |
User ID | A String value (read/write) that specifies the user ID to be used when connecting to the data source. |
Asynchronous Processing | A Long value (read/write). Not supported by the Microsoft Jet provider. |
Data Source | A String value (read/write) that specifies the name of the data source. Typically this consists of the path and file name of the data source. |
Window Handle | A Long value (read/write) that specifies the window handle to be used if the data source object needs to prompt the user for additional information. |
Locale Identifier | A Long value (read/write) that specifies the locale ID (LCID) to use when opening a database. The LCID specifies the database's collating order, which is the character set that will be used to determine how values in the database are sorted. This property does not guarantee that all text returned to the consumer will be translated according to the LCID. The Locale Identifier property can also be used to specify the LCID when you create a new database by using the Create method of the ADOX Catalog object. See Locale Identifier Property Settings later in this document for a listing of the values that can be assigned. |
Mode | A Long value (read/write) that specifies a bitmask that indicates access permissions. When read from the Properties collection, the value returned is a number. When using the Mode property of the Connection object, you can use built-in constants, such as adModeRead. The Mode property can be one of the following values: Read-only (adModeRead) 1 Write (adModeWrite) 2 Read/Write (adModeReadWrite) 3 Share Deny Read (adModeShareDenyRead) (Prevents others from opening in read mode.) 4 Share Deny Write (adModeShareDenyWrite) Share Deny Exclusive (adModeShareDenyExclusive) Share Deny None (adModeShareDenyNone) |
Prompt | A Long value (read/write) that specifies whether to prompt the user for connection information during initialization. The Prompt property can be one of the following constants: Prompt Always (adPromptAlways) (Always prompt the user for initialization information.) 1 Prompt Complete (adPromptComplete) (Prompt the user only if more information is needed.) 2 Prompt Complete Required (adPromptCompleteRequired) (Prompts the user only if more information is needed. Doesn't allow the user to enter optional information.) 3 Prompt Never (adPromptNever) (Don't prompt the user.) 4 |
Extended Properties | A String value (read/write) that specifies a string that contains provider-specific connection information that can't be explicitly described through standard ADO properties. For the Microsoft Jet provider, this property is used to pass the Microsoft Jet connection string for opening or creating databases of other file formats. For information about settings, see Extended Properties Property Settings later in this document. |