php-general Digest 3 Jun 2005 12:39:03 -0000 Issue 3491

2005-06-03 Thread php-general-digest-help
php-general Digest 3 Jun 2005 12:39:03 - Issue 3491 Topics (messages 216277 through 216308): Re: Exporting to MS Word or Excel 216277 by: tg-php.gryffyndevelopment.com Re: Delay? 216278 by: Danny Brow 216286 by: dan 216293 by: mayo Re: What Works Works

Re: [PHP] Best way to use other objects within classes?

2005-06-03 Thread Tom Rogers
Hi, Friday, June 3, 2005, 5:16:19 AM, you wrote: MP Hi All, MP I'm using the MDB2 object to access my MySQL database. I have a number MP of classes that perform page-building activities that need db access, MP and I'm wondering what the best way to expose the MDB2 object to them is? MP (Note:

[PHP] what do you guys use for reporting?

2005-06-03 Thread Angelo Zanetti
hi guys, I sent an earlier post but no answers, so I just want you to list the software you use to do reporting and then i can go through the answers and see if any are applicable. Also comment on the good and bad things/recommendations and ones you would not recommend. thanks in advance --

Re: [PHP] what do you guys use for reporting?

2005-06-03 Thread Angelo Zanetti
system reporting: eg: sales per province/state well any reporting, most systems use reporting im sure most of the reporting is done using PHP. [EMAIL PROTECTED] wrote: For reporting what? - hi guys, I sent an earlier post but no answers, so I just want you to list the software

RE: [PHP] what do you guys use for reporting?

2005-06-03 Thread coding
For reporting what? - hi guys, I sent an earlier post but no answers, so I just want you to list the software you use to do reporting and then i can go through the answers and see if any are applicable. Also comment on the good and bad things/recommendations and ones you would not

Re: [PHP] .INC files

2005-06-03 Thread Peter Brodersen
On Thu, 02 Jun 2005 00:44:12 -0400, in php.general [EMAIL PROTECTED] (Chris Shiflett) wrote: 3. The debate between storing includes outside of document root versus using a .php file extension, instructing Apache to process .inc files as PHP, instructing PHP to deny requests for .inc files, etc.

Re: Re[2]: [PHP] Japanese with UTF-8 and mysql

2005-06-03 Thread Peter Brodersen
On Thu, 2 Jun 2005 11:58:26 +0100, in php.general [EMAIL PROTECTED] (Richard Davey) wrote: I would recommend setting UTF-8 as the Content-type via PHP itself: header('Content-type: UTF-8') - do it as one of the first things when you're ready to output the HTML. UTF-8 is a charset, not a

Re: [PHP] Accessing DLL from PHP

2005-06-03 Thread Rory Browne
On 6/2/05, Rory McKinley [EMAIL PROTECTED] wrote: Richard Davey wrote: snip If the DLL has a COM interface then you can use PHP to talk to it, the process is actually quite straight forward (depending on what the DLL actually does of course). Best regards, Richard Davey snip Hi

Re: [PHP] Accessing DLL from PHP

2005-06-03 Thread Rory McKinley
Rory Browne wrote: snip snip Just bare in mind, that I've never used ffi, and it's still alpha code, and I'm not taking any blame it causes your dog to explode. snip That's ok, I am sure there is no chance...rover, rover,what's the matter boy? (Sound of dog exploding)

RE: [PHP] Accessing DLL from PHP

2005-06-03 Thread Shaw, Chris - Accenture
If the ffi route doesn't work, just create a COM wrapper for the simple DLL, then you can map any functions you need. -Original Message- From: Rory McKinley [mailto:[EMAIL PROTECTED] Sent: 03 June 2005 11:17 To: php-general@lists.php.net Cc: Rory Browne Subject: Re: [PHP] Accessing DLL

[PHP] MESSAGE COULD NOT BE DELIVERED

2005-06-03 Thread Returned mail
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner

Re: [PHP] Site Design Strategy

2005-06-03 Thread Jack Jackson
asinning wrote: This is my first post to this group. I've been trying to figure this out on my own, but I keep running into complications, so I've decided to get some help. Much thanks for any help! I've been writing php server application for a couple of years, but now I'm turning my

Re: [PHP] Newbie - Request interface for PHP 5 website

2005-06-03 Thread Greg Donald
On 6/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: For PHP 4.x sites I used my index page to capture the HTTP request and use a switch statement to call the content or task based on the $_GET and $_POST arrays. That was very inefficient and the Switch case became totally unmanageable

Re: [PHP] what do you guys use for reporting?

2005-06-03 Thread Greg Donald
On 6/3/05, Angelo Zanetti [EMAIL PROTECTED] wrote: I just want you to list the software you use to do reporting PHP, Perl, MySQL, PostgreSQL. Also comment on the good and bad things/recommendations and ones you would not recommend. Perl = Practical Extraction and `Reporting` Language. It's

Re: [PHP] Site Design Strategy

2005-06-03 Thread Greg Donald
On 6/2/05, asinning [EMAIL PROTECTED] wrote: At the crux of this post is the following question: How do you develop a very robust, dynamic web-site, but also allow non-technical people to contribute? There must be an easier way. Use a framework like MVC. Your PHP code would be seperate from

Re: [PHP] Site Design Strategy

2005-06-03 Thread Angelo Zanetti
what you are looking for is a CMS system something like www.plone.org also there is an rich text HTML area which you can use on your site, check this out: http://www.solmetra.com/en/disp.php/en_products/en_spaw/en_spaw_intro it might help hope it does. Angelo Greg Donald wrote: On

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Kristen G. Thorson
Try using a temporary table. It should be pretty fast. You'd do something like 1. Select from table1 according to search criteria 2. Insert data from #1 into temp_table1 3. Random selection from temp_table1 kgt Brian Dunning wrote: I am using a routine to find 50 random records in a

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Marek Kilimajer
Brian Dunning wrote: I am using a routine to find 50 random records in a large MySQL database (about a million records) where I generate a list of 50 random unique ID's, why can't you use the where condition in the above query? and then use MySQL's in command to find them. I can't use

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Brian Dunning
On Jun 3, 2005, at 6:48 AM, Marek Kilimajer wrote: Brian Dunning wrote: I am using a routine to find 50 random records in a large MySQL database (about a million records) where I generate a list of 50 random unique ID's, why can't you use the where condition in the above query?

Re: [PHP] Site Design Strategy

2005-06-03 Thread Greg Donald
On 6/3/05, Angelo Zanetti [EMAIL PROTECTED] wrote: what you are looking for is a CMS system something like www.plone.org also there is an rich text HTML area which you can use on your site, check this out: http://www.solmetra.com/en/disp.php/en_products/en_spaw/en_spaw_intro it

[PHP] What are these weird variables??

2005-06-03 Thread Brian Dunning
I'm using a class that I downloaded, and to access the database it uses variable names in all caps, like this: if(!defined(MAGPIE_DBUSER)) define(MAGPIE_DBUSER, brian); ... $dbuser = MAGPIE_DBUSER; ... $dbh = mysql_connect($dbhost,$dbuser,$dbpass); And it works fine. But I already

RE: [PHP] What are these weird variables??

2005-06-03 Thread Jay Blanchard
[snip] I'm using a class that I downloaded, and to access the database it uses variable names in all caps, like this: if(!defined(MAGPIE_DBUSER)) define(MAGPIE_DBUSER, brian); ... $dbuser = MAGPIE_DBUSER; ... $dbh = mysql_connect($dbhost,$dbuser,$dbpass); And it works fine. But

[PHP] Check class definition

2005-06-03 Thread Chris Boget
You can use defined() to check to see if a constant has been defined. You can use function_exists() to see if a function has been defined. But what can you use to check to see if a class has been defined? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What are these weird variables??

2005-06-03 Thread Drewcore
On 6/3/05, Brian Dunning [EMAIL PROTECTED] wrote: I'm using a class that I downloaded, and to access the database it uses variable names in all caps, like this: those are constants: it's like a variable, except once you define it, it stays set at that value and you can't change it. And it no

Re: [PHP] What are these weird variables??

2005-06-03 Thread John Nichel
Brian Dunning wrote: I'm using a class that I downloaded, and to access the database it uses variable names in all caps, like this: if(!defined(MAGPIE_DBUSER)) define(MAGPIE_DBUSER, brian); ... $dbuser = MAGPIE_DBUSER; ... $dbh = mysql_connect($dbhost,$dbuser,$dbpass); And it works

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Marek Kilimajer
Brian Dunning wrote: On Jun 3, 2005, at 6:48 AM, Marek Kilimajer wrote: Brian Dunning wrote: I am using a routine to find 50 random records in a large MySQL database (about a million records) where I generate a list of 50 random unique ID's, why can't you use the where condition in

Re: [PHP] Site Design Strategy

2005-06-03 Thread Rory Browne
On 6/3/05, Greg Donald [EMAIL PROTECTED] wrote: On 6/3/05, Angelo Zanetti [EMAIL PROTECTED] wrote: what you are looking for is a CMS system something like www.plone.org also there is an rich text HTML area which you can use on your site, check this out:

Re: [PHP] Site Design Strategy

2005-06-03 Thread Greg Donald
On 6/3/05, Rory Browne [EMAIL PROTECTED] wrote: There's no need to reply to me directly since I'm on the list. FYI that happens automaticly when you reply to all, which a lot of people do for mailing lists. I hit 'reply to all' as well, then I remove everything but [EMAIL PROTECTED] It's not

Re: [PHP] Site Design Strategy

2005-06-03 Thread Angelo Zanetti
threaded in terms of the posts being shown in a tree view kinda way... so if I reply to your post in a threaded mail cleint it will be shown under your post/reply/message where as if I replied to the origional it will be seen on the same level as the others who replied to the origional post for

Re: [PHP] Site Design Strategy

2005-06-03 Thread Angelo Zanetti
threaded in terms of the posts being shown in a tree view kinda way... so if I reply to your post in a threaded mail cleint it will be shown under your post/reply/message where as if I replied to the origional it will be seen on the same level as the others who replied to the origional post for

[PHP] Re: Check class definition

2005-06-03 Thread Matthew Weier O'Phinney
* Chris Boget [EMAIL PROTECTED]: You can use defined() to check to see if a constant has been defined. You can use function_exists() to see if a function has been defined. But what can you use to check to see if a class has been defined? class_exists() -- Matthew Weier O'Phinney

Re: [PHP] Re: Check class definition

2005-06-03 Thread Chris Boget
You can use defined() to check to see if a constant has been defined. You can use function_exists() to see if a function has been defined. But what can you use to check to see if a class has been defined? class_exists() I found that after it dawned on me to search for the phrase

[PHP] Returned mail: Data format error

2005-06-03 Thread Mail Administrator
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner

Re: [PHP] what do you guys use for reporting?

2005-06-03 Thread Philip Hallstrom
system reporting: eg: sales per province/state well any reporting, most systems use reporting im sure most of the reporting is done using PHP. I haven't used either, but mabye these... OpenRPT: The First Fully Cross-Platform SQL Report Writer http://www.openrpt.com/ DataVision Home

[PHP] Re: Best way to use other objects within classes?

2005-06-03 Thread Jason Barnett
Matthew Weier O'Phinney wrote: * Murray @ PlanetThoughtful [EMAIL PROTECTED]: snip (Note: my development environment is PHP 5.0.3, but the production environment is 4.3.10. This is my first project built with 5.x local and 4.1.x remote, so if anyone with more experience spots any fatal flaws

Re: [PHP] Newbie - Request interface for PHP 5 website

2005-06-03 Thread Jason Barnett
Greg Donald wrote: On 6/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: For PHP 4.x sites I used my index page to capture the HTTP request and use a switch statement to call the content or task based on the $_GET and $_POST arrays. That was very inefficient and the Switch case became totally

RE: [PHP] Re: Best way to use other objects within classes?

2005-06-03 Thread Murray @ PlanetThoughtful
If you're developing with PHP5, but the production environment is PHP4 then at the top of each script you probably want to add: ?php ini_set('zend.ze1_compatibility_mode', 1); ? This way you will have objects default to pass by value instead of by reference and you don't end up

Re: [PHP] Re: Best way to use other objects within classes?

2005-06-03 Thread Jason Barnett
Then you're a better coder than me, but then again who isn't. :) It's just that in general I try to make things as strict / difficult as possible to code during development so that I will catch as many errors as possible before hand. But then again I use error_reporting(E_ALL). -- PHP

Re: [PHP] Quick q, most prolly 0T

2005-06-03 Thread Rory Browne
On 6/2/05, Ryan A [EMAIL PROTECTED] wrote: Hi Chris, Thanks for replying I noticed a site that is using php, but he is has shortened the url so that the filename was not shown.. eg: somesite.com/?a=1 How did they do that? It's called a directory index. Examples include

[PHP] Re: Exporting to MS Word or Excel

2005-06-03 Thread Jason Barnett
Miguel Guirao wrote: Hi!!! Are there any chances that I could export a dynamic created web page into MS Word or Excel? I know this can be done with PDF!! I'm using LAMP!! If you're using LAMP then you're probably out of luck. The only possibility I can think of would be to check out the

Re: [PHP] Delay?

2005-06-03 Thread GamblerZG
What's keeping you. There are no official PHP forums. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delay?

2005-06-03 Thread John Nichel
GamblerZG wrote: What's keeping you. There are no official PHP forums. [EMAIL PROTECTED] jnichel]$ whois officialphpforums.com [Querying whois.internic.net] [whois.internic.net] Whois Server Version 1.3 Domain names in the .com and .net domains can now be registered with many different

Re: [PHP] Delay?

2005-06-03 Thread Greg Donald
On 6/3/05, GamblerZG [EMAIL PROTECTED] wrote: What's keeping you. There are no official PHP forums. So start one. Lots of free forum scripts out there. Domain names are like $8.95 or something, and hosting can be had for free if you look around, or for cheap if you don't. Besides the PHP

[PHP] htmlArea - a 'client editor'

2005-06-03 Thread info
Ryan A: Do you mean htmlArea? http://www.dynarch.com/projects/htmlarea/ .. we used htmlArea in one of our projects and were quite happy with the simple user interface. It had a couple of bugs ... but maybe the newer release has squashed these? Check with the developer. Rob.

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Richard Lynch
On Thu, June 2, 2005 4:31 pm, Brian Dunning said: I am using a routine to find 50 random records in a large MySQL database (about a million records) where I generate a list of 50 random unique ID's, and then use MySQL's in command to find them. I can't use order by rand() due to its

Re: [PHP] Quick q, most prolly 0T

2005-06-03 Thread Richard Lynch
On Wed, June 1, 2005 8:42 pm, Ryan A said: On 6/2/2005 5:17:47 AM, Richard Lynch ([EMAIL PROTECTED]) wrote: URL re-writing can do that -- It ends up using his 'index' file (or whatever) but you don't see it in the URL. Thanks for replying. But if I want to copy his exact way of doing

[PHP] autocomplete a field

2005-06-03 Thread Olga Urban
Hi, I am new to php and I would like to find out if there's some kind of a function that would autocomplete the word/value when the user is trying to fill out a field in a form. Thank you. Olga -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] autocomplete a field

2005-06-03 Thread Jay Blanchard
[snip] Hi, I am new to php and I would like to find out if there's some kind of a function that would autocomplete the word/value when the user is trying to fill out a field in a form. Thank you. [/snip] Since PHP is server side it will not do this. Look into JavaScript. -- PHP General Mailing

Re: [PHP] autocomplete a field

2005-06-03 Thread Mikey
Olga Urban wrote: Hi, I am new to php and I would like to find out if there's some kind of a function that would autocomplete the word/value when the user is trying to fill out a field in a form. Thank you. Olga That is a client side scripting issue... try javascript... HTH, Mikey --

RE: [PHP] autocomplete a field

2005-06-03 Thread Jim Moseby
Hi, I am new to php and I would like to find out if there's some kind of a function that would autocomplete the word/value when the user is trying to fill out a field in a form. Thank you. PHP is server side, not client side, where the form is. You would need to use javascript for that.

Re: [PHP] autocomplete a field

2005-06-03 Thread Philip Hallstrom
Hi, I am new to php and I would like to find out if there's some kind of a function that would autocomplete the word/value when the user is trying to fill out a field in a form. Thank you. This is a JavaScript issue, but that said... http://www.pjkh.com/wiki/field_completion Toot! Toot! ;-)

Re: [PHP] autocomplete a field

2005-06-03 Thread Joe Harman
Hi Philip! congrats on being new to PHP... you'll find that PHP is very robust 'Server Side Scripting Language'... you'll probably want to subscribe to the javascript mailing list for your javascript questions... the people here want you to keep the questions on this mailing list restricted to

Re: [PHP] Re: Check class definition

2005-06-03 Thread Jochem Maas
Chris Boget wrote: You can use defined() to check to see if a constant has been defined. You can use function_exists() to see if a function has been defined. But what can you use to check to see if a class has been defined? class_exists() // and $is = class_exists($er, false); //

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Satyam
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do you generate a list of 50 random unique IDs in the first place? By using the SQL function to create those randoms How to you guarantee that all those IDs are in the database? No need for that. When you do

Re: [PHP] Site Design Strategy

2005-06-03 Thread Mark Cain
Here is what I use: The articles (non-technical user supplied content is stored in a database e.g. mySQL with a table named something like article_content). The table has columns such as CREATE TABLE article_content ( id int(11) NOT NULL auto_increment, page_name varchar(35) NOT NULL

Re: [PHP] htmlArea - a 'client editor'

2005-06-03 Thread Rory Browne
htmlArea afaik only works on MSIE 5+. It doesn't work on Mozilla/Firefox/etc. On 6/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ryan A: Do you mean htmlArea? http://www.dynarch.com/projects/htmlarea/ .. we used htmlArea in one of our projects and were quite happy with the simple

[PHP] Re: what do you guys use for reporting?

2005-06-03 Thread Skrol 29
To do Html reports, like for all dynamic Html pages, I use a Template Engine. The one I use is the one I develop and maintain. It's TinyButStrong, mature and works with WYSIWYG templates. Reports are easy with a Template Engine. --- Skrol29 www.tinybutstrong.com

[PHP] need help with php/xml/template !!!

2005-06-03 Thread bruce
hi... i'm playing around with trying to get a better understanding of an app (www.sitellite.org) it uses templates, which appear to have php/xml/html and i'm trying to understand it a little better. is there someone i can talk to who has a few minutes that might be willing to walk me through

[PHP] Help with some OOP

2005-06-03 Thread JamesBenson
Hello all, Ive been working with PHP for my websites for a few months, just attempted to build my own class, after reading all this stuff about automated robots and XSS attacks etc decided to step up security a bit, my result is an attempt to create a class for using the token method within

Re: [PHP] autocomplete a field

2005-06-03 Thread xfedex
Hi, Anyone know if theres a way to disable this feature for user using old browsers or not suporting JS/XML? Thanks, pancarne.

[PHP] mozilla urlencode

2005-06-03 Thread John Taylor-Johnston
I seem to have a problem with Mozilla or with IE? echo a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a http://foo.org/_private/directory.php#Montr%E9al+District+%234 works in IE6, but Mozilla will not accept it. Mozilla does not work. Am I approaching this wrong?

Re: [PHP] mozilla urlencode

2005-06-03 Thread Sebastian
i dont think having a + in an achor tag is standard.. but i could be wrong. John Taylor-Johnston wrote: I seem to have a problem with Mozilla or with IE? echo a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a