03-05-2013
Moved thread hijack to
here.
This User Gave Thanks to Corona688 For This Post:
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I prepare to install linux distros , freebsd and solaris(totally 6 OS) in a 40G harddisk, but I fail to do it, so I would like to ask some question here.
Can different distros share the same linux swap?or each distros need to have their own?
I made 6 partitions(5 x 7G , 1 x 4G) and 256M(I... (8 Replies)
Discussion started by: jcheng
8 Replies
2. BSD
for all you unix/linux interested heres an online book for free that covers the basics of BSD SysV Unix commands and applications . giving the average linux user a perspective on the differences in context of the two operating systems and for BSD users covers material as a refernce guide.
... (0 Replies)
Discussion started by: moxxx68
0 Replies
3. UNIX for Dummies Questions & Answers
Hi!
I'm planning to start to set up a Webserver. All software has to be freeware.
I'm also planning to use Free BSD/UNIX for this project.
Apache as Webserversystem and so on...
Therefor I would like to have some info about what kind of hardware I need.
I'm planning to buy a computer... (9 Replies)
Discussion started by: kargooliw
9 Replies
4. BSD
I read it was possible to distinguish if UNIX system on the machine is derivated from Sys V or BSD. The instruction said:
ps -ef ... is functional on Sys V
ps ax ... is functional on BSD
But since I don't have any UNIX machine (just Linux) I can't tell how I may use this knowledge in my... (5 Replies)
Discussion started by: MartyIX
5 Replies
5. Programming
I am using BSD TCP sockets under Debian Linux 2.6 and no matter what I do, the socket blocks on recv.
I have set O_NONBLOCK and O_NDELAY using fcntl to no effect.
Any ideas ? (3 Replies)
Discussion started by: johnmb
3 Replies
6. Programming
Hello there, i've lurked this forum for a while (in few month i will have been registered for two years) but this is my firts post.
Well, after having looked to C language as a black monster, i finally have decided to learn it, and to learn it very well!
So, i'm quite new to C, although i... (1 Reply)
Discussion started by: Freddie
1 Replies
LEARN ABOUT PHP
http_redirect
HTTP_REDIRECT(3) 1 HTTP_REDIRECT(3)
http_redirect - Issue HTTP redirect
SYNOPSIS
bool http_redirect ([string $url], [array $params], [bool $session = false], [int $status])
DESCRIPTION
Redirect to the given url.
The supplied $url will be expanded with http_build_url(3), the $params array will be treated with http_build_str(3) and the session iden-
tification will be appended if $session is true. The HTTP response code will be set according to $status. You can use one of the redirect
constants for convenience. Please see RFC 2616 for which redirect response code to use in which situation. By default PHP will decide which
response status fits best.
To be RFC compliant, "Redirecting to <a>URL</a>." will be displayed, if the client doesn't redirect immediately, and the request method
was another one than HEAD.
A log entry will be written to the redirect log, if the INI settinghttp.log.redirect is set and the redirect attempt was successful.
PARAMETERS
o $url
- the URL to redirect to
o $params
- associative array of query parameters
o $session
- whether to append session information
o $status
- custom response status code
RETURN VALUES
Returns FALSE or exits on success with the specified redirection status code. See the INI settinghttp.force_exit for what "exits" means.
EXAMPLES
Example #1
A http_redirect(3) example
<?php
http_redirect("relpath", array("name" => "value"), true, HTTP_REDIRECT_PERM);
?>
The above example will output:
HTTP/1.1 301 Moved Permanently
X-Powered-By: PHP/5.2.2
Content-Type: text/html
Location: http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc
Redirecting to <a href="http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc">http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc</a>.
SEE ALSO
the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_REDIRECT(3)