08-21-2005
This sounds to me like a homework question which is not permitted in these forums. Please review our
rules.
Have you read, for example, any of the documentation and/or source code for libpcap or a sniffer such as ethereal?
Cheers
ZB
10 More Discussions You Might Find Interesting
1. Programming
I can not locate package sys/mkdev.h on HP-UX or Linux. Is it a special package or something? (9 Replies)
Discussion started by: laila63
9 Replies
2. Programming
some libraries are missing like conio.h and syslib.h
how can i have them installed ? (4 Replies)
Discussion started by: C|[anti-trust]
4 Replies
3. Linux
How do i make a library shared
say i have a library a.so which i have just compiled.
I want to make it shared how do i make it
Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
Discussion started by: wojtyla
1 Replies
4. Linux
Hey,
I'm trying to install fluxbox. Currently i'm running Mandrake 10.1 with KDE. When i ./configure fluxbox it returns an error saying
configure: error: Fluxbox requires the X Window System libraries and headers.
Where do i download the X window System libraries and headers from? I... (3 Replies)
Discussion started by: byblyk
3 Replies
5. HP-UX
I am a bit confused about the use of _v2 standard libraries on HP. I am working on HP11.11 risk machine and HP 11.23 Itanium machine.
I am building a C++ shared library which is linked by a JNI shared library and other non-java related libraries. Eveything is compiled with -AA flag. When I... (0 Replies)
Discussion started by: cactuar
0 Replies
6. UNIX for Dummies Questions & Answers
I am slowly ploughing my way through the list of links to on-line tutorials you provided to newbies. I for one am grateful for such a comprehensive list, so first of all thank you for that.
What i cannot seem to find, is information on C++ libraries:
The two links on libraries in your list... (0 Replies)
Discussion started by: pil888
0 Replies
7. Shell Programming and Scripting
Hello,
I need to use two different libraries like /usr/local/bin/expect and /usr/bin/ksh at the same script. Is it possible? (4 Replies)
Discussion started by: fozay
4 Replies
8. Programming
I'm a rookie to C and i'm looking for some libraries to learn,something likes the C++ STL or Boost ,does any1 can tell me some of them?Thanks a lot:)
Eric (3 Replies)
Discussion started by: homeboy
3 Replies
9. Solaris
Hi,
this is my first experience with Solaris.
For work, I must configured an applicacion (oracle EPM, this include Datadirect odbc drivers) in solaris.
Additionally, we must connect to Sybase IQ Database (I installed odbc drivers to do this).
The problem is, I can't get those two odbc... (1 Reply)
Discussion started by: dmedinacl
1 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I met a problem when running a java program. When I did the debugging:
srna/ExeFiles/linux$ ldd patman
linux-gate.so.1 => (0xf77b5000)
libpopt.so.0 => not found
libstdc++.so.6 => not found
libm.so.6 => /lib32/libm.so.6 (0xf7778000)
libgcc_s.so.1 => not found
... (5 Replies)
Discussion started by: yifangt
5 Replies
LEARN ABOUT PHP
http_build_url
HTTP_BUILD_URL(3) 1 HTTP_BUILD_URL(3)
http_build_url - Build a URL
SYNOPSIS
string http_build_url ([mixed $url], [mixed $parts], [int $flags = HTTP_URL_REPLACE], [array &$new_url])
DESCRIPTION
Build a URL.
The parts of the second URL will be merged into the first according to the flags argument.
PARAMETERS
o $url
- (part(s) of) a URL in form of a string or associative array like parse_url(3) returns
o $parts
- same as the first argument
o $flags
- a bitmask of binary or'ed HTTP_URL constants; HTTP_URL_REPLACE is the default
o $new_url
- if set, it will be filled with the parts of the composed url like parse_url(3) would return
RETURN VALUES
Returns the new URL as string on success or FALSE on failure.
EXAMPLES
Example #1
A http_build_url(3) example
<?php
echo http_build_url("http://user@www.example.com/pub/index.php?a=b#files",
array(
"scheme" => "ftp",
"host" => "ftp.example.com",
"path" => "files/current/",
"query" => "a=c"
),
HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT
);
?>
The above example will output:
ftp://ftp.example.com/pub/files/current/?a=c
SEE ALSO
parse_url(3), http_build_str(3).
PHP Documentation Group HTTP_BUILD_URL(3)