[PHP] Alternate way of e-mailing in PHP
I've been getting "data format errors" from Sendmail when trying to send automatic e-mails from my websites recently, and as I can't find a fix for this, I tried some code that someone sent to me which actually worked. It uses popen() and I'd like to know if this method of sending e-mail has any major drawbacks over using the PHP mail() command (which doesn't work for me anymore). Here's the code: $messg = "Here we put the content of the message."; $sender = "[EMAIL PROTECTED]"; $sendmail = "/usr/sbin/sendmail -t -f $sender"; $body = "This is a test."; $fd = popen($sendmail, "w"); fputs($fd, "To: [EMAIL PROTECTED]"); fputs($fd, "From: \"Sender Name\" <$sender>\r\n"); fputs($fd, "Subject: Finally\r\n"); fputs($fd, "X-Mailer: Mailer Name\r\n\r\n"); fputs($fd, $body); pclose($fd); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: Security access control by ASP in a php application
--- YC Nyon <[EMAIL PROTECTED]> wrote: > I am working on a project where the main module (including the > security access/login) is developed using ASP. My module which is > in PHP has to read the security permissions set by ASP (via > cookies) to enable users to use it. > > How do I go about that? It is difficult to tell the exact details of what is being done in ASP by your description, but if it is just setting some cookies, you can read them in the $_COOKIE array in PHP. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server independent URL optimization
--- Shawn McKenzie <[EMAIL PROTECTED]> wrote: > I would like to know if there is a good server independent method > method for optimizing URLs that contain GET queries for search > engines. If there is, it would be news to me. I know of only two ways to do this: 1. ForceType and $_SERVER['PATH_INFO'] 2. mod_rewrite Both require Apache. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 5 Jan 2004 05:10:48 -0000 Issue 2512
php-general Digest 5 Jan 2004 05:10:48 - Issue 2512 Topics (messages 173707 through 173726): cache_limiter & cache_expire 173707 by: Eli Hen 173708 by: Eli Hen 173716 by: Marek Kilimajer Re: finding phpize 173709 by: Brian V Bonini PHP, Server-Side? 173710 by: Tarrant Costelloe 173711 by: Larry Brown 173712 by: Tarrant Costelloe Re: upload file size 173713 by: niclas meyer Include performance questions 173714 by: Carey Baird 173719 by: Carey Baird 173725 by: Justin French php files not looking right 173715 by: John 173717 by: Marek Kilimajer 173718 by: John Nichel Re: Piping email 173720 by: David T-G Data Format Errors using MAIL() 173721 by: Monty PHP Accelerator Support? 173722 by: mastershay 173723 by: Larry Brown Readfile, DAP and 3 questions 173724 by: Ryan A Re: Security access control by ASP in a php application 173726 by: YC Nyon 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 --- Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private:clients. - nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout? -thanks, Eli --- End Message --- --- Begin Message --- Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private:clients. - nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout? -thanks, Eli --- End Message --- --- Begin Message --- Eli Hen wrote: Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private:clients. - nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout? session_cache_expire() function sets expire on the client side. Session lifetime on the server is set by session.gc_maxlifetime setting, you can use ini_set() to change it. But you have to use your own directory to store session files, use ini_set('session.save_path', '/your/session/dir'); --- End Message --- --- Begin Message --- On Sat, 2004-01-03 at 21:59, Ryan A wrote: > Hi guys, > I am trying to install Turck MMCache on our server but have no idea about > linux...I have gone through all the steps a fellow list user (R'twick) gave > me to install this, up till > > $PHP_PREFIX/bin/phpize > > when I type that it says: no file or directory by that name > > so after searching on the web for the correct command I did this: > find / -name phpize -print > > and even that came up blank Try one of these: $ find / -name "php*" $ which phpize As root: $ updatedb;locate phpize -- BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.mit.edu == gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC GnuPG: http://gnupg.org http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC Linux Registered User #339825 at http://counter.li.org signature.asc Description: This is a digitally signed message part --- End Message --- --- Begin Message --- php-general, I was wondering if it is possible with PHP to create a snippet of code which could execute on one server but be stored of a different server? Basic premise is to sell a product written in PHP which people could include on their site but not be able to edit or see the code, maybe by using some kind of include(), url() or snippet method? In Fellowship, Tarrant --- End Message --- --- Begin Message --- You can create a soap server. I have one set up, the client side runs a function which is translated into xml sent to the other server (in my case over ssl) the other server translates to php, executes the function and returns the results. You create the actual code for the function on the server and give the client details on what the function does and what data it requires. If you build both it is very easy. The client has no other options but t
[PHP] RE: Security access control by ASP in a php application
I am working on a project where the main module (including the security access/login) is developed using ASP. My module which is in PHP has to read the security permissions set by ASP (via cookies) to enable users to use it. How do I go about that? or any other better solutions. Nyon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Include performance questions
On Monday, January 5, 2004, at 07:05 AM, Carey Baird wrote: (sorry if this message is repeated, I got an email saying it wasn't delivered) Hey, I am creating a complete PHP driven site for the first time and I am finding my files growing bigger and bigger. Each page of my site includes the main function library, which itself includes an html library. The file for the page itself contains functions that only that page requires. My question is if it is better, performance wise, to split all the functions into separate files (e.g. login_funcs.php, output_funcs.php) or if it is better to keep all functions in one file. Would there be any performance issues with including a file, which includes a file, which includes a file etc.? Would there be any performance issues with including large files? Also, I am struggling to structure my code well. I would be grateful if anyone could point me in the direction of good resources for creating php projects or creating web projects in general. I've settled on a system which works well for me. Over time, you'll find one for you. Every 'page' has this basic structure: --- [pre-html output code goes here] [unique page content goes here] --- header.inc in turn includes my function libraries, config files, and anything site-specific in terms of arrays or functions. any calculations and code (eg form validation, header() redirects, cookies, etc) that needs to be done before the HTML is output is done, then header.html.inc starts the HTML with a DOCTYPE, , and everything else on the page down to the main content div (the start of unique content). after the unique content, footer.html.inc includes any other html, closes off the body and html tags, runs any post-HTML functions, etc. in other words, each script will only have two unique areas of code or HTML... everything else is in include files, which means I can make all global changes in just a few places. this is the best separation of global and local code I have found so far (that suits me). as such, there's possibly 8-15 include() calls for each page request... i haven't noticed any performance hit, but you could easily run a test with a bunch of nested includes of simple code, versus a flat file with all the relevant code. personally, I'd prefer human productivity (logical separation of functions and includes) over saving a few ms of processor time on all but the most heavily busy sites. justin french -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Readfile, DAP and 3 questions
Hi, I have just started using PHP's file operators...and as you can guess need a little help I am using the example from the online manual: http://de3.php.net/manual/en/function.readfile.php to read a file that is in a .htaccess protected folder and pop a download box to the client. Surprisingly, after screwing around with the example code for 2 mins I got it working on IE and NN. Opera have always had one problem...instead of outputting somefile.zip it saves it as myPHPfileName.php and this is what it passes on to Download Accelerator Plus (DAP) 1. I am sure I am not the only one who noticed this...so...how did you tackle it? 2. Which is better for large files (5-8mb), readfile or fpassthru or.etc ? 3. and last question is, in this line: header( "Content-Description: File Transfert"); why do you have the "t" at the end of "Tranfer" ??? Thanks in advance. (Below is the code that I am using.) Cheers, -Ryan P.S, I know there are security issues when using readfile and fpassthru and will take some precautions later but for this example I left it open. * * * * Code * * * * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Accelerator Support?
I use the accelerator, but I don't have a lot of users. I use it to protect confidential information in the event the web server screws up and starts displaying my scripts instead of parsing them etc. It works smooth as silk for me though. I just can't tell you anything about high volume performance. Larry -Original Message- From: mastershay [mailto:[EMAIL PROTECTED] Sent: Sunday, January 04, 2004 7:05 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Accelerator Support? Hello, I have spent hours searching the web for any kind of support regarding Ioncube's PHP Accelerator. We are interested in using it in conjuction with some Cyrus servers and Squirrel Mail, but cannot seem to find any kind of support whatsoever. The number of users is planned to be in the thousands, so any kind of help would be much appreciated. Thanks. -- 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] PHP Accelerator Support?
Hello, I have spent hours searching the web for any kind of support regarding Ioncube's PHP Accelerator. We are interested in using it in conjuction with some Cyrus servers and Squirrel Mail, but cannot seem to find any kind of support whatsoever. The number of users is planned to be in the thousands, so any kind of help would be much appreciated. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Data Format Errors using MAIL()
While I found a lot of posts about this problem, I haven't been able to find a solution. So if I missed it, please forgive me, I did spend a few hours trying to find the answer. THE PROBLEM: When a user signs up on a website, an e-mail is automatically sent to them with their password. This worked fine until we upgraded our server to RedHat Linux ES 3.0 using Apache 2.0.46, PHP 4.3.2, MySQL 3.23.58, and Sendmail 8.12.10. Now what happens is that the e-mail is never sent and the following appears in our system logs for each message attempted: --- sendmail[4920]: i050MrEq004920: from=apache, size=141, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] sendmail[4920]: i050MrEq004920: [EMAIL PROTECTED], ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30141, relay=[127.0.0.1] [127.0.0.1], dsn=5.6.0, stat=Data format error sendmail[4920]: i050MrEq004920: i050MrEr004920: DSN: Data format error sendmail[4922]: i050Mr1J004922: <[EMAIL PROTECTED]>... >apache<@myserver.com. sendmail[4920]: i050MrEr004920: to=apache, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31165, relay=[127.0.0.1], dsn=5.3.0, stat=User unknown sendmail[4922]: i050Mr1J004922: from=<>, size=1165, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] sendmail[4920]: i050MrEr004920: i050MrEs004920: return to sender: User unknown sendmail[4922]: i050Mr1L004922: <[EMAIL PROTECTED]>... >postmaster<@myserver.com. sendmail[4920]: i050MrEs004920: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32189, relay=[127.0.0.1] [127.0.0.1], dsn=5.3.0, stat=User unknown sendmail[4922]: i050Mr1L004922: from=<>, size=2189, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] sendmail[4920]: i050MrEr004920: Losing ./qfi050MrEr004920: savemail panic sendmail[4920]: i050MrEr004920: SYSERR(apache): savemail: cannot save rejected email anywhere --- I have NO idea or clue where to start looking or what is causing the problem. If anyone else has had this problem and fixed it, I'd really appreciate hearing from you! Thanks - Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Piping email
Adrian -- You have started a new thread by taking an existing message and replying to it while merely changing the Subject: line. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells all recipients to which posting(s) your posting refers. A mail client uses this information to build a "thread tree" of the postings so that it is easy to see just how they relate to each other. With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread even though it is completely unrelated. Always do a fresh post when you want to start a new thread. That means that you do not select any sort of "Reply" when you start your message. You can save the list address in your address book (or equivalent) for convenience. ...and then Adrian Teasdale said... % % Is it possible to pipe email directly to PHP like it's possible to do Yes. % with perl? I need to do this using Exim which I'm also unfamiliar with % so if anyone has done this I'd appreciate knowing how! :) It's the same thing as for piping email to anything. I don't know exim from anything else, but I'd use the .forward file no matter what MTA is installed. % % Thanks % % Ade HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
[PHP] Include performance questions
(sorry if this message is repeated, I got an email saying it wasn't delivered) Hey, I am creating a complete PHP driven site for the first time and I am finding my files growing bigger and bigger. Each page of my site includes the main function library, which itself includes an html library. The file for the page itself contains functions that only that page requires. My question is if it is better, performance wise, to split all the functions into separate files (e.g. login_funcs.php, output_funcs.php) or if it is better to keep all functions in one file. Would there be any performance issues with including a file, which includes a file, which includes a file etc.? Would there be any performance issues with including large files? Also, I am struggling to structure my code well. I would be grateful if anyone could point me in the direction of good resources for creating php projects or creating web projects in general. Many thanks Carey --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 30/12/2003
Re: [PHP] php files not looking right
John wrote: hi, i must have downloaded my php files in binary format or something, but now, instead of readable carriage returns after each line of code, theres a 'box' and then no carriage return. so the whole file is on one line. then other files have an extra carriage return between lines. could i remove these with php and regular expressions?? if so, what should i be searching for, for the 'boxes' if not, can word or wordpad, or anything else do it. i could go through every file and delete the box and add a carriage return, but that would take ages Download something like UltraEdit. It can work with (and convert between) file formats from Mac, *nix, and Windoze. -- 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] php files not looking right
1. Use an editor that can work with unix newlines, most developer editors can. 2. Use some tool that can convert between various newlines - search the web. Command line utility todos/fromdos is one, but it might be available only on unices. John wrote: hi, i must have downloaded my php files in binary format or something, but now, instead of readable carriage returns after each line of code, theres a 'box' and then no carriage return. so the whole file is on one line. then other files have an extra carriage return between lines. could i remove these with php and regular expressions?? if so, what should i be searching for, for the 'boxes' if not, can word or wordpad, or anything else do it. i could go through every file and delete the box and add a carriage return, but that would take ages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cache_limiter & cache_expire
Eli Hen wrote: Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private:clients. - nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout? session_cache_expire() function sets expire on the client side. Session lifetime on the server is set by session.gc_maxlifetime setting, you can use ini_set() to change it. But you have to use your own directory to store session files, use ini_set('session.save_path', '/your/session/dir'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php files not looking right
hi, i must have downloaded my php files in binary format or something, but now, instead of readable carriage returns after each line of code, theres a 'box' and then no carriage return. so the whole file is on one line. then other files have an extra carriage return between lines. could i remove these with php and regular expressions?? if so, what should i be searching for, for the 'boxes' if not, can word or wordpad, or anything else do it. i could go through every file and delete the box and add a carriage return, but that would take ages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Include performance questions
Hey, I am creating a complete PHP driven site for the first time and I am finding my files growing bigger and bigger. Each page of my site includes the main function library, which itself includes an html library. The file for the page itself contains functions that only that page requires. My question is if it is better, performance wise, to split all the functions into separate files (e.g. login_funcs.php, output_funcs.php) or if it is better to keep all functions in one file. Would there be any performance issues with including a file, which includes a file, which includes a file etc.? Would there be any performance issues with including large files? Also, I am struggling to structure my code well. I would be grateful if anyone could point me in the direction of good resources for creating php projects or creating web projects in general. Many thanks Carey --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 30/12/2003
Re: [PHP] upload file size
wich kind of files are we talking about? pictures or others? "Gerard Samuel" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > On Friday 14 November 2003 12:48 pm, joe wrote: > > is there a way to check the file size > > without fully uploading the file? > > > > No there isnt, well at least not via php... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP, Server-Side?
Brilliant, just what I was looking for! Thank You Larry. In Fellowship, Tarrant -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: 04 January 2004 16:58 To: Tarrant Costelloe; PHP List Subject: RE: [PHP] PHP, Server-Side? You can create a soap server. I have one set up, the client side runs a function which is translated into xml sent to the other server (in my case over ssl) the other server translates to php, executes the function and returns the results. You create the actual code for the function on the server and give the client details on what the function does and what data it requires. If you build both it is very easy. The client has no other options but to run the function name while supplying the data. ex. server... function pullLatestReport($login,$password,$howfarback) { check db for authentication... if auth correct to run this function run do queries nec. for request return result. else return error } As you can see the server has total control over what gets executed, soap is designed to be platform independant. .net, java etc. can be used as the client. Of course that is only a added benefit since you are making both ends. I use nusoap which is all php and isn't too hard to figure out. Larry. -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED] Sent: Sunday, January 04, 2004 11:31 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP, Server-Side? php-general, I was wondering if it is possible with PHP to create a snippet of code which could execute on one server but be stored of a different server? Basic premise is to sell a product written in PHP which people could include on their site but not be able to edit or see the code, maybe by using some kind of include(), url() or snippet method? In Fellowship, Tarrant -- 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] PHP, Server-Side?
You can create a soap server. I have one set up, the client side runs a function which is translated into xml sent to the other server (in my case over ssl) the other server translates to php, executes the function and returns the results. You create the actual code for the function on the server and give the client details on what the function does and what data it requires. If you build both it is very easy. The client has no other options but to run the function name while supplying the data. ex. server... function pullLatestReport($login,$password,$howfarback) { check db for authentication... if auth correct to run this function run do queries nec. for request return result. else return error } As you can see the server has total control over what gets executed, soap is designed to be platform independant. .net, java etc. can be used as the client. Of course that is only a added benefit since you are making both ends. I use nusoap which is all php and isn't too hard to figure out. Larry. -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED] Sent: Sunday, January 04, 2004 11:31 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP, Server-Side? php-general, I was wondering if it is possible with PHP to create a snippet of code which could execute on one server but be stored of a different server? Basic premise is to sell a product written in PHP which people could include on their site but not be able to edit or see the code, maybe by using some kind of include(), url() or snippet method? In Fellowship, Tarrant -- 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] PHP, Server-Side?
php-general, I was wondering if it is possible with PHP to create a snippet of code which could execute on one server but be stored of a different server? Basic premise is to sell a product written in PHP which people could include on their site but not be able to edit or see the code, maybe by using some kind of include(), url() or snippet method? In Fellowship, Tarrant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] finding phpize
On Sat, 2004-01-03 at 21:59, Ryan A wrote: > Hi guys, > I am trying to install Turck MMCache on our server but have no idea about > linux...I have gone through all the steps a fellow list user (R'twick) gave > me to install this, up till > > $PHP_PREFIX/bin/phpize > > when I type that it says: no file or directory by that name > > so after searching on the web for the correct command I did this: > find / -name phpize -print > > and even that came up blank Try one of these: $ find / -name "php*" $ which phpize As root: $ updatedb;locate phpize -- BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.mit.edu == gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC GnuPG: http://gnupg.org http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC Linux Registered User #339825 at http://counter.li.org signature.asc Description: This is a digitally signed message part
[PHP] cache_limiter & cache_expire
Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private:clients. - nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout? -thanks, Eli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cache_limiter & cache_expire
Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private:clients. - nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout? -thanks, Eli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 4 Jan 2004 14:46:16 -0000 Issue 2511
php-general Digest 4 Jan 2004 14:46:16 - Issue 2511 Topics (messages 173691 through 173706): Re: PHP $_SESSION Expiring in IE 173691 by: Kirk Babb 173692 by: Tarrant Costelloe 173694 by: Al 173702 by: Kirk Babb How to do this? 6 lines of code...Parse error 173693 by: Ryan A 173699 by: Aidan Lister 173701 by: Ryan A Question about an array 173695 by: Vernon 173697 by: Matt Grimm Piping email 173696 by: Adrian Teasdale Re: Production Websites (error loggin) 173698 by: Aidan Lister [Newbie Guide] For the benefit of new members 173700 by: Ma Siva Kumar finding phpize 173703 by: Ryan A 173706 by: Marek Kilimajer Server independent URL optimization 173704 by: Shawn McKenzie 173705 by: Gerard Samuel 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 --- Have you tried the header(Cache-control: private) workaround for IE6? I seem to remember reading something about that on one of the web dev sites (devshed probably). Use that immediately after session_start() and see if it makes a difference. Kirk "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Are there any points in the program that redirect the user off site and > back or something with that affect that IE might be handling in a weird > way?" > > Nope > > "Do you have pages that detect the browser and feed alternate content > based on the browser?" > > Nope > > "do you always run the session_start before these checks?" > > Yes. > > The only other thing I guess it could be is the .htaccess mod_rewrite > maybe? It's just weird that Internet Explorer is the only browser that > seemingly looses the members $_SESSION where as Mozilla is not effected > whatsoever. > > In Fellowship, > Tarrant > > -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED] > Sent: 03 January 2004 16:34 > To: Tarrant Costelloe; PHP List > Subject: RE: [PHP] PHP $_SESSION Expiring in IE > > > I use sessions with IE all the time without such a problem. Are there > any points in the program that redirect the user off site and back or > something with that affect that IE might be handling in a wierd way? Do > you have pages that detect the browser and feed alternate content based > on the browser? If so do you always run the session_start before these > checks? > > -Original Message- > From: Tarrant Costelloe [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 03, 2004 10:27 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP $_SESSION Expiring in IE > > > Hello, > > I have recently launched the new Planet-Tolkien.com, one would think > that writing a message board from scratch and a dynamic weather system, > a simple session login would be the least of my problems right? Wrong. > > It would appear that for Mozilla and Opera keep a $_SESSION is not an > issue and the $_SESSION is continued until the member logs out. However > when members are using Internet Explorer browser (most versions it > seems), they can go around the site for varied amounts of time, usually > less than five minutes and then their $_SESSION will expire!!?? > > I cannot for the life of me figure out why a server side $_SESSION would > expire on IE but not for MOZ or Opera but it is, and I need to figure > out why and how can I fix this. > > REF. All login information is saved as such: > > session_save_path("$path/sessions"); > session_start(); $_SESSION['session_memberID']=$session_memberID; > $_SESSION['session_username']=$session_username; > $_SESSION['session_groupID']=$membergroup; > > In Fellowship, > Tarrant > > -- > 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 --- End Message --- --- Begin Message --- Doesn't seem to have solved the problem... My session include file at the top of all documents looks like: session_save_path("$some_path/sessions"); ini_set('session.use_cookies', 1); ini_set('session.gc_probability', 1); ini_set('session.gc_maxlifetime', 60 * 60); ini_set('session.auto_start', '1'); session_start(); header("Cache-control: private"); Here is a link to my PHP configuration: http://www.planet-tolkien.com/test.php In Fellowship, Tarrant -Original Message- From: Kirk Babb [mailto:[EMAIL PROTECTED] Sent: 03 January 2004 21:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP $_SESSION Expiring in IE Have you tried the header(Cache-control: private) workaround for IE6? I seem to remember reading something about that on one of the web dev sites (devshed probably). Use that immediately after
Re: [PHP] finding phpize
Install php*-devel package for your distribution. I'm sure there is a x-window application in your distribution that will help you in the future, or use rpmfind.net to search for the filename you are missing. Ryan A wrote: Hi guys, I am trying to install Turck MMCache on our server but have no idea about linux...I have gone through all the steps a fellow list user (R'twick) gave me to install this, up till $PHP_PREFIX/bin/phpize when I type that it says: no file or directory by that name so after searching on the web for the correct command I did this: find / -name phpize -print and even that came up blank My questions are: what the heck is that file and does this system HAVE to have it? Can I complile MMCache into php without it? and lastlywhat to do? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server independent URL optimization
On Saturday 03 January 2004 10:37 pm, Shawn McKenzie wrote: > I searched the archives and Google but couldn't find a solution. > > I would like to know if there is a good server independent method method > for optimizing URLs that contain GET queries for search engines. Server > URL rewriting (i.e. mod_rewrite, etc...) is not an option unless it is > compatible with ALL http servers. I would like to write a portable PHP > script, not a PHP/Apache script or PHP/IIS script. > > Any way that is good for search engines, especially replacing ? and & with > / would be great. > > I know that most probably use Apache but I have "heard" tales of > multi-platform ways to do this, but have never "seen" the solution. > I haven't heard of one for IIS, but keep me informed if you or anyone knows of a cross platform way... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php