[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 al

Re: [PHP] Php session settings

2007-10-06 Thread Nathan Nobbe
Jeff, is *memory_limit*the 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 m

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 CMS

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: >> >> >> >> Encapsul

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 i

Re: [PHP] Empty Array?

2007-10-06 Thread tedd
At 10:33 AM -0400 10/5/07, marek wrote: Even better: SQL injection? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 lu

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 12:58 PM -0400 10/5/07, Daniel Brown wrote: 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. window.onload = function() { var someLink = document.getElementById('someLink'); someLink.hr

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. > > > > > > > > > > window.onload = function() { > > var

[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 mail

[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 *Di

[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 *Di

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.

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. > > > foo > etc > > > 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 > is when you need

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) > -Origin

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 poi

[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 reci

[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 (h

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

2007-10-06 Thread Timothy Murphy
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 us

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. However, I couldn't see a way to make it so. Why not? I'm guessing because you need to the link to have the JavaScript variable in it. If this i

Re: [PHP] A two flavored post

2007-10-06 Thread heavyccasey
ALSO: can be altered to be: What exactly do you need to do, anyways? Maybe there'll be some better way to do this. On 10/6/07, tedd <[EMAIL PROTECTED]> wrote: > At 1:49 PM -0400 10/6/07, Robert Cummings wrote: > >On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: > > > Unfortunately, my solutio

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