[PHP] Code still showing up :(

2002-12-19 Thread Lic. Rodolfo Gonzalez Gonzalez
Hi, I'm still having the same problem, the PHP code is sometimes not interpreted, but passed as text/plain to the browser. The MIME type is configured correctly, and once (in the master httpd.conf). I even recompiled Apache. The system: RedHat 6.2 (ancient, I know) with Apache 1.3.27 and PHP 4.2.3

Re: [PHP] Code appearing suddenly!.

2002-12-17 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 17 Dec 2002, Matthieu Le Corre wrote: > look at your apache httpd.conf file > maybe php type is not correctly definy ... > i've had the ame pb ... the mime type was definied twice ;) Bad luck, the code is still appearing randomly. The script is parsed correctly if the page is reload

[PHP] Per instance disable_functions in CGI "mode"

2002-12-16 Thread Lic. Rodolfo Gonzalez Gonzalez
Hi, some weeks ago I asked if it was possible to have a per apache-virtualhost disable_functions list. Rasmus answered that this is not possible since the interpreter is initialized once, and it'd be too expensive to reload the config. But, what about PHP as CGI?. I guess the disable_functions pa

[PHP] Code appearing suddenly!.

2002-12-16 Thread Lic. Rodolfo Gonzalez Gonzalez
Hi, I've just recompiled PHP 4.2.3 on RedHat w/Apache, after having upgraded from Perl 5.6.0 to 5.8.0 (I had to disable mod_perl for now, due to incompatible libraries). But now something weird is happening: sometimes as a page with PHP code loads in the browser, it's not processed by PHP, but the

[PHP] "Deleting" HTTP auth...

2001-10-19 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello list, Is it possible to "delete" the data from an Apache's HTTP authentification directly from a PHP script?. I know that the username/password pair is stored in two variables which are sent by the client to the server, right?. is it possible to alter them from PHP¿?. Thanks a lot, Rodolfo

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-25 Thread Lic. Rodolfo Gonzalez Gonzalez
On Thu, 20 Sep 2001, * R&zE: wrote: > > This sometimes work, but sometimes it doesn't randomly, even with the same > > (apache-1.3.20, rh-7.1) and it's the same. Any help is appreciated. Thank > Ehhh... works fine here! Dunno what's wrong. Don't you do anything > almost a complete year using the l

Re: [PHP] PHP vs M$.NET C#?

2001-09-19 Thread Lic. Rodolfo Gonzalez Gonzalez
On Wed, 19 Sep 2001, Christian Reiniger wrote: > Not at all I'd guess. > C# is MS's reaction to Java, which has been around for quite some years > now. And there's nothing new / innovative in C# Indeed, its their reaction against the lawsuit which MS lost. So, if they cannot have Java, they do th

Re: [PHP] Re: Problem: lost session id when htaccess'ing.

2001-09-18 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 18 Sep 2001, Chris Lee wrote: > - you have cookie support on or off ? > - you using any header redirects ? (you have to manually add the SID to > URI's) Sorry for the lenght of this mail. PHP compiled with --enable-trans-id, so PHP adds SID to the URL. session.use_cookies = 0, session.r

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-18 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 18 Sep 2001, * R&zE: wrote: > > and get DD-MM-, but with well formed -MM-DD it doesn't match!. Is > > this a bug?. > It would help if you send the code you're using, 'cause we can't see > what you're doing now. FAFAIK it should just be possible. See the Sure: --- start --- $dat

[PHP] Problem: ereg doesn't work ok (?).

2001-09-17 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello, I have a problem with ereg: following the example from the documentation (see the ereg page in the manual), I'm using it to parse a -MM-DD date and get DD-MM-, but with well formed -MM-DD it doesn't match!. Is this a bug?. Regards, Rodolfo. php-4.0.8-dev (maybe the problem i

[PHP] Problem: lost session id when htaccess'ing.

2001-09-17 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello, I have a problem with sessions: I have php with sessions autostarting, compiled with transid support. I have a homepage with a link to another page protected via Apache's htaccess. Well, the href's in the homepage get the correct SID=, then I click the link, I give login and password, Apac

[PHP] Sessions and

2001-04-03 Thread Lic. Rodolfo Gonzalez Gonzalez
Hi there, I have a problem. I am trying to use a simple php script to display a JPEG from a "protected" catalog (the image files are out of the web tree). It's called from an IMG tag, like this: --- main file --- ... "; ?> --- In viewer.php I use session_start() to resume the current sessi

Re: [PHP] Silly sessions problem.

2001-03-22 Thread Lic. Rodolfo Gonzalez Gonzalez
> I just can't make sessions work. Now this is strange! I copied exactly the same scripts I posted to my win98SE box running Apache 1.3.19 and PHP 4.0.4pl1 and they worked!. Which could be the reasons for the sessions not to work?. Do they work transparently for name based virtuals, don't they?.

[PHP] Silly sessions problem.

2001-03-22 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello list, I just can't make sessions work. This is driving me mad, I'm sure it's something silly, but maybe my headache made me a fool :P :) ... could you please tell me what's wrong here?. hello.php has a link to next.php: --- start of hello.php --- $hello"; ?> --- end of hello.php --

Re: [PHP] deleting cart items on session expire

2001-02-16 Thread Lic. Rodolfo Gonzalez Gonzalez
On Fri, 16 Feb 2001, Jason Brooke wrote: > > However, there's no necessity to have the cgi version if you already have > > the modular version. All that is needed is to call the appropriate script > No there's not - I think that goes without saying though. > install' - then you can use this awes

Re: [PHP] Mail-Encryption

2001-02-09 Thread Lic. Rodolfo Gonzalez Gonzalez
On Fri, 9 Feb 2001, Christian Reiniger wrote: > > This returns echoes the part after the | in safe-mode. > echo only outputs something. it doesn't return anything. Yup, grammar error, I meant "prints to stdout" :) > Write > $comm = "$data | " . $this->gpg_command; Didn't work that way :( > an

Re: [PHP] Mail-Encryption

2001-02-09 Thread Lic. Rodolfo Gonzalez Gonzalez
On Thu, 8 Feb 2001, Richard Lynch wrote: > Maybe you can create a custome keyring for just the web-usage of public keys > only... Hum... I wouldn't like it, anyway. Hmmm, is there any other way to pass "stdin" to an external program, other than using echo and a pipe?. I've also tried by placing

Re: [PHP] Looking for Code Example: Telneting to server to verifypassword

2001-01-26 Thread Lic. Rodolfo Gonzalez Gonzalez
de sitting around I can scavange > from? PHPBuilder didnt help much > > > > -- Lic. Rodolfo Gonzalez Gonzalez. Global Networks Technologies S.A. de C.V. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

[PHP] file or fopen to fetch a web page???

2001-01-23 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello, I wonder myself, which method is better to fetch a web page: $file = fopen($url, "r"); $page = fread($file, 5); or $file = join('', file($url)); , speaking from the performance point of view? (or is there any better?). Thanks. -- PHP General Mailing List (http://www.

[PHP] popen in safe_mode with pipe

2001-01-17 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello, I need to encode some text using GPG in a PHP program. I've a class wich uses popen like this: //--- start --- // parameters to gpg omited... $command = "echo '$text' | gpg "; $fd = popen("$command","r") if (!$fd) { return -2; } $enc = ""; while (!feof($fd)) { $enc .= fgets($fd