Re: Problems with Linux PHP
| From: | Liam Gibbs | Date: | Mon, 19 Mar 2001 15:37:40 +0000 |
| Subject: | Re: Problems with Linux PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44568@lists.php.net to get a copy of this message | ||
<<I'm having a couple of problems while porting some software from Lynx OS
to Linux. Here they are:
1. The encryption method seems to be different. Does anyone know the salt to
use in the crypt() function in Linux?
2. Also, I seem to not be able to popen() in Linux. I get a file pointer
which is blank. Does anybody know why???
To add a little info to my post, I've found out something about my problem.
I'm getting the error message "popen("chmod 700 session", "r+") -
Invalid
argument in file.php3 on line ###". The line that gives this command is:
if($fp = popen($command, "r+")) {
The $command is "chmod 700 session". This problem shows up in Linux 2.2.12,
but this command works fine in LynxOS 3.0.1.
I found some information that says that popen doesn't work with some
versions of Linux because the kernel is broken on those versions. Is there a
way around this that is used by both (and all other Unix) OSs? Am I stuck?
Thanks in advance again,
Liam