I built my website based on Dreamweaver, on Windows platform. My server uses Unix, and the page doesn't look too good. Is there any way to solve this problem without too much of a headache? (1 Reply)
Hey im new to unix!
I am tryin to create a web page in unix and have done it all but when i try and load it it says permission denied!?>
i have chmod a+rx for folder and file to make sure but still permissions wont let me?!
any ideas can anyone do a quick run through of how to make a web page... (4 Replies)
Hello,
I am new to unix, but wanted to know how can we fetch data from a web page (i.e. an HTML Page), my requirement is to read an html page and wanted to create a flat file (text file) based on the contents available in the mentioned HTML page.
Thanks
Imtiaz (3 Replies)
hey uhh this is my first post and i was wondering
how do i make a web page for like a small business or something
anything will help
thanks (3 Replies)
I'm 13 years of age and I am into computers. I am trying to learn how to make a webpage.
I could use the help and I would greatly appriciate it. (1 Reply)
Hi all,
I am having an XML file.
And as per requirement I need to map fields of this file with various field of web page.
So how can I use wput command into it ?
Regards,
gander_ss (3 Replies)
I have a shell script that runs periodic upgrades on machines. I want to print certain echo commands from the shell script onto a webpage. What command in shell should I use for doing this. (1 Reply)
Hi,
I have a project for school using wget and egrep to locate pattern locations on a web page.
One of the things we have to do is handle an "access denied" exception.
Here is the problem, I can not think of/find any web pages that give me an access denied error to play with, can anyone suggest... (1 Reply)
nmon and web page !
Is there any way to let nmon be configured with external Web Page and updating the same web page to be graphic monitoring.
Pls advice ... (1 Reply)
Discussion started by: Mr.AIX
1 Replies
LEARN ABOUT PHP
socket_sendto
SOCKET_SENDTO(3) 1 SOCKET_SENDTO(3)socket_sendto - Sends a message to a socket, whether it is connected or notSYNOPSIS
int socket_sendto (resource $socket, string $buf, int $len, int $flags, string $addr, [int $port])
DESCRIPTION
The function socket_sendto(3) sends $len bytes from $buf through the socket $socket to the $port at the address $addr.
PARAMETERS
o $socket
- A valid socket resource created using socket_create(3).
o $buf
- The sent data will be taken from buffer $buf.
o $len
-$len bytes from $buf will be sent.
o $flags
- The value of $flags can be any combination of the following flags, joined with the binary OR ( |) operator.
Possible values for $flags
+--------------+---------------------------------------------------+
| | |
| MSG_OOB | |
| | |
| | Send OOB (out-of-band) data. |
| | |
| | |
| MSG_EOR | |
| | |
| | Indicate a record mark. The sent data completes |
| | the record. |
| | |
| | |
| MSG_EOF | |
| | |
| | Close the sender side of the socket and include |
| | an appropriate notification of this at the end of |
| | the sent data. The sent data completes the trans- |
| | action. |
| | |
| | |
|MSG_DONTROUTE | |
| | |
| | Bypass routing, use direct interface. |
| | |
+--------------+---------------------------------------------------+
o $addr
- IP address of the remote host.
o $port
-$port is the remote port number at which the data will be sent.
RETURN VALUES socket_sendto(3) returns the number of bytes sent to the remote host, or FALSE if an error occurred.
EXAMPLES
Example #1
socket_sendto(3) Example
<?php
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
$msg = "Ping !";
$len = strlen($msg);
socket_sendto($sock, $msg, $len, 0, '127.0.0.1', 1223);
socket_close($sock);
?>
SEE ALSO socket_send(3).
PHP Documentation Group SOCKET_SENDTO(3)