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
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:
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
--
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
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
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.
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
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
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)
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
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
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
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
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
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
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
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
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
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?
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
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
[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
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:
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
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
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
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:
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
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
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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
[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
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
--
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.
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!
;-)
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
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); //
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
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
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
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
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
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
Hi,
Anyone know if theres a way to disable this feature for user using old
browsers or not suporting JS/XML?
Thanks,
pancarne.
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?
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
62 matches
Mail list logo