在PHP中包含asp [英] include asp in php

查看:68
本文介绍了在PHP中包含asp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在用PHP编写购物车程序。我们的suplliers网站

网页我用ASP编写。他有关于他的产品的非常详细的信息,

我想要包含在我的PHP页面中,我使用include,require,readfile,甚至

一些叫做史努比的东西,但是我尝试的一切,我似乎无法获得文件中包含的图像。我只是将十字架放入正方形,

就像插入一张不存在的图像一样。


任何人都可以帮我这个拜托?

Hello,

I''m writing a shoppingcart program in PHP. The website of our suplliers
webpage i written in ASP. He has very detailed info about his products, that
I want to include in my PHP page, I used include, require, readfile, even
something called Snoopy, but with everything that I try, I can''t seem to get
the image inculed in the file. I just get the square with the cross in it,
like when you insert an image that doesn''t exist.

Can anyone help me with this please?

推荐答案

2004年2月6日星期五13:07:16 +0100,Recoura Tim < ti*@e-port.be>

写道:
On Fri, 6 Feb 2004 13:07:16 +0100, "Recoura Tim" <ti*@e-port.be>
wrote:
你好,

我正在写一个购物车PHP程序。我们在suplliers网站上用ASP编写的网页。他有关于他的产品的非常详细的信息,我想要包含在我的PHP页面中,我使用include,require,readfile,甚至
一些叫做史努比的东西,但是我尝试过的所有东西,我都可以'似乎得到了文件中包含的图像。我只是得到了十字架的正方形,
就像你插入一个不存在的图像一样。
Hello,

I''m writing a shoppingcart program in PHP. The website of our suplliers
webpage i written in ASP. He has very detailed info about his products, that
I want to include in my PHP page, I used include, require, readfile, even
something called Snoopy, but with everything that I try, I can''t seem to get
the image inculed in the file. I just get the square with the cross in it,
like when you insert an image that doesn''t exist.




如果您的供应商是' ASP脚本输出图像,你应该只需要使用纯HTML:


< img src =''http:// www。 example.com/script.asp''alt =''Widget XYZ''>


如果您的供应商的ASP输出您想要处理的其他数据,

您应该能够向供应商的服务器发出HTTP请求

并解析输出。


如果您需要访问权限对于ASP源代码,你需要向你的

供应商询问它。


-

David( @ priz.co.uk)



If your supplier''s ASP script is outputting an image, you should just
be able to use plain HTML:

<img src=''http://www.example.com/script.asp'' alt=''Widget XYZ''>

If your supplier''s ASP outputs other data that you want to process,
you should be able to make a HTTP request to your supplier''s server
and parse the output.

If you need access to the ASP source code, you''ll need to ask your
supplier for it.

--
David ( @priz.co.uk )


>
你好,

我正在用PHP编写购物车程序。我们在suplliers网站上用ASP编写的网页。他有关于他的产品的非常详细的信息,我希望包含在我的PHP页面中的
,我使用include,require,readfile,甚至是一些名为Snoopy的东西,但是我尝试了所有的东西,我可以''似乎
将图像包含在文件中。我只是在
中得到十字形的正方形,就像你插入一个不存在的图像一样。
如果你的供应商的ASP脚本正在输出一个图像,你应该只是/>能够使用纯HTML:

< img src =''http://www.example.com/script.asp''alt =''Widget XYZ''>
Hello,

I''m writing a shoppingcart program in PHP. The website of our suplliers
webpage i written in ASP. He has very detailed info about his products, thatI want to include in my PHP page, I used include, require, readfile, even
something called Snoopy, but with everything that I try, I can''t seem to getthe image inculed in the file. I just get the square with the cross in it,like when you insert an image that doesn''t exist.
If your supplier''s ASP script is outputting an image, you should just
be able to use plain HTML:

<img src=''http://www.example.com/script.asp'' alt=''Widget XYZ''>




这也不行,如果我在网页浏览器中使用网址,一切都很好,但是当我在我的网站上使用它时脚本它不会工作

如果您的供应商的ASP输出您想要处理的其他数据,
您应该能够向供应商提出HTTP请求服务器
并解析输出。


如果我是正确的包含(''url.asp'');对此页面发出HTTP请求,

但它不会输出图像


我读到了一些关于使用header()的内容;但是我没有发现究竟是怎么回事使用它,或者更具体地说,我应该如何解析发送回来的html。

如果你需要访问权限ASP源代码,你需要问你的
供应商。

-
大卫(@ priz.co.uk)



That won''t work either, if i usethe url in a webbrowser and everything is
fine, but when i use it in my script it won''t work

If your supplier''s ASP outputs other data that you want to process,
you should be able to make a HTTP request to your supplier''s server
and parse the output.

if I''m correct include (''url.asp''); does an HTTP request to this page,
but it won''t output the image

I read something about using header(); but I didn''t found out how exactly to
use it, or more specific, how i should parse the html that is sent back.
If you need access to the ASP source code, you''ll need to ask your
supplier for it.

--
David ( @priz.co.uk )



如果供应商的输出是图像,那么这就是HTML问题,因此您只需将其作为图像插入即可。


Savut


" Recoura Tim" < ti*@e-port.be>在留言新闻中写道:40 ********************** @ news.skynet.be ...
It''s more a HTML problem, if the output of your supplier is an image, so you just insert it as an image.

Savut

"Recoura Tim" <ti*@e-port.be> wrote in message news:40**********************@news.skynet.be...
你好,
我正在用PHP编写购物车程序。我们在suplliers网站上用ASP编写的网页。他有关于他的产品的非常详细的信息,我想要包含在我的PHP页面中,我使用include,require,readfile,甚至
一些叫做史努比的东西,但是我尝试过的所有东西,我都可以'似乎得到了文件中包含的图像。我只是把十字架的广场放进去,就像你插入一张不存在的图像一样。

任何人都可以帮我这个吗?
Hello,

I''m writing a shoppingcart program in PHP. The website of our suplliers
webpage i written in ASP. He has very detailed info about his products, that
I want to include in my PHP page, I used include, require, readfile, even
something called Snoopy, but with everything that I try, I can''t seem to get
the image inculed in the file. I just get the square with the cross in it,
like when you insert an image that doesn''t exist.

Can anyone help me with this please?



这篇关于在PHP中包含asp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆