You can insert file data in DB first, using LOAD DATA INTO FILE, after it'll
be easy to manipulate this DB table with a help of php-script.
Vince LaMonica [EMAIL PROTECTED] ???/ ? ?:
news:[EMAIL PROTECTED]
I sent this note off to the php-db list last night, but the
On Wed, 22 Jun 2005, Sergey wrote:
} You can insert file data in DB first, using LOAD DATA INTO FILE, after it'll
} be easy to manipulate this DB table with a help of php-script.
Actually, I can't, as the CSV contains fields for two different tables. I
may have explained it better here:
I
Hi,
I'm writing a big web application, and trying really hard to seperate
business logic and presentation, which been no problem up to now.
Because I abstracted the business logic so much the framework became
heavier, sometimes a simple action can take up to 2 mb memory and
several extra
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 8:13 PM
sarcasm
you're not your, but it's understandable coming from someone
named after a car license plate number.
In denmark it costs around 1000€ to get a license plate with Your own
Hi
Do you are or know where I could find something (already made) to split
eml (getting headers, body)
I try to have a look on imap extension, but it seems to need an smtp
server connection.
regards
david
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Try something like:
$classname = MyClass;
$construct_params = array(param1,param2,param3);
$return =null;
if(class_exists($classname)){
$param=explode( ',' , $construct_param);
# You must add here some security checks
eval($retrun = new $className($param));
var_dump($return);
}
Kim Madsen wrote:
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 8:13 PM
sarcasm
you're not your, but it's understandable coming from someone
named after a car license plate number.
In denmark it costs around 1000€ to get a license
-Original Message-
From: david forums [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 10:48 AM
Do you are or know where I could find something (already made) to
split
eml (getting headers, body)
Use fopen() to read the file line by line, then echo/save the info You
need
--
olivier wrote:
Hi,
I answered this also, but apparently I only replied to the OP...
(reproduced here - minus the typos in my first post on this topic :-/)
if (class_exists($className, false)) {
$obj = new $className($construct_params);
} else {
die(Hack off mate.);
}
Try something
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
I would read in the CSV file, and populate two arrays, using the
ordernumber as a key in the header array, loop through the header array
containg $o_num, $date, $name, $addr, to do the db inserts.
The details table would be an array of arrays, key would be ordernumber
again, then the sub array
On Wed, 22 Jun 2005, Ben Duffy wrote:
} I would read in the CSV file, and populate two arrays, using the
} ordernumber as a key in the header array, loop through the header array
} containg $o_num, $date, $name, $addr, to do the db inserts.
Ok, I think I get this, though I am confused about
I need to find a way to allow users to select multiple files from a list
and generate a single PDF file from them.
The documents are limited to the following formats: MS Word, MS
PowerPoint, MS Excel, Plain Text, gif/jpeg images.
Are there any PHP classes or modules that exist which can
Sorry for typo error, just need my cup of cofee...
Here is a good post for:
http://fr.php.net/manual/fr/function.call-user-func-array.php
from taylor
08-May-2005 12:04
?php
/**
* Create an object of a specified type using
-- Message transmis --
Subject: Re: [PHP] variable object creating
Date: Mercredi 22 Juin 2005 14:19
From: olivier [EMAIL PROTECTED]
To: php-general@lists.php.net
Sorry for typo error, just need my cup of cofee...
Here is a good post for:
Sorry for typo error, just need my cup of cofee...
Here is a good post for:
http://fr.php.net/manual/fr/function.call-user-func-array.php
- see:
from taylor
08-May-2005 12:04
- using eval.
I dont like eval too but i think that is depending on the pb we want to
solve... if you can change contrutor
Hi,
Basically you can take your mind off object persistance in PHP
unless you code a C extension yourself which would do such a thing.
Besides code accelerators and caching techniques there isn't much
to play with; at least none that I know of.
Catalin
Evert | Rooftop wrote:
To make persistant object with php use serialize
and include the object into session.
it's the only way with php
regards
david
Le Wed, 22 Jun 2005 14:43:51 +0200, Catalin Trifu
[EMAIL PROTECTED] a écrit:
Hi,
Basically you can take your mind off object persistance in PHP
frank.
try to do an install of php-mysql. you can do this by yum/rpm. this should
get you the ability to run the php commandline test app. let's get this
working 1st. once this is working, we can get your apache working
correctly..
btw, what do you get when you do a 'httpd -l'?
-bruce
olivier wrote:
Sorry for typo error, just need my cup of cofee...
:-) no probs ... I think we gave the OP plenty to think about!
liked you 'Register' idea - seems like it could work well.
also nice one for pointing out my php5isms - I forget that alot
of stuff I use is php5 only (e.g. second
david forums wrote:
To make persistant object with php use serialize
and include the object into session.
it's the only way with php
tell it to Mr. Rethans:
http://talks.php.net/show/srm-ffm2004
and also read here to get a better understanding of the possibilities/
limitations:
Yes, but putting objects into sessions is pretty inefficient
and makes no sense for database connection and such, since any resources
associated with that object are discarded at script end.
Catalin
david forums wrote:
To make persistant object with php use serialize
and include the
rene...
the scenario that i'm envisioning could very well cause people to get
ticked. but i also can easily see financial institutions starting to tell
their customers, that unless your system is of a certain level, or running a
certain kind of browser, that you'll get charged more to do business
Bosky, Dave wrote:
I need to find a way to allow users to select multiple files from a list
and generate a single PDF file from them.
http://www.fpdf.org
http://php.net/pdf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo
($cartoon['art_height'] * 2.54); ? cm
How can I limit the result of that math to one decimal place,
Vince,
I have made a couple of changes in the code below, none of this has been
tested, but I have done similar in the past.
As long as u don't have too mauch data to read in, this method gives you the
most flexibility.
If the CSVs are large, you might have to process line by line instead of
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo
($cartoon['art_height'] * 2.54); ? cm
How can I limit the result of that math to one decimal place, ie, 9.5
Hello Jack,
Wednesday, June 22, 2005, 2:17:48 PM, you wrote:
JJ How can I limit the result of that math to one decimal place, ie,
JJ 9.5 cm, not 9.523 cm?
number_format() is your friend.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
I do not fear
Jack Jackson wrote:
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo
($cartoon['art_height'] * 2.54); ? cm
How can I limit the result of that math
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo
($cartoon['art_height'] * 2.54); ? cm
How can I limit the result of that math to one decimal
bruce wrote:
rene...
the scenario that i'm envisioning could very well cause people to get
ticked. but i also can easily see financial institutions starting to tell
their customers, that unless your system is of a certain level, or running a
certain kind of browser, that you'll get charged more
Thanks everyone! I did look in the manual under operators and must have
missed the link to round. Thanks to all who replied!
Simon Allison wrote:
http://au3.php.net/round
-Original Message-
From: Jack Jackson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 22 June 2005 9:18 PM
To:
Jack Jackson wrote:
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo
($cartoon['art_height'] * 2.54); ? cm
How can I limit the result of that math
So you want a BAMP, instead of a LAMP?
As php files are text based what works for a Linux or a Windows
distribution, Should work for BSD as long as Apache, MySQL and PHP are
properly configured and they (the php file) don't use OS specific code. Try
a search of www.hotscripts.com
Chris
The
Okay Bruce:
There's one very major problem with your suggestion - IT CAN NOT BE DONE.
YOU CAN NOT TEST A REMOTE PIECE OF SOFTWARE TO MAKE SURE THAT THERE
HAVE BEEN NO CHANGES TO IT.
There are ways of checking what type of valid browser, or what type of
valid Operating System, your using, but
Hello,
on 06/20/2005 03:44 PM Evert | Rooftop said the following:
Hi,
I'm writing a big web application, and trying really hard to seperate
business logic and presentation, which been no problem up to now.
Because I abstracted the business logic so much the framework became
heavier,
Yes, updating php and mysql seems like a good idea to me.
Here's the output of httpd -l:
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
I haven't used yum before (only rpm). The yum man page presents a number of
commands and options.
I have a couple of questions:
Should
what does this have to do with amy's site?
just curious about the subject
John Nichel wrote:
Jack Jackson wrote:
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54);
Frank Whitsell wrote:
snip
Just look on your install CD's for the php-mysql RPM. If you don't have
the CD's, get it from here
http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/Fedora/RPMS/
Once you have it...
rpm -ivh php-mysql-4.3.9-3.i386.rpm
That's the version which
Hi everybody,
i have a little question for you.
I wrote a procedure that puts some images in a MySQL database from a reserved
area that can be viewed, choosing in list of them in a client area.
My problem is that in client area users must refresh (F5) their browser to
see the newly added
Dear friends,
we have a peculiar problem here.
Our customer log in in our customer relationship management application
using a unique if, unique password. We use php with mysql.
We have a partnership with a company which has a crm application developed
in asp, sqlserver. The same customer log
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
hi..
a somewhat php/jscript question...
i have the following onclick that works...
-
div id=cms-edit-buttona href=# onclick=cms_focus ('cms-edit', 1);
cms_focus ('cms-properties', 1); cms_focus ('cms-state', 99); this.blur ();
return
frank,
what was/is the output of rpm -qa | grep php
use that to tell you what version of php/rpm you have installed. you can
then either get the php-mysql rpm from fedora, or from one of the other
mirror sites.. i think rpmfind.net/com should have it...
once you have it, you can go ahead and do
sure it can rory...
i can give you a file... i create a hash of the file... if i have a process
within the file that i give you that allows the file to more or less create
the hash of itself, and if i can query/access the file to get the
information, then i can more or less determine if the file
bruce mailto:[EMAIL PROTECTED]
on Wednesday, June 22, 2005 10:28 AM said:
sure it can rory...
i can give you a file... i create a hash of the file... if i have a
process within the file that i give you that allows the file to more
or less create the hash of itself, and if i can
if i as a bank, refuse to allow you to signin to my server, because i
detect
that your client is not valid/legitimate, meaning i think it's been
hacked,
how have i trampled the rights of anyone. i haven't. will some customers
run, sure.. perhaps.. will i potentially feel better. yeah. will i
On 6/22/05, bruce [EMAIL PROTECTED] wrote:
sure it can rory...
i can give you a file... i create a hash of the file... if i have a process
within the file that i give you that allows the file to more or less create
the hash of itself, and if i can query/access the file to get the
Check out
http://wp.netscape.com/assist/net_sites/pushpull.html
I've never tried it though.
On 6/22/05, Simone Nanni [EMAIL PROTECTED] wrote:
Hi everybody,
i have a little question for you.
I wrote a procedure that puts some images in a MySQL database from a
reserved area that can be
First of all, I _think_ this is more of a javascript/jscript question than a
php one.
Are you just trying to make a javascript call from php onload? If so, i'm
pretty sure you can use window.onLoad in a script block in the head.
Also, be sure to set your scripting type in the onclick. i.e.
I imagine some of you have written a nice little function for taking an
arbitrary user-input string, and sanitizing and cleaning it for us as a
UNIX (Mac OSX) filename...
Would you mind sharing it? Thanks.
René
---
René Fournier
www.renefournier.com
--
PHP General Mailing List
I'm sure you could do something with
preg_replace(#[^a-zA-Z0-9_]#, , $input);
On 6/22/05, René Fournier [EMAIL PROTECTED] wrote:
I imagine some of you have written a nice little function for taking an
arbitrary user-input string, and sanitizing and cleaning it for us as a
UNIX (Mac OSX)
I have a home-grown PHP framework that I use for rapid site production
for my clients. I've been fascinated with XML/XPath/XSLT for quite a
while and with the new XML transformation capabilities packaged with
PHP5 I have decided to rewrite the framework using PHP's DomDocument
and XsltProcessor
Documented research indicate that on Wed, 22 Jun 2005 12:15:36 +1000, Ian
Holsman wrote:
if you do know a IIS mailing list, please feel free to mail me..
I really couldn't find any.
I was actually talking about Usenet groups, but ok. Microsoft's usenet
server has a whole bunch of IIS groups,
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
Documented research indicate that on Wed, 22 Jun 2005 09:17:48 -0400, Jack
Jackson wrote:
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo
This doesn't answer your question whatsoever (sorry), but is meant merely
as a friendly recommendation: DON'T use JScript !!
JScript only works with Internet Explorer 4-6 (as far as I've been able to
tell, it doesn't even work with IE 7 in Longhorn), just like the original
JavaScript only works
Bruce,
I think you missed my point here: Nomatter how secure the client's browser
is, or even if he uses a custom made Client Access Program (believe me, the
banks in Denmark used that approach at first because browsers weren't
secure enough), it still doesn't change the fact that there may be
but chris...
go back and look at the entire thread...
i never stated that i wanted to be able to know whether the entire system is
secure on the client's end.. i stated that i wanted to be able to know if
the client that i'm dealing with is legitimate.. keep the conversation
apples to apples...
rene..
you've grapsed the problem/issue, as have most. all i said was that i've
started to think about the issue of security as also meaning i have to start
thinking about the client. just as users have had to start to think about
'is the site i'm looking at, really the site i want/should be
I'm using the following code in an effort to identify bots:
$client = $_SERVER['HTTP_USER_AGENT'];
if(!strpos($client, 'ooglebot') !strpos($client, 'ahoo') !strpos
($client, 'lurp') !strpos($client, 'msnbot'))
{
(Stuff that I do if it's not a bot)
}
But it doesn't seem to be catching a
bruce mailto:[EMAIL PROTECTED]
on Wednesday, June 22, 2005 3:17 PM said:
but chris...
go back and look at the entire thread...
i never stated that i wanted to be able to know whether the entire
system is secure on the client's end.. i stated that i wanted to be
able to know if the
On Wed, June 22, 2005 8:45 am, symbulos said:
we have a peculiar problem here.
Our customer log in in our customer relationship management application
using a unique if, unique password. We use php with mysql.
We have a partnership with a company which has a crm application developed
in
On Wed, June 22, 2005 8:16 am, Simone Nanni said:
i have a little question for you.
I wrote a procedure that puts some images in a MySQL database from a
reserved area that can be viewed, choosing in list of them in a client
area.
My problem is that in client area users must refresh (F5)
On Wed, June 22, 2005 1:48 am, david forums said:
Hi
Do you are or know where I could find something (already made) to split
eml (getting headers, body)
I try to have a look on imap extension, but it seems to need an smtp
server connection.
?php
$message = /full/path/to/email/message;
On Mon, June 20, 2005 11:44 am, Evert | Rooftop said:
I'm writing a big web application, and trying really hard to seperate
business logic and presentation, which been no problem up to now.
Because I abstracted the business logic so much the framework became
heavier, sometimes a simple action
On Tue, June 21, 2005 8:33 pm, Eli said:
Hi,
I want to create an object in a form that I get the class name and its
parameters, and I need to create that object...
How can this been done?
i.e:
$classname = MyClass;
$construct_params = array(param1,param2,param3);
/* Now create the
I have a site that has this problem every once in a while, and seemingly
randomly. It is a database driven site, as indicated by the error. This
same page when loaded numerous times will sometimes work just fine, and then
sometimes it will give an error message like this:
I bet if you connect using the IP directly it will solve your problem.
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http://www.criticalcode.com
-Original Message-
From: Jonathan Duncan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 6:27 PM
To:
On Tue, June 21, 2005 8:59 am, Sunny Boy said:
if someone writes something in a text box, how would I convert a line
break in the text area to echo a br /? I think i'll have to get the \n
and convert it. can anyone tell me?
While the two solutions provided so far are Really Nifty (tm) both
On Tue, June 21, 2005 9:00 am, david forums said:
Could you give me a way to send (with a local sendmail) eml file.
Not as attachment but as the whole email.
If you want to maintain as many of the headers in the original as
possible, you will want to use the extra fourth argument to
On Tue, June 21, 2005 7:57 am, Michael Caplan said:
I am looking for some advice on how to go about debugging Apache 1.3.33 /
PHP 5.0.4 on a production Linux box (RHE 3). The scenario is this: Once
a
day we find a segfault in our apache logs. From our current position, we
don't know what
On Sun, June 19, 2005 8:33 am, Robert Cummings said:
On Sun, 2005-06-19 at 09:22, M. Sokolewicz wrote:
jenny mathew wrote:
Untested, very crude:
^^
It's a bit of a dirty hack though. If I compare a 2 character text
against a 40k text, the error handler will be invoked
On Wed, 2005-06-22 at 22:55, Richard Lynch wrote:
On Sun, June 19, 2005 8:33 am, Robert Cummings said:
On Sun, 2005-06-19 at 09:22, M. Sokolewicz wrote:
jenny mathew wrote:
Untested, very crude:
^^
It's a bit of a dirty hack though. If I compare a 2 character
On Wed, June 22, 2005 6:26 pm, Jonathan Duncan said:
I have a site that has this problem every once in a while, and seemingly
randomly. It is a database driven site, as indicated by the error. This
same page when loaded numerous times will sometimes work just fine, and
then
sometimes it
On Wed, June 22, 2005 3:57 pm, Brian Dunning said:
I'm using the following code in an effort to identify bots:
$client = $_SERVER['HTTP_USER_AGENT'];
if(!strpos($client, 'ooglebot') !strpos($client, 'ahoo') !strpos
($client, 'lurp') !strpos($client, 'msnbot'))
{
(Stuff that I do if
On Wed, June 22, 2005 3:27 pm, bruce said:
rene..
you've grapsed the problem/issue, as have most. all i said was that i've
started to think about the issue of security as also meaning i have to
start
thinking about the client. just as users have had to start to think about
'is the site i'm
When I worked with other OO languages, I usually designed my persistent
business objects in two levels. A level (lower level) designed and
implemented direct database calls. Each database table had a class
abstraction at this level which provided the database calls for saving,
loading and etc.
I see where you are coming from and it is a good idea. However, in this
particular problem it is not so much DNS related. If I were to use an IP
then the error could very well just say this:
-
Warning: mysql_connect(): Unknown MySQL Server
Yes, it has happened on different servers, none of them is bleeding edge,
still using Apache 1.x and PHP 4.3.x. The sites are not using any character
sets other than default. The machines are in a heat controlled environment
and monitored for change so I would know if there was that kind of
OK this is one of those crazy issues where blindness seems to set in, or
some kind of issue.
I seem to not be getting a value passed to a php script when trying to use
the value within an image map.
If I put this in the .php file, the results are as expected:
Value: % echo $value; %
If in the
81 matches
Mail list logo