php-general Digest 24 Mar 2008 13:38:16 -0000 Issue 5365

2008-03-24 Thread php-general-digest-help
php-general Digest 24 Mar 2008 13:38:16 - Issue 5365 Topics (messages 272020 through 272031): Re: De-Duplicate A Query Result List 272020 by: Greg Bowser ob_start: Capturing STDOUT and STDERR 272021 by: Greg Sims 272022 by: Casey 272023 by: Jonesy Date math

php-general Digest 25 Mar 2008 02:28:05 -0000 Issue 5366

2008-03-24 Thread php-general-digest-help
php-general Digest 25 Mar 2008 02:28:05 - Issue 5366 Topics (messages 272032 through 272059): Re: Date math 272032 by: Jim Lucas 272059 by: Bill Guion Re: This beats me (variable not being passed through pages) 272033 by: Jim Lucas Re: Including files for templates

[PHP] This beats me (variable not being passed through pages)

2008-03-24 Thread Mário Gamito
Hi, I have a ASP.NET / C# page calling a webmail Linux server: WebRequest request = WebRequest.Create(http://192.168.1.4/horde/imp/index.php?username=gamito;); (etc...) It seems to work as in my Linux Apache logs, i get: (...) GET /horde/imp/index.php?username=gamito HTTP/1.1 200 223 File

[PHP] restricting access to folders on server

2008-03-24 Thread Sudhakar
i am using apache server and presently when i try accessing any folders of my website i am able to browse the files ex = www.website.com/images which is a serious security risk as i am building a forum website using php and mysql. in the root directory i have created a .htaccess file and whenever

Re: [PHP] restricting access to folders on server

2008-03-24 Thread n3or
Sudhakar schrieb: i am using apache server and presently when i try accessing any folders of my website i am able to browse the files ex = www.website.com/images which is a serious security risk as i am building a forum website using php and mysql. in the root directory i have created a

Re: [PHP] restricting access to folders on server

2008-03-24 Thread Richard Heyes
i am using apache server and presently when i try accessing any folders of my website i am able to browse the files ex = www.website.com/images which is a serious security risk as i am building a forum website using php and mysql. Assuming your images are for public consumption and that that

[PHP] Stored Procedure Question

2008-03-24 Thread admin
I am very aware most of you do not use a stored procedure in mysql. However with my latest C++ programming I have created a few that make life a dream. The issue I am having. When I call the stored procedure I would like the end of the procedure to call or invoke a php script. I have read

Re: [PHP] Date math

2008-03-24 Thread Jim Lucas
Ron Piggott wrote: I have this math equation this list helped me generate a few weeks ago. The purpose is to calculate how many days have passed between 2 dates. Right now my output ($difference) is 93.958333 days. I am finding this a little weird. Does anyone see anything wrong with

Re: [PHP] This beats me (variable not being passed through pages)

2008-03-24 Thread Jim Lucas
Mário Gamito wrote: Hi, I have a ASP.NET / C# page calling a webmail Linux server: WebRequest request = WebRequest.Create(http://192.168.1.4/horde/imp/index.php?username=gamito;); (etc...) It seems to work as in my Linux Apache logs, i get: (...) GET /horde/imp/index.php?username=gamito

Re: [PHP] Including files for templates

2008-03-24 Thread Philip Thompson
On Mar 23, 2008, at 12:10 PM, Daniel Brown wrote: On Sun, Mar 23, 2008 at 6:32 AM, Terry Burns-Dyson [EMAIL PROTECTED] wrote: [snip!] $pageTitle is in the template, it's replaced, $pageContent is in the template, it's replaced. But any variables within the page_to_display are simply output

Re: [PHP] Including files for templates

2008-03-24 Thread Eric Butera
On Sun, Mar 23, 2008 at 7:32 AM, Terry Burns-Dyson [EMAIL PROTECTED] wrote: I'm trying to write a template system, my template is the HTML layout, and my content is fetched from another source. However I don't quite understand how to output the template so that all the variables are parsed by

Re: [PHP] restricting access to folders on server

2008-03-24 Thread Daniel Brown
On Mon, Mar 24, 2008 at 7:08 AM, Sudhakar [EMAIL PROTECTED] wrote: i am using apache server and presently when i try accessing any folders of my website i am able to browse the files ex = www.website.com/images which is a serious security risk as i am building a forum website using php and

[PHP] Array and Object

2008-03-24 Thread VamVan
Hello All, I am having an array structure as displayed below, The title is the key and value is the simplexmlelementobject. [Advanced Virtualization Technologies in Workstation 6-20080320 1604] = SimpleXMLElement Object ( [recordingID] = 932467 [hostWebExID] =

Re: [PHP] Array and Object

2008-03-24 Thread Eric Butera
On Mon, Mar 24, 2008 at 12:50 PM, VamVan [EMAIL PROTECTED] wrote: Hello All, I am having an array structure as displayed below, The title is the key and value is the simplexmlelementobject. [Advanced Virtualization Technologies in Workstation 6-20080320 1604] = SimpleXMLElement Object

Re: [PHP] Array and Object

2008-03-24 Thread VamVan
I cannot do that. because Simple xml element retrieves everything in UTF8. I need to decode it to latin1 for comparison with another array. My query still remains the same. On Mon, Mar 24, 2008 at 9:56 AM, Eric Butera [EMAIL PROTECTED] wrote: On Mon, Mar 24, 2008 at 12:50 PM, VamVan [EMAIL

Re: [PHP] Array and Object

2008-03-24 Thread tedd
At 10:00 AM -0700 3/24/08, VamVan wrote: I cannot do that. because Simple xml element retrieves everything in UTF8. I need to decode it to latin1 for comparison with another array. Unless there is something here that I don't understand, there is no decoding UTF-8 to Latin1 Latin1 is a

Re: [PHP] Array and Object

2008-03-24 Thread VamVan
Well anyways please let me handle the problems with decoding. I just want to know if there is a way that I could traverse through all the elements of the simplexmlobject and still keep the same structure of the array. What I mean is [Advanced Virtualization Technologies in Workstation 6-20080320

[PHP] Why won't this query work?

2008-03-24 Thread Jason Pruim
Hi Everyone, Attempting to get this query: SELECT customerName, loginName, email, adminLevel FROM current WHERE customerBusiness=$business ORDER BY adminLevel to work. So far it doesn't like me... It pops up saying that Unknown column 'Raoset' in 'where clause' Here is what I get if I

Re: [PHP] Why won't this query work?

2008-03-24 Thread Jason Pruim
Okay... so as happens to me more times then I care to admit... as soon as I sent it I simply added: .WHERE customerBusiness='$business'. and it works just fine... Sorry for the noise! On Mar 24, 2008, at 1:47 PM, Jason Pruim wrote: Hi Everyone, Attempting to get this query:

[PHP] google books

2008-03-24 Thread John Pillion
Not a PHP question. but could someone point me in the direction of how to download/display only a portion of a PDF, much like google books does? For example, if you have a 200 page pdf, but the user wishes to see the portion that is on page 150. rather than downloading the entire PDF, only

Re: [PHP] Array and Object

2008-03-24 Thread tedd
At 10:23 AM -0700 3/24/08, VamVan wrote: Well anyways please let me handle the problems with decoding.mail.com wrote: At 10:00 AM -0700 3/24/08, VamVan wrote: I cannot do that. because Simple xml element retrieves everything in UTF8. I need to decode it to latin1 for comparison with

Re: [PHP] Why won't this query work?

2008-03-24 Thread Daniel Brown
On Mon, Mar 24, 2008 at 1:47 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, Attempting to get this query: SELECT customerName, loginName, email, adminLevel FROM current WHERE customerBusiness=$business ORDER BY adminLevel to work. So far it doesn't like me... It pops up saying

Re: [PHP] Array and Object

2008-03-24 Thread Greg Bowser
Take a look at array_walk(), array_walk_recursive(), array_map() in the PHP manual. On Mon, Mar 24, 2008 at 2:04 PM, tedd [EMAIL PROTECTED] wrote: At 10:23 AM -0700 3/24/08, VamVan wrote: Well anyways please let me handle the problems with decoding.mail.com wrote: At 10:00 AM -0700

Re: [PHP] Array and Object

2008-03-24 Thread Greg Bowser
That top post was totally not I... It was my roommate playing with my computer *nods*.

Re: [PHP] Why won't this query work?

2008-03-24 Thread Jason Pruim
On Mar 24, 2008, at 2:23 PM, Daniel Brown wrote: On Mon, Mar 24, 2008 at 1:47 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, Attempting to get this query: SELECT customerName, loginName, email, adminLevel FROM current WHERE customerBusiness=$business ORDER BY adminLevel to work. So

Re: [PHP] Why won't this query work?

2008-03-24 Thread Daniel Brown
On Mon, Mar 24, 2008 at 2:29 PM, Jason Pruim [EMAIL PROTECTED] wrote: It's already been escaped, $business is pulled out of the database after they log in. :) I don't care, Prune. (I still get a kick out of knowing that. Who was it, Jochem or Zoltan who said that? ;-P) NEVER

Re: [PHP] google books

2008-03-24 Thread Ray Hauge
John Pillion wrote: Not a PHP question. but could someone point me in the direction of how to download/display only a portion of a PDF, much like google books does? For example, if you have a 200 page pdf, but the user wishes to see the portion that is on page 150. rather than downloading the

[PHP] Beware of round() function

2008-03-24 Thread Kirk . Johnson
Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal format. Some of these special values are 120, 140, 230, which are returned as

Re: [PHP] Why won't this query work?

2008-03-24 Thread Eric Butera
On Mon, Mar 24, 2008 at 2:40 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Mar 24, 2008 at 2:29 PM, Jason Pruim [EMAIL PROTECTED] wrote: It's already been escaped, $business is pulled out of the database after they log in. :) I don't care, Prune. (I still get a kick out

[PHP] help with autoload

2008-03-24 Thread Jonathan Mast
I have a project the someone else wrote and that I can't get to work. It uses a rather large library of classes that are not apparently getting loaded by the provided __autoload() function. I'm not very well versed in PHP and one of the first things I did was see if in fact the __autoload

Re: [PHP] Beware of round() function

2008-03-24 Thread Jeremy Privett
[EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result. -- Jeremy Privett C.E.O. C.S.A. Omega

Re: [PHP] Beware of round() function

2008-03-24 Thread Jeremy Privett
Jeremy Privett wrote: [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result. Also, as a

Re: [PHP] Beware of round() function

2008-03-24 Thread Martín Marqués
On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal format. Some of these special

[PHP] Re: Stored Procedure Question

2008-03-24 Thread Dan
I'm not sure that it can be done. I've never heard of anyone doing it before. Why don't you just call the PHP script from your C++ program after you call the stored proc? - Dan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am very aware most of you do not use a stored

[PHP] Re: Date math

2008-03-24 Thread Bill Guion
At 12:17 AM -0400 3/24/08, Ron Piggott wrote: I have this math equation this list helped me generate a few weeks ago. The purpose is to calculate how many days have passed between 2 dates. Right now my output ($difference) is 93.958333 days. I am finding this a little weird. Does

[PHP] question about linux editor

2008-03-24 Thread Sudhakar
i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would need to connect to the server. please advice. thanks.

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would

Re: [PHP] help with autoload

2008-03-24 Thread Carlton Whitehead
Jonathan Mast wrote: I have a project the someone else wrote and that I can't get to work. It uses a rather large library of classes that are not apparently getting loaded by the provided __autoload() function. I'm not very well versed in PHP and one of the first things I did was see if in

Re: [PHP] question about linux editor

2008-03-24 Thread Mark Weaver
Casey wrote: On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
On Mon, Mar 24, 2008 at 8:09 PM, Mark Weaver [EMAIL PROTECTED] wrote: Casey wrote: On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server.