473,566 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Launching a URL

When I am executing a PHP routine, I would like to start a page on
a server. Could be also interesting to receive back the answer so
I can use it contents in my program.

In other words as a sample when I am at some point of execution of
a my PHP routine I would like to send to the network:

http://www.someserver. com/somefunction.ph p?&user=$auser

Eventually I would like to receive in some way the answer page from
the server.

It's possible to do this?

Thank you from Franco in Italy
Jul 17 '05 #1
3 1628
Franco Fellico' a écrit le 26/03/2004 :
In other words as a sample when I am at some point of execution of
a my PHP routine I would like to send to the network:

http://www.someserver. com/somefunction.ph p?&user=$auser

Eventually I would like to receive in some way the answer page from
the server.


Use fopen() : http://www.php.net/fopen
Or fsockopen() : http://www.php.net/fsockopen
Jul 17 '05 #2
Jedi121 wrote:
Franco Fellico' a écrit le 26/03/2004 :
In other words as a sample when I am at some point of execution of
a my PHP routine I would like to send to the network:

http://www.someserver. com/somefunction.ph p?&user=$auser

Eventually I would like to receive in some way the answer page from
the server.


Use fopen() : http://www.php.net/fopen
Or fsockopen() : http://www.php.net/fsockopen


Or curl_*() : http://www.php.net/curl
if you need to control User_agent strings, cookies, post, ...

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #3

"Jedi121" <je*********@fr ee.fr.Removethi s> wrote in message
news:me******** *************** *********@free. fr.Removethis.. .
Franco Fellico' a écrit le 26/03/2004 :
In other words as a sample when I am at some point of execution of
a my PHP routine I would like to send to the network:

http://www.someserver. com/somefunction.ph p?&user=$auser

Eventually I would like to receive in some way the answer page from
the server.


Use fopen() : http://www.php.net/fopen
Or fsockopen() : http://www.php.net/fsockopen


file_get_conten ts() is underappreciate d imho.

If the server does browser check, you can pretend to be IE or Netscape by
setting the user agent string:

ini_set('user_a gent', "MSIE 6.0");
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10163
by: Bob | last post by:
Hi, I'm trying to build a PHP page which launches another php script to be run in the background. The web page should return immediately, while the background script may run for 10 minutes or something. Unfortunately I'm getting all kinds of weird behaviour.. In my main script I'm using exec() (also tried the other options) to start a...
0
1699
by: Hegemony Cricket | last post by:
I've found several good examples out there on how to launch a web browser from a Java application, using the Runtime exec() command. However, what I'd like to do is configure the browser that's launched, as one would in an html link with the javascript onclick="window.open( 'http://www.mysite.com', 'mywindow',...
2
3297
by: Terry | last post by:
When launching our application with Internet Explorer already opened, but not pointing to our web server, the session variables disappear. If you open I.E. after launching our app, it works fine. It also works fine if you have the option set to 'Reuse Windows for Lauching Shortcuts' checked in the I.E. properties and launch our app from a...
6
5172
by: JerryP | last post by:
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the properties window for an Object in Active Directory. Thanks for any hints.
0
1693
by: Scott Zabolotzky | last post by:
I'm using the following code to launch SIGNCODE.EXE to sign a CAB provisioning file from an ASP.NET app. When I run the code the exit code comes back as -1. I have not been able to determine what this exit code means (other than Error, as the CAB file does not get signed). No exceptions are thrown and I've verified that the app can read...
24
2069
by: Alan M Dunsmuir | last post by:
What is the command (in Windows Forms VB.NET) which will cause the subject computer's default browser to launch, and display a specified Web page? -- Alan M Dunsmuir
8
48005
by: VA | last post by:
I have a report that is accessible by a URL. How would I go about automating the launching of this URL using, say, a batch file? I can put start iexplore.exe "http://my.url" in the .bat file
7
2826
by: dhussong | last post by:
I have created a Setup and Deployment project in Visual Studio.NET 2003. After my installation has completed running I'd like to launch the EXE that I just installed. I've found how to launch the EXE in the Custom Actions area of the Setup and Deployment project. Unfortunately when the EXE is launched it causes the setup program to stay open...
1
2027
by: John A. Bailo | last post by:
Excuse the novice aspects of this question, but: What techniques are available to me for launching one c# application ( console .exe) from another? For example, I know there is the Process and ProcessInfo classes, but these seem designed for launching non-CLR applications. Should I access the .exe as a reference?
0
1777
by: microb0x | last post by:
Is there any difference in the way an Access .mdb file is launched from directly double-clicking the file through windows explorer versus using code within another Access file to launch the same file? Here is my situation: I have an application that when launched does a check whether or not
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
jinu1996
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...
1
7644
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...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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...
1
2083
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
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.