02-02-2007
internet
hello, just installed suzi 10.1, connect directly to broadband, set as auto-detect proxy, all ok. put machine through router - winxp ok with this - cannot connect to internet , any ideas please
don
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have Solaris 9 x86. I would like to use DHCP to connect to the internet. How can I make it work. A lot of tutorials say about editing files - Is there any easier way? (I am a newbie to UNIX).
Please Help (3 Replies)
Discussion started by: Peter123456789
3 Replies
2. SuSE
Hi
i have recently installed linux enterprise edition.and i want to config internet and dns to run my websites.Please help me for the following
MIt (1 Reply)
Discussion started by: naik_mit
1 Replies
3. Solaris
Hello! I'm having trouble getting this to work so I ask kindly if I can get some help to get it to work, please :).
I installed Solaris 10 (nov 06) on a laptop and I been trying to get it to connect to the router (wired connection) and it doesn't work.
I have a 2wire 2700HG router that has... (5 Replies)
Discussion started by: RemoL
5 Replies
4. UNIX for Dummies Questions & Answers
hello i am a new user of suse linux...can anyone please tell me how i can get internet running on my suse?...pls tel me the complete procedure... (0 Replies)
Discussion started by: varsha.shastri
0 Replies
5. Solaris
Hi friends,i use BSNL broadband for my internet through a modem(a router) from ethernet port.i use a username and password to connect.Its dhcp .plz help me (1 Reply)
Discussion started by: santugvd
1 Replies
6. Linux
HI,
Am using GPRS ( MOB # 3230 ) internet connection in windows
Hw to use internet r connect in linux.. ( Red Hat Linux Ver.10 )
Please help me..
Thanks in adv.. (1 Reply)
Discussion started by: bharath raja
1 Replies
7. Linux
I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location.
Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies
8. Linux
Hi,
Can someone guide me regarding how to connect to internet.
what are steps?
Thanks in advance (2 Replies)
Discussion started by: naren nandale
2 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)