[PHP] PHP sessions possibly eating up inodes
PHP List, Recently, my web hosting server has been maxing out it's alloted hard drive space. It turns out that there are no single large files, but that I have been maxing out my inode usage. Not being a Unix expert, I have a limited understanding of inodes, but it seems they are related to files and, essentially, more files being written to by active process creates more inodes. I've eliminated log files and email spools as possible causes, and now I think the next most likely cause is PHP sessions not being properly cleared. This was suggested to me by my web hosting services support staff. It seems likely because a lot of PHP code that I wrote while early in the process of learning PHP is still in use, and so it is easy to believe that I had not properly cleared sessions. Actually, I thought sessions timed out and cleared automatically, so I erroneously haven't set up any specific cache clearing protocols. Anyway, I have now begun adding the following code to my scripts: $_SESSION = array(); session_unset(); session_destroy(); But, it seems that inodes related to earlier, not properly destroyed sessions might still be lingering. Is there a way I can: 1. Verify that sessions are in fact the cause of inodes being created? 2. Destroy them? Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: running multiple updates on a single line
On Mon, 2006-07-03 at 22:47, João Cândido de Souza Neto wrote: > Could any of these lines cousing an error? > > "Ryan A" <[EMAIL PROTECTED]> escreveu na mensagem > news:[EMAIL PROTECTED] > > Hi, > > in phpmyadmin, in the SQL part where you can write a > > query if I have a double update such as this: > > > > > > it works without a problem as I am ending each sql > > statement with a simicolon, but in my scripts when I > > try to run multiple updates in a single line > > > > eg: > > $xyz="update xyz set id=1 where id=0;update xyz set > > id=3 where id=2;"; > > > > > > it does not work... any idea why? RTFM :) -- mysql_query() -- .. | 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
[PHP] Re: running multiple updates on a single line
Could any of these lines cousing an error? "Ryan A" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi, > in phpmyadmin, in the SQL part where you can write a > query if I have a double update such as this: > > > it works without a problem as I am ending each sql > statement with a simicolon, but in my scripts when I > try to run multiple updates in a single line > > eg: > $xyz="update xyz set id=1 where id=0;update xyz set > id=3 where id=2;"; > > > it does not work... any idea why? > > Thanks! > Ryan > > > -- > - The faulty interface lies between the chair and the keyboard. > - Creativity is great, but plagiarism is faster! > - Smile, everyone loves a moron. :-) > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] running multiple updates on a single line
Ryan A wrote: Hi, in phpmyadmin, in the SQL part where you can write a query if I have a double update such as this: it works without a problem as I am ending each sql statement with a simicolon, but in my scripts when I try to run multiple updates in a single line eg: $xyz="update xyz set id=1 where id=0;update xyz set id=3 where id=2;"; it does not work... any idea why? try a newline between the queries then phpmyadmin will see them as separate queries and run them properly. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] running multiple updates on a single line
Hi, in phpmyadmin, in the SQL part where you can write a query if I have a double update such as this: it works without a problem as I am ending each sql statement with a simicolon, but in my scripts when I try to run multiple updates in a single line eg: $xyz="update xyz set id=1 where id=0;update xyz set id=3 where id=2;"; it does not work... any idea why? Thanks! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing 5.1.4
Ashley M. Kirchner wrote: I'm trying to get v5.1.4 installed on my server and running into something of a mystery. I can configure and run make with no problem. When I run 'make install' however, it starts the process, installing the dynamic modules, PHP SAPI module, make the necessary changes in httpd.conf and moves on to installing the other pieces: Installing PHP CLI binary:/usr/local/bin/ Installing PHP CLI man page: /usr/share/man/man1/ Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20050922/ Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config Installing man pages: /usr/share/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/lib/php/ That's where it just dies. Dies in the sense that, it just sits there. Doesn't seem to be doing anything at all. My only recourse at that point is to hit CTRL-C. Now, looking in /usr/local/lib/php I see the following: [200] 19:41:56 <[EMAIL PROTECTED]:/usr/local/lib/php> ls -al total 20 drwxr-xr-x 4 root root 4096 Jul 2 18:59 ./ drwxr-xr-x 5 root root 4096 Jul 2 18:59 ../ drwxr-xr-x 2 root root 4096 Jul 2 18:59 build/ drwxr-xr-x 3 root root 4096 Jul 2 18:59 extensions/ [201] 19:41:58 <[EMAIL PROTECTED]:/usr/local/lib/php> Looking at running processes (related to this install) I get this: 17828 pts/2S+ 0:00 make install 25312 pts/2S+ 0:00 /bin/sh -c if test -f pear/install-pear-nozlib.phar && /usr/local/src/apache/php-5.1.4/build/shtool mkdir -p /usr/local/lib/php; then make -s install-pear-installer; else cat /usr/local/src/apache/php-5.1.4/pear/install-pear.txt; fi 25329 pts/2S+ 0:00 make -s install-pear-installer 25330 pts/2S+ 0:00 /usr/local/src/apache/php-5.1.4/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin It's just sitting there, doing nothing. What's going on here? How do I even start figuring out why it won't finish the install? The install list might be a better place to ask, they will have a much better idea of where to start working out what's going wrong. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing 5.1.4
Richard Lynch wrote: Looks to me like PEAR is trying to phone home to download more PEAR stuff to install PEAR stuff... Are you connected to the internet? Yep, 24/7. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recursing sessions?
> On Sat, July 1, 2006 5:30 pm, Mark wrote: >> If the frames do any sort of processing on the session information, as >> is >> the case with squirrelmail, the last session to exit will overwrite >> all the >> changes made by prior frames. This can corrupt session information or >> lose >> versions of information. >> >> It is a HUGE problem that I don't see ANYONE addressing. > > Ah. > > Now I know which question you are asking... > > The built-in PHP session handler handles this by LOCKING the session > for writing until it is closed and done for each request. > > The simplistic example for user-defined handling sessions in the > manual does not, in fact, address this directly. > > The User Contributed Notes, last I checked, did have some rather sarky > comments about this issue, and some suggestions for how to fix it. > > If you are using a database, for example, locking via some mechanism > in the DB is probably a viable solution. Wrapping it all in a > Transaction is probably overkill, for example, but would work. > > Of course, the simplest solution remains: Don't use frames. In the world of "Web 2.0" This problem is only going to get worse. I think I have a solution, MCache, which is based on MSession, but I don't see the core PHP group liking it too much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
Jay Paulson wrote: Thinking about this paragraph above makes me wonder if with that way of looking at it would one need a template engine? For example, why not just separate the business logic and the HTML as much as possible and then only imbed PHP in HTML to display the variables ()?? Then at the end of your PHP code that does all the logic just have include() calls to the .php files you want to parse and pass all the variables you got with your business logic above the include calls? Hm. Just a thought. When I look at the complexity of the installer and the user management system in bitweaver, then the answer is probably yes. But then I look at the code that provides the mapserver client and I'm glad that the rest of the 'variables' are taken care of :) -- Lester Caine - G8HFL - L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
>>> I'd like to get some feedback on what the list thinks is a good template >>> engine other than smarty. >>> >>> I'd also like to do some quick prototyping using a PHP framework does anyone >>> have any recommendations for one that is easy to pick up and run with? >>> >>> Finally, does anyone have any suggestions for a good PHP database >>> abstraction library? >> >> You may want to take a look at this post for a few recommendations: >> >> http://www.phpclasses.org/blog/post/52-Recommended-PHP-frameworks.html > > That is a nice sales pitch Manuel but takes bit of digesting. > > Jay - This is a 'how long is a piece of string' type question. So there > are as many answers as there are developers here ;) > > I've only ever used Smarty - and not seen anything yet to replace it. > > PDO is being pushed as a DB Abstraction library, but it only 'abstracts' > the calls to PHP, it does nothing to abstract the SQL if you want a > truly generic solution, if you need one, but if you don't then why > bother with abstraction ;) Thinking about this paragraph above makes me wonder if with that way of looking at it would one need a template engine? For example, why not just separate the business logic and the HTML as much as possible and then only imbed PHP in HTML to display the variables ()?? Then at the end of your PHP code that does all the logic just have include() calls to the .php files you want to parse and pass all the variables you got with your business logic above the include calls? Hm. Just a thought. > I've been running with bitweaver now for some time, and things are > starting to come together. It uses Smarty and ADOdb and can install > itself on a range of database engines without any 'manual intervention'. > So I am happy that it is a generic framework that is easy to run with. > > www.bitweaver.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] global class instance
On Sat, July 1, 2006 4:56 am, sempsteen wrote: > i wonder if there is a way of creating an instance of a class and > reach it direcly from any scope in PHP4. basically what i want is: > > class a > { >function print() >{ > echo 'sth'; >} > } > > $a = new a(); > > and use this "a" instance from anywhere ex, in a function that is a > method of another class. > > class b > { >function print() >{ > $a->print(); >} > } > > i don't want to: >- declare global $foo, >- use pre-defined $GLOBALS variable, >- or use a::print No. Well, okay, maybe if you installed Runkit and declared your own variable as a SUPERGLOBAL. Maybe. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] WebDav via PHP
Did you search on php.net using "online documentation" in the popup menu? Did you find "WebDAV" in this page: http://us3.php.net/manual/en/ini.core.php You now know as much about this PHP/WebDAV thingie a I do... :-) On Sat, July 1, 2006 1:10 pm, Martin Staiger wrote: > Dear group, > > Apache's WebDav-features do not fulfill our requirements concerning > file-management since we have to manage complex access-rights to files > by > our own logic. HOW can we create our own WebDav-Server with PHP ? Are > there > any alternatives? I couldn't find any examples so far ... > > Thankful for any useful hint, > Marc > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recursing sessions?
On Sat, July 1, 2006 5:30 pm, Mark wrote: > If the frames do any sort of processing on the session information, as > is > the case with squirrelmail, the last session to exit will overwrite > all the > changes made by prior frames. This can corrupt session information or > lose > versions of information. > > It is a HUGE problem that I don't see ANYONE addressing. Ah. Now I know which question you are asking... The built-in PHP session handler handles this by LOCKING the session for writing until it is closed and done for each request. The simplistic example for user-defined handling sessions in the manual does not, in fact, address this directly. The User Contributed Notes, last I checked, did have some rather sarky comments about this issue, and some suggestions for how to fix it. If you are using a database, for example, locking via some mechanism in the DB is probably a viable solution. Wrapping it all in a Transaction is probably overkill, for example, but would work. Of course, the simplest solution remains: Don't use frames. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [Announcement] Sparse 1.05b Released
Yep, another beta release of Sparse, my framework for MySQL-based programs without the programming. A significant new release, which introduces some changes that are not compatible with previous versions. Upgrading isn't hard, don't worry! New features include a support for sorting data and for printing out the number of results, further useful attributes for quick templates, and a "tag referencing" system which acts similar to CSS classes in that it allows you to reuse attributes from previous tags, or to import them entirely from a separate page. You can define default attributes for all tags as well as "classes" of attributes. As usual, testers are needed! Give it a whirl! --Daniel -- Sparse - a new way to write MySQL-based programs with little to no actual programming. Save yourself time and effort! http://sparse-php.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: XUL and PHP - what's your opinion?
Ray Hauge wrote: I keep hearing about XUL, and I was wondering what the opinion of the masses was on this subject for an internal application where the browser is pre-determined. From my point of view I, having only read about it and not used it, is that XUL would make your applications look more like a desktop application. Some of the widgets they provide come in handy, like tables that can sort themselves instead of using AJAX/another page hit. The down sides that I see is there would be a 99.999% chance of a learning curve for any new developers that come into the company. Also, I'm not sure if XUL would cause extra programming overhead than regular HTML/JS. XUL definitely contains a huge learning overhead plus a lot of getting used to. In Firefox, at least, XUL is very difficult to debug and has given me a lot of headaches. On the other hand, you can do far, FAR more with it than with Javascript, including reading and writing to local files and altering the browser itself. If you want to release an extension for Firefox, you'll have a lot more freedom with XUL if you can get over the initial hump and your program won't necessarily be *too* big. --Daniel -- Sparse - a new way to write MySQL-based programs with little to no actual programming. Save yourself time and effort! http://sparse-php.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing in php
On Mon, July 3, 2006 3:53 am, weetat wrote: > I am using PHP 4.3.2 and MYSQL . > > I need to do printing function in php . > Basically , in my client web page , it will display the list of > items > on the html page. And i have a print button , so that the user can > print > the html page to their local printer. > > Any way how to do this in PHP ? How many times on this very list have you been told that PHP runs on the server? Think about it. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Drag 'n Drop - File Upload
On Mon, July 3, 2006 7:55 am, Martin Staiger wrote: > we would like to have the possibility to upload files not via > HTML-form but > via Drag 'n Drop of files. WebDav seem to offer potentials ... but > HOW? Are > there any examples existing? Are there alternatives existing? If you can install PHP on their desktop computer, you could easily "watch" a folder for new/changed items and upload them at your leisure... But otherwise, PHP can't be the "answer" to your question because it's not even in the picture frame. A tie-in from WebDAV / Java/ Javascript or some custom windows drag-n-drop application might be viable, but, really, you need to ask about WebDAV in a WebDAV miliue. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
Robert Cummings wrote: On Mon, 2006-07-03 at 08:37, Jens Kleikamp wrote: Jay Paulson wrote: I'd like to get some feedback on what the list thinks is a good template engine other than smarty. I like ezTemplate. (E_STRICT) YOU DO?? I hope it's changed then from the one used on a site I'm now maintaining. I find it to be a nightmare. You can't just move around blocks of content because the template's block structure requires you maintain the nesting association... thus you need to go back to the code every time you move a block of content to synch up the block declarations. Cheers, Rob. Hi Rob, Sorry, typo, I meant ezcTemplate. Maybe ezTemplate is a package within ezPublish 3.x cms, which I don´t know. ( not 100% sure ) The lately released ezcTemplate does the job very well, I didn´t experienced the issue you described. Cheers, Jens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
On Mon, 2006-07-03 at 08:37, Jens Kleikamp wrote: > Jay Paulson wrote: > > I'd like to get some feedback on what the list thinks is a good template > > engine other than smarty. > > > > I like ezTemplate. (E_STRICT) YOU DO?? I hope it's changed then from the one used on a site I'm now maintaining. I find it to be a nightmare. You can't just move around blocks of content because the template's block structure requires you maintain the nesting association... thus you need to go back to the code every time you move a block of content to synch up the block declarations. Cheers, Rob. -- .. | 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] Drag 'n Drop - File Upload
On Mon, 3 Jul 2006 11:09 pm, Mariano Guadagnini wrote: > I've seen some places using a java applet for this. A good example is > the course uploading interface of Blackboard LMS. > > Martin Staiger wrote: > > Dear group, > > > > we would like to have the possibility to upload files not via HTML-form > > but via Drag 'n Drop of files. WebDav seem to offer potentials ... but > > HOW? Are there any examples existing? Are there alternatives existing? > > > > Thanks, > > Marc > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 30/06/2006 Its called RadUpload .. works like a charm with all the bells and whistles... but hey its Java cheers, Jeffery pgpR3PNLZ9mR7.pgp Description: PGP signature
Re: [PHP] Drag 'n Drop - File Upload
I've seen some places using a java applet for this. A good example is the course uploading interface of Blackboard LMS. Martin Staiger wrote: Dear group, we would like to have the possibility to upload files not via HTML-form but via Drag 'n Drop of files. WebDav seem to offer potentials ... but HOW? Are there any examples existing? Are there alternatives existing? Thanks, Marc -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 30/06/2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Drag 'n Drop - File Upload
Dear group, we would like to have the possibility to upload files not via HTML-form but via Drag 'n Drop of files. WebDav seem to offer potentials ... but HOW? Are there any examples existing? Are there alternatives existing? Thanks, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
Jay Paulson wrote: I'd like to get some feedback on what the list thinks is a good template engine other than smarty. I like ezTemplate. (E_STRICT) I'd also like to do some quick prototyping using a PHP framework does anyone have any recommendations for one that is easy to pick up and run with? Seems to be a really difficult question imho :) Finally, does anyone have any suggestions for a good PHP database abstraction library? Depends on your environment, MDB2 is fine if you have to run php4, otherwise, I like Zend_Db (http://framework.zend.com/manual/en/zend.db.html) and also ezDatabase (http://ez.no/doc/components/view/latest/(file)/classtrees_Database.html) is worth a look. just my 0,2 €cents -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
Kevin Waterson wrote: This one time, at band camp, Lester Caine <[EMAIL PROTECTED]> wrote: PDO is being pushed as a DB Abstraction library, but it only 'abstracts' the calls to PHP, it does nothing to abstract the SQL if you want a truly generic solution, if you need one, but if you don't then why bother with abstraction ;) Whoa dragon PDO is not being pushed as a DB Abstraction library. From the manual.. Both other replies to this thread quoted PDO without mentioning that it not a DB Abstraction library - because the misconception is that PDO is. So I was just correcting those messages. -- Lester Caine - G8HFL - L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Templates, PHP Frameworks, and DB Abstraction?
This one time, at band camp, Lester Caine <[EMAIL PROTECTED]> wrote: > PDO is being pushed as a DB Abstraction library, but it only 'abstracts' > the calls to PHP, it does nothing to abstract the SQL if you want a > truly generic solution, if you need one, but if you don't then why > bother with abstraction ;) Whoa dragon PDO is not being pushed as a DB Abstraction library. From the manual.. "PDO provides a data-access abstraction layer, which means that, regardless of which database you're using, you use the same functions to issue queries and fetch data. PDO does not provide a database abstraction; it doesn't rewrite SQL or emulate missing features. You should use a full-blown abstraction layer if you need that facility." As you see, PDO provides a standard interface to databases, you might use PDO to create an abstraction layer, but is not an abstraction layer in itself. Kind regards Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing in php
weetat wrote: Hi all , I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page to their local printer. Any way how to do this in PHP ? No, but you can in javascript. window.print(); -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing in php
Hi all , I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page to their local printer. Any way how to do this in PHP ? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php