[PHP] PHP & APACHE Authenticate
-Mensaje original- De: Silvia Mahiques [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 13 de diciembre de 2001 10:32 Para: [EMAIL PROTECTED] Asunto: PHP & APACHE Authenticate Hi Friends!: I have some problems with APACHE Authenticate. I have a directory with access control. This is his structure: file_1.php4 ... file1_1.php4 ... ... The problem is that I can't access to file1_1.php4 that is call from file_1.php4 with a POST method. This POST method is make without user interaction, is call internaly by script file_1.php4. All is Ok when I access file_1.php4, but when I try to access file1_1.php4 the server sends this message: HTTP/1.1 401 Authorization Required Date: Wed, 12 Dec 2001 18:45:16 GMT Server: Apache/1.3.20 (Win32) PHP/4.0.6 WWW-Authenticate: Basic realm="Restricted GTC member Directory" Connection: close Content-Type: text/html; charset=iso-8859-1 Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. I think that I have to pass to the server the information about Authenticate (type of Authenticate, user, password) when I make a POST internaly, because this work is make normaly by browser and perhaps I have to do now. But, how can I make this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP & APACHE Authenticate
Hi Friends!: I have some problems with APACHE Authenticate. I have a directory with access control. This is his structure: file_1.php4 ... file1_1.php4 ... ... The problem is that I can't access to file1_1.php4 that is call from file_1.php4 with a POST method. This POST method is make without user interaction, is call internaly by script file_1.php4. All is Ok when I access file_1.php4, but when I try to access file1_1.php4 the server sends this message: HTTP/1.1 401 Authorization Required Date: Wed, 12 Dec 2001 18:45:16 GMT Server: Apache/1.3.20 (Win32) PHP/4.0.6 WWW-Authenticate: Basic realm="Restricted GTC member Directory" Connection: close Content-Type: text/html; charset=iso-8859-1 Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. I think that I have to pass to the server the information about Authenticate (type of Authenticate, user, password) when I make a POST internaly, because this work is make normaly by browser and perhaps I have to do now. But, how can I make this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How can I acces an environment var $SERVER_ADMIN
Hi frieds! I have some problems with get values from environment vars controled by php. I can't get value from $SERVER_ADMIN var. This var is empty. In apache log file, I have defined ServerAdmin directive, I suppose this directive references this environment var, but I not sure if it is necessary the identical name. If you have an idea, please, help me! Silvia Mahiques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Global instance of class
Hello friends! I want to access a global instance of a class from diferents php files. How can I do this? Is it possible? The code file (.php) that has this first reference is: $global_var = new one_class(); If I include this file (.php) in another php file, a new instance is created again, and I want a unique instance in all project. If I put in a file (.php) the expression global $global_var; but without include file (.php), this global var is undefined. Which is the solution? Thanks, in advance. Silvia Mahiques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Fw: problems with php and jscript....
- Original Message - From: Silvia Mahiques To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 12, 2001 9:04 PM Subject: problems with php and jscript I have written an html page with jscript and php code, but I have some problems. The errors are in black letter: why is not correct this code? <!-- BtOver = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))); function BtPreload(img) { var a=new Image(); a.src=img; return a; } if(BtOver) { BnavN_Info=BtPreload('images/button_informacion.jpg'); BnavO_Info=BtPreload('images/button_informacion_over.jpg'); BnavN_eInfo=BtPreload('images/button_information.jpg'); BnavO_eInfo=BtPreload('images/button_information_over.jpg'); } function process_mouse_over(obj){ if (document.lang.value=="0"){ obj.src = BnavO_Info.src ; } else obj.src=BnavO_eInfo.src; } // --> . If somebody has an idea, please, help me Silvia Mahiques
[PHP] problems with php and jscript....
I have written an html page with jscript and php code, but I have some problems. The errors are in black letter: why is not correct this code? <!-- BtOver = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))); function BtPreload(img) { var a=new Image(); a.src=img; return a; } if(BtOver) { BnavN_Info=BtPreload('images/button_informacion.jpg'); BnavO_Info=BtPreload('images/button_informacion_over.jpg'); BnavN_eInfo=BtPreload('images/button_information.jpg'); BnavO_eInfo=BtPreload('images/button_information_over.jpg'); } function process_mouse_over(obj){ if (document.lang.value=="0"){ obj.src = BnavO_Info.src ; } else obj.src=BnavO_eInfo.src; } // --> . If somebody has an idea, please, help me Silvia Mahiques
[PHP] setting member variables out of class
Hello, I want to set member variables out of their class. The code class is: I access to this class from another php file and want to set this member variable: $c = new translator(); echo $c->telefono; /* this member isn't set but in constructor method has been set*/ I have written too: echo $c->$telefon; echo "{$c->telefon}"; but is not correct. Can anybody help me? Thanks Silvia Mahiques
Re: [PHP] INPUT tag with default value
Dear Philip, Thank you very much, I have lost long time proving different alternatives that it's better not to implement. I prefer a safe code. Thanks again!. Cheers Silvia Mahiques "Philip Olson" <[EMAIL PROTECTED]> escribió en el mensaje Pine.BSF.4.10.10110231629160.58932-10@localhost">news:Pine.BSF.4.10.10110231629160.58932-10@localhost... > This is not possible. Default values cannot be set with type=file as if it > were it would be quite a security risk.A little more information on > the capability of this html form element: > > http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm > > And a related RFC : > > http://www.faqs.org/rfcs/rfc1867.html > > regards, > Philip Ollson > > > On Tue, 23 Oct 2001, Silvia Mahiques wrote: > > > Hi, > > I can't print a default value in a INPUT tag with TYPE=file. INPUT tag has value attribute, but it not apear in window box. > > > > . > > > > How can I print a default value? > > > > > > > > Thanks, > > > > Silvia Mahiques > > > begin 666 px.gif K1TE&.#EA`0`!`/ ``/___P```"'Y! $```$`+ `!``$```("3 $`.P`` ` end -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] INPUT tag with default value
Hi, I can't print a default value in a INPUT tag with TYPE=file. INPUT tag has value attribute, but it not apear in window box. . How can I print a default value? Thanks, Silvia Mahiques
[PHP] MessageBox in PHP?
Hi!, How can I make a messagebox in PHP to print errors or warning (such as in VB or VC++)?. Is it possible? Silvia Mahiques
[PHP] Problems with get URL from script (post without forms)
Hi I´m interested in launching an HTML page directly from another page. The former has php code and I´d also like to pass some arguments to it. I´m using the getURL code to do this job but I had some problems: After launched, the page looks quite weird. When I look at the source code, the variable replacements in the php pieces is wrong. Instead of getting the contents of the variables, it looks as if everything was delated and backlashes were inserted within the quotes. For example, the following line in the php code was replace by Do you have any hint about the problem here? If getURL is not the appropriate way of doing what I want, what should I use? Thanks in advance, Silvia