[PHP] Re: define constants within functions?

2004-08-10 Thread Aidan Lister
Sure, define them outside the function :) "Justin French" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I define a constant within a function, it appears that the constant > is only defined within the namespace of the function. Fair enough. > > Can I globalise these definition

Re: [PHP] updating a frame from within php...

2004-08-10 Thread Matthew Sims
> hi... > > this probably doens't belong here.. but i'll try! > > i have a two frame window. when the user logs into the 'main' window, i > want > to be able to 'update' the 'main' window and then hte 'nav' window. some > underlying vars are getting set, and i need to be be able to refresh > elemen

RE: [PHP] PHP Unleashed

2004-08-10 Thread Ed Lazor
Thanks Curt =) > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 7:53 PM > To: 'PHP' > Subject: Re: [PHP] PHP Unleashed > > * Thus wrote Ed Lazor: > > Any idea when PHP Unleashed by John Coggeshall will be released? I've > tried > > email

Re: [PHP] Re: php tools

2004-08-10 Thread John Holmes
Ed Lazor wrote: >From: "John Holmes" From: "Jay Blanchard" Open http://www.google.com in the browser of your choice Type "PHP IDE" in the little box that appears there. Click on the links of returned results. I clicked on all of the links and nothing happened except for some web pages appearing. No

Re: [PHP] Re: php tools

2004-08-10 Thread Curt Zirzow
* Thus wrote Matthew Sims: > >> > Could you start a holy war any more easily...? The subject of > >> > editors/IDEs is prone to start a holy war. > >> > > >> > Regardless... I use VIM with the Project plugin, phpdoc plugin, and > >> >php syntax highlighting > > >You're likely to get suggestions fo

Re: [PHP] Re: php tools

2004-08-10 Thread David Robley
On Wed, 11 Aug 2004 05:13, John Nichel wrote: > Matthew Sims wrote: >Could you start a holy war any more easily...? The subject of >editors/IDEs is prone to start a holy war. > >Regardless... I use VIM with the Project plugin, phpdoc plugin, and >php syntax highlighting >> >>

Re: [PHP] PHP Unleashed

2004-08-10 Thread Curt Zirzow
* Thus wrote Ed Lazor: > Any idea when PHP Unleashed by John Coggeshall will be released? I've tried > emailing him with no luck and the guys at Powell's don't know when it'll be > available. According to the Sams the publish date is Nov 2004, it could be available sooner though, from my understa

[PHP] PHP Unleashed

2004-08-10 Thread Ed Lazor
Any idea when PHP Unleashed by John Coggeshall will be released? I've tried emailing him with no luck and the guys at Powell's don't know when it'll be available. -Ed

[PHP] updating a frame from within php...

2004-08-10 Thread bruce
hi... this probably doens't belong here.. but i'll try! i have a two frame window. when the user logs into the 'main' window, i want to be able to 'update' the 'main' window and then hte 'nav' window. some underlying vars are getting set, and i need to be be able to refresh elements/links in the

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 17:41, Jordi Canals wrote: > Harlequin wrote: > > > I have the following: > > > > [SNIP] > > ... > > $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; > >} > >if( $Emp_Status_Rqmt == 'Permanent' ) > >{ > >$UserStatus = 'Permanent'; > >} > >if( $Emp_Status_Rqm

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Jordi Canals
Harlequin wrote: I have the following: [SNIP] ... $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; } if( $Emp_Status_Rqmt == 'Permanent' ) { $UserStatus = 'Permanent'; } if( $Emp_Status_Rqmt == 'Contractor' ) { $UserStatus = 'Contractor'; } else { $UserStatus == 'Flexib

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 16:36, Harlequin wrote: > I have the following: > > [SNIP] > ... > $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; >} >if( $Emp_Status_Rqmt == 'Permanent' ) >{ >$UserStatus = 'Permanent'; >} >if( $Emp_Status_Rqmt == 'Contractor' ) >{ >$UserStatus = '

RE: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Kevin
Hey, I was looking at your code and should that not be an If - ElseIf - Else structure? The way I read this is it first checks to see if the var is set to 'Permanent' and sets $UserStatus. Then regardless of the previous test it does another test on the $Emp_Status_Rqmt to see if it is 'Contactor'

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Justin Patrin
On Wed, 11 Aug 2004 00:36:05 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > I have the following: > > [SNIP] > > $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; >} >if( $Emp_Status_Rqmt == 'Permanent' ) >{ >$UserStatus = 'Permanent'; >} >if( $Emp_Status_Rqmt == 'Contractor' )

[PHP] Variable just not Behaving Itself.

2004-08-10 Thread Harlequin
I have the following: [SNIP] ... $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; } if( $Emp_Status_Rqmt == 'Permanent' ) { $UserStatus = 'Permanent'; } if( $Emp_Status_Rqmt == 'Contractor' ) { $UserStatus = 'Contractor'; } else { $UserStatus == 'Flexible'; } [SNIP]

Re: [PHP] MySQL & PHP Examples & Training Providers Required

2004-08-10 Thread Robby Russell
Not to start a SQL war, but have you consider PostgreSQL as well in your decisions? PostgreSQL has more features that are more comparable to MSSQL and Oracle. Just making sure you make the right decision. ;-) -Robby On Tue, 2004-08-10 at 16:06, Harlequin wrote: > Hi all. > > This might sound l

[PHP] Re: [PEAR-QA] PEAR SITE IF DOWN FROM MY IP

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 17:14:03 -0500, Alfonso Baqueiro <[EMAIL PROTECTED]> wrote: > Does pear admins custom to do nasty things with users that post comments > for improvement or comments they dont like? > > For some oscure reason i unable to acces the main page of pear: > http://pear.php.net > > My

Re: [PHP] PHP performance

2004-08-10 Thread Matthew Runo
Well, across the sites that are on our server at the moment we are seeing an average increase in PHP execution speed of 244% (I just ran a test). According to Zend if everyone of our clients were to use partial page caching and the like, we'd be seeing closer to a 1000% (10x) speedup. Quabbo.c

[PHP] MySQL & PHP Examples & Training Providers Required

2004-08-10 Thread Harlequin
Hi all. This might sound like a strange request but here goes. I'm looking for some examples of sites that are purely MySQL and PHP running on Unix and that contain a few thousand records preferably held in relational databases. Rationale: I need to justify PHP as a tool of choice over say vb.n

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Your tag line caught my attention - have any specs on performance boosts provided by Zend? > The only host with the Zend Performance Suite! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PEAR SITE IF DOWN FROM MY IP

2004-08-10 Thread Ed Lazor
Probably so, because I can get there :P hehe > -Original Message- > From: Alfonso Baqueiro [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 3:14 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] PEAR SITE IF DOWN FROM MY IP > > Does pear admins custom to do nasty th

Re: [PHP] PHP performance

2004-08-10 Thread Matthew Runo
This is a great tip. Thanks! I've added it to my folder of "tips to speed up PHP". Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On Aug 10, 2004, at 3:07 PM, Curt Zirzow wrote: * Thus wrote Ed Lazor: Any recommendations on how to make P

RE: [PHP] PHP performance [solution]

2004-08-10 Thread Jason Davidson
woohoo indexes kick a$$.. at the expense of mem though :) J "Ed Lazor" <[EMAIL PROTECTED]> wrote: > > I added more indexes. The 20 minute report just took 40 seconds *grin* > > Thanks Everyone, > > Ed > > > > -Original Message- > > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > > Sen

RE: [PHP] PHP performance [solution]

2004-08-10 Thread Ed Lazor
I added more indexes. The 20 minute report just took 40 seconds *grin* Thanks Everyone, Ed > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 3:07 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP performance > > * Thus wrote Ed Lazor

[PHP] PEAR SITE IF DOWN FROM MY IP

2004-08-10 Thread Alfonso Baqueiro
Does pear admins custom to do nasty things with users that post comments for improvement or comments they dont like? For some oscure reason i unable to acces the main page of pear: http://pear.php.net My IP is 200.39.196.122. From other IPs i dont have any troble with the page. -- PHP General Mai

RE: [PHP] PHP performance

2004-08-10 Thread Alex Hogan
> Did you try a curveball when throwing the processors into the box? Processors like sliders... Can't lay off 'em.., can't hit 'em. alex hogan * The contents of this e-mail and any files transmitted with it are

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Ooo ahhh, thanks Curt =) > -Original Message- > To help figure out which queries are running slow there is the > php.ini setting: > > mysql.trace_mode=On > > Using this will have the php library analyze your queries and if > any of them do table scans php will issue a warning about it,

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Thanks Vail, I'll check that out. -Ed > -Original Message- > If your problem is with a long running MySQL Query, and many of mine have > been, I would suggest you read > > http://dev.mysql.com/doc/mysql/en/Optimizer_Issues.html > > Your objective is to make sure that all your database

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
> Lot of good that did. I just threw 8 socket 7 AMD processors into a > box, and PHP isn't even the slightest bit faster. Did you try a curveball when throwing the processors into the box? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot redeclare function

2004-08-10 Thread Jason Wong
On Wednesday 11 August 2004 05:18, Alex Hogan wrote: > Apparently I must've been calling it from someplace else that I can't > find, and changing to include_once() fixed the problem. I just don't > understand why it worked for as long as it did before now. Once upon a time PHP allowed a function

Re: [PHP] PHP performance

2004-08-10 Thread Curt Zirzow
* Thus wrote Ed Lazor: > Any recommendations on how to make PHP run faster? To help figure out which queries are running slow there is the php.ini setting: mysql.trace_mode=On Using this will have the php library analyze your queries and if any of them do table scans php will issue a warning a

RE: [PHP] Re: php tools

2004-08-10 Thread Ed Lazor
> -Original Message- > From: "Jay Blanchard" > > Open http://www.google.com in the browser of your choice > > Type "PHP IDE" in the little box that appears there. > > Click on the links of returned results. > > I clicked on all of the links and nothing happened except for some web > pages

RE: [PHP] download script

2004-08-10 Thread Ed Lazor
A hacker could modify the URL Mypage.php?file=book.pdf Becomes Mypage.php?file=../htdocs/.htaccess > -Original Message- > From: Aaron Todd [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 11, 2004 11:58 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] download script > > Why would

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Good point Jay. Luckily the server has dual 2.4gh xeon's with 2gig of ram *grin* > -Original Message- > [snip] > Any recommendations on how to make PHP run faster? > [/snip] > > A multiple CPU box. (It's a legitimate answer!) -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
> -Original Message- >This may have already been addressed, but did you index any key fields? I do have some indices created, but I'll check to see if there are more than can boost things. Thanks =) Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] Cannot redeclare function

2004-08-10 Thread Alex Hogan
[snip] > Well, it's very likely that that file was being included > twice. You just can't do an include() on the same file twice > if it defines functions or classes. Look through your code > and see all of the places where the include was happening. > Perhaps the file that includes that file i

Re: [PHP] LDAP Group query examples?

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 11:26:07 -0600 (MDT), Sam Evans <[EMAIL PROTECTED]> wrote: > > Hello.. > > I am wondering if someone could point me in the general direction of > some examples which show how to query an LDAP group for user > membership? Use Softerra LDAP browser to look at the groups and fig

Re: [PHP] Re: php tools

2004-08-10 Thread Matthew Sims
> BBEdit is the tool of the Gods. > > Jon Zeus would be proud of you. -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read External Directory

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 15:04:42 -0500, Stephen Craton <[EMAIL PROTECTED]> wrote: > Hello, > > I'm in need of some help here. I'm working on a search engine script that > searches basically anywhere. One thing I'm trying to do is open an external > directory to read all the files to search. However, I

RE: [PHP] Read External Directory

2004-08-10 Thread Jay Blanchard
[snip] I'm in need of some help here. I'm working on a search engine script that searches basically anywhere. One thing I'm trying to do is open an external directory to read all the files to search. However, I can't just put a URL into the readdir() function without getting an error. How would I

Re: [PHP] Cannot redeclare function

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 14:07:09 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > > Did your error_reporting level change with the upgrade? This > > was more than likely silently ignored with PHP4 and now > > showing as a warning/error in PHP5 or just dependent upon > > your error_reporting level. > > N

[PHP] LDAP Group query examples?

2004-08-10 Thread Sam Evans
Hello.. I am wondering if someone could point me in the general direction of some examples which show how to query an LDAP group for user membership? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php tools

2004-08-10 Thread Peter Ellis
*coughs* Pico! Real men don't have enough money to buy all that stone. They just use tissue paper, toilet paper, or whatever's available that breaks down easily enough to hide all errors with zero culpability. -- Peter Ellis - [EMAIL PROTECTED] Web Design and Development Consultant naturalaxis |

Re: [PHP] PHP performance

2004-08-10 Thread John Nichel
Jay Blanchard wrote: [snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) Lot of good that did. I just threw 8 socket 7 AMD processors into a box, and PHP isn't even the slightest bit faster. -- John C. Nichel ÜberGeek KegWorks.com 716

[PHP] Read External Directory

2004-08-10 Thread Stephen Craton
Hello, I'm in need of some help here. I'm working on a search engine script that searches basically anywhere. One thing I'm trying to do is open an external directory to read all the files to search. However, I can't just put a URL into the readdir() function without getting an error. How would I

RE: [PHP] PHP performance

2004-08-10 Thread Vail, Warren
If your problem is with a long running MySQL Query, and many of mine have been, I would suggest you read http://dev.mysql.com/doc/mysql/en/Optimizer_Issues.html Your objective is to make sure that all your database queries avoid the deadly "table scan" as a part of their query plan. Good Luck,

Re: [PHP] embedded php

2004-08-10 Thread John Nichel
Jay Blanchard wrote: [snip] ...the second time that this was sent... [/snip] Aaron, For both of your original requests today you have sent them twice, several minutes apart. You have a. A bug in your e-mail client which is causing it to send the e-mail twice OR 2. The keyboard intefcae mechanism is

Re: [PHP] Re: php tools

2004-08-10 Thread Jonathan Haddad
BBEdit is the tool of the Gods. Jon Lester Caine wrote: Matthew Weier O'Phinney wrote: So, you basically need a text editor with good syntax highlighting for X/HTML, PHP, CSS, SQL, and javascript. As I said, I have that in Vim. I also know EditPlus has that and is either shareware or freeware. If y

RE: [PHP] PHP performance

2004-08-10 Thread Matthew Sims
> [snip] > Any recommendations on how to make PHP run faster? > [/snip] > > A multiple CPU box. (It's a legitimate answer!) I usually add more gerbils to my spinning wheel. -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] SQL Functions

2004-08-10 Thread Michael Collins
At 10:26 AM -0700 8/10/04, Justin Patrin wrote: Of course, this begs the question of why you're re-implementing what has been done so many times in the past. At 11:56 AM -0700 8/10/04, Ed Lazor wrote: Hey, while you guys are talking about those DB classes, I've always opted to not use them because

Re: [PHP] Re: php tools

2004-08-10 Thread John Nichel
John W. Holmes wrote: From: "Jay Blanchard" Open http://www.google.com in the browser of your choice Type "PHP IDE" in the little box that appears there. Click on the links of returned results. I clicked on all of the links and nothing happened except for some web pages appearing. Now what? ---Joh

Re: [PHP] download script

2004-08-10 Thread John W. Holmes
"Aaron Todd" [EMAIL PROTECTED]> wrote in message > > $file = "/home/dlr/test/".$_GET['file'].""; > Why would this be a security hole if I do not filter the file > name before I use it? http://www.yourdomain.com/yourfile.php?file=../../path/to/any/file/on/machine ---John Holmes... -- PHP Gene

Re: [PHP] Re: php tools

2004-08-10 Thread John Nichel
Matthew Sims wrote: Could you start a holy war any more easily...? The subject of editors/IDEs is prone to start a holy war. Regardless... I use VIM with the Project plugin, phpdoc plugin, and php syntax highlighting You're likely to get suggestions for emacs, as well, and I'd be very surprised if

Re: [PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
On Tue, 10 Aug 2004 14:50:26 -0400, in php.general you wrote: >>>Yes. preg_replace is greedy by default. >> Err, global, that is (although it's also greedy per default, but then >> again, that's also the case for ereg-functions and perl) > >Regular expressions in Perl are not greedy by default.

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
On 10 Aug 2004 18:24:54 -, in php.general you wrote: >> > Yes. preg_replace is greedy by default. >> >> Err, global, that is (although it's also greedy per default, but then >> again, that's also the case for ereg-functions and perl) > >Umm, not in perl. Perl will only replace the *first* mat

RE: [PHP] Re: php tools OT

2004-08-10 Thread Jay Blanchard
[snip] Real men write code using a chisel and hammer on granite stone. You bet your ass you'll learn how to write small, tight, clean code quickly. [/snip] If only we wrote our e-mail the same way! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] embedded php

2004-08-10 Thread Jay Blanchard
[snip] ...the second time that this was sent... [/snip] Aaron, For both of your original requests today you have sent them twice, several minutes apart. You have a. A bug in your e-mail client which is causing it to send the e-mail twice OR 2. The keyboard intefcae mechanism is broken. My bet i

RE: [PHP] PHP performance

2004-08-10 Thread Jay Blanchard
[snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP performance

2004-08-10 Thread Alex Hogan
[snip] > I figured PHP's memory limit per script at 8mb might be the > bottleneck, so I upped it to 128, restarted apache, and reran > the script. Increasing available memory had no effect. [/snip] This may have already been addressed, but did you index any key fields? alex hogan

[PHP] Re: php tools

2004-08-10 Thread Lester Caine
Matthew Weier O'Phinney wrote: So, you basically need a text editor with good syntax highlighting for X/HTML, PHP, CSS, SQL, and javascript. As I said, I have that in Vim. I also know EditPlus has that and is either shareware or freeware. If you're looking for an IDE, can't help you. Eclipse + ph

Re: [PHP] Re: php tools

2004-08-10 Thread John W. Holmes
From: "Jay Blanchard" > Open http://www.google.com in the browser of your choice > Type "PHP IDE" in the little box that appears there. > Click on the links of returned results. I clicked on all of the links and nothing happened except for some web pages appearing. Now what? ---John Holmes... --

RE: [PHP] Cannot redeclare function

2004-08-10 Thread Alex Hogan
> Did your error_reporting level change with the upgrade? This > was more than likely silently ignored with PHP4 and now > showing as a warning/error in PHP5 or just dependent upon > your error_reporting level. No.., I was careful to set 5 up with as many of the same settings as the previous v

RE: [PHP] Cannot redeclare function

2004-08-10 Thread Ed Lazor
It's probably not PHP 5 and more likely that someone changed the php.ini error reporting settings in the process of upgrading (or maybe PHP 5 has a different set of default settings?). You should probably trace through your application and note what files are being loaded, in what order, etc.. so

Re: [PHP] Cannot redeclare function

2004-08-10 Thread John W. Holmes
From: "Alex Hogan" <[EMAIL PROTECTED]> > I have a registration page that hasn't changed in several weeks. Today > it decided to freak-out by throwing an error; > 'Cannot redeclare myfunctionname() on line 10 of myfunctions.inc' > > Nothing has changed in either the calling page, or the function.

Re: [PHP] Re: php tools

2004-08-10 Thread Matthew Sims
>> > Could you start a holy war any more easily...? The subject of >> > editors/IDEs is prone to start a holy war. >> > >> > Regardless... I use VIM with the Project plugin, phpdoc plugin, and >> >php syntax highlighting >You're likely to get suggestions for emacs, as well, and I'd be very >surpri

Re: [PHP] download script

2004-08-10 Thread Aaron Todd
Why would this be a security hole if I do not filter the file name before I use it? Thanks, Aaron "Ed Lazor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The other guys addressed how to get the script working, but I thought I > might also mention that you're presenting a potent

RE: [PHP] SQL Functions

2004-08-10 Thread Ed Lazor
> > > http://pear.php.net/package/DB > > > http://pear.php.net/package/MDB > > > http://pear.php.net/package/MDB2 > > > http://adodb.sourceforge.net/ > > > http://www.phpclasses.org/browse/package/20.html > > > > I'm building a class for use with our PHP applications. > Packages > > like w

[PHP] embedded php

2004-08-10 Thread Aaron Todd
I was just wondering if anyone out there is using PHP for an embeded development or knows of any devices that use PHP on their system. An example of what I am talking about would be a Linksys router. They run an embedded Linux web server and do management through a browser. I am wondering if I c

RE: [PHP] download script

2004-08-10 Thread Ed Lazor
The other guys addressed how to get the script working, but I thought I might also mention that you're presenting a potential security hole in your app by not filtering the file name before using it. You'll also want to use the realpath command on the full file name and path. > -Original Mess

Re: [PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread John Nichel
Peter Brodersen wrote: On 10 Aug 2004 16:53:59 -, in php.general you wrote: Yes. preg_replace is greedy by default. Err, global, that is (although it's also greedy per default, but then again, that's also the case for ereg-functions and perl) Regular expressions in Perl are not greedy by de

Re: [PHP] PHP5 OOP

2004-08-10 Thread John W. Holmes
From: "Joel Kitching" <[EMAIL PROTECTED]> > Hello, I'm trying to get the hang of OOP here but can't quite figure > out how to relate these classes. I've got one for the main project, > one for the database, and one for a user. Somehow I need to get the > user access to the database, without cumb

Re: [PHP] PHP5 OOP

2004-08-10 Thread Matthew Sims
> Hello, I'm trying to get the hang of OOP here but can't quite figure > out how to relate these classes. I've got one for the main project, > one for the database, and one for a user. Somehow I need to get the > user access to the database, without cumbersome constructor calls > involving a copy

Re: [PHP] download script

2004-08-10 Thread Aaron Todd
Thanks for your reply, I am not getting an error at all. I have coded some error traping so if the files is not found it will tell you instead of displaying an error. As a test I took all of that out so the script was: $file = "/home/dlr/test/".$_GET['file']."" header("Content-Description:

[PHP] PHP performance

2004-08-10 Thread Ed Lazor
Any recommendations on how to make PHP run faster? I have a script pulling a lot of data from MySQL and generating reports and spitting out data (flush) as it's processing so I can see what's going on. It was taking around 10 seconds to process each order. I reduced the total number of orders

RE: [PHP] Re: php tools

2004-08-10 Thread Jay Blanchard
[snip] I'm using windows no mac for now! I saw some people a couple of years ago working in php with PowerBuilder, but It's seems too complicated, for that reason in this days there must be other tools. I need use, css files, mysql database, javaScripts basically ! [/snip] Open http://www.google.

Re: [PHP] SQL Functions

2004-08-10 Thread John W. Holmes
From: "Dan Joseph" <[EMAIL PROTECTED]> > > Of course, this begs the question of why you're re-implementing what > > has been done so many times in the past. > > > > http://pear.php.net/package/DB > > http://pear.php.net/package/MDB > > http://pear.php.net/package/MDB2 > > http://adodb.sourceforge.n

[PHP] Cannot redeclare function

2004-08-10 Thread Alex Hogan
Hi All, I have a registration page that hasn't changed in several weeks. Today it decided to freak-out by throwing an error; 'Cannot redeclare myfunctionname() on line 10 of myfunctions.inc' Nothing has changed in either the calling page, or the function. The only thing that has changed since

[PHP] Re: php tools

2004-08-10 Thread Matthew Weier O'Phinney
* Naty <[EMAIL PROTECTED]>: > I'm using windows no mac for now! I'm not on a mac, either... actually, I've been using linux exclusively for over four years now. However, I've used vim on windows without a hitch -- there are windows binaries available on their site, http://www.vim.org > I saw som

RE: [PHP] SQL Functions

2004-08-10 Thread Dan Joseph
> > I'm building a class for use with our PHP applications. > Packages > > like what you've linked me to are nice, but we need a little flexibility > > here, so we're writing a few methods of our own. > > > > Flexibility?? Those classes are very flexible and have many useful > utility meth

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Matthew Weier O'Phinney
* Peter Brodersen <[EMAIL PROTECTED]>: > On 10 Aug 2004 16:53:59 -, in php.general you wrote: > > > Yes. preg_replace is greedy by default. > > Err, global, that is (although it's also greedy per default, but then > again, that's also the case for ereg-functions and perl) Umm, not in perl. Pe

[PHP] Re: php tools

2004-08-10 Thread Naty
I'm using windows no mac for now! I saw some people a couple of years ago working in php with PowerBuilder, but It's seems too complicated, for that reason in this days there must be other tools. I need use, css files, mysql database, javaScripts basically ! Regards Naty "Matthew Weier O'Phinney

Re: [PHP] php tools

2004-08-10 Thread John Nichel
Naty wrote: Hi!! I'm trying to find editors or IDE that let me create and develop a php project. Somebody can recommned me tools ? Regards Naty I can recommend the 'Newbie Guide'. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/

[PHP] Re: php tools

2004-08-10 Thread Matthew Weier O'Phinney
* Naty <[EMAIL PROTECTED]>: > I'm trying to find editors or IDE that let me create and develop a php > project. > Somebody can recommned me tools ? Could you start a holy war any more easily...? The subject of editors/IDEs is prone to start a holy war. Regardless... I use VIM with the Project plu

Re: [PHP] download script

2004-08-10 Thread John Nichel
Aaron Todd wrote: "; echo basename($file); echo "No File Found"; } ?> Belay my last post...you're using readfile and not fread. Okay, what error is the script outputting? You should remove the '@' from in front of readfile() so that it will output an error if it's the problem. -- John C. N

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread Hardik Doshi
MIT is using the Horde web mail and so many other organizations are using the Horde web mail. I can't give you the numbers because i am not the one who is administrating this. We are a university and we have thousands of students so might imagine how better it scales. I personally dig into the Hor

Re: [PHP] download script

2004-08-10 Thread John Nichel
Aaron Todd wrote: "; echo basename($file); echo "No File Found"; } ?> Where are you opening the file? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Embeded PHP

2004-08-10 Thread Aaron Todd
I was just wondering if anyone out there is using PHP for an embeded development or knows of any devices that use PHP on their system. Thanks, Aaron Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] URL String

2004-08-10 Thread Stephen Craton
Hello, I'm working on a site that cannot use PHP exactly, so I'm trying to work around that limitation with remotely hosted scripting by tricking the server into thinking the PHP content is actually javascript. I've been able to do this before, but this time I'm having a few issues. I need to be

Re: [PHP] download script

2004-08-10 Thread Jason Wong
On Thursday 12 August 2004 01:06, Aaron Todd wrote: > I am trying to dowload a file using readfile(), but PHP still cant seem to > get to the file. And what exactly does that mean? Any error messages? > Here is my code: > > $file = "/home/lgxdlr/test/".$_GET['file'].""; > if (file_exists(base

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Justin Patrin
On Wed, 11 Aug 2004 01:12:40 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Wednesday 11 August 2004 00:48, Justin Patrin wrote: > > > I don't see how it would be a security problem. They probably just > > don't understand and think you want FTP access to the server. > > Huh? Isn't FTP the usu

[PHP] php tools

2004-08-10 Thread Naty
Hi!! I'm trying to find editors or IDE that let me create and develop a php project. Somebody can recommned me tools ? Regards Naty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Functions

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 13:37:50 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote: > Hi, > > > > Of course, this begs the question of why you're re-implementing what > > has been done so many times in the past. > > > > http://pear.php.net/package/DB > > http://pear.php.net/package/MDB > > http://pear.php.

RE: [PHP] SQL Functions

2004-08-10 Thread Dan Joseph
Hi, > Of course, this begs the question of why you're re-implementing what > has been done so many times in the past. > > http://pear.php.net/package/DB > http://pear.php.net/package/MDB > http://pear.php.net/package/MDB2 > http://adodb.sourceforge.net/ > http://www.phpclasses.org/browse/packag

[PHP] download script

2004-08-10 Thread Aaron Todd
I was going to post another follow-up question in a pending thread here but it seems to have been deleted. Anyway, I am trying to write a download script that will downloaded files from my site. All these files need to be protected so just anybody cant come to the site and download them. I have

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
On 10 Aug 2004 16:53:59 -, in php.general you wrote: >Yes. preg_replace is greedy by default. Err, global, that is (although it's also greedy per default, but then again, that's also the case for ereg-functions and perl) "greedy" is the term of whether or not a range of matches should be ex

[PHP] PHP5 OOP

2004-08-10 Thread Joel Kitching
Hello, I'm trying to get the hang of OOP here but can't quite figure out how to relate these classes. I've got one for the main project, one for the database, and one for a user. Somehow I need to get the user access to the database, without cumbersome constructor calls involving a copy of the in

Re: [PHP] SQL Functions

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 10:31:36 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I'm trying to build a class to handle various SQL functions. > One of them is to take a query, and return all rows. Here's what I have so > far: > > function selectRows( $sql ) > > { > >

Re: [PHP] preg_match_all but no preg_replace_all?

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 18:51:43 +0200, Marten Lehmann <[EMAIL PROTECTED]> wrote: > Hello, > > I want to be sure, that preg_replace replaces all matches. But it > doesn't accept the /g modifier. And anyhow, there's no preg_replace_all > like there is an preg_match_all. Will preg_replace replace everyt

Re: [PHP] preg_match_all but no preg_replace_all?

2004-08-10 Thread Luke Davison
> I want to be sure, that preg_replace replaces all matches. But it > doesn't accept the /g modifier. And anyhow, there's no preg_replace_all > like there is an preg_match_all. Will preg_replace replace everything by > default? from php.net: mixed preg_replace ( mixed pattern, mixed replacement,

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Jason Wong
On Wednesday 11 August 2004 00:48, Justin Patrin wrote: > I don't see how it would be a security problem. They probably just > don't understand and think you want FTP access to the server. Huh? Isn't FTP the usual mechanism for accessing your shared hosting space? > Allowing > outbound FTP is o

  1   2   >