[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 snip"; $fd = popen("$command","r") if (!$fd) { return -2; } $enc = ""; while (!feof($fd)) { $enc .=

[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 --- ?php session_start();

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?.

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

2001-09-25 Thread Lic. Rodolfo Gonzalez Gonzalez
On Thu, 20 Sep 2001, * RzE: 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 link it

[PHP] Globals and HTTP_SESSION_VARS variables.

2001-09-25 Thread Rodolfo Gonzalez Gonzalez
Hi, Is here anyway to make a variable like $var not the same than $HTTP_SESSION_VARS[var], when register_globals=1?. (where $var is in the script scope). I read in a changelog that this is relatively recent (make $var the same than $HTTP_SESSION_VARS[var]). Thank you. Regards, Rodolfo. --

[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.

[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=md5 session id, then I click the link, I give login and

[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

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

2001-09-18 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 18 Sep 2001, * RzE: 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 --- $datenews

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,

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 thei

Re: [PHP] Mail-Encryption

2001-02-08 Thread Rodolfo Gonzalez Gonzalez
On Thu, 8 Feb 2001, Richard Lynch wrote: You can find a long-winded post from me a year or two ago about my trials and tribulations (and a *lot* of help from others to get me going). I found a pgp class and took parts of it to work with gpg, but it doesn't work in safe-mode. I'm using this

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] 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 :( and:

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 awesome

[PHP] Sessions and img src=...

2001-04-04 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 --- ?php session_start(); ? html ... ?php session_register("imgname");

[PHP] SCORM PHP

2005-06-25 Thread Rodolfo Gonzalez Gonzalez
Hello, I have searched freshmeat/hotscripts/google/... for some class or simple PHP script (not a full LMS) to display SCORM content, without success. Does someone know about this topic or if such a class/script exists?, thanks a lot in advanced for your help. Regards. -- PHP General

[PHP] memcached and objects.

2005-07-02 Thread Rodolfo Gonzalez Gonzalez
Good morning, I would like to use PHP's memcached extension to store objects. However I keep getting the incomplete object everytime I try to operate on an object got from the cache. How can be an object stored in memcached and later recovered to work with it?. Is this possible?. I would

Re: [PHP] auto reply framework

2005-07-02 Thread Rodolfo Gonzalez Gonzalez
On Sat, 2 Jul 2005, Nate Tanner wrote: I'm working on the design of a program for sending automatic messages to users, based on certain conditions. It seems like there should be some So the point is that I need to be able to set up rules for what each message contains, and when each message

Re: [PHP] memcached and objects.

2005-07-02 Thread Rodolfo Gonzalez Gonzalez
On Sat, 2 Jul 2005, Jochem Maas wrote: I would like to use PHP's memcached extension to store objects. However I keep getting the incomplete object everytime I try to operate on an load the class definition BEFORE you try to extract the object from the cache. Thanks to Jochem and Brad for

[PHP] performance.

2005-07-25 Thread Rodolfo Gonzalez Gonzalez
Hi, this could be a silly question. Is there some performance penalty when using the operator like this: $var =EOP add a bunch of text here and here EOP; Just curious. Thanks, Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: performance.

2005-07-26 Thread Rodolfo Gonzalez Gonzalez
On Tue, 26 Jul 2005, Matthew Weier O'Phinney wrote: this could be a silly question. Is there some performance penalty when using the operator [in heredoc] Try doing some benchmarks using microtime(). My gut reaction is that there shouldn't be any difference; heredoc syntax is simply another

[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

[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

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 reloaded

[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

[PHP] Framework in PHP?

2004-03-05 Thread Rodolfo Gonzalez Gonzalez
Hello, which free (as in beer) framework writen in PHP (OO) would you consider the best for developing large web applications?. I was looking at Seagull (http://seagull.phpkitchen.com/)... I would appreciate your comments on this and other frameworks. Thank you, Rodolfo. -- PHP General Mailing

[PHP] Session file not written *solved*, but session variables *still* messed up.

2004-11-15 Thread Rodolfo Gonzalez Gonzalez
On Fri, 12 Nov 2004, Klaus Reimer wrote: Rodolfo wrote: The weirdness comes when in one frame the script will print Agent Smith while in the other frame of the same frameset the script which loads on it will print Thomas Anderson... On the other hand: Have you checked that your disk has

[PHP] Conflicts between c-client and MySQL

2004-12-14 Thread Rodolfo Gonzalez Gonzalez
Hello, I'm trying to compile with: UW-IMAP's c-client 2004, MySQL 4.1.7, php-5.0.3RC2 and php-5.0.2, configure somethingmorehere --with-imap --with-mysqli, and I get this: /usr/lib/libc-client.a(misc.o)(.text+0x8a4): In function `hash_reset':

[PHP] Compilation problem with PHP5 and MySQL 4.1

2004-07-22 Thread Rodolfo Gonzalez Gonzalez
Hi, I know that this should go to the php-inst ml, but I can not resubscribe (the error in the P.S.). I'm trying to install PHP 5 + MySQL 4.1.3 in Apache 1.3 and I'm getting these messages: (tons of first defined messages before, just pasted a sample below) ...

[PHP] Problem with PEAR DB MySQLi

2004-07-26 Thread Rodolfo Gonzalez Gonzalez
Hi, I'm trying to use PEAR's DB class with the new PHP 5 MySQLi support on MySQL 4.1.3, using this example from the PEAR's docs (with my parameters of course). I'm getting DB unknown error messages after the query. The same query from the mysql client works fine, there are no connection

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Rodolfo Gonzalez Gonzalez
On Fri, 30 Jul 2004, Tom Rogers wrote: RD I'm in the process of building an application that has an adminstration RD back-end shared by multiple sites. I need to maintain a persistent session msession is designed for just this purpose how reliable msession is?. I'm interested on it too.

[PHP] Weird results with floor compiling with -march=pentium4 -mcpu=pentium4

2007-05-08 Thread Rodolfo Gonzalez Gonzalez
Hi, Just for the record. I compiled PHP 5.2.2 with CFLAGS=-O2 -march=pentium4 -mcpu=pentium4, as usual (I've done so with all the 5.x.x series, and the proc is a Pentium 4, of course) and a customer complained about weird results in one of his scripts. I isolated the problem to be related to