RE: [PHP] How do I make these two MySQL queries into one line?

2003-12-24 Thread Chris
You should *really* consider yourself lucky, because this is a PHP list, not MySQL. SELECT members.email FROM groups LEFT JOIN members USING(member_id) WHERE '$chosenGroup'=group_id AND 'yes'=active You should really find a tutorial on Joins, jsut search on `SQL tutorial joins` Chris

RE: [PHP] How do I make these two MySQL queries into one line? [SOLVED]

2003-12-24 Thread Dave G
Chris, Thank you! I will look on the net for left joins, which is a bit new to me, and I'll join a MySQL list, since I can see I'm going to have more MySQL questions in the future. Your reply is much appreciated, especially since it came so fast! -- Yoroshiku! Dave G [EMAIL

Re: [PHP] Unlinking files.

2003-12-24 Thread David Otton
On Tue, 23 Dec 2003 19:08:28 -0800 (PST), you wrote: How can I unlink files in a directory that are, for example older than 1 hour? `find /path/to/dir -cmin +60 -type f -print0 | xargs -0 rm -f`; Alternatively, for cross-platformness user opendir() and readdir() to iterate over the directory,

[PHP] Apache error.log [warn] (OS 64) (OS 121)

2003-12-24 Thread Trevor Dowling
Hi, I am having a real problem with error messages posted in the error.log file in the Apache directory. I have been doing lots of searches to find a solution and it seems obvious that many people are see this issue but I can find no resolution or explanation for the entries (see below). PHP Bug

php-general Digest 24 Dec 2003 13:06:18 -0000 Issue 2491

2003-12-24 Thread php-general-digest-help
php-general Digest 24 Dec 2003 13:06:18 - Issue 2491 Topics (messages 173275 through 173293): Re: Headers Problem 173275 by: John W. Holmes Re: Can't upload file greater than 11kb 173276 by: Chris 173277 by: Chris Re: UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

[PHP] Removing/unsetting session variables.

2003-12-24 Thread Alain Williams
I have several variables that I set in a session - to record that a user is logged in. I want to be able to unset them - when they log out. $_SESSION['PERMS_USER'] = 'fred'; Sets the variable quite nicely, I can also change it and the change is recorded. I cannot unset it. I have tried

Re: [PHP] Removing/unsetting session variables.

2003-12-24 Thread CPT John W. Holmes
From: Alain Williams [EMAIL PROTECTED] I have several variables that I set in a session - to record that a user is logged in. I want to be able to unset them - when they log out. $_SESSION['PERMS_USER'] = 'fred'; Sets the variable quite nicely, I can also change it and the change is

Re: [PHP] Error with Absolute URLs

2003-12-24 Thread CPT John W. Holmes
From: Brad [EMAIL PROTECTED] I keep getting errors on my websites, that contain absolute URLs, e.g. http://www.url.com/blah.html. With most, being in the folder of my website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but there's a script I use to display the network statistics of

RE: [PHP] Headers Problem

2003-12-24 Thread Beauford
Beauford wrote: I'm getting the following error. My question is, where would I use the ob_start() and ob_end_flush() function so I can get rid of this. I have read the PHP manual, but not quite getting it.Or if there is a better way? Don't work around the problem with output buffering;

Re: [PHP] Headers Problem

2003-12-24 Thread CPT John W. Holmes
From: Beauford [EMAIL PROTECTED] Just a clarification, session_start() is on the first line of restricted.inc and restricted.inc is included on the first line of update-corrections-input.php. All update-corrections-write.php does is write info to a database and includes

RE: [PHP] Headers Problem

2003-12-24 Thread Beauford
Yes, there was a blank line. Now I just have to test it to see if that was it. One other question though. It appears that Windows does not have this problem - the site in question is on a Linux box. Why would this be? The two sites are identical, I just use the Windows one for developing and

[PHP] No ? or ?php in Windows

2003-12-24 Thread Robin Kopetzky
Good Morning and Merry Christmas to all. I recently installed PHPTriad to a new server and the ? and ?php tags do not work on ANY html page. Does anyone know what I may have missed in configuration? Help... Thanks a million in advance. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet

Re: [PHP] No ? or ?php in Windows

2003-12-24 Thread CPT John W. Holmes
From: Robin Kopetzky [EMAIL PROTECTED] Good Morning and Merry Christmas to all. I recently installed PHPTriad to a new server and the ? and ?php tags do not work on ANY html page. Does anyone know what I may have missed in configuration? Help... Try using them on a .php page? PHP doesn't

[PHP] array data to XML

2003-12-24 Thread Chakravarthy Cuddapah
newbie ... Is it possible to format data in array to XML and display ? Thanks !

[PHP] Cannot Access Includes Above Current Directory if using SSL

2003-12-24 Thread Steve Benson
I'm new to your list and configuring Apache with the SSL module enabled and have a newbie configuration glitch I've not been able to resolve. I'm very puzzled over why my scripts with included files, either SSI or PHP, work fine outside of the SSL directory structure (but still at similar nested

[PHP] Re: array data to XML

2003-12-24 Thread Matt Grimm
Of course. If it's a simple (short) array, you can just create a string with the XML tags and array values, and write that to a file with an XML extension. More sexy would be to use the DOMXML functions in PHP. http://us3.php.net/manual/en/ref.domxml.php Guy named Kris wrote a great XML - PHP

[PHP] Re: Removing/unsetting session variables.

2003-12-24 Thread Matt Grimm
PHP manual recommends this, which works for me: // Unset all of the session variables $_SESSION = array(); // Destroy the session session_destroy(); -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext.

[PHP] Cannot Access Includes Above Current Directory if using SSL

2003-12-24 Thread Steve Benson
I'm new to your list and configuring Apache with the SSL module enabled and have a newbie configuration glitch I've not been able to resolve. I'm very puzzled over why my scripts with included files, either SSI or PHP, work fine outside of the SSL directory structure (but still at similar nested

[PHP] apache/web site question...

2003-12-24 Thread bruce
hi... a very basic (i hope) question... i know i can have a web page that uses PHP/ASP/Etc... and i can do a kind of include, such that i can incorporate content/text from another file. i'm curious to know if there is a way to do that such that i can incorporate text from a file on another

[PHP] Re: array data to XML

2003-12-24 Thread Manuel Lemos
Hello, On 12/24/2003 02:44 PM, Chakravarthy Cuddapah wrote: Is it possible to format data in array to XML and display ? This class seems to do what you want. It requires DOM XML extension. Class: XML Array http://www.phpclasses.org/xmlarray You may also want to try this class for generating XML

[PHP] Re: apache/web site question...

2003-12-24 Thread Matt Grimm
As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parameter. In addition, URLs can be used with the include(), include_once(), require() and require_once() statements.

[PHP] [Q] Compatibility issues using Apache and/or IIS

2003-12-24 Thread Michael T. Peterson
First I'm very new to all this, so forgive the naivity of these questions: Anyway, I am building a WEB Site dev environment that supports PHP-MySQL development. I have both IIS and Apache WEB servers available for local testing which begs the following question: What are the factors that would

[PHP] session problems across pages

2003-12-24 Thread obsidianchrysalis
thanks for the help, it definitely saved my from hours of pulling at me hairs. however i have a new problem. i can create session variables, but i can't access them across pages. for example. page2.php Code: ?php // start the session session_start(); header(Cache-control: private); //IE 6 Fix

[PHP] basic set and read a cookie probs

2003-12-24 Thread Jack E. Wasserstein, DDS, Inc.
I am using the following code on the php form handler if ($_POST[referdrremember] == true) { setcookie(remailcookie, $_POST_VARS[refdremail],time()+3600,/,wasserstein.com,0); Try to see the cookie in the same script, not sure which one to use with or without $ print the cookie's value is

[PHP] programming the onclick() event in an anchor

2003-12-24 Thread Peter Walter
I have written a session-enabled php page which displays a table of search results. The first column in the table contains anchor links to www.mydomain.com/mypage?seqno= where seqno is a variable I would like to pass when the anchor is clicked. However, I do not wish the ?seqno= to

php-general Digest 25 Dec 2003 01:09:11 -0000 Issue 2492

2003-12-24 Thread php-general-digest-help
php-general Digest 25 Dec 2003 01:09:11 - Issue 2492 Topics (messages 173294 through 173313): Removing/unsetting session variables. 173294 by: Alain Williams 173295 by: CPT John W. Holmes 173305 by: Matt Grimm Re: Error with Absolute URLs 173296 by: CPT John

[PHP] Re: basic set and read a cookie probs

2003-12-24 Thread Jack E. Wasserstein, DDS, Inc.
Sorry, No such thing as $_POST_VARS Jack E. Wasserstein [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using the following code on the php form handler if ($_POST[referdrremember] == true) { setcookie(remailcookie, $_POST_VARS[refdremail],time()+3600,/,wasserstein.com,0);

Re: [PHP] JavaScript question

2003-12-24 Thread -{ Rene Brehmer }-
you can simply call: Window.location.href = 'http://yourdomain.com/phpscripttocall.php?variable1=value1variable2=value2' ^works in all browsers supporting JavaScript ... there's a few variants of this that will only work in IE or Netscape, but this one is vague enough to work in both... (not

[PHP] Problem with session variables on Mac

2003-12-24 Thread Jim Sara Feldman
I should first admit to being a php newbie, so the answer may be obvious, but this looks like a bug to me. Global variables are OFF. I start a session at the very top of page member.php: session_start(); In a function called from the same page, I store some variables in the session array: