I have a 3rd party real-estate website written in php. I would like to
call an asp script on a separate webserver each time a new real-estate
item is added to the database on the php site.
The asp script updates a sql server database for another site and once
the page has been called, I do not need any return information from it.
I have searched the groups but cannot find a definitive way of making
the call to the asp script - I am a asp programmer, new to php so any
help would be much appreciated. 4 2877
On 9 Jul 2006 12:36:38 -0700, lu***********@y ahoo.co.uk wrote:
>I have a 3rd party real-estate website written in php. I would like to call an asp script on a separate webserver each time a new real-estate item is added to the database on the php site.
The asp script updates a sql server database for another site and once the page has been called, I do not need any return information from it.
I have searched the groups but cannot find a definitive way of making the call to the asp script - I am a asp programmer, new to php so any help would be much appreciated.
fopen can (under the most common configuration, although it can be disabled)
open URLs as if they were files, so you can use that to make a GET request to
an ASP page. http://uk.php.net/fopen
For more complex cases (POST, cookies, finer control over timeouts etc.)
there's cURL: http://uk.php.net/manual/en/ref.curl.php
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Many Thanks Andy,
That works fine!
Andy Hassall wrote:
On 9 Jul 2006 12:36:38 -0700, lu***********@y ahoo.co.uk wrote:
I have a 3rd party real-estate website written in php. I would like to
call an asp script on a separate webserver each time a new real-estate
item is added to the database on the php site.
The asp script updates a sql server database for another site and once
the page has been called, I do not need any return information from it.
I have searched the groups but cannot find a definitive way of making
the call to the asp script - I am a asp programmer, new to php so any
help would be much appreciated.
fopen can (under the most common configuration, although it can be disabled)
open URLs as if they were files, so you can use that to make a GET request to
an ASP page. http://uk.php.net/fopen
For more complex cases (POST, cookies, finer control over timeouts etc.)
there's cURL: http://uk.php.net/manual/en/ref.curl.php
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
I am now trying to call my asp script but have having problems with the
parameters I am passing. My code is below:
$handle =
fopen("http://www.homeplots.c o.uk/processhpdetail s.asp?postcode= {$this->zip}&city={$th is->city}&price=$t his->price&caption= {$this->caption}&id=$t his->property_id&ty pe=$this->type",
"r");
I get the error:
Warning:
fopen('http://www.homeplots.c o.uk/processhpdetail s.asp?postcode= MK17
0SJ&city=Swanbo urne&price=1250 00&caption=Buil ding Plot in
Swanbourne&id=7 8&type=SF'): failed to open stream: No such file or
directory in
/home/fhlinux185/h/homeplots.eu/user/htdocs/property_class. php on line
486
The asp file definately exists but I cannot pass it the parameters. I
think the problem is to do with passing strings but do not know php
well enough to figure it out.
Again, any help much appreciated.
Lucy lu***********@y ahoo.co.uk wrote:
Many Thanks Andy,
That works fine!
Andy Hassall wrote:
On 9 Jul 2006 12:36:38 -0700, lu***********@y ahoo.co.uk wrote:
>I have a 3rd party real-estate website written in php. I would like to
>call an asp script on a separate webserver each time a new real-estate
>item is added to the database on the php site.
>
>The asp script updates a sql server database for another site and once
>the page has been called, I do not need any return information from it.
I have searched the groups but cannot find a definitive way of making
>the call to the asp script - I am a asp programmer, new to php so any
>help would be much appreciated.
fopen can (under the most common configuration, although it can be disabled)
open URLs as if they were files, so you can use that to make a GET request to
an ASP page. http://uk.php.net/fopen
For more complex cases (POST, cookies, finer control over timeouts etc.)
there's cURL: http://uk.php.net/manual/en/ref.curl.php
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
lu***********@y ahoo.co.uk wrote:
I am now trying to call my asp script but have having problems with
the
parameters I am passing. My code is below:
$handle =
fopen("http://www.homeplots.c o.uk/processhpdetail s.asp?postcode= {$this->zip}
&city={$this->city}&price=$t his->price&caption= {$this->caption}&id=$t his->pr
operty_id&type= $this->type",
"r");
I get the error:
Warning:
fopen('http://www.homeplots.c o.uk/processhpdetail s.asp?postcode= MK17
0SJ&city=Swanbo urne&price=1250 00&caption=Buil ding Plot in
Swanbourne&id=7 8&type=SF'): failed to open stream: No such file or
directory in
/home/fhlinux185/h/homeplots.eu/user/htdocs/property_class. php on line
486
The asp file definately exists but I cannot pass it the parameters. I
think the problem is to do with passing strings but do not know php
well enough to figure it out.
Again, any help much appreciated.
Lucy
First of all, rawurlencode() your parameters, 'Building Plot in Swanbourne'
should be 'Building%20Plo t%20in%20Swanbo urne'.
If that doesn't work, check allow_url_fopen : http://www.php.net/manual/en/ref.fil...llow-url-fopen
Grtz,
--
Rik Wasmus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg Chapman |
last post by:
I am at my wit's end trying to get information out of Streamline.net's
support dept about my problem. They reply quickly enough, but seem to try
and give out the least possible amount of info each time. The transcript so
far is reproduced for your amusement below.
To summarise:
I've put up a Sudoku-solving program called Sudoku.exe. I want to call it in
a php script to solve a puzzle and output the solution. It works fine with...
|
by: Mario Thiel |
last post by:
Hello,
i am new to JavaScript and right now i am learning Call by Value. i
tryed to write a small script but somehow it doesnt work right. i cant
put <br> into it, and i can only put the document.write(xyz,x) in the
function.
<html>
<head>
<script language="JavaScript">
|
by: Christian |
last post by:
From a not even newbie:
Without knowing much about Python (yet) I'm trying to install the CMS
Zope via FTP (with the well documented changes to make it work on an
Apache server).
By birth Zope is started from a shell script. And not having the
permissions to execute such ones I'll try writing a .py script (with the
shebang that I allready knows will do the job) to call another .py
script like the original shell script does.
|
by: dennise9 |
last post by:
My exeternal JS works fine when the call is placed in the page head or
body.
But if I call the same javascript from a (clicked) text link on the
page, the script throws a JS error when it executes.
Help! I can't figure this out.
The external JS file is "members.js". Here's the code:
|
by: Wladimir Borsov |
last post by:
I want to call a perl script myscript.pl in my cgi-bin from a HTML web page.
This call should NOT use SSI (because in this case HTTPS://.... protocol is necessary).
Furthermore NO button click should be required (so I am not talking about a perl script in a form).
I only want to call this script automatically when someone load the web page.
How can I do this ?
If necessary the perl script could return a value (e.g. a picture resp....
| |
by: Marshall |
last post by:
Hello,
I am wondering if it is possible to call a remote web service using ATLAS
and if so, how. I have read several docs which show how to call a web
service that is within the same project as the ATLAS 'enabled' web page but
that is all I have found.
In the example below, I would like to call the
OpenOnline.SaveToPDF.WebServices.Service web service. I get a javascript
error when trying to make the web service call saying that...
|
by: harishdixit1 |
last post by:
Hello friends i developed a tollbar for Firefox browser. Now This
toolbar contains a menu item. A web page will be opened by the user of
the Toolbar. This Web page source code has included many .JS fiels in
it. These JS files defined various functions , Now i want to call these
functions from my toolbar menu command. How can i do that? I know
function name which i have to call.
I tried to call function directly by its name but it is...
|
by: thisis |
last post by:
Hi All,
i have this.asp page:
<script type="text/vbscript">
Function myFunc(val1ok, val2ok)
' do something ok
myFunc = " return something ok"
End Function
</script>
|
by: yangsuli |
last post by:
i want to creat a link
when somebody click the link
the php script calls a function,then display itself :)
i have tried
<a href=<? funtion(); echo=$_server ?>text</a>
but it will call the function whether i click the link
then i tried this (using forms)
|
by: Angus |
last post by:
I have a web page with a toolbar containing a Save button. The Save
button can change contextually to be a Search button in some cases.
Hence the button name searchsavechanges.
The snippet of html is:
<a class="searchsavechanges btn btn3d tbbtn" href="javascript:"
style="position:static">
<div id="TBsearchsavechanges">Search</div>
</a>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |