Re: [PHP] Text area with an echo command
Will wrote: John, I have that script: $sql = "UPDATE $table_name5 SET care_id = '$_POST[care_id]', date = '$_POST[date]', common = '$_POST[common]', notes = '$_POST[notes]' WHERE notes_id ='$_POST[notes_id]'"; $result = @mysql_query($sql,$conn) or die(mysql_error()); header("Location: main.php"); exit; But my question is when I hit the submit button and check the database it has nothing in the "notes" field. I tried a hidden field in the modify script but it did not work. Will Make sure you have a 'name' attribute in your textarea -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Text area with an echo command
Will wrote: Eugene, Thank You much :) I really appreciate it!!! Will PS: I am curious on other guys and gals would do this code. The way php allows for including of files, I tend to try and keep my html and php seperate...but that's just personal. The method Eugene suggested is also fine for outputting large blocks of non-php code. Kind of reminds me of my Perl days. *nostalgic sniffle* -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] windows user_name
Becoming Digital wrote: I don't believe so. It would depend entirely on the browser settings, too, so even if it's possible, I certainly wouldn't build an app around that idea. Actually, it is possible, but only under some very restrictive settings. For example, php has to be running as a ISAPI module under IIS, and the security settings should be NTLM, and the user is logged on to the same domain as the IIS server, then $_SERVER['AUTH_USER'] should be the logged in user name. However, to design an app around that isn't the best way to do it. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP/MySQL/Server not working
magic_quotes_gpc is on, I dont use addslashes ConbuD "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are the variables quoted out by php setting magic_quotes_gpc or do you > have to use addslashes in your code? > > conbud wrote: > > Hey, just a quick question, I have a form that users can fill out to join a > > certain group, we can then view that info from an admin page that requires > > logging in. When a user fills out the form I get an email letting me know > > that the form was submitted with the users info as well. Here recently, I've > > been getting that info but their info isn't being saved into the database > > for somereason, anyone have any idea why ? I have filled out the form at > > least 15-25 times using different info and everyone of them worked for me. I > > even filled out the form using different special characters and still with > > no problems, I am using stripslashes on the form data, but I don't think > > that could keep the info from being saved to the database, it only does this > > periodically. Could this be due to a slow server ? or is there some sort of > > special character that could conflict with my PHP or with the MySQL syntax ? > > I just have no clue now. Any thoughts are appreciated. > > > > Thanks > > ConbuD > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP SESSSION Not Behaving
Yep. Tried it with IE / NS / and Mozilla Firebird. Same problem. =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Sat, 18 Oct 2003, Marek Kilimajer wrote: > Did you try it with another browser? Make some really simple example and > see if this is still happening. > > [-^-!-%- wrote: > > Environment: Linux , PHP 4.2.3,MySql 3.23.39,Apache, and so on > > > > The Problem: > > I have a user authentication script that uses sessions to track the user > > id. Everything works fine with HTTP, but $_SESSIONS['var'] renders nothing > > under a secure connection (SSL). Using $_SESSION['myVar']= > > 'myValueGoesHere' loses its value, once I move to another page. Even when > > I use SESSION_START() before accessing the value (like echo > > $_SESSION['myVar']). > > > > The PUZZLE: > > If I print a character before starting the session (as we all know is > > illegal), the secured page will access $_SESSION['myVar'] with no > > problems - minus the warning messages for printing chars before > > session_start(). print_r($_SESSION) will display all of its > > content properly, but will be lost when I move to another page. > > > > > > Any suggestions? > > > > ===Sample CODE = > > > > > > ===Class_Page.php has === > > > > //this is a general class that handles the general site > > //it pretty much holds all the application's functions > > ... > > //the function AuthenticateUser() is used to valid a user's access. > > //if $_SESSION['userid'] exist, then the user is logged in. > > //otherwise, the user is prompted to login > > > > class Page { > > > >var $INFO; > > > >function Page(){ > > session_start(); > > ... > >} > > > >. > >. > >. > > > >function AuthenticateUser(){ > > if(isset($_SESSION['userid']) and !empty($_SESSION['userid']) ...){ > >//user is already logged in > > > >$this->INFO = $this->getUserInfo($_SESSION['clientid']); > > > >return True; > > }else{ > > $usr = $_POST['username']; //simplified code. no security. > > $pas = $_POST['password']; > > > > $qry = mysql_query('select * from users where usr=$usr and > > pass=$as ...) or die($this->ErrorDisplay); > > > > if(mysql_num_rows($qry)>0){ > > $validUser = mysql_fetch_object($qry); > > > > session_start(); > > $_SESSION['userid'] = $validUser->uid; > > $_SESSION['username'] =$validUser->uname; > > ... > > return True; > >}else{ > > $_SESSION=Array(); > > session_destroy(); > > $this->ErrorDisplay('invaliduser'); > > return False; > > > > } > > > > } > > > > > > } //end of class > > > > > > > > > > // Privatepage.php > > > > include(class_Page.php); > > > > $page = new Page; > > > > //access control > > > > if($page->AuthenticateUser()=='True'){//a valid user > > > >//display content > > > >print_r($_SESSION) //test session contents > > > > }else{ > >$page->ErrorDisplay('noaccess'); > > } > > > > > > > > > > > > The above code fails when runned as-is. However, if I print any character > > before testing the sesion values, it will run. > > > > Like: > > function AuthenticateUser(){ > > > >//normal: DOES NOT WORK > >session_start(); > >print_r($_SESSION);//prints empty array > > > >//weird: WORKS with HEADER() warnings... > >echo ' '; > >session_start(); > >print_r($_SESSION); //prints SESSION content > > > >... > > > > } > > > > > > > > > > > > > > =P e p i e D e s i g n s > > www.pepiedesigns.com > > Providing Solutions That Increase Productivity > > > > Web Developement. Database. Hosting. Multimedia. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SESSION Not behaving II: permission denied(13)
Yep. It's me again. 96 hours into the battle, and SESSIONS are still winning. I've written my login script and is now getting the following error. Please advise. Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 This is from a secure server connection to the following server (environment): PHP 4.2.3,Linux, MySQL 3.23x, Apache 1.3x The above error came from the following code: === page 1: class_page.php === ini_set("session.cookie_secure","On"); ini_set("session.cache_limiter","private"); ini_set("session.cache_expire",5); session_cache_limiter('private'); session_cache_expire (5); session_start(); class page{ . . . function authenticate(){ session_start(); if(is_array($_SESSION['AUTH'])){ echo 'user is logged in'; return True; }else{ //mysql code to verify username/password here... if(user/pass match) { $_SESSION['AUTH'] = array( userid=>1, username=>demo, access=>True ); }else{ $_SESSION=array(); session_destroy(); return False; } } } //end of class_page.php PAGE_2.php === include(class_page.php); $page=new page; if($page->Authenticate()) {//display the above error ...proceed with the rest of the page... }else{ ...display error code... } //end page two =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sorting
Greetings, // code snips starts "; echo $second, ""; echo $third, ""; ?> / code snips ends browser output starts/ blue large 18 /// browser output ends /// I can't uderstand why the number 18 is stored in the $third rather than $first. I tried to change the 18 to "18", that is, change it from a decimal number to a string and by that way, "18" is stored in the $first, which is what I expected. But why doesn't 18 work? My understanding is that the compiler checks the ascii set when it deals with sorting. So, why the number 18 is *greater* than string "blue" and "large" in the ascii? cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Login system
[EMAIL PROTECTED] wrote: Okay, here is what i want: [snip!] Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html http://www.devarticles.com/art/1/639 http://www.zend.com/zend/tut/authentication.php I will reserve my comment about what an dingleberry Bas is, and would just like to add that link in vain hopes (*chuckle*) that Bas is actually interested in doing some work. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP SESSSION Not Behaving
And did you try a simple example that demonstrates this problem? [-^-!-%- wrote: Yep. Tried it with IE / NS / and Mozilla Firebird. Same problem. =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Sat, 18 Oct 2003, Marek Kilimajer wrote: Did you try it with another browser? Make some really simple example and see if this is still happening. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using two XSLT stylesheets
I'm working on a read only database. I have the data encoded as XML and am writing the queries using XSLT stylesheets. The only way I can find (being, of course, restricted to XSLT 1.0 on PHP) of executing the required queries requires two stylesheets. The generates a result tree which needs to be proceesed by the second. But I can't find a way of doing this. I've tried: xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', --> 'results.xml', NULL, $params); $data = xslt_process($xh, 'results.xml', --> 'simple-search-display-results.xsl', NULL, NULL, NULL); and: $results = xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', --> NULL, NULL, $params); $data = xslt_process($xh, $results, 'simple-search-display-results.xsl', --> NULL, NULL, NULL); neither of which work at all. Any ideas? Cheers, rich. -- UEA/MUS::Record Library http://www.cursus.uea.ac.uk/cdlib/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSION Not behaving II: permission denied(13)
[-^-!-%- wrote: Yep. It's me again. 96 hours into the battle, and SESSIONS are still winning. I've written my login script and is now getting the following error. Please advise. Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 First thing, make sure /tmp exists. If it does, make sure that the apache user has permissions to write to it. You can modify its permissions so that the apache user and/or group can write to /tmp; or you can chmod it to 777 (which could lead to other security issues). This should get rid of your warnings. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSION Not behaving II: permission denied(13)
On Sat, Oct 18, 2003 at 03:44:31PM +0300, Burhan Khalid wrote: > [-^-!-%- wrote: > >Yep. It's me again. 96 hours into the battle, and SESSIONS are still > >winning. > > > >I've written my login script and is now getting the following error. > >Please advise. > > > >Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: > >Permission denied (13) in Unknown on line 0 > > > >Warning: Failed to write session data (files). Please verify that the > >current setting of session.save_path is correct (/tmp) in Unknown on line > >0 > > First thing, make sure /tmp exists. > If it does, make sure that the apache user has permissions to write to > it. You can modify its permissions so that the apache user and/or group > can write to /tmp; or you can chmod it to 777 (which could lead to other > security issues). > > This should get rid of your warnings. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > The standard permissions for /tmp are 1777. This allows any user to write to tmp, but only the user who created a specific file (eg, the session file as apache) can delete the file. Further, sesssions are created with a very restrictive permission set, so that ony the apache user and root will be able to read the data. Bottom line: make sure that /tmp exists and that its permissions are 1777. (as root, chmod 1777 /tmp) -- Jim Kaufman mailto:[EMAIL PROTECTED] Linux Evangelistcell: 612-481-9778 public key 0x6D802619 fax: 952-937-9832 http://www.linuxforbusiness.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Filemanager v1.0
> This John H guy sounds like a dick. Someone should boot him. He can't help it. After all, he is military... Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "Ryan A" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, 17 October, 2003 15:49 Subject: Re: [PHP] Filemanager v1.0 From: "Ryan A" <[EMAIL PROTECTED]> > and another thing, don't ask John H for help (or sarcastic comments)... > that too is reserved just for me. > You have been warned This John H guy sounds like a dick. Someone should boot him. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Loop Question
Hi! I am trying to loop through two different database calls with two for statements, one embedded in the other. for ($i; $i < $codeset_rows; $i++) { $codeset_row = $this->database->fetch_array($codeset_query); $codesys_query = $this->database->query("select codesys.codesys_index, codesys.code_name, codesys.code_value from codesys where codesys.codeset_ID = ".$codeset_row['codeset_ID']); $codesys_rows = $this->database->num_rows($codesys_query); for ($j; $j < $codesys_rows; $j++) { echo "Blah, blah, blah"; } } The current set up means that the first loop should cycle twice, and the second loop should cycle 6 times the first time and 2 times the second. So here is the question: $j doesn't unset when the loop ends. So when it comes around the second time, $j still = 6 and since $codesys_rows = 2, it skips the loop. I can fix this by putting an if ($j) {unset($j);} right before the second loop. However, it seems that there should be some more efficient way to do this. Ideas? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Loop Question
See changes below. Cheers, Rob. On Sat, 2003-10-18 at 14:57, Jed R. Brubaker wrote: > Hi! I am trying to loop through two different database calls with two for > statements, one embedded in the other. > >for ($i; $i < $codeset_rows; $i++) for ($i = 0; $i < $codeset_rows; $i++) > { > $codeset_row = $this->database->fetch_array($codeset_query); > $codesys_query = $this->database->query("select > codesys.codesys_index, > > codesys.code_name, > > codesys.code_value > > from codesys > > where codesys.codeset_ID = ".$codeset_row['codeset_ID']); > > $codesys_rows = $this->database->num_rows($codesys_query); > > for ($j; $j < $codesys_rows; $j++) for ($j = 0; $j < $codesys_rows; $j++) > { > echo "Blah, blah, blah"; > } > > } > > The current set up means that the first loop should cycle twice, and the > second loop should cycle 6 times the first time and 2 times the second. > > So here is the question: $j doesn't unset when the loop ends. So when it > comes around the second time, $j still = 6 and since $codesys_rows = 2, it > skips the loop. I can fix this by putting an > if ($j) > {unset($j);} > right before the second loop. However, it seems that there should be some > more efficient way to do this. > Ideas? > > Thanks! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Loop Question
Well duh. Thanks so much! "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > See changes below. > > Cheers, > Rob. > > On Sat, 2003-10-18 at 14:57, Jed R. Brubaker wrote: > > Hi! I am trying to loop through two different database calls with two for > > statements, one embedded in the other. > > > >for ($i; $i < $codeset_rows; $i++) > > for ($i = 0; $i < $codeset_rows; $i++) > > > { > > $codeset_row = $this->database->fetch_array($codeset_query); > > $codesys_query = $this->database->query("select > > codesys.codesys_index, > > > > codesys.code_name, > > > > codesys.code_value > > > > from codesys > > > > where codesys.codeset_ID = ".$codeset_row['codeset_ID']); > > > > $codesys_rows = $this->database->num_rows($codesys_query); > > > > for ($j; $j < $codesys_rows; $j++) > > for ($j = 0; $j < $codesys_rows; $j++) > > > { > > echo "Blah, blah, blah"; > > } > > > > } > > > > The current set up means that the first loop should cycle twice, and the > > second loop should cycle 6 times the first time and 2 times the second. > > > > So here is the question: $j doesn't unset when the loop ends. So when it > > comes around the second time, $j still = 6 and since $codesys_rows = 2, it > > skips the loop. I can fix this by putting an > > if ($j) > > {unset($j);} > > right before the second loop. However, it seems that there should be some > > more efficient way to do this. > > Ideas? > > > > Thanks! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > .. > | InterJinn Application Framework - http://www.interjinn.com | > :: > | An application and templating framework for PHP. Boasting | > | a powerful, scalable system for accessing system services | > | such as forms, properties, sessions, and caches. InterJinn | > | also provides an extremely flexible architecture for | > | creating re-usable components quickly and easily. | > `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using two XSLT stylesheets
> xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', > --> 'results.xml', NULL, $params); > $data = xslt_process($xh, 'results.xml', > --> 'simple-search-display-results.xsl', NULL, NULL, NULL); What happens when you do the above...what is the var_dump of data? -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dealing with session expiry
I have some pages that use sessions to call out certain elements in the layouts. It allows user to decide how should their pages look for the duration of their visit. Unfortunately whenever a user leaves their browser idle past the expity time of the session on their next click pages fall apart and all styles etc. are lost. I understand that I can detect or at least anticipate expiry of the session and renew it before it does. The question is how? Thanks in advance R> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dealing with session expiry
Hello, Why are you saving such information into a session? Sessions are for temporary information. Use cookies or database, if you are doing what you are saying :) There should be no harm. Bye. > I have some pages that use sessions to call out certain elements in the > layouts. It allows user to decide how should their pages look for the > duration of their visit. > > Unfortunately whenever a user leaves their browser idle past the expity time > of the session on their next click pages fall apart and all styles etc. are > lost. > > I understand that I can detect or at least anticipate expiry of the session > and renew it before it does. The question is how? > > Thanks in advance > > R> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSION Not behaving II: permission denied(13)
That would be one solution, but I am on a shared hosting server. I cannot change the folder permissions. I've asked tech support to look into this. Does anyone know where I can get a class that will save the session vars to mysql? =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Sat, 18 Oct 2003, Burhan Khalid wrote: > [-^-!-%- wrote: > > Yep. It's me again. 96 hours into the battle, and SESSIONS are still > > winning. > > > > I've written my login script and is now getting the following error. > > Please advise. > > > > Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: > > Permission denied (13) in Unknown on line 0 > > > > Warning: Failed to write session data (files). Please verify that the > > current setting of session.save_path is correct (/tmp) in Unknown on line > > 0 > > First thing, make sure /tmp exists. > If it does, make sure that the apache user has permissions to write to > it. You can modify its permissions so that the apache user and/or group > can write to /tmp; or you can chmod it to 777 (which could lead to other > security issues). > > This should get rid of your warnings. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSION Not behaving II: permission denied(13)
> > > That would be one solution, but I am on a shared hosting server. I cannot > change the folder permissions. > > I've asked tech support to look into this. > > Does anyone know where I can get a class that will save the session vars > to mysql? I ended up modifying the example of a postgres handler to work in mysql. I haven't validated it for heavy usage though, nor whether the garbage collection works properly. More than willing to share if you want it... oh, and it isn't a class. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] SESSION Not behaving II: permission denied(13)
Look at on_session_save_handler in the manual, I believe there is an example there on how to do this. If not google it, many examples of this exist... So many that I don't think it's worth spamming this list with my own examples. -Javier -Original Message- From: [-^-!-%- [mailto:[EMAIL PROTECTED] Sent: Saturday, October 18, 2003 2:35 PM To: Burhan Khalid Cc: [EMAIL PROTECTED] Subject: Re: [PHP] SESSION Not behaving II: permission denied(13) That would be one solution, but I am on a shared hosting server. I cannot change the folder permissions. I've asked tech support to look into this. Does anyone know where I can get a class that will save the session vars to mysql? =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Sat, 18 Oct 2003, Burhan Khalid wrote: > [-^-!-%- wrote: > > Yep. It's me again. 96 hours into the battle, and SESSIONS are still > > winning. > > > > I've written my login script and is now getting the following error. > > Please advise. > > > > Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) > > failed: Permission denied (13) in Unknown on line 0 > > > > Warning: Failed to write session data (files). Please verify that > > the current setting of session.save_path is correct (/tmp) in > > Unknown on line 0 > > First thing, make sure /tmp exists. > If it does, make sure that the apache user has permissions to write to > it. You can modify its permissions so that the apache user and/or > group can write to /tmp; or you can chmod it to 777 (which could lead > to other security issues). > > This should get rid of your warnings. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] SESSION Not behaving II: permission denied(13)
Err, make that session_set_save_handler :) -Original Message- From: Javier Muniz [mailto:[EMAIL PROTECTED] Sent: Saturday, October 18, 2003 4:27 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] SESSION Not behaving II: permission denied(13) Look at on_session_save_handler in the manual, I believe there is an example there on how to do this. If not google it, many examples of this exist... So many that I don't think it's worth spamming this list with my own examples. -Javier -Original Message- From: [-^-!-%- [mailto:[EMAIL PROTECTED] Sent: Saturday, October 18, 2003 2:35 PM To: Burhan Khalid Cc: [EMAIL PROTECTED] Subject: Re: [PHP] SESSION Not behaving II: permission denied(13) That would be one solution, but I am on a shared hosting server. I cannot change the folder permissions. I've asked tech support to look into this. Does anyone know where I can get a class that will save the session vars to mysql? =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Sat, 18 Oct 2003, Burhan Khalid wrote: > [-^-!-%- wrote: > > Yep. It's me again. 96 hours into the battle, and SESSIONS are still > > winning. > > > > I've written my login script and is now getting the following error. > > Please advise. > > > > Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) > > failed: Permission denied (13) in Unknown on line 0 > > > > Warning: Failed to write session data (files). Please verify that > > the current setting of session.save_path is correct (/tmp) in > > Unknown on line 0 > > First thing, make sure /tmp exists. > If it does, make sure that the apache user has permissions to write to > it. You can modify its permissions so that the apache user and/or > group can write to /tmp; or you can chmod it to 777 (which could lead > to other security issues). > > This should get rid of your warnings. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] best way to use session vars?
* Thus wrote David T-G ([EMAIL PROTECTED]): > Hi, all -- > > Well, now that I have to change my code around, I suppose I should learn > the best way, if there is one in particular, to manage sessions. > > Should I use $_SESSION for everything or should I use session_start and > session_register and friends instead? Is there a clear win with either > one? $_SESSION is the proper way to do it (with globals off), you will still need to call session_start() on each page. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using two XSLT stylesheets
Ray Hunter wrote: > >> xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', >> --> 'results.xml', NULL, $params); >> $data = xslt_process($xh, 'results.xml', >> --> 'simple-search-display-results.xsl', NULL, NULL, NULL); > > > What happens when you do the above...what is the var_dump of data? > > -- > BigDog I get this: Warning: Sablotron error on line 1001: cannot open file '/var/www/html/cdlib/search/results.xml' in /var/www/html/cdlib/search/simple-search.php on line 24 string(591) " " line 24 is the first call to xslt_process() above. But I'd never tried using var_dump($data) before. It appears the the second call is working fine: the file 'results.xml' exists already becasue I've been using a command line XSL processor to test the stylesheets. The second call to xslt_process() appears to have read and processed the data which was in that file correctly because var_dump() has inserted the result into the HTML following the error message. -- Richard UEA/MUS::Record Library -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 4.3.1 for Debian Woody?
Does anyone have, or know where to get, a Debian Woody package for PHP 4.3.1? I've checked apt-get.org, but nobody seems to have that version. Thanks in advance. -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [+1 662-518-1636] E-mail[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 19 Oct 2003 01:31:31 -0000 Issue 2363
php-general Digest 19 Oct 2003 01:31:31 - Issue 2363 Topics (messages 166616 through 166630): Re: SESSION Not behaving II: permission denied(13) 166616 by: James Kaufman 166624 by: [-^-!-%- 166625 by: Duncan Hill 166626 by: Javier Muniz 166627 by: Javier Muniz Re: Filemanager v1.0 166617 by: Becoming Digital Loop Question 166618 by: Jed R. Brubaker 166619 by: Robert Cummings 166620 by: Jed R. Brubaker Re: Using two XSLT stylesheets 166621 by: Ray Hunter 166629 by: rich Dealing with session expiry 166622 by: Radek Zajkowski 166623 by: Zilvinas Re: best way to use session vars? 166628 by: Curt Zirzow 4.3.1 for Debian Woody? 166630 by: Joel Konkle-Parker Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- On Sat, Oct 18, 2003 at 03:44:31PM +0300, Burhan Khalid wrote: > [-^-!-%- wrote: > >Yep. It's me again. 96 hours into the battle, and SESSIONS are still > >winning. > > > >I've written my login script and is now getting the following error. > >Please advise. > > > >Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: > >Permission denied (13) in Unknown on line 0 > > > >Warning: Failed to write session data (files). Please verify that the > >current setting of session.save_path is correct (/tmp) in Unknown on line > >0 > > First thing, make sure /tmp exists. > If it does, make sure that the apache user has permissions to write to > it. You can modify its permissions so that the apache user and/or group > can write to /tmp; or you can chmod it to 777 (which could lead to other > security issues). > > This should get rid of your warnings. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > The standard permissions for /tmp are 1777. This allows any user to write to tmp, but only the user who created a specific file (eg, the session file as apache) can delete the file. Further, sesssions are created with a very restrictive permission set, so that ony the apache user and root will be able to read the data. Bottom line: make sure that /tmp exists and that its permissions are 1777. (as root, chmod 1777 /tmp) -- Jim Kaufman mailto:[EMAIL PROTECTED] Linux Evangelistcell: 612-481-9778 public key 0x6D802619 fax: 952-937-9832 http://www.linuxforbusiness.net --- End Message --- --- Begin Message --- That would be one solution, but I am on a shared hosting server. I cannot change the folder permissions. I've asked tech support to look into this. Does anyone know where I can get a class that will save the session vars to mysql? =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Sat, 18 Oct 2003, Burhan Khalid wrote: > [-^-!-%- wrote: > > Yep. It's me again. 96 hours into the battle, and SESSIONS are still > > winning. > > > > I've written my login script and is now getting the following error. > > Please advise. > > > > Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: > > Permission denied (13) in Unknown on line 0 > > > > Warning: Failed to write session data (files). Please verify that the > > current setting of session.save_path is correct (/tmp) in Unknown on line > > 0 > > First thing, make sure /tmp exists. > If it does, make sure that the apache user has permissions to write to > it. You can modify its permissions so that the apache user and/or group > can write to /tmp; or you can chmod it to 777 (which could lead to other > security issues). > > This should get rid of your warnings. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > --- End Message --- --- Begin Message --- > > > That would be one solution, but I am on a shared hosting server. I cannot > change the folder permissions. > > I've asked tech support to look into this. > > Does anyone know where I can get a class that will save the session vars > to mysql? I ended up modifying the example of a postgres handler to work in mysql. I haven't validated it for heavy usage though, nor whether the garbage collection works properly. More than willing to share if you want it... oh, and it isn't a class. --- End Message --- --- Begin Message --- Look at on_session_save_handler in the manual, I believe there is an example there on how to do this. If not google it, many examples of this exist... So many that I don't think it's worth spamming this list with my own examples. -Javier -Original Message- From: [-^-!-%- [mailto:[EMAIL PROTECTED] Sent: Saturday, October 18, 2003 2:35 PM To: Burhan Khalid Cc: [EMAIL PROTECTED] S
[PHP] apache httpd + PHP authentication
Hello, httpd v1.3.27, php v4.3.0. I have a web page I wish to restrict access. I prefer to use the standard apache httpd authentication with .htaccess and password file. This method does not seem to work with PHP. A "parser" is called every time a page is accessed. If no page is defined, the home page is loaded. Subsequent pages are linked with URLs like "http://mysite.com/?page=nextpage.php";. In the parser I define a "base_dir" variable that allows access to a common set of code files regardless of where the page file is. The complete parser is: require('./php/lib/base-dir.inc');// Assigns $base_dir $page = $_REQUEST['page']; if ("" == $page) $page = "main-index.php"; include($base_dir . $page); So the restricted page is in a subdirectory with a .htaccess file to indicate that a name/password is required. This is ignored, presumably because the file is include()'d. I have looked at the authentication info in the docs. I have to do all the work of verifying the name/password. I do not wish to do so since an satisfactory method already exists. Is there a way to use a parser as above and still have httpd recognize the need for a name/password? -- jimoe at sohnen-moe dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache httpd + PHP authentication
--- "news.php.net" <[EMAIL PROTECTED]> wrote: > I have a web page I wish to restrict access. I prefer to use the > standard apache httpd authentication with .htaccess and password > file. This method does not seem to work with PHP. This method is independent of the type of resource being used, so it works fine with PHP. > A "parser" is called every time a page is accessed. If no page is > defined, the home page is loaded. Subsequent pages are linked with > URLs like "http://mysite.com/?page=nextpage.php";. In the parser I > define a "base_dir" variable that allows access to a common set of > code files regardless of where the page file is. Please read this: http://dictionary.reference.com/search?q=parser I think I understand what you mean, but an improper use of terms can cause confusion. > So the restricted page is in a subdirectory with a .htaccess file to > indicate that a name/password is required. This is ignored, > presumably because the file is include()'d. That's right. The .htaccess is for Apache. If this resource is served directly (e.g., the URL references it instead of your "parser"), Apache will require the proper username/password. > Is there a way to use a parser as above and still have httpd > recognize the need for a name/password? I'm sure there are many ways. You could check for the .htaccess yourself before including the file, and require HTTP authentication where appropriate. What you can't do, however, is presume that you can write a script that handles requests instead of Apache and magically have your code do everything Apache does. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changing permissions
Ok, I have a installer that only works if the directory that's being installed to has public writing permissions. I tried chmod() on the directory, but I get a error. How can I make it so my installer can write in a directory with the incorrect writing permissions? Thanks! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] webppliance & include - aaargh!
Anyone know how to get include to work with a webppliance web site? If (web-server:document-root = x){ switch(include-dir){ case 'below document-root: break; case 'above document-root': break; default: } } ini_set('include_path') works except for directories above the virtual server document rooot of course keeping .php includes with sensitive data in a directory inaccesible to browsers is a best-practice issue - it doesn't seem possible within a webpplicance controlled virtual web server environment (unless someone has figured out how) Pan ' peeve:clients who buy web hosting accounts on MS2000/IIS5.0 instead of a nice *nix server' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] SESSION Not behaving II: permission denied(13)
Hi, Sunday, October 19, 2003, 7:35:23 AM, you wrote: > That would be one solution, but I am on a shared hosting server. I cannot > change the folder permissions. > I've asked tech support to look into this. > Does anyone know where I can get a class that will save the session vars > to mysql? Here is a class I wrote a while back which will give you a good start. The only weird thing I did was start a new session if read failed rather than wait to check when writing the session data but it worked fine. con = $con; return true; else: return false; endif; } function close() { //global $session_ref; //$con = $session_ref[0]->getcon(); //@mysql_close($con); return true; } function read($key) { global $session_ref; $con = $session_ref[0]->con; $sessionname = $session_ref[0]->sessionname; $lifetime = $session_ref[0]->sessionlife; $host = ereg_replace("www.","",$_SERVER["HTTP_HOST"]); $Username = substr($host,0,strpos($host,".")); //format is username.domain.com $session_ref[0]->setuser($host,$Username); $val = ""; $sessiondata = ""; $now = time(); $insert = "Yes"; $result = @mysql_query("SELECT * FROM phpsessions WHERE sessionid = '$key'",$con); if($row = @mysql_fetch_array($result)): $sesstime = $row["sesstime"]; $user = $row["username"]; $diff = $now - $sesstime; if($Username != $user): $result = @mysql_query("DELETE FROM phpsessions WHERE sessionid = '$key'",$con); $session_ref[0]->message = "Domain has changed, please login again."; else: if($diff < $lifetime): $sessiondata = $row["sessiondata"]; $result = @mysql_query("UPDATE phpsessions SET sesstime = '$now' WHERE sessionid = '$key'",$con); $insert = "No"; else: $result = @mysql_query("DELETE FROM phpsessions WHERE sessionid = '$key'",$con); $session_ref[0]->message .= "Session has timed out, please login again."; endif; endif; endif; if($insert == "Yes"): $authid = md5(uniqid (rand())); $result = mysql_query("INSERT INTO phpsessions (sessionid,sessionsize,sessiondata,sessionname,sesstime,username,authid) VALUES ('$key',1,'$val','$sessionname','$now','$Username','$authid')",$con); endif; return $sessiondata; } function write($key, $val) { global $session_ref; $con = $session_ref[0]->con; $val = ereg_replace("'","''",$val); $result = @mysql_query("UPDATE phpsessions SET sessiondata = '$val' WHERE sessionid = '$key'",$con); return true; } function destroy($key) { global $session_ref; $con = $session_ref[0]->con; $result = @mysql_query("DELETE FROM phpsessions WHERE sessionid = '$key'",$con); $session_ref[0]->ses = 0; $session_ref[0]->sessionid = ""; $session_ref[0]->authid = ""; return true; } function gc($maxlifetime) { global $session_ref; $con = $session_ref[0]->con; $sessionname = $session_ref[0]->sessionname;// this sesions name $min = time() - $session_ref[0]->sessionlife; //this session name lifetime $amin = time() - $session_ref[0]->maxgclife; //all sessions max lifetime $result = mysql_query("DELETE FROM phpsessions WHERE (sessionname = '$sessionname' AND sesstime < $min) OR sesstime < $amin",$con);
[PHP] Choosing a CMS?
I'm looking for an open source PHP/MySQL CMS that I can use as the backend to my website. My site consists of multiple quasi-independent sections, each with its own subdomain, that should be able to function as seperate sites. The range in style from blogs to articles to file libraries, but all share a consistent global menu system, footer text, 3-column layout, et c. I've looked at PHPNuke, just because that's the only thing that jumps to mind, but I want to make sure I'm not missing anything before I dive in with it. What are your suggestions? Is there anything better than PHPNuke for this type of thing out there? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [+1 662-518-1636] E-mail[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Yes!!! BTML v1.0 is here!!!
* Thus wrote Comex ([EMAIL PROTECTED]): > >> Bas: > >>> That tags? It should not be used anyway... > >> what??? > > > > > Yes, i think that you want to know the structure of the BTML-file: > > > > > > > > > > Title of the page > > > > > > Here any valid HTML-MARKUP > > > > > > > > Path to a image > > > > > > This is the structure of a BTML file. > > I like the idea, and make it more usable. All this is is a xml, yet it breaks all xml rules, ironic as it sounds. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RESOLVED, sort of -- Re: [PHP] where is my session data on my new server?
* Thus wrote David T-G ([EMAIL PROTECTED]): > Hi, all -- > > It appears that the change from 4.2.3 to 4.3.4rc1 was not something that > got broken but instead something that got fixed. Oh, yay. But what do I > do now? Hmmm... I'm catching up in emails a little late but using $_SESSION[] access would resovle this issue. > > The code > >session_name('name') ; > session_start ; hmm... doesn't session_start requrire the ()? ie : session_start(); > Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] windows user_name
* Thus wrote Burhan Khalid ([EMAIL PROTECTED]): > Becoming Digital wrote: > >I don't believe so. It would depend entirely on the browser settings, > >too, so even if it's possible, I certainly wouldn't build an app around > >that idea. > > > > Actually, it is possible, but only under some very restrictive settings. > > For example, php has to be running as a ISAPI module under IIS, and the > security settings should be NTLM, and the user is logged on to the same > domain as the IIS server, then $_SERVER['AUTH_USER'] should be the > logged in user name. > > However, to design an app around that isn't the best way to do it. Well put! Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What's a good regex to validate an email address? ;)
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > From: "Jeremy Russell" <[EMAIL PROTECTED]> > > > > Will get nearly everything that resembles an email address. > > Holy crap, batman... did you even read the original message? lol.. I'm more curious as how this topic got into this thread. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Filemanager v1.0
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > From: "Ryan A" <[EMAIL PROTECTED]> > > > and another thing, don't ask John H for help (or sarcastic comments)... > > that too is reserved just for me. > > You have been warned > > This John H guy sounds like a dick. Someone should boot him. /kick john h hmm... it seems your unbootable :) Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Darken and lighten color?
I'm looking for a nice alithogram to darken and lighten a color by a certain ammount. I know this isn't strictly a PHP question, but I'm doing it in PHP and there isn't anywhere better to ask. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Darken and lighten color?
--- Leif K-Brooks <[EMAIL PROTECTED]> wrote: > I'm looking for a nice alithogram to darken and lighten a color by a > certain ammount. Maybe you mean algorithm? :-) To lighten, increase RGB values by 10% each. To darken, decrease RGB values by 10% each. Maybe replace 10 with whatever the "certain amount" is. Is that all you're wanting to do? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Darken and lighten color?
Chris Shiflett wrote: --- Leif K-Brooks <[EMAIL PROTECTED]> wrote: I'm looking for a nice alithogram to darken and lighten a color by a certain ammount. Maybe you mean algorithm? :-) Yep. My ability to spell decreases 5% every 15 minutes after 12AM. To lighten, increase RGB values by 10% each. To darken, decrease RGB values by 10% each. Maybe replace 10 with whatever the "certain amount" is. But what do I do with something like 40,40,255? What happens to the 255? Is that all you're wanting to do? Yup. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP/MySQL/Server not working
Hey, Also the webhost only allows us database direct database connection using phpMyadmin, I did notice that on the table that stores the info, it keep getting an error after someone is posting the form. The error says something about Overhead: 275 bytes, Is this just an MySQL limitation that is set by the webhost ? and this overhead you think that would keep the info from being entered into the database. To get the error to go away I have to optimize the table. ConbuD "Conbud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, just a quick question, I have a form that users can fill out to join a > certain group, we can then view that info from an admin page that requires > logging in. When a user fills out the form I get an email letting me know > that the form was submitted with the users info as well. Here recently, I've > been getting that info but their info isn't being saved into the database > for somereason, anyone have any idea why ? I have filled out the form at > least 15-25 times using different info and everyone of them worked for me. I > even filled out the form using different special characters and still with > no problems, I am using stripslashes on the form data, but I don't think > that could keep the info from being saved to the database, it only does this > periodically. Could this be due to a slow server ? or is there some sort of > special character that could conflict with my PHP or with the MySQL syntax ? > I just have no clue now. Any thoughts are appreciated. > > Thanks > ConbuD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Darken and lighten color?
> But what do I do with something like 40,40,255? What happens to the 255? You just have to leave it at 255. That's what Illustrator does. Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Sunday, 19 October, 2003 01:18 Subject: Re: [PHP] Darken and lighten color? Chris Shiflett wrote: >--- Leif K-Brooks <[EMAIL PROTECTED]> wrote: > > >>I'm looking for a nice alithogram to darken and lighten a color by a >>certain ammount. >> >> > >Maybe you mean algorithm? :-) > > Yep. My ability to spell decreases 5% every 15 minutes after 12AM. >To lighten, increase RGB values by 10% each. To darken, decrease RGB values by >10% each. Maybe replace 10 with whatever the "certain amount" is. > > But what do I do with something like 40,40,255? What happens to the 255? >Is that all you're wanting to do? > > Yup. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Darken and lighten color?
Becoming Digital wrote: You just have to leave it at 255. That's what Illustrator does. Hmm, seems to work, thanks. Note to self: try before you ask. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Choosing a CMS?
You can try a templating system like Smarty or FastTemplate, but I'm not too fond of either. I've recently begun exploring InterJinn, written by our own Robert Cummings, and I'm quite fond of how it works. You'll need to spend some time going over the documentation but I think it's worthwhile. Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Joel Konkle-Parker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, 19 October, 2003 00:16 Subject: [PHP] Choosing a CMS? I'm looking for an open source PHP/MySQL CMS that I can use as the backend to my website. My site consists of multiple quasi-independent sections, each with its own subdomain, that should be able to function as seperate sites. The range in style from blogs to articles to file libraries, but all share a consistent global menu system, footer text, 3-column layout, et c. I've looked at PHPNuke, just because that's the only thing that jumps to mind, but I want to make sure I'm not missing anything before I dive in with it. What are your suggestions? Is there anything better than PHPNuke for this type of thing out there? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [+1 662-518-1636] E-mail[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php