[PHP] Maintaining sessions across multiple sites
I'm in the process of building an application that has an adminstration back-end shared by multiple sites. I need to maintain a persistent session across these sites to properly identify users. I'm using a db to store the session data but when switching from site to site, a new session_id is started. Does someone know of a good article that explains how to accomplish this effectively? Any help is appreciated. ron == Ron Dyck Webbtech www.webbtech.net == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Maintaining sessions across multiple sites
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 RD across these sites to properly identify users. I'm using a db to store the RD session data but when switching from site to site, a new session_id is RD started. msession is designed for just this purpose http://www.mohawksoft.com/ Does msession work with php5? ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] REGEX Question
I need to match text between two html comment tags. I'm using: preg_match(/!--start_tag--(.*)!--end_tag--/, $data, $Match) Which work fine until I have carriage returns. The following doesn't match: !--start_tag-- Nullam auctor pellentesque sem. Aenean semper. Aenean magna justo, rutrum et, consequat a, vehicula non, arcu. Mauris cursus vulputate pede. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.!--end_tag-- Appreciate you help. == Ron Dyck Webbtech.net == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installation problem
I'm currently attempting to upgrade to the latest version of php. When I run: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local I get the following message: Cannot find header files under /usr/local Why is this? ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Output Buffering issues with 4.1.2
I seem to have some trouble with a script using the output buffering functions on a server running v4.1.2. Everything works fine on the box with 4.2.2. Is this an issue with 4.1.2? === Ron Dyck WebbTech www.webbtech.net [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Email formatting
This is a slightly off topic question. My apologies to any that this may aggravate. Is it safe to assume that email addresses are accepted by all servers case insensitive? So that if I have an email application accepting emails I can safely strtolower($email) the address and be sure that all servers recognize and accept [EMAIL PROTECTED] as they would [EMAIL PROTECTED]? === Ron Dyck WebbTech www.webbtech.net [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Storing objects in a session
Having trouble storing objects in a session. When I do this: if (!isset($_SESSION['auth'])) { $auth = new Auth(); $_SESSION['auth'] = $auth; } else { $auth = $_SESSION['auth']; } I end up getting the following errors when I refresh the page. __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = auth I'm using php-4.2.2. ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PGP and other encryptions methods for PHP
I need to encrypt data in an application then mail it to a recipient where the email client must decrypt using a private key. The recipient would be using MS Outlook or another email client perhaps Eudora. What encryption techonologies are best for this? I had a brief look at OpenPGP but not sure of how well that integrates with PHP. Any help or tips from anyones who's done some work with this would be appreciated. === Ron Dyck WebbTech www.webbtech.net
[PHP] Using Variable Variables from form values inside a function
Is it possible to use variable variables from form values inside a function. For example when submitting form values, this works fine: foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } but, this doesn't: function myFunction() { foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } } Anyone dealt with this? === Ron Dyck WebbTech www.webbtech.net [EMAIL PROTECTED] 905 734-1164 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Variable Variables from form values inside a function
but, this doesn't: function myFunction() { foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } } Since php variable scope is local unless you define it global, that won't work that way. You might try (just guessing here): function myFunction() { foreach($_POST as $key=$value) { global $$key; if (empty($$key)) { print empty value $keybr; } } } That did it. I assumed that since $_POST was global, the key/value pair would be. Guess not :-| Thanks! ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Name of file included
I need to access the name of a file included. ie: in index.php I've included various files, among them navigation.inc. Instead of manually typing !--navigation.inc-- at the top of everyfile, I'd like to use something like: !--$included_file-- === Ron Dyck WebbTech www.WebbTech.net [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTTP_POST_FILES not working with 4.1.0?
Having trouble with HTTP_POST_FILES not working under 4.1.0. Track vars is enabled, and HTTP_POST_VARS works fine. Anyone experiencing simular problems? === Ron Dyck WebbTech www.WebbTech.net [EMAIL PROTECTED] 905 734-1164 -- 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] Identifying input type=file
I need to identify the particular name of a file upload type field: input type='file' name='image1' The elements are generated dynamically and I don't know the specific name of the field beforehand and of course need to read it before processing the form. Using $HTTP_POST_VARS does not seem to recognize this type of input field. Is there another method? I do have the form as: form action=file.html method=post enctype=multipart/form-data and I can catch all the other form elements without a problem. thanks, ron -- 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]
Fw: [PHP] Identifying input type=file
I need to identify the particular name of a file upload type field: input type='file' name='image1' when a file is uploaded it creates an array in the $HTTP_POST_VARS array, called $HTTP_POST_FILES. If you have track_vars enabled, you can access the name of the uploaded file on the local filesystem in the example given with the variable $image1_name. So if you uploaded a file named myGif.gif using the file select field shown above, this: Because of the nature of the form I don't know the name of the form element. But I was able to identify it through $HTTP_POST_FILES. Thanks ron -- 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]