I'd like to write a program that running all the time: just a simple
program, but written in php.
1)How can i do that?
2) I'd like that this program listens on a port to recive a message: how can
I do?
thank you in advance.
Andrea. 6 1574
"_andrea.l" <an************ ******@libero.i t> wrote in message
news:%N******** ************@tw ister2.libero.i t... I'd like to write a program that running all the time: just a simple program, but written in php. 1)How can i do that? 2) I'd like that this program listens on a port to recive a message: how can I do?
Hello andrea
WHy don't you use something else then ? Use C or JAVA ....
PHP I think is only web scripting lunguage.
Angelos
_andrea.l wrote: I'd like to write a program that running all the time: just a simple program, but written in php. 1)How can i do that? 2) I'd like that this program listens on a port to recive a message: how can I do?
thank you in advance. Andrea.
I have absolutely no experience with this, but I thought it can be done
using GTK: http://gtk.php.net/
Angelos wrote: "_andrea.l" <an************ ******@libero.i t> wrote in message news:%N******** ************@tw ister2.libero.i t...
I'd like to write a program that running all the time: just a simple program, but written in php. 1)How can i do that? 2) I'd like that this program listens on a port to recive a message: how can I do?
Hello andrea
WHy don't you use something else then ? Use C or JAVA .... PHP I think is only web scripting lunguage.
Angelos
Angelos,
Not true. A PHP program can run standalone, also.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
_andrea.l wrote: I'd like to write a program that running all the time: just a simple program, but written in php. 1)How can i do that? 2) I'd like that this program listens on a port to recive a message: how can I do?
thank you in advance. Andrea.
Andrea,
It's not too bad. Ewoud pointed you to the socket interface; it's as
simple as opening a socket, listening for a message, and once received,
close the socket. Loop around and do it again.
You might also want to listen for a 'special' message such as "SHUT DOWN
NOW" which tells the program to shut itself down gracefully. Otherwise
you would have to kill. Not that this *should* cause a problem - but
I'm always in favor of graceful shutdowns :-).
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
_andrea.l wrote: I'd like to write a program that running all the time: just a simple program, but written in php. 1)How can i do that? 2) I'd like that this program listens on a port to recive a message: how can I do?
thank you in advance. Andrea.
Start here probably http://us3.php.net/manual/en/function.fsockopen.php This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Colin Colin |
last post by:
I have an ASP program that is getting an error. When I get the error I
get Page Cannot Be Displayed along with the line that causes the error
and what the error is. What I am not getting is any data that I write
via response.write before the error occurs. The error is happening in a
loop, on the third line below:
RESPONSE.WRITE("x=" & x & ", " & aFieldsData(UpdateRecNum,x) &
"<BR>")
tFLD = trim(aFieldsData(UpdateRecNum,x))
tFLD =...
|
by: prakash |
last post by:
Dear Friends
I am new guy to Visual C++.NET
I've program to save website as a image vc++.net .
It have a function "SaveSnapshot" to save the webpage as an image
On that function ifor saving as a image it uses image.Save method()
This image.Save function have two overloaded form's first one is file name
|
by: |
last post by:
Hey All,
I'm using response.write to create a dymantic webpage. Basically just write
the HTML out with response.write.
The problem I am having is that when I do this it puts the Meta tag info for
the webpage at the bottom of the page because the meta info was added with
the form designer. Is there away to have the reponse.write output append
the page or a way to have the meta info forced to the top of the page?
Also, does it matter...
|
by: Ben |
last post by:
Hi
I have a string variable which is populated in the Page Load sub of my vb
code behind for my webpage.
I cannot seem seem to write this text to the webpage.
What is the best method of achiving this.
Thanks
|
by: jmd |
last post by:
Hello, I posted the following in the C# forum but without one answer.
But perhaps now in vb.net someone has some guidelines !
This is my question :
I want to write a vb.net program that does completely automatically what,
until
now, I do manually, witch is describe below :
1. I launch IE (6)
| |
by: jcnews |
last post by:
I want to learn how to write a BHO for Internet Explorer. I am somewhat new
to VB.NET.
The specific thing that I need accomplished is a sort of browser hijacker
(for legitimate reasons). I need the public-access computers at work to
always be set to a certain webpage. I want to write a small program (BHO)
to run every time IE starts that will set the homepage to the company site.
Often MSN hijacks the browser, or someone pushes the...
|
by: chris.schwalm |
last post by:
I would like to first state that I have searched through the archives
and found a lot of related material, but am still new enough to
javascript that I can't fit all the pieces together yet. So here is my
situation.
I would like to create a program that grabs the source of a displayed
webpage, sends it off to another program, then receive the
slightly modified source back from that other program, and then reposts
the slightly modified...
|
by: ben |
last post by:
hi
i am starting a small business offering computer help to the local
area
i would like to write my own system where i can store customer
information, and link this to orders, then print invoices
automatically.
can anyone tell me where to start? should i get a book on VB or C or
something?
or is it really a better idea to use a well known software program
like access or something?
|
by: Blue Yoda |
last post by:
Hi,
I am really new to all this stuff so I could really use someone's help on this.
I have a new program Word to WebPage. A conversion program.
I use windows xp.
After downloading the program and going through the process of converting the following error came up. "Invalid Class String"
|
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: 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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |