10-09-2013
Dear Murphy,
Is there any way to add http_proxy address in my export variable and then try for connecting it to internet and access google etc.
Apart from adding the proxy address profile , are there any additional steps that needs to be taken in accessing the internet.
I searched the docs mentioned by you..but could not get a clear picture...
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. UNIX for Dummies Questions & Answers
I am using solaris 10 with pentium 3. I have two network cards but none of them come up when i run <ifconfig -a> in command line. The two cards I have are : Linksys LNE 100TX and Netgear FA311. Does solaris 10 support these NICs or do I have to dowload the drivers for them.
If so, can anyone... (1 Reply)
Discussion started by: fidjouss
1 Replies
5. 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
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. IP Networking
Hello all
this is general question , if i have web server installed in my local pc and i have client that connecting to that web server
can i force it always to go via the internet network ?
the reason im asking is .. that im noticed when i close my internet connection i still can connect to my... (2 Replies)
Discussion started by: umen
2 Replies
8. 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
9. 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
10. 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
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)