07-26-2004
and oh, is it simle to connect to the internet from Linux using LAN?
I have a windows network with my dad and I'd like to be able to ceep it, Lindows/Linspire(Linux) me that in their operative system its practicaly just to plug it in and go, is this true?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
as part of my course i have to do a lot of programming using the universities unix server. i am able to access this from home using telnet but i cannot use axe or anything to edit my files. I was wondering if anyone knew of any software that could enable me yo do this as i like working at 2am when... (1 Reply)
Discussion started by: HALLY
1 Replies
2. UNIX Desktop Questions & Answers
What's the best Telnet and SSH for Win32 platforms, along with an xterm terminal emulator to use nowadays?
Thanks. (8 Replies)
Discussion started by: laila63
8 Replies
3. UNIX for Dummies Questions & Answers
Are there any freeware or shareware X-windows emulators out there? I only have the need for an emulator on rare occasions and would like to avoid having to purchase something like Exceed or x32.
Thanks (1 Reply)
Discussion started by: rhack
1 Replies
4. UNIX for Dummies Questions & Answers
Where can I download a unix Emulator for Training and education of the IT personal in my company. (9 Replies)
Discussion started by: st_matan
9 Replies
5. Linux
hello,
can any body tell how to use terminal emulator....
i want to check he serial port communication with the help of that terminal emmulator....
also tell me how to open terminal emmulator.....and how to configure it........and how to use it...
I am using fedora core 6..... (1 Reply)
Discussion started by: arunchaudhary19
1 Replies
6. Solaris
Hello together,
in our German company we have buyed one English Windows XP version. Every one of us should have access to this windows installation. So we have reconsidered that we want to install this Windows on our SUN SPARC Solaris machine. It is only used for checking out licenses of our own... (2 Replies)
Discussion started by: SPORTS
2 Replies
7. Windows & DOS: Issues & Discussions
Not quite sure if this is the right section, but you guys know lots of good stuff. Is there a good OS X emulator that I can put on my Windows XP system?
I have PC's and at work/lab they run everything on mac's. Due to program compatibility issues, it would be nice if I could run mac software on... (2 Replies)
Discussion started by: silkiechicken
2 Replies
8. UNIX for Dummies Questions & Answers
Hi, I was just wondering how to distinguish between the two terms:
1. Terminal emulator (vt100, vt220 and so on)
2. shell command line
Then i decided to conclude myself that these 2 are very equivalent. am I right? this actually came to my mind when I was using my HP-UX terminal.
I am... (1 Reply)
Discussion started by: messi777
1 Replies
9. Hardware
Hello,
Just wanted to let interested people know that we've recently released a Linux freeware version of SparcStation 20 emulator. It emulates SS20 with some basic peripherals: a single SPARC V8 32bit CPU, up to 512MB RAM, an NCR53C94 SCSI controller, 2 serial lines, disks, a network adapter,... (7 Replies)
Discussion started by: Thlan
7 Replies
LEARN ABOUT PHP
socket-context-options
SOCKET-CONTEXT-OPTIONS(3) 1 SOCKET-CONTEXT-OPTIONS(3)
Socket context options - Socket context option listing
Socket context options are available for all wrappers that work over sockets, like tcp, http and ftp.
o $bindto
- Used to specify the IP address (either IPv4 or IPv6) and/or the port number that PHP will use to access the network. The syntax
is ip:port for IPv4 addresses, and [ip]:port for IPv6 addresses. Setting the IP or the port to 0 will let the system choose the IP
and/or port.
Note
As FTP creates two socket connections during normal operation, the port number cannot be specified using this option.
o $backlog
- Used to limit the number of outstanding connections in the socket's listen queue.
Note
This is only applicable to stream_socket_server(3).
+--------+-----------------+
|Version | |
| | |
| | Description |
| | |
+--------+-----------------+
| 5.3.3 | |
| | |
| | Added backlog. |
| | |
| 5.1.0 | |
| | |
| | Added bindto. |
| | |
+--------+-----------------+
Example #1
Basic $bindto usage example
<?php
// connect to the internet using the '192.168.0.100' IP
$opts = array(
'socket' => array(
'bindto' => '192.168.0.100:0',
),
);
// connect to the internet using the '192.168.0.100' IP and port '7000'
$opts = array(
'socket' => array(
'bindto' => '192.168.0.100:7000',
),
);
// connect to the internet using the '2001:db8::1' IPv6 address
// and port '7000'
$opts = array(
'socket' => array(
'bindto' => '[2001:db8::1]:7000',
),
);
// connect to the internet using port '7000'
$opts = array(
'socket' => array(
'bindto' => '0:7000',
),
);
// create the context...
$context = stream_context_create($opts);
// ...and use it to fetch the data
echo file_get_contents('http://www.example.com', false, $context);
?>
PHP Documentation Group SOCKET-CONTEXT-OPTIONS(3)