10 More Discussions You Might Find Interesting
1. SCO
Hi, I have a router, 192.168.1.1, and an internet router, 10.0.0.138. I have connected the server to the 1st router and assigned it a IP address of 192.168.1.1. I can ping both routers successfully but I have no access to internet. Any suggestions? sco5.0.7 (11 Replies)
Discussion started by: juan.navarrete
11 Replies
2. Linux
I am having trouble connecting to the internet.
Details:
OpenSuse 11.1, Cable Modem, connected to Linksys Wireless N Router, hard line from router to ethernet port on my computer.
I checked network settings in YAST2, my ethernet is showing not connected. I have it set to start at boot, and... (4 Replies)
Discussion started by: stringzz
4 Replies
3. UNIX for Dummies Questions & Answers
I am trying to connect a Solaris 10 PC to the internet via a Linksys router and a cable modem. I have tried following suggestions in one of the posts here for manual setup but so far no luck.
Does the Solaris 10 install for x86 automatically pick up the internet connection?
Dave :>) (4 Replies)
Discussion started by: dohling
4 Replies
4. Solaris
hi there, hope your chakras are all doing well :-)
just installed solaris 10 on my laptop, all seems fine except the internet. How can i connect on a DSL line?. spent 7 days and 3 nights trying but couldnt find the starting point....
alikun (22 Replies)
Discussion started by: alikun
22 Replies
5. UNIX for Dummies Questions & Answers
This seems to be a common problem. I just installed Solaris 10 and do not have an internet connection. I am not that savy with Unix/Linux, although I have been using Linux in the past, and have never had any sort of problem detecting my internet connection. I have tried some things, but did not... (9 Replies)
Discussion started by: eric cartman
9 Replies
6. UNIX for Dummies Questions & Answers
I have just installed Linux and everything looks great, but how do I get my browser (Mozilla) to connect to my internet service provider?
I have a cable connection to Bigpond in Australia, if that means anything - the ISP will not provide support for Linux.
Your help would be greatly... (2 Replies)
Discussion started by: openhead
2 Replies
7. Linux
Hi,
I can ping www.yahoo.com (then domain name server is OK) but I can not navigate by Motzila to www.yahoo.com or any other Web Site.
What can be the problem ? Mozila is configured in preference /advance to go automaticaly on WEB.
We are under RED HAT AS3.
What should I check ?
Many thanks... (1 Reply)
Discussion started by: big123456
1 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Is it possible (as I only have dial-up) to utilise my existing WinXP PC as a gateway to the internet for my 2nd PC (RH 8.0)?? .So connect with XP and have RH use a network connection (I guess) through the XP box and to the internet.
If so, could I please have some links thrown my... (1 Reply)
Discussion started by: Cameron
1 Replies
9. UNIX for Dummies Questions & Answers
Im on XP now but when im on linux how do I connect to the internet?
I don't think AOL works with it but are there any free programs that I can use with it? (8 Replies)
Discussion started by: NoPepsiForYou
8 Replies
10. IP Networking
I have installed Solaris 8.0 and want to find out how can I go in and change my network setup and external IP setup. At the moment system running but I can not connect to the internet. But my lan card shows that I am on the network. I also get some advice that I should check the $Socks but how do I... (1 Reply)
Discussion started by: Cdrive
1 Replies
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)