Re: [PHP] fsockopen and session_start

2005-03-08 Thread Pedro Garre
2005 05:15, Jason Wong wrote: > *This message was transferred with a trial version of CommuniGate(tm) Pro* > > On Monday 07 March 2005 22:02, Pedro Garre wrote: > > I am using fsockopen to simulate a POST to another page (test_post.php) > > within the same server. > >

[PHP] fsockopen and session_start

2005-03-07 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I am using fsockopen to simulate a POST to another page (test_post.php) within the same server. Data sent to the socket is: "POST $uri HTTP/1.1\r\n". "Host: $host\n". "User-Agent: mandapost\r\n". "Cookie: ".ses

Re: [PHP] Why $ on variable names?

2002-11-13 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, JR said: > I guess this could be true. But I don't understand why someone would need > an "easy" way to identify variables? Why not an easy way to identify > function names? Or constants? For big projects and/or saf

[PHP] You are about to leave the secure conexion

2002-07-14 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I've got a https site with Apache and mod_ssl. When I open a new window with javascript (window.open) the browser (IE) says I am about to leave the secure conexion. Same happens when I download the .der certificate.

[PHP] Encripted download

2002-07-01 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, My Apache is under SSL. Everything works Ok but when the user chooses to download a file or view a PDF document, the browser states that you are about to leave the secure conexion, so I guess the files are travellin

Re: [PHP] Printer friendly version script

2002-06-13 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* I think the only solution is to convert it to PDF. In theory, CSS2 provides with the possibility to configure the print format, but no browser supports it. Pedro. On Thursday 13 June 2002 19:56, Miguel Cruz wrote: > *T

[PHP] parse errors not displayed (2nd time I ask!)

2002-04-29 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I am sorry I ask this for a second time. Come on guys ! I am sure somebody can help, please I set my own error handler. It is in a file "general_includes.php" (please find it below) and all pages do a "require"

Re: [PHP] parse error=> doc contains no data

2002-04-19 Thread Pedro Garre
error_reporting = E_ALL & ~E_NOTICE, or just E_ALL, in php.ini. > > Kirk > > > -Original Message- > > From: Pedro Garre [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 19, 2002 11:25 AM > > To: php-general > > Subject: [PHP] parse error=> do

Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Yes, but note that strtotime has a second parameter, which is "now" if not indicated. What strtotime returns is relative to this second parameter. I would use: $ahora = time(); $firstTime=strtotime($firstTime, $ahora); $l

[PHP] parse error=> doc contains no data

2002-04-19 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I set my own error handler as described in the documentation. It seems to work, as I can catch NOTICE errors. The problem is that PARSE errors do not display anywhere, nor are catched by my error handler. The browser

[PHP] debug NOTICE without disturbing browser

2002-04-18 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, If you want to see NOTICE errors, but not in the browser: - Set your own error_handler as described in the documentation - And include these lines: if ( ( $errno == E_USER_NOTICE ) || ( $errno == E_NOTICE ) ) system