473,499 Members | 1,660 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.php?&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 1619
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.php?&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.php?&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*********@free.fr.Removethis> wrote in message
news:me********************************@free.fr.Re movethis...
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.php?&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_contents() is underappreciated imho.

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

ini_set('user_agent', "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
10157
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...
0
1693
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...
2
3292
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....
6
5163
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...
0
1689
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...
24
2056
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
47998
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...
7
2819
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...
1
2021
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...
0
1759
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...
0
7134
marktang
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,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6905
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...
0
7395
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...
0
4609
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...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
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 ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
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...

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.