php-general Digest 6 Oct 2007 17:41:37 -0000 Issue 5058

2007-10-06 Thread php-general-digest-help
php-general Digest 6 Oct 2007 17:41:37 - Issue 5058 Topics (messages 262861 through 262873): Re: [PHP-DB] Re: MySQL Identifying worst-performing codes 262861 by: Lasitha Alawatta Php session settings 262862 by: Jeff Benetti 262863 by: Nathan Nobbe 262865

[PHP] RE: [PHP-DB] Re: MySQL Identifying worst-performing codes

2007-10-06 Thread Lasitha Alawatta
Dear Col, I'm highly appreciate your reply. Best Regards, Lasitha -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Colin Guthrie Sent: Thursday, October 04, 2007 7:47 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net; [EMAIL PROTECTED] Subject: [PHP-DB] Re:

[PHP] Php session settings

2007-10-06 Thread Jeff Benetti
Hi all, I am new to PHP this is my second post to this group. I have tried using the following CMS systems on my web server (remote) Joomla CMS made simple Phpwebsite And more recently Coppermine photo album All of these apps use PHP heavily. None of these apps seem to run very well and they

Re: [PHP] Php session settings

2007-10-06 Thread Nathan Nobbe
Jeff, is *memory_limit*http://docs.php.net/manual/en/ini.core.php#ini.memory-limitthe one youre looking for ? that sounds strange; im sure the default would be appropriate. i would recommend you create a script to show the current values of the php.ini settings before you start changing them.

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-06 Thread Nathan Nobbe
On 10/3/07, Tony Marston [EMAIL PROTECTED] wrote: Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 10/3/07, Tony Marston [EMAIL PROTECTED] wrote: Encapsulation is NOT data hiding. Take a look at please stop putting words into my mouth. i never once said

RE: [PHP] Php session settings

2007-10-06 Thread Jeff Benetti
SERVER_SOFTWARE Apache/1.3.34 (Unix) I have attached the output from phpinfo() I cc'd the php-general group but I am not sure how an attachment will be dealt with there. Thanks, Jeff _ From: Nathan Nobbe [mailto:[EMAIL PROTECTED] Sent: October 6, 2007 9:08 AM To: Jeff Benetti

Re: [PHP] Php session settings

2007-10-06 Thread Tom Friedhof
I almost always up the memory_limit in the php.ini. Set the memory limit to 16M, or 32M (the default is 8M). You want a higher memory_limit if you're working with big file uploads or creating images with php or anything else that takes a lot of memory. Also, if you're still researching which

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-06 Thread Tony Marston
Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 10/3/07, Tony Marston [EMAIL PROTECTED] wrote: Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 10/3/07, Tony Marston [EMAIL PROTECTED] wrote: Encapsulation is NOT data hiding. Take a

RE: [PHP] Php session settings

2007-10-06 Thread Jeff Benetti
Thanks, I added a one line file called php.ini with the following line memory_limit = 16M so far CMS made simple seems to run better (faster, no need for page refresh) Yes I will check out drupal Jeff _ From: Tom Friedhof [mailto:[EMAIL PROTECTED] Sent: October 6, 2007 11:18 AM To:

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-06 Thread Robert Cummings
On Sat, 2007-10-06 at 15:42 +0100, Tony Marston wrote: OOP revolves around the concept of grouping code and data together in logical units called classes. This process is usually referred to as encapsulation, Correct. or information hiding, INCORRECT since its goal is that

Re: [PHP] Empty Array?

2007-10-06 Thread tedd
At 10:33 AM -0400 10/5/07, marek wrote: Even better: ?php $request_id = $_GET['id']; $current_user = substr($_SERVER['AUTH_USER'], 13); $lock_query = SELECT id, locked_by_user FROM locked_payments WHERE id = '$request_id'; SQL injection? Cheers, tedd -- --- http://sperling.com

Re: [PHP] error messages

2007-10-06 Thread tedd
At 10:27 PM +0200 10/5/07, Zoltán Németh wrote: 2007. 10. 5, péntek keltezéssel 12.57-kor tedd ezt írta: I long for the time where my editor said Offending syntax on line 236. my editor still says parse error and shows me the line number... ;) greets Zoltán Németh Consider yourself lucky,

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 12:58 PM -0400 10/5/07, Daniel Brown wrote: ? $s = $_GET['s']; ? script language=JavaScript function writeHREF(value,title) { var url = http://www.crusar.org/test.php;; var currentTime = new Date(); var month = currentTime.getMonth(); var day =

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 1:26 PM -0400 10/5/07, Nathan Nobbe wrote: strange; i missed that when i put it together; my bad, it was late. here is a revision that works. html head script type=text/javascript window.onload = function() { var someLink =

Re: [PHP] A two flavored post

2007-10-06 Thread Robert Cummings
On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: At 1:26 PM -0400 10/5/07, Nathan Nobbe wrote: strange; i missed that when i put it together; my bad, it was late. here is a revision that works. html head script type=text/javascript window.onload = function() {

[PHP] Sending lots of emails - 2 choices - choose the best one

2007-10-06 Thread Martin Zvarík
Hello-- I want to send email to 100+ recipients. Two choices I thought of: 1) once call mail() and use BCC, but the negative of this method is that every recipient in BCC has header To same (so I used to put my email in here - not email of one of the recipients). 2) several calls to

[PHP] mySQL Results To XML

2007-10-06 Thread CK
Hi, Here's the mission, creating a movie DB, I need the results returned from mySQL in an XML format for use with the FLASH Professional DataGrid. Any tips on formating mySQL results would be grand. Here's the structure of the DB, if needed. DVD Table *Title ID *Title *Genre *Actor

[PHP] mySQL Results To XML

2007-10-06 Thread CK
Hi, Here's the mission, creating a movie DB, I need the results returned from mySQL in an XML format for use with the FLASH Professional DataGrid. Any tips on formating mySQL results would be grand. Here's the structure of the DB, if needed. DVD Table *Title ID *Title *Genre *Actor

Re: [PHP] mySQL Results To XML

2007-10-06 Thread mike
On 10/6/07, CK [EMAIL PROTECTED] wrote: Hi, Here's the mission, creating a movie DB, I need the results returned from mySQL in an XML format for use with the FLASH Professional DataGrid. Any tips on formating mySQL results would be grand. Here's the structure of the DB, if needed. you

RE: [PHP] mySQL Results To XML -- my xmltag() functions

2007-10-06 Thread Daevid Vincent
-Original Message- you could easily just print the xml manually. dvd titleIDfoo/titleID baretc/bar /dvd or, i believe mysql will return XML output but i'm not sure a PHP function exists to do that. no need to use fancy DOM functions, outputting XML is easy, parsing it

RE: [PHP] Sending lots of emails - 2 choices - choose the best one

2007-10-06 Thread Daevid Vincent
Option 3) setup a dedicated program to handle the mail, such as mailman and then send ONE email from PHP to the listserver which will then dispatch the mail accordingly, properly, in batches. http://www.gnu.org/software/mailman/index.html (at least, that's how I do it currently) -Original

Re: [PHP] mySQL Results To XML -- my xmltag() functions

2007-10-06 Thread mike
On 10/6/07, Daevid Vincent [EMAIL PROTECTED] wrote: Here's the 'functions_xml.inc.php' file I use, it has served me well and handles I believe all tag cases, personally I'm a big fan of using the attributes as they're most easily parsed out in the PHP DOM functions: I made this at one point:

[PHP] Re: Sending lots of emails - 2 choices - choose the best one

2007-10-06 Thread Jeff Cohan
Martin Zvarík wrote: Hello-- I want to send email to 100+ recipients. Two choices I thought of: 1) once call mail() and use BCC, but the negative of this method is that every recipient in BCC has header To same (so I used to put my email in here - not email of one of the recipients).

[PHP] Something you can do with AJAX + PHP as well

2007-10-06 Thread Mark
Hey, I've made a nice video where you see ajax in combination with php. and it works really well although really is misspelled realy. Here is the video: http://magedb.mageprojects.com/videos/MageDB%202nd%20WIP%20demonstration%20with%20AJAX.mpeg Cool huh? Mark. -- PHP General Mailing List

[PHP] Re: mySQL Results To XML -- my xmltag() functions

2007-10-06 Thread Timothy Murphy
posted mailed mike wrote: I made this at one point: function array2xml($array, $complete = true) { $xml = $array[NODE] ; unset($array['NODE']); ksort($array); foreach(array_keys($array) as $key) { $xml .= $key=\$array[$key]\ ; } if($complete) {

[PHP] Handling profile view counters

2007-10-06 Thread Steve Finkelstein
Hi all, I'm contemplating on a proper way of handling a counter for profile views on my auto dealership website. I'm currently confused with the type of algorithm to approach this with. Say a user has a registered session, and views profile a). I can increment the counter for that vehicle. The

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 1:49 PM -0400 10/6/07, Robert Cummings wrote: On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: Unfortunately, my solution isn't unobtrusive. a href=img.php?i=?php echo($value);? onclick=window.location = this.getAttribute( 'href' ) + 's=' + s; return false; However, I couldn't see a way

Re: [PHP] A two flavored post

2007-10-06 Thread heavyccasey
ALSO: a href=img.php?i=?php echo($value);? onclick=window.location = this.getAttribute( 'href' ) + 's=' + s; return false; can be altered to be: a href=img.php?i=?php echo($value);? onclick=this.setAttribute(this.getAttribute( 'href') + 's=' + s); What exactly do you need to do, anyways? Maybe

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-06 Thread Nathan Nobbe
On 10/6/07, Robert Cummings [EMAIL PROTECTED] wrote: Tony is right here. Encapsulation is about hiding the details of the implementation rob, here is tonys definition of encapsulation: Encapsulation is the act of placing data and the operations that perform on that data in the same class.