PDA

View Full Version : پیغام خطا هنگام استفاده از یک تابع



mostafa612003
یک شنبه 01 شهریور 1383, 08:12 صبح
سلام
من وقتی که از تابع dio_open استفاده می کنم این پیغام خطا نمایش داده می شود:


Fatal error: Call to undefined function: dio_open() in D:\Programs\Virtual\port.php on line 3

من php 4.3.3 را نصب کرده ام

اگر می شود مرا راهنمایی کنید

درضمن php5 را از کجا میتوانم دانلود کنم؟
متشکرم

oxygenws
یک شنبه 01 شهریور 1383, 10:48 صبح
خوب می گه همچین تابعی ندارید، این تابع رو از کجا آوردید؟!!!
PHP5 رو هم می تونید از سایت php.net بگیرید.

houtanal
یک شنبه 01 شهریور 1383, 11:34 صبح
این تابع رو از کجا آوردید؟!!!



XXII. Direct IO functions
Introduction
PHP supports the direct io functions as described in the Posix Standard (Section 6) for performing I/O functions at a lower level than the C-Language stream I/O functions (fopen(), fread(),..). The use of the DIO functions should be considered only when direct control of a device is needed. In all other cases, the standard filesystem functions are more than adequate.

Note: This extension is not available on Windows platforms.

Requirements
No external libraries are needed to build this extension.

Installation
To get these functions to work, you have to configure PHP with --enable-dio.

Runtime Configuration
This extension has no configuration directives defined in php.ini.

Resource Types
One resource type is defined by this extension: a file descriptor returnded by dio_open().

Predefined Constants
This extension has no constants defined.

Table of Contents
dio_close -- Closes the file descriptor given by fd
dio_fcntl -- Performs a c library fcntl on fd
dio_open -- Opens a new filename with specified permissions of flags and creation permissions of mode
dio_read -- Reads n bytes from fd and returns them, if n is not specified, reads 1k block
dio_seek -- Seeks to pos on fd from whence
dio_stat -- Gets stat information about the file descriptor fd
dio_tcsetattr -- Sets terminal attributes and baud rate for a serial port
dio_truncate -- Truncates file descriptor fd to offset bytes
dio_write -- Writes data to fd with optional truncation at length
این توابع به هیچ کتابخانه خارجی احتیاج ندارند اما به این توجه کنید


To get these functions to work, you have to configure PHP with --enable-dio.
آقا جان من این راهنمای php رو که یک میلیونو و خورده ای گفتم دانلود کردی؟

mostafa612003
یک شنبه 01 شهریور 1383, 11:47 صبح
سلام
من این تابع را از help php پیدا کردم
در مورد این کد نیز این پیغام خطا را می دهد:


<?php
$word = new COM("C:\broshor1.doc");
?>

Warning: (null)(): Invalid ProgID, GUID string, or Moniker: Access is denied. in D:\Programs\Virtual\p3.php on line 2