Re: [php-list] permissions issue with uploading graphics

2008-08-22 Thread James Keeline
--- Wade Smart <[EMAIL PROTECTED]> wrote: > On the system Im working with php is run under Apache which is www-data. So > when I upload a pic www-data is the owner. > > But I found the problem. Well - not "the" problem but why its doing this. A > note in the code says: > > // Note: cant get the

Re: [php-list] permissions issue with uploading graphics

2008-08-22 Thread Wade Smart
[EMAIL PROTECTED] wrote: > > Thanks, Rob. > > PS: Look up POSIX at php.net 20080822 2025 GMT-6 Sorry about my misprint. It should be owner and group. On the system Im working with php is run under Apache which is www-data. So when I upload a pic www-data is the owner. But

Re: [php-list] permissions issue with uploading graphics

2008-08-22 Thread listgroups08
- Original Message - From: "Wade Smart" 20080821 1902 GMT-6 Discovered today that a script that the school "THOUGHT" had been working for the past two years - inst! Their upload script uploads the picture into the images/ dir and then creates a thumnail of it and puts it in the thumb/

Re: [php-list] which is the best and easy e-book of learning php and mysql

2008-08-22 Thread Claudio de Taunay
You can see the sites: wrox.com apress.com Video Learning: lynda.com Good luck Claudio de Taunay embroidtiger2008 escreveu: > > which is the best and easy e-book of learning php and mysql and from > where we can download it? > > [Non-text portions of this message have been removed]

Re: [php-list] Re: [ask] Warning: mysql_free_result(): 25 is not a valid MySQL result resource

2008-08-22 Thread Martinus Hadiwinata
On Fri, Aug 22, 2008 at 9:48 AM, Wade Smart <[EMAIL PROTECTED]> wrote: > --- In php-list@yahoogroups.com , "Martinus > Hadiwinata" > > <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Yes, I'm sorry about that. It's just that the code is long and takes > up lots of spaces in here. I have removed al

[php-list] Re: [ask] Warning: mysql_free_result(): 25 is not a valid MySQL result resource

2008-08-22 Thread Wade Smart
--- In php-list@yahoogroups.com, "Martinus Hadiwinata" <[EMAIL PROTECTED]> wrote: > Hello, > > Yes, I'm sorry about that. It's just that the code is long and takes up lots of spaces in here. I have removed all the mysql_free_result lines from the pages, and it works great now. :) > > Thanks a lot

Re: [php-list] [ask] Warning: mysql_free_result(): 25 is not a valid MySQL result resource

2008-08-22 Thread Martinus Hadiwinata
On Thu, Aug 21, 2008 at 4:02 PM, James Keeline <[EMAIL PROTECTED]> wrote: > --- Martinus Hadiwinata <[EMAIL PROTECTED]> > wrote: > > > Hi All, > > I've checked some of my queries, it seems that it happens when the > returned > > result is only 1 record. Do you guys think this is a problem? > > >

Re: [php-list] Problems with accents in XML

2008-08-22 Thread James Keeline
--- Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, James Keeline > <[EMAIL PROTECTED]> writes > >--- Pete <[EMAIL PROTECTED]> wrote: > >> But it should be > >> header("Content-Type: text/xml; charset=iso-8859-1", true); > >> > >> -- > >> Pete Clark > > > >That may solve your p

Re: [php-list] Problems with accents in XML

2008-08-22 Thread Pete
In message <[EMAIL PROTECTED]>, James Keeline <[EMAIL PROTECTED]> writes >--- Pete <[EMAIL PROTECTED]> wrote: >> But it should be >> header("Content-Type: text/xml; charset=iso-8859-1", true); >> >> -- >> Pete Clark > >That may solve your problem but I would also recommend using the htmlentities(

Re: [php-list] Problems with accents in XML

2008-08-22 Thread James Keeline
--- Pete <[EMAIL PROTECTED]> wrote: > > >I am creating an XML output (part of an Ajax system), where the output > >sometimes contains French accented characters. > > Of course, 5 minutes after sending the post, the light goes on! > > >I have my header set as > >Content-Type: text/xml; charset='

[php-list] Problems with accents in XML

2008-08-22 Thread Pete
>I am creating an XML output (part of an Ajax system), where the output >sometimes contains French accented characters. Of course, 5 minutes after sending the post, the light goes on! >I have my header set as >Content-Type: text/xml; charset='utf-8' >by using >header("Content-type: text/xml; ch

[php-list] Problems with accents in XML

2008-08-22 Thread Pete
I am creating an XML output (part of an Ajax system), where the output sometimes contains French accented characters. In the source, I can see that the value of the characters is correctly shown, up until the time it is echo()ed to the browser. But the browser is not interpreting it properly. I