duanlv5084 2010-02-10 15:16
浏览 76

在Oracle PL / SQL中调用PHP函数

I am using Oracle Application Express and I was wondering whether it's possible to call php inside a pl/sql page process?

Can I use htp.p or htp.prn in pl/sql?

For example, let's say I have a php function on the server that returns the remote_addr of the local machine - I basically would like to capture this function value and add it to an oracle log table that I have created.

Hoping someone can assist.

Thanks.

  • 写回答

1条回答 默认 最新

  • doulu0266 2010-02-10 22:22
    关注

    Sounds ugly. As I understand it, the web server takes the browser request, and fires it off to either the database or the PHP 'server' (or preprocessor or whatever) or services it directly (if it is comesthing like a javascript library sitting as a flat file on the web server).

    If you want Oracle to 'see' the result of the PHP function, the only way would be for the PHP server to execute the function first, before passing the request (and function result) to Apex.

    I think you are best off looking at how the PHP determines the remote_addr (eg is it just looking at a CGI_ENV variable) and replicating that in the database.

    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序