Re: [PHP] why so slow?

2006-11-02 Thread clive
Mel wrote: I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? No I am sure there are things even you don't know or understand and that you can use help from other mo

Re: [PHP] Mac PHP & MySQL

2006-11-02 Thread Johan Martin
On 02 Nov 2006, at 5:11 PM, Ed Lazor wrote: I'm trying to configure and compile PHP 5. The configure is failing to find the MySQL UNIX socket. Any ideas? ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-zlib \ --with-mysql=/usr/local/mysql \ --with-mysql-socket=/tmp I ha

Re: [PHP] Use of substr()

2006-11-02 Thread Shuping Zhou
function format_text($a, $b) // $a is text to format, from textarea, $b is line length { $line = array(); $limit = (strlen($a)/$b); for($i = 0; $i < $limit; $i++) { $start =

Re: [PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-02 Thread Chris
John.H wrote: My php program whose owner is root: and the folder 'test' 's owner is 'nobody'? why?should the folder belong to 'root' too? By the way,the safe mode is turned on. If you're running this through your webserver, then the webserver is actually executing the script, not the "owne

Re: [PHP] Use of substr()

2006-11-02 Thread Chris
jekillen wrote: Hello all; I am scratching my head over the following: I have written code that is supposed to format text sent from a form in a textarea form element. This text does not have new lines added if the text is allowed to automatically wrap to the next line. I want to automatically ad

[PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-02 Thread John . H
My php program whose owner is root: and the folder 'test' 's owner is 'nobody'? why?should the folder belong to 'root' too? By the way,the safe mode is turned on.

Re: [PHP] Mac PHP & MySQL

2006-11-02 Thread Ed Lazor
Very very nice. I'm impressed with how easy everything was to setup. I keep wondering why nobody at PHP/MySQL/Apache ever sets up stuff like this. On Nov 2, 2006, at 8:40 PM, Wee Keat Chin wrote: Ed, Ed Lazor wrote: I'm trying to configure and compile PHP 5. The configure is failing

[PHP] Use of substr()

2006-11-02 Thread jekillen
Hello all; I am scratching my head over the following: I have written code that is supposed to format text sent from a form in a textarea form element. This text does not have new lines added if the text is allowed to automatically wrap to the next line. I want to automatically add new lines to th

Re: [PHP] Viruses

2006-11-02 Thread tg-php
As Rasmus said, they filter as much as they can on the list. But consider this... if someone's machine is infected and they below to this email list, it can harvest your email address and either spam (or send malware) from their PC to you or send your email address to somewhere else where it can

Re: [PHP] Viruses

2006-11-02 Thread tg-php
As Rasmus said, they filter as much as they can on the list. But consider this... if someone's machine is infected and they below to this email list, it can harvest your email address and either spam (or send malware) from their PC to you or send your email address to somewhere else where it can

Re: [PHP] Viruses

2006-11-02 Thread tg-php
As Rasmus said, they filter as much as they can on the list. But consider this... if someone's machine is infected and they below to this email list, it can harvest your email address and either spam (or send malware) from their PC to you or send your email address to somewhere else where it can

Re: [PHP] Viruses

2006-11-02 Thread tg-php
As Rasmus said, they filter as much as they can on the list. But consider this... if someone's machine is infected and they below to this email list, it can harvest your email address and either spam (or send malware) from their PC to you or send your email address to somewhere else where it can

Re: [PHP] WAP?

2006-11-02 Thread tg-php
Ah.. grat pull! I did forget about that one. Good stuff, thanks! And yes, that appears to be the address. = = = Original message = = = On Thu, 2006-11-02 at 17:11 -0500, [EMAIL PROTECTED] wrote: > http://www.w3schools.com/wap/ Also, don't forget hawhaw. I think it lives at http://www.hawhaw.

Re: [PHP] why so slow?

2006-11-02 Thread Mel
Thank you both so much. I did change the name. I was chocked to see all my passwords displayed in the browser! On Nov 2, 2006, at 1:15 PM, Dave Goodchild wrote: Better still, keep them outside the docroot. If you do insist on having them inside and insist on calling them *.inc, create an .ht

Re: [PHP] Viruses

2006-11-02 Thread Rasmus Lerdorf
Beauford wrote: > Does the PHP list not monitor spam or filter out viruses? I am getting a lot > of this junk coming through the list. I am also getting some directly to > this address, but obviously that is out of the lists control. We filter 1000's of spam messages every day. But a few do get t

Re: [PHP] WAP?

2006-11-02 Thread Paul Scott
On Thu, 2006-11-02 at 17:11 -0500, [EMAIL PROTECTED] wrote: > http://www.w3schools.com/wap/ Also, don't forget hawhaw. I think it lives at http://www.hawhaw.de or something. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclai

Re: [PHP] Mac PHP & MySQL

2006-11-02 Thread Wee Keat Chin
Ed, Ed Lazor wrote: I'm trying to configure and compile PHP 5. The configure is failing to find the MySQL UNIX socket. Any ideas? I can't tell you why because I have not a clue, but why don't you try using MAMP (http://www.living-e.de/en/products/The-MAMP/download.php) and you can then swi

[PHP] Viruses

2006-11-02 Thread Beauford
Does the PHP list not monitor spam or filter out viruses? I am getting a lot of this junk coming through the list. I am also getting some directly to this address, but obviously that is out of the lists control. Thanks B

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread Myron Turner
I think the Ajax solution that John suggests is the ticket. I did something like this for a site that books reservations for various services. But before the booking can occur, the customer has to get info on the various service options, which are returned from a separate database server. Thi

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread John Comerford
You could also use an Ajax call from the main window to start the processing without opening a second window. HTH, John Ed Lazor wrote: Here's another idea: display your message in the original browser window, launch a new browser window for the processing script, have the window set behind

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread Ed Lazor
Here's another idea: display your message in the original browser window, launch a new browser window for the processing script, have the window set behind the first with javascript. When your script is finished, have it output javascript that closes the "processing" window. On Nov 2, 2

[PHP] Mac PHP & MySQL

2006-11-02 Thread Ed Lazor
I'm trying to configure and compile PHP 5. The configure is failing to find the MySQL UNIX socket. Any ideas? ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-zlib \ --with-mysql=/usr/local/mysql \ --with-mysql-socket=/tmp The mysql.sock file is physically located in /private/

[PHP] DomDocument->schemaValidate() in PHP4

2006-11-02 Thread Rob Smith
Hi There, I would like to use XML Schema documents (.xsd) to validate my XML files, but have been unsuccesful in using the schemaValidate() function (i.e. schemaValidate is an unrecognised function, as is load). I am using PHP 4.4.2 on windows with the php_domxml extension. As I understand

Re: [PHP] WAP?

2006-11-02 Thread tg-php
WAP is just a sort of XML specific to creating 'cards' and content for cell phones. I did some stuff a few years ago, was even in line to teach a class at a local training institute. Once you figure out what structure you want to use for your cards and all that, the PHP stuff is really seconda

Re: [PHP] How to Display a page while script runs?

2006-11-02 Thread Chris Boget
I have a php script which takes maybe 15-20 seconds to run, however until it completes a blank web page is displayed to the user. Is there a way/method which would enable me to give some feedback to the user while the script is running so the blank page is not displayed? You could look into f

[PHP] How to Display a page while script runs?

2006-11-02 Thread Chris
I have a php script which takes maybe 15-20 seconds to run, however until it completes a blank web page is displayed to the user. Is there a way/method which would enable me to give some feedback to the user while the script is running so the blank page is not displayed? Best, Chris -- PHP Gene

[PHP] How to Display a page while script runs?

2006-11-02 Thread Chris
I have a php script which takes maybe 15-20 seconds to run, however until it completes a blank web page is displayed to the user. Is there a way/method which would enable me to give some feedback to the user while the script is running so the blank page is not displayed? Best, Chris -- PHP

Re: [PHP] 301 redirect returning 302 instead

2006-11-02 Thread ianevans
Still scratching my head on this one... According to what I've read, when php is run as a CGI then a Status: number text header should be set instead. Add to that the header docs on the php site say that "The second special case is the "Location:" header. Not only does it send this header back to

Re: [PHP] why so slow?

2006-11-02 Thread Dave Goodchild
Better still, keep them outside the docroot. If you do insist on having them inside and insist on calling them *.inc, create an .htaccess file that stops download of *.inc files.

Re: [PHP] WAP?

2006-11-02 Thread Dave Goodchild
You could try creating a stylesheet for media type="handheld", not sure how stable support is.

[PHP] WAP?

2006-11-02 Thread Richard Lynch
So today I was tasked with converting a PHP SMS solution to a PHP WAP solution... My first attempt at running through a Zend tutorial from 2000 was of limited success... Apparently, the card tag has gone the way of the dodo or something... Went looking for the php-wap list at php.net/mailing-lis

Re: [PHP] why so slow?

2006-11-02 Thread Alan Milnes
Robin Vickery wrote: include("http://www.squareinch.net/include/misc.inc";); Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly. Alan

RE: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread ray . hauge
> Original Message > Subject: [PHP] Closing a connection to browser without exiting the > script > From: David Négrier <[EMAIL PROTECTED]> > Date: Wed, November 01, 2006 2:24 pm > To: php-general@lists.php.net > > Hello there, > > I'm having a somewhat unusual question here, and

[PHP] any PHP script for membership / subscription of articles with paypal integration...?

2006-11-02 Thread Sumeet
dear friends had anyone user or tried any PHP based available software for membership / subscription site. I need to build a site for Content Articles. the software should allow full customization of the user interface with articles. the software should also have paypal integration. -- Thank

Re: [PHP] OO website/program doubt

2006-11-02 Thread Eric Butera
On 11/2/06, Richard Lynch <[EMAIL PROTECTED]> wrote: Resources (e.g., MySQL connections) are released at the end of a script, and will not be resurrectable, at least not in PHP 4 & 5 as I understand it. Since this hasn't been said yet... When working with resources, objects can use the __sle

RE: [PHP] Microsoft Partners With Zend

2006-11-02 Thread ray . hauge
> Original Message > Could you expand the term "kernel cache" to a formal name so I know if > that's an MS technology I don't care about, or a general Zend > technology that might apply to LAMP, which I'd be interested in > reading more about? Yeah, the "kernel" caching is thro

[PHP] Re: Frameworks

2006-11-02 Thread Manuel Lemos
Hello, on 11/02/2006 05:37 PM [EMAIL PROTECTED] said the following: > I know this subject has been covered in the past, but my question is why > use them? I'm hoping to not create a religious war... I see that > frameworks would probably help you develop some things faster, but most > of the tim

Re: [PHP] Microsoft Partners With Zend

2006-11-02 Thread Richard Lynch
On Wed, November 1, 2006 5:53 pm, Curt Zirzow wrote: > On 11/1/06, steve <[EMAIL PROTECTED]> wrote: >> On 11/1/06, Daevid Vincent <[EMAIL PROTECTED]> wrote: >> > Personally I'm unsure. I would like to think that Zend is smart >> enough to >> > realize M$ tactics of embrace/extend and will not allow

RE: [PHP] OO website/program doubt

2006-11-02 Thread Richard Lynch
On Wed, November 1, 2006 3:30 pm, bruce wrote: > yo rich (or others)... > > does php provide the ability to store objects in a session var As I just said (below, thanks to top-posting). Yes, I think so. You just need to be sure the require for the class definition happens *BEFORE* the ob

Re: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-11-02 Thread Richard Lynch
On Wed, November 1, 2006 3:42 pm, Ed Lazor wrote: >> Unless you want to pre-parse set_ini() for constants differently >> than >> set_ini() for variables. [shudder] > > It sounds like we just need support for pre-parser commands. You end > up with one set of variables, but now you have the opportun

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread Richard Lynch
On Wed, November 1, 2006 3:24 pm, David Négrier wrote: > I'm having a somewhat unusual question here, and I cannot find any way > to solve it. There is no way to do precisely what you are describing. The best thing to do, imho, is to have the PHP script queue up something in a datbase, text file,

Re: [PHP] why so slow?

2006-11-02 Thread tedd
At 4:00 PM -0800 11/1/06, Mel wrote: I am sure there are things even you don't know or understand Hey, that's not the first time I've heard that -- who's spreading that rumor? The subject line is not directed at me, is it? :-) As I think Will Rogers once said "We're all ignorant, only in d

Re: [PHP] Frameworks

2006-11-02 Thread Dave Goodchild
I am using Code Igniter on two projects at the moment and I am loving it. All the tedious, repetitive elements are reduced, security is increased and code organised in a clean fashion (you can of course mis-use frameworks but with effort they can promote and facilitate a cleaner, more modular appr

Re: [PHP] Frameworks

2006-11-02 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > I know this subject has been covered in the past, but my question is why > use them? it's kind of the same question as 'why use software libraries?' - which is kind of answered by 'do you want to write your own TCP/IP stack *everytime* you write a network enabled piece

Re: [PHP] Frameworks

2006-11-02 Thread Thomas Munz
I personal prefer Frameworks. I tried some of them. But in my opinion, those are not made to create application fater, no. With Frameworks, you can maintaine your application better. You have a global place where everything can be changed on one file. Ofc, its also possible that this improves

Re: [PHP] As use PHP_MAPscript??????

2006-11-02 Thread Lester Caine
Eduardo Arévalo wrote: I have installed a Mapserver ms4w v 2,0 and PHP 5.1.4 I want to use I modulate MAPSCRIPT. Questions as I verify that this installed this I modulate as I install it As it use (some manual). http://www.maptools.org/php_mapscript/index.phtml The users lists from there have

RE: [PHP] Frameworks

2006-11-02 Thread Edward Kay
> I know this subject has been covered in the past, but my question is why > use them? I'm hoping to not create a religious war... I see that > frameworks would probably help you develop some things faster, but most > of the time they don't do the things the way I would want them to work. > If I

[PHP] Re: As use PHP_MAPscript??????

2006-11-02 Thread M.Sokolewicz
Eduardo Arévalo wrote: I have installed a Mapserver ms4w v 2,0 and PHP 5.1.4 I want to use I modulate MAPSCRIPT. Questions as I verify that this installed this I modulate as I install it As it use (some manual). thanks so what is it you want exactly...?? because to be honest, I have abso

[PHP] As use PHP_MAPscript??????

2006-11-02 Thread Eduardo Arévalo
I have installed a Mapserver ms4w v 2,0 and PHP 5.1.4 I want to use I modulate MAPSCRIPT. Questions as I verify that this installed this I modulate as I install it As it use (some manual). thanks

[PHP] Frameworks

2006-11-02 Thread ray . hauge
I know this subject has been covered in the past, but my question is why use them? I'm hoping to not create a religious war... I see that frameworks would probably help you develop some things faster, but most of the time they don't do the things the way I would want them to work. If I did use o

RE: [PHP] Microsoft Partners With Zend

2006-11-02 Thread ray . hauge
That test was very basic though. It's easy for the kernel to cache the same response, but it does at least show that it can/does improve performance. I think it would be silly to expect those kinds of numbers for every application. You also have to remember that the stability is based on the Win

Re: [PHP] Re: PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support

2006-11-02 Thread [EMAIL PROTECTED]
Read through the forums. The default packages are meant for default installs of OSX, not roll your own installs. There are instructions on getting it configured for Apache2. All the pieces you need are there. Tim Stiles Watchmaker, Icomex.com On Nov 2, 2006, at 9:02 AM, Ed Lazor wrote:

Re: [PHP] Re: PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support

2006-11-02 Thread Ed Lazor
Thanks Colin. I'd seen that site and noticed in their forums that people were reporting problems with PHP 5.1.6. I also noted that they use Apache 1.3 and I'm trying to use 2.2. On Nov 2, 2006, at 6:02 AM, Colin Guthrie wrote: Ed Lazor wrote: Any ideas on how to get this PHP configure /

Re: [PHP] why so slow?

2006-11-02 Thread John Nichel
Mel wrote: Your advice is well taken and thank you. I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? Yep, it was for a Fortune 500 company, but that's not the po

[PHP] Re: PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support

2006-11-02 Thread Colin Guthrie
Ed Lazor wrote: > Any ideas on how to get this PHP configure / compile to work? My colleague recommends this site which he was able to consult to get a similar setup working. Hope it helps. http://www.entropy.ch/software/macosx/php/ Col. -- PHP General Mailing List (http://www.php.net/) To un