php-general Digest 13 May 2001 20:53:43 -0000 Issue 684
Topics (messages 52615 through 52634):
Re: PHP Editor
52615 by: James Crowley
Re: PHP's OO is bad?
52616 by: Phil Driscoll
52617 by: Zeev Suraski
Re: A question on how to get the root directory
52618 by: Luke Welling
最近どう瘢雹?
52619 by: maico.gaea.ocn.ne.jp
multiline text areas and mysql doesn't work :(
52620 by: Ciaron Nixon
52621 by: Ethan Schroeder
52622 by: Keith Ng
Can't add PHP4 module to Apache (win32)
52623 by: Andrew Kirilenko
statistical functions
52624 by: Adi Ionescu
52626 by: eschmid+sic.s.netic.de
52631 by: Billy Harvey
52632 by: eschmid+sic.s.netic.de
Re: Re-directing
52625 by: Raquel Rice
File upload !!!!
52627 by: Matthias Roggendorf
52628 by: Kevin Williams
52629 by: Arne Borkowski \(borko.net\)
func_get_arg() and MySQL ID's
52630 by: Chris Cameron
Re: "Free" Database Design Program
52633 by: Augusto Cesar Castoldi
phpMyAdmin: dumping problem
52634 by: PeterOblivion.aol.com
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
You might also want to try a freeware & opens ource editor I am
developing, called Developers Pad
http://www.developerspad.com/
Regards,
- James
Editor, VB Web
==================
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ# - 60612011
==================
>
> > -----Original Message-----
> > From: Laurie Landry [mailto:[EMAIL PROTECTED]]
> > Sent: 12 May 2001 17:24
> > To: PHP
> > Subject: RE: [PHP] PHP Editor
> >
> >
> > I like using Homesite - color coordination of code as well. I use
> > Dreamweaver for the design elements as well, but sometimes it
> doesn't work
> > very well for php coding.
> >
> > Laurie M. Landry
> > <lmlweb> Design & Development
> >
> > www.lmlweb.com
> > [EMAIL PROTECTED]
> >
> > T: (604) 872-6915
> > F: (425) 732-1547
> >
> > > -----Original Message-----
> > > From: Dave Mateer [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 11, 2001 2:36 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] PHP Editor
> > >
> > >
> > > I'm using ColdFusion Studio which makes life very easy - good colour
> > > co-ordination of the code, and only takes 1 button the do an
> > FTP upload up
> > > to the web-server (I'm using a Windows box to do editing, then
> > a Linux box
> > > as webserver).
> > >
> > > We've been using Dreamweaver as well to bring the design elements
> > > together...works well, when you're doing the html stuff. For
> > > pure coding, I
> > > recommend ColdFusion Studio. ahhh it costs money though.
> > >
> > > Textpad (from textpad.com) is good...can d/load an evaluation
> > copy (fully
> > > functional, and doesn't time out)..
> > >
> > > Hope this help
> > >
> > > David.
> > >
> > >
> > >
> > > "Daniel" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Hi,
> > > >
> > > > Just wondering whether you guys use any type of editor when
> > > programming in
> > > > PHP? if so what have you found to be useful?
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > > > Daniel
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> >
> >
On Sunday 13 May 2001 06:25, Sean Cazzell wrote:
> certainly not the "signigicant slow
> down" that he claims.
<guessing - haven't done any tests>
I don't know whether or not what Sterling said is true, but I think that your
comment that the difference in speed with a larger program would be less is
incorrect in view of your benchmark. Your test does so little that I would
imagine that the bulk of the execution time is taken up just by the
initialisation and closedown of the request (by browser, apache and php) and
the time taken in transit. It *could* be that the OO stuff executed many
times more slowly than the non-OO.
</guessing - haven't done any tests>
Cheers
--
Phil Driscoll
Using OO usually results in a significant slowdown. Significant doesn't
necessarily mean 50% performance drop; 5% to 20% is not uncommon, and as
you said, YMMV.
We're working on ways to improve the OO performance, but it's pretty
difficult, due to the very dynamic nature of PHP.
Zeev
At 08:25 13/5/2001, Sean Cazzell wrote:
>His series of articles ("top php programming mistakes") is great, and
>I've heard good things about his "PHP Cookbook" but Hughes is way off
>here. There is some additional overhead with OO code but there is *very*
>little difference in speed (less than 5% in synthetic benchmarks, and
>much less in more complex php code) - certainly not the "signigicant slow
>down" that he claims.
--
Zeev Suraski <[EMAIL PROTECTED]>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
""C Benn"" <[EMAIL PROTECTED]> wrote:
> MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP?
It
> gives you the ability to determain the root of the web site and use it as
a
> reference.
Is $DOCUMENT_ROOT what you are looking for.
To see a list of the predefined constants, look at the output of the
function phpinfo(). You will be able to see from what they are set to which
ones you want to use.
Cheers,
Luke Welling
----------
PHP and MySQL Web Development
by Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842/tangledwebdesign
★★ Chyoi Machi Mail ★★
情報提供企業名 : NET-DOCONO
◆◇◆◇◆◇◆◇
http://sv.g-spot.to/docono/
ねぇねぇ聞いてよ
おしゃれでかっこいい人がいっぱい
らしい。よかったら、覗いてみて!
きっと、いい出会いがあるよ。
http://sv.g-spot.to/docono/
◆◇◆◇◆◇◆◇
Chyoi machi Mail に関するご意見など
[EMAIL PROTECTED] まで
I'm trying to insert the conents of a submitted textarea into a field of a
db but it seems to be stripping the control characters or not fomatting them
properly. The record updates fine but when I display it all the newlines are
gone ie the whole field appears on 1 line.
Any ideas how to get it to store the control chars?
-Ciaron
It should be storing them unless you are doing something to the data before
inserting it into the database. Have you tried outputting the data through
nl2br() ?http://www.php.net/manual/en/function.nl2br.php
Ethan Schroeder
----- Original Message -----
From: "Ciaron Nixon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 13, 2001 9:22 AM
Subject: [PHP] multiline text areas and mysql doesn't work :(
> I'm trying to insert the conents of a submitted textarea into a field of a
> db but it seems to be stripping the control characters or not fomatting
them
> properly. The record updates fine but when I display it all the newlines
are
> gone ie the whole field appears on 1 line.
> Any ideas how to get it to store the control chars?
>
> -Ciaron
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
In reply to [EMAIL PROTECTED]:
> Return-Path: <[EMAIL PROTECTED]>
> Received: from toye.php.net (va.php.net [198.186.203.51])
> by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4DGDXZ25935
> for <[EMAIL PROTECTED]>; Mon, 14 May 2001 00:13:39 +0800
> Received: (qmail 12864 invoked by uid 1013); 13 May 2001 16:15:49 -0000
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 12848 invoked by uid 9); 13 May 2001 16:15:49 -0000
> To: [EMAIL PROTECTED]
> From: "Ciaron Nixon" <[EMAIL PROTECTED]>
> Date: Sun, 13 May 2001 17:22:28 +0100
> Lines: 9
> Message-ID: <9dmbvl$chc$[EMAIL PROTECTED]>
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
> Subject: [PHP] multiline text areas and mysql doesn't work :(
> X-UIDL: ;GH!!Oa4!!_P6"!Z&K!!
> I'm trying to insert the conents of a submitted textarea into a field of a
> db but it seems to be stripping the control characters or not fomatting them
> properly. The record updates fine but when I display it all the newlines are
> gone ie the whole field appears on 1 line.
> Any ideas how to get it to store the control chars?
> -Ciaron
Use nl2br() to format the display properly in HTML.
Goto www.php.net/nl2br for more info.
So this would work well:
<?php echo nl2br($query); ?>
Updating the record works because you probably did something like this:
<textarea><?php echo $query; ?></textarea>
Regards,
Keith Ng
_______________________________
Co-founder
K-Designs Incorporated
[EMAIL PROTECTED]
http://www.k-designs.com.sg/
Hi All!
Just installed PHP4 & Apache.
Apache has started well.
Then I've added two strings from install.txt to the httpd.conf:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
(I've PHP installed in c:\apps\PHP\)
After Apache restart, I've got following message:
Syntax error on line 203 of c:/apps/apache/conf/httpd.conf:
Cannot load c:/apps/php/sapi/php4apache.dll into server: (126) The specified
module could not be found:
Any suggestions?
Best regards,
Andrew Kirilenko.
Hello
Can someone please help me find the normal distribution function!
Thx,
Adi Ionescu
On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote:
> Can someone please help me find the normal distribution function!
I dont know of statistical functions within PHP. But I have asked on the
developers list to make a interface to R. That is a language much more
better for statistical computing than PHP.
See http:/cran.r-project.org/.
-Egon
--
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/
> On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote:
> > Can someone please help me find the normal distribution function!
>
> I dont know of statistical functions within PHP. But I have asked on the
> developers list to make a interface to R. That is a language much more
> better for statistical computing than PHP.
>
> See http:/cran.r-project.org/.
>
> -Egon
Egon - I've been doing some small amount of statistical processing in
PHP, and having something more efficient for more complex activity
would be useful. Per you reference, I was looking at the web page for
R. Have you tried using PHP to write a script file and call R for
processing?
Billy
On Sun, May 13, 2001 at 03:08:36PM -0400, Billy Harvey wrote:
> > On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote:
> > > Can someone please help me find the normal distribution function!
> >
> > I dont know of statistical functions within PHP. But I have asked on the
> > developers list to make a interface to R. That is a language much more
> > better for statistical computing than PHP.
> >
> > See http:/cran.r-project.org/.
> Egon - I've been doing some small amount of statistical processing in
> PHP, and having something more efficient for more complex activity
> would be useful. Per you reference, I was looking at the web page for
> R. Have you tried using PHP to write a script file and call R for
> processing?
I know there have been a Prof. who have written many useful statistical
scripts. Couldnt remember his name, but I can look in my university
library for his name. He is a chief editor for "Multivariate
Analysis".
I have been involved in statistics three years ago. R is IMHO the best
language to solve statistical problems. At that time I used R as a
standalone programming language. I couldnt start R from PHP, so I asked on
the PHP developers list, but there was no response.
I guess this would be a really good tool and can turn PHP into the
best data mining tool :)
-Egon
--
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/
Todd Cary wrote:
>
> In my Index.html, what do I write so that the Surfer goes to my
> Start.Php?
>
> Todd
I use a little bit of javascript ...
<script language="JavaScript">
location = "newURL.php";
</script>
inside the <head></head> tags.
--
Raquel
============================================================
If a man does not keep pace with his companions, perhaps it is because
he hears a different drummer. Let him step to the music which he hears,
however measured or far away.
--Henry David Thoreau
Hi,
sorry for asking such easy things but I really have a hard time to get this
to work:
I use exactly the scripts which are given on the PHP website to upload
files. The problem is that the variable $userfile just contains "none" and
$userfile_size is "0". The rest of the variables have the right values.
When I use a larger file it takes more time so I assume that the file is
uploaded, but I cannot save it because I don't know the temporary filename.
Can anybody help me? I really need this to work.
Thanks, Matthias
Hi,
A snippet of code could help, but I recently experienced two problems with uploading
and gaining the information.
Are you using the correct ENCTYPE for the upload, along with using POST (GET doesn't
work).
Also, if you are trying to us the information from inside a function, I had to either
globally define all of the attributes, or you could pass them to the function.
Hope this helps
Kevin Williams
"Matthias Roggendorf" <[EMAIL PROTECTED]> wrote in message
9dmisb$bhq$[EMAIL PROTECTED]">news:9dmisb$bhq$[EMAIL PROTECTED]...
> Hi,
> sorry for asking such easy things but I really have a hard time to get this
> to work:
>
> I use exactly the scripts which are given on the PHP website to upload
> files. The problem is that the variable $userfile just contains "none" and
> $userfile_size is "0". The rest of the variables have the right values.
> When I use a larger file it takes more time so I assume that the file is
> uploaded, but I cannot save it because I don't know the temporary filename.
>
> Can anybody help me? I really need this to work.
>
> Thanks, Matthias
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
Let us see the form code fragment in your HTML page and the
PHP code that accesses the variables...in order to see where
the problem is.
-Arne
> -----Original Message-----
> From: Matthias Roggendorf [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 13, 2001 8:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] File upload !!!!
>
>
> Hi,
> sorry for asking such easy things but I really have a hard time
> to get this
> to work:
>
> I use exactly the scripts which are given on the PHP website to upload
> files. The problem is that the variable $userfile just contains "none" and
> $userfile_size is "0". The rest of the variables have the right values.
> When I use a larger file it takes more time so I assume that the file is
> uploaded, but I cannot save it because I don't know the temporary
> filename.
>
> Can anybody help me? I really need this to work.
>
> Thanks, Matthias
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
It seems that when passing a MySQL connection ID, func_get_arg() will not
pick it up in the function. Is this true, or am I doing something wrong?
Thanks,
Chris
The software can be really a freeware (better) or...
can be cracked..., than he becomes free.
regards,
Augusto Cesar Castoldi
On Fri, 11 May 2001, Anuradha Ratnaweera wrote:
>
> On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:
>
> > Anyone know a "Free" database Design program? I'm needing to organize my
> > MySQL databases and design new databases.
>
> In what sence do you mean "Free"? Just curious;>
>
> Anuradha
>
>
> ----------------------------------------------------------
> <a href="http://www.bee.lk/people/anuradha/">home page</a>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
i got a 1.21 txt file worth of backup data on my HD.
I need to get it up and running on my new mysql server asap.
2 problems tho
i dont have ftp or telnet access, and two phpMyAdmin always gives me a syntax
error.. this is most likely because HTML is included in the contexs of the
database.
Anyone know of a compile cgi script or someting else that might help me?
thanks