[PHP] Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it is not available. In fact, phpinfo() shows

[PHP] Re: Destroying the Session Object

2005-02-19 Thread pete M
here's the way I do it logout.php ?php session_start(); $_SESSION = array(); session_destroy(); header('Location: login.php'); ? Jacques wrote: I am developing an application. When the user signs in a Session ID is created (for argument sake: 123). I have a sign out page that has the script

[PHP] Re: Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread pete M
try $_SERVER['SCRIPT_URI']; Gary C. New wrote: I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Jason Barnett
Your Name wrote: Thank you very much for that solution however I need something slitely different. This is a CMS for distribution... not everybody that's going to use it can go in and edit the config files. I've heard of a command called ini_set(); which temporarily changes it just for

[PHP] Re: Destroying the Session Object

2005-02-19 Thread Jason Barnett
pete M wrote: here's the way I do it Depends on what you're going for exactly. Based on what the OP said I believe he'll also want to destroy the session cookie. If you want to completely destroy the session you need the extra step that I copied and pasted from the manual. :) logout.php

[PHP] Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it is not available. In fact, phpinfo() shows

[PHP] problems compiling mysqli (on win32)

2005-02-19 Thread M. Sokolewicz
whenever I try compiling PHP, the mysqli extension gives me trouble. I've gotten this all from HEAD just a couple of hours ago (again, it didn't work before either). I'm using MSVC 7.1 (.NET). Here's the error I'm getting: ext\mysqli\php_mysqli.h(50) : error C2061: syntax error : identifier

[PHP] Re: FOPEN

2005-02-19 Thread Al
Diana Castillo wrote: How can I read the contents of a web page that uses basic authentication? I want to use fopen() but dont know how to do this and also send the username and password If the webpage is your script and it is going to check the authentication stuff, then simply use GET

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Christian
Your Name schrieb: Thank you very much for that solution however I need something slitely different. This is a CMS for distribution... not everybody that's going to use it can go in and edit the config files. I've heard of a command called ini_set(); which temporarily changes it just for the

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread b1nary Developement Team
Oh I'm sorry, that was just a typo, I meant the use only cookies one... god I'm an idiot, thank-you. Jason Barnett wrote: Your Name wrote: Thank you very much for that solution however I need something slitely different. This is a CMS for distribution... not everybody that's going to use

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Jason Barnett
b1nary Developement Team wrote: Oh I'm sorry, that was just a typo, I meant the use only cookies one... god I'm an idiot, thank-you. Not an idiot... we all had to learn it once. And some of us a few times more than that! You're welcome. Jason signature.asc Description: OpenPGP digital

Re: [PHP] Re: FOPEN

2005-02-19 Thread Rasmus Lerdorf
Al wrote: Diana Castillo wrote: How can I read the contents of a web page that uses basic authentication? I want to use fopen() but dont know how to do this and also send the username and password If the webpage is your script and it is going to check the authentication stuff, then simply

Re: [PHP] MySQL and MySQLi compiling

2005-02-19 Thread Chris
Thanks for all the help, I managed to get it working, though I'm not quite sure the reasoning behind it. I used some info I got off of http://bugs.php.net/bug.php?id=29860 to do it. I posted my particular resolution to the bug report. It seems to me that *something* isn't right Chris -- PHP

[PHP] Re: Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
It turns out that SCRIPT_URI is a mod_rewrite global. I simply had to turn the RewriteEngine On under the unencrypted (http) location and it worked perfectly. Thank you for the suggestions. Respectfully, Gary pete M wrote: try $_SERVER['SCRIPT_URI']; Gary C. New wrote: I am writing some php code

Re: [PHP] Code Analyzer Needed ..can somebody suggest ?

2005-02-19 Thread Zareef Ahmed
Hi Ramya, Try Zend Studio from zend.com zareef ahmed On Fri, 18 Feb 2005 22:22:34 +0530, Ramya Ramaswamy [EMAIL PROTECTED] wrote: Hey people, Am in the look out for a code analyzer for PHP...can somebody help me out with that?Please... Many Thankx Ramya -- PHP General Mailing