[PHP] configuring the CLI version of PHP

2005-12-06 Thread jonathan
I'm not a sysadmin so I'm sorry if this sounds like a dumb question: I have a powerbook running 10.4 which has php installed correctly for the webserver. However, for the CLI version, it is 4.3.11. How best could I specify the correct version of php for the CLI (either switching via

Re: [PHP] configuring the CLI version of PHP

2005-12-06 Thread Marco Kaiser
Hi Jonathan, /usr/bin/php /usr/include/php /usr/lib/php How would I know which version in which? which php should tell where your phpcli binary are. php -v should tell you which php version you are running. -- Marco Kaiser

[PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread Steve McGill
Hi everyone Quick question: If I have such a loop: ? for($i=0;$i100;$i++) { if($i==100) { // do something special for this occurence } // do something standard } ? In this case it seems such a waste that the if() statement is done 99 times when it's not needed. Is there any

Re: [PHP] help with preg_replace only part of the string

2005-12-06 Thread David Grant
Replace the middle (.*) with ([^]*). This tells the regex engine to ignore new opening tags. Cheers, David Georgi Ivanov wrote: Hi, I want to replace the content of html links : a href=foo name=blaREPLACETHIS/a. $html=preg_replace(/(a.*name=.*)(.*)\/a/isU,$link,$html,1); This generally

Re: [PHP] help with preg_replace only part of the string

2005-12-06 Thread Richard Heyes
Georgi Ivanov wrote: Hi, I want to replace the content of html links : a href=foo name=blaREPLACETHIS/a. $html=preg_replace(/(a.*name=.*)(.*)\/a/isU,$link,$html,1); This generally works but removes a,/a tags too. How to make it work without removing anything else than (.*) in the middle of

[PHP] what is better for performance?

2005-12-06 Thread Karel Kozlik
Hi, I am just thinking about that what is better for storeing structured variables in point of view of performance. Is better store structured variables in associative array, for example: $person['first_name'] = 'Karel'; $person['last_name'] = 'Kozlik'; $person['address'] = 'somewhere on

[PHP] working

2005-12-06 Thread Roman Duriancik
Does it this forum exist ? Because i haven't any comunications from this forum last 6 days. roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD Graph tutorial?

2005-12-06 Thread Shaun
Gustavo Narea [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Ashley. Ashley M. Kirchner wrote: Does anyone know of a good GD tutorial for creating graphs? I like this one: http://www.nyphp.org/content/presentations/GDintro/ Regards. -- Gustavo Narea. PHP

Re: [PHP] help with preg_replace only part of the string

2005-12-06 Thread Miles Thompson
At 07:06 AM 12/6/2005, Richard Heyes wrote: Georgi Ivanov wrote: Hi, I want to replace the content of html links : a href=foo name=blaREPLACETHIS/a. $html=preg_replace(/(a.*name=.*)(.*)\/a/isU,$link,$html,1); This generally works but removes a,/a tags too. How to make it work without removing

RE: [PHP] working

2005-12-06 Thread Jay Blanchard
it is working just fine -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 7:12 AM To: php-general@lists.php.net Subject: [PHP] working Does it this forum exist ? Because i haven't any comunications from this forum last 6 days. roman

[PHP] HTTP User Authentication Problems

2005-12-06 Thread Rahul S. Johari
Ave, I¹m trying to run this very simple HTTP user authentication script: ?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm=Private'); header('HTTP/1.0 401 Unauthorized'); echo 'Unauthorized'; exit; } else {

[PHP] What software do you use for writing PHP?

2005-12-06 Thread Jeff McKeon
Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jay Blanchard
[snip] Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? [/snip] I use Eclipse and HTML-Kit -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread David Grant
Jeff, Jeff McKeon wrote: Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? I use Zend Studio 5, but there are plenty of other (cheaper) options. Take a

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Michael Crute
On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Thanks, Jeff Actually, there isn't

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread David Grant
Hi Jeff, Jeff McKeon wrote: What is it you like about Zend Studio? * Code completion * Syntax highlighting for PHP, HTML and CSS * Manual pages * Debugging * Code examination * PHPDoc * CVS SVN support Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Torgny Bjers
Quoting Michael Crute [EMAIL PROTECTED]: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use?

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Łukasz Hejnak
Jeff McKeon napisał(a): Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? I use Bluefish, it's a very nice GTK+ based editor, with all types

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Chris Boget
Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? I use Visual SlickEdit. You should check it out; it's a very powerful IDE. http://www.slickedit.com

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jeff McKeon
What is it you like about Zend Studio? Jeff -Original Message- From: David Grant [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 09:19 To: Jeff McKeon Cc: php Subject: Re: [PHP] What software do you use for writing PHP? Jeff, Jeff McKeon wrote: Forever now

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread George Pitcher
I've used Dreamweaver MX, working with 9 remote sites, shared between IIS and Apache. George -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: 6 December 2005 2:15 pm To: php Subject: [PHP] What software do you use for writing PHP? Hey all, Forever now I've

Re: [PHP] HTTP User Authentication Problems

2005-12-06 Thread Steve McGill
Hi Rahul, Try doing a print_r($_SERVER) to see if the variables are being set. If they aren't, take a look at the phpinfo(); - chances are your host is using a CGI binary version of PHP to use together with a security wrapper like suPHP or phpSuExec, which might throw away the variables that

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Joe Harman
I have to say Dreamweaver MX also it's a great all around tool for developing sites... while it may not have all the features and be as PHP specific as Zend it gets the job done. I've learned that it's just a personal preference the best coder i've ever met used note pad LOL Joe On

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Gustavo Narea
Hi. £ukasz Hejnak wrote: I use Bluefish, it's a very nice GTK+ based editor, with all types of code highlightning (html, php, c/c++, pascal, java, python are just a part of it). And that's pretty much all the features of it I use, maybe also the well written replace method. Besides that I use

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread John Nichel
Jeff McKeon wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Now: Zend Studio In The Past : Quanta, Komodo When I Still In Hell (Like

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread John Nichel
David Grant wrote: Hi Jeff, Jeff McKeon wrote: What is it you like about Zend Studio? * Code completion * Syntax highlighting for PHP, HTML and CSS * Manual pages * Debugging * Code examination * PHPDoc * CVS SVN support Also: MySQL Tools SFTP FTP Projects PHPDocumentor -- John C.

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread [EMAIL PROTECTED]
HomeSite. I tried several others but always came back to HomeSite. :) -afan Jeff McKeon wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do

[PHP] Re: What software do you use for writing PHP?

2005-12-06 Thread Al
Jeff McKeon wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Thanks, Jeff http://www.waterproof.fr/products/PHPEdit/ -- PHP General

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jason Petersen
On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Vim is my editor of preference. If I

RE: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread Jared Williams
Hi, Why not for ($i = 0; $i 100/100; ++$i) { for ($j = 0; $j 100; ++$j) { // do something standard } // do something special for this occurence } Jared -Original Message- From: Steve McGill [mailto:[EMAIL PROTECTED] Sent: 06 December 2005 10:18

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Chris Boget
HomeSite. I tried several others but always came back to HomeSite. :) I was a massive HomeSite proponent until I started using SlickEdit. Once I did, I never looked back. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Stephen Leaf
KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention. And because it's part of KDE all the kioslaves come with. Which means editing sites over ftp, ftps, ssh and many others is possible. Like the Vim guy said. DEs? who needs them :) On Tuesday 06 December 2005 08:15, Jeff

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread David Grant
Jared Williams wrote: Why not for ($i = 0; $i 100/100; ++$i) This involves dividing 100 by 100 for each iteration of the loop. It would be better to test against 1. There is also the unwanted side-effect of executing the code on each hundredth iteration, which is unwanted (as

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread David Grant
Stephen Leaf wrote: KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention. And because it's part of KDE all the kioslaves come with. Which means editing sites over ftp, ftps, ssh and many others is possible. Like the Vim guy said. DEs? who needs them :) Mmmm, reminds me of

[PHP] Communicate with Windows Media Server with PHP

2005-12-06 Thread Graham Anderson
Is there a repository of php scripts that can communicate with Windows Media Server I am looking to do some load balancing with our 4 media servers in San Jose, Washington, Dallas, London Essentially, I need to get the number of current users on a particular server. If the server has

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Stephen Leaf
As far as I can tell kate has a kwrite embedded :) I'm sure that's not the case but it seems like it. everything kwrite can do so can kate. only it has more options that I'd never used. And yes Code folding is nice don't use it much tho. On Tuesday 06 December 2005 09:48, David Grant wrote:

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread Steve McGill
Hi, David is right about the unwanted side-effect. Thanks for the idea though. Unfortunately the 'greater problem' is not so great, I've just been doing this for a while now and find myself programming loops like these so often and I've never got round to testing if a simple IF statement is a

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread David Grant
According to http://kate.kde.org/info.php, kate and kwrite (and Quanta) all use katepart (a rewrite of kwrite). Stephen Leaf wrote: As far as I can tell kate has a kwrite embedded :) I'm sure that's not the case but it seems like it. everything kwrite can do so can kate. only it has more

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Arno Kuhl
Nusphere PhpED and love it. Tried a few other editors but stayed with PhpED now for the last year and about to renew my subscription. Excellent project management, brilliant debugger (local and remote), code error detection and highlighting, fast (much faster than the java editors), able to handle

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jesper Gran
If you're allready using Visul Studio for your windows applications, take a look at VS.Php from Jcx.Software. http://www.jcxsoftware.com/ Jesper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Forum

2005-12-06 Thread Andy Pieters
Hi list Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? With kind regards Andy -- Now listening to Top! Radio Live www.topradio.be/stream on amaroK Geek code: www.vlaamse-kern.com/geek Registered

Re: [PHP] HTTP User Authentication Problems

2005-12-06 Thread Rahul S. Johari
Ave, Steve, I did a phpinfo() on my webhost and as it turns out, they are using a CGI binary version, much to my surprise and dismay. Anyhow... Do I have any alternatives for an http authentication kind of authentication ? Thanks, Rahul S. Johari Coordinator, Internet Administration Informed

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread David Grant
Hi, I imagine this kind of thing is not especially taxing on the processor, especially if the condition is a fairly simple comparison. That said, I have very little understanding aside from my own limited experience of what runs slowly! If you're worried about code maintenance, then move the

Re: [PHP] Forum

2005-12-06 Thread John Nichel
Andy Pieters wrote: Hi list Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? I'm sure Google knows. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675

RE: [PHP] Forum

2005-12-06 Thread Jay Blanchard
[snip] I'm sure Google knows. [/snip] Google knows everything[refrain from putting some terse comment concerning certain products which have caused me to curse so much that I will only have coals switches in my stocking this Christmas] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Forum

2005-12-06 Thread Andy Pieters
On Tuesday 06 December 2005 16:16, John Nichel wrote: Andy Pieters wrote: Hi list Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? I'm sure Google knows. The difference with google and humans is

RE: [PHP] Forum

2005-12-06 Thread Robert Cummings
On Tue, 2005-12-06 at 11:22, Jay Blanchard wrote: [snip] I'm sure Google knows. [/snip] Google knows everything[refrain from putting some terse comment concerning certain products which have caused me to curse so much that I will only have coals switches in my stocking this

Re: [PHP] Forum

2005-12-06 Thread John Nichel
Jay Blanchard wrote: [snip] I'm sure Google knows. [/snip] Google knows everything[refrain from putting some terse comment concerning certain products which have caused me to curse so much that I will only have coals switches in my stocking this Christmas] What concerns me is that

Re: [PHP] Forum

2005-12-06 Thread Larry E. Ullman
Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? I would suggest that Phorum (www.phorum.org) and phpBB (www.phpbb.com) are the two biggies (written in PHP). Both have all these features plus many

Re: [PHP] Forum

2005-12-06 Thread John Nichel
Andy Pieters wrote: On Tuesday 06 December 2005 16:16, John Nichel wrote: Andy Pieters wrote: Hi list Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? I'm sure Google knows. The difference with

Re: [PHP] Forum

2005-12-06 Thread David Grant
Larry E. Ullman wrote: Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? http://fudforum.org/features.php I've heard lots about it, but never used it. Cheers, David Grant -- David Grant

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread tg-php
This is probably going to sound strange, but I like to try to think outside the box (buzzphrase!) and hit things at odd angles. Would someone care to test (or already know) the performance difference between a for loop and a foreach loop? Or the performance difference over many iterations of

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Mark Steudel
I primarily code in Dreamweaver 8. Two of my favorite features that were added from MX are as follows: 1. Code folding, basically you can collapse blocks of code. If you have to work with other peoples code, matching braces and code folding is an awesome way of just seeing the logical flow of the

[PHP] Arrays

2005-12-06 Thread Ben Miller
If I have an array, such as $Var[0] = Dog; $Var[1] = Cat; $Var[2] = Horse; Is there a way to quickly check to see if $Var contains Lion without walking through each value? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 17:25, Mark Steudel wrote: ZS has code folding too, but just for functions. Someone else mentioned support for phpDoc, this is an awesome time saver if you want to provide clear documentation in phpdoc format. One big bummer on ZS was that it didn't have a built in FTP

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread M. Sokolewicz
Jason Petersen wrote: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Vim is my editor

RE: [PHP] Arrays

2005-12-06 Thread Jay Blanchard
[snip] Is there a way to quickly check to see if $Var contains Lion without walking through each value? [/snip] http://us3.php.net/in_array -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 17:33, Ben Miller wrote: If I have an array, such as $Var[0] = Dog; $Var[1] = Cat; $Var[2] = Horse; Is there a way to quickly check to see if $Var contains Lion without walking through each value? Look in the manual at the function in_array() Cheers, Rich --

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 17:36, M. Sokolewicz wrote: Jason Petersen wrote: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Vim is my editor of preference. If I have to use Windows, I usually go with Homesite (because I already have a licensed copy) or Textpad (because it's better than

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Michael Crute
On 12/6/05, Richard Davey [EMAIL PROTECTED] wrote: On 6 Dec 2005, at 17:36, M. Sokolewicz wrote: Jason Petersen wrote: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Vim is my editor of preference. If I have to use Windows, I usually go with Homesite (because I already have a

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Chris Boget
I primarily code in Dreamweaver 8. Two of my favorite features that were added from MX are as follows: 1. Code folding, basically you can collapse blocks of code. SlickEdit has this feature. 2. The built in FTP client. This one as well. I used Dreamweaver a while back (admittedly an older

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Mark Steudel
When you say SlickEdit has a ftp client built in, is it a separate window that gets launched, or is it more integrated, like you can just right click on your list of files and say put these files up on the server. For me just being able to save and have the file get uploaded saves me a lot of

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Ben
Michael Crute said the following on 12/06/2005 09:53 AM: On 12/6/05, Richard Davey [EMAIL PROTECTED] wrote: Indeed, if you are bad at VI things go very slow but if you are good at VI (I am semi-good) you can code FAR faster than any GUI I have ever used. If you take the upfront time to learn

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Eric Gorr
Quoting Torgny Bjers [EMAIL PROTECTED]: I recommend Zend Studio if you can afford it since it has a GUI for both Windows and Linux FlameBateAnd for those interested in using a real computer/FlameBate, it's GUI also runs under MacOSX.

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jay Blanchard
[snip] FlameBateAnd for those interested in using a real computer/FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Michael Crute
On 12/6/05, Ben [EMAIL PROTECTED] wrote: Michael Crute said the following on 12/06/2005 09:53 AM: On 12/6/05, Richard Davey [EMAIL PROTECTED] wrote: Indeed, if you are bad at VI things go very slow but if you are good at VI (I am semi-good) you can code FAR faster than any GUI I have ever

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Stephen Leaf
Wow.. Linux must really be real then.. look at all the distributions , kernel patch sets, Window managers, etc./sarcasm # of programs means nothing. it's the quality of the programs. And yes I am a linux user ;) On Tuesday 06 December 2005 13:24, Jay Blanchard wrote: [snip] FlameBateAnd for

Re: [PHP] Arrays

2005-12-06 Thread tg-php
This what you want? http://us3.php.net/manual/en/function.array-search.php -TG = = = Original message = = = If I have an array, such as $Var[0] = Dog; $Var[1] = Cat; $Var[2] = Horse; Is there a way to quickly check to see if $Var contains Lion without walking through each value?

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Ben
Jay Blanchard said the following on 12/06/2005 11:24 AM: [snip] FlameBateAnd for those interested in using a real computer/FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? 'cause it's real expensive ;-). - Ben -- PHP General Mailing List

Re: [PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-06 Thread kristina clair
In case anyone encounters this problem - using the latest 4.4.x snapshot fixed the problem for me (thanks, developers!). Kristina On 12/5/05, kristina clair [EMAIL PROTECTED] wrote: On 12/5/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I'm having a problem with certain SSI files which

RE: [PHP] Redirects Safari vs Others

2005-12-06 Thread Mark Steudel
Sorry it took me so long, I wasn't sure where the problem lay and couldn't get you the exact code, but I figured out why (sorta) this was happening. // Causes only Safiri to bomb header(location: .$_SERVER['PHP_SELF'].?action=listentriescategoryid=.$id.page=.$pagei d); exit; Headers:

[PHP] Urlencode vs htmlentities

2005-12-06 Thread Mark Steudel
Lets say I have the following: Current URL: http://www.domain.com/page.php?action=list http://www.domain.com/page.php?action=listtop=/page.php?action=listid=3 top=/page.php?action=listid=3 $top = $_SERVER['PHP_SELF'].'?'.$_SERVER['argv']['0'] Now I want to create a URL with a return link in

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 19:24, Jay Blanchard wrote: [snip] FlameBateAnd for those interested in using a real computer/ FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? Because they have 'real' price tags. Shame really, as OS X pisses all over

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jay Blanchard
[snip] [snip] FlameBateAnd for those interested in using a real computer/ FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? Because they have 'real' price tags. Shame really, as OS X pisses all over Windows from a great height. Oh well,

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Chris Boget
When you say SlickEdit has a ftp client built in, is it a separate window that gets launched, or is it more integrated, like you can just right click on your list of files and say put these files up on the server. It's integrated. thnx, Chris -- PHP General Mailing List

Re: [PHP] Redirects Safari vs Others

2005-12-06 Thread Dan Lowe
On Dec 6, 2005, at 2:55 PM, Mark Steudel wrote: Sorry it took me so long, I wasn't sure where the problem lay and couldn't get you the exact code, but I figured out why (sorta) this was happening. // Causes only Safiri to bomb header(location:

[PHP] Migration to PHP5

2005-12-06 Thread Christian Calloway
Hi, Does anyone have stats in terms of migration from 4 to 5, specifically I'd like to know if the bulk of PHP developers have begun to change-over. I am (was) a Java developer, but have been doing freelance/consultant work in PHP for two years and am still developing on PHP4 platform. I

RE: [PHP] Redirects Safari vs Others

2005-12-06 Thread Jay Blanchard
[snip] // Causes only Safiri to bomb header(location: .$_SERVER['PHP_SELF'].?action=listentriescategoryid=.$id.page=.$pagei d); exit; [/snip] Since PHP is processed server-side it has to be the URL causing Safari to bail. Have you echo'd out the URL to see what it is composed of? $foo =

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread John Nichel
Jay Blanchard wrote: [snip] [snip] FlameBateAnd for those interested in using a real computer/ FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? Because they have 'real' price tags. Shame really, as OS X pisses all over Windows from a

RE: [PHP] Redirects Safari vs Others

2005-12-06 Thread Mark Steudel
You are right, thank you for trying it out and letting me know. I went back and tested this again and it all worked. I then checked out my code where it didn't work and I had moved a single quote outside of the brackets, $_SERVER['PHP_SELF]' ... Oops. -Original Message- From: Dan Lowe

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Eric Gorr
On 6 Dec 2005, at 19:24, Jay Blanchard wrote: [snip] FlameBateAnd for those interested in using a real computer/ FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? Far to many people have fallen victim to the deception field emanating from

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Mark Steudel
Neat, I'll have to check it out. -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 12:14 PM To: Mark Steudel; 'php' Subject: Re: [PHP] What software do you use for writing PHP? When you say SlickEdit has a ftp client built in, is it a

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Eric Gorr
Jason Petersen wrote: Vim is my editor of preference. If I have to use Windows, I usually go with Homesite (because I already have a licensed copy) or Textpad (because it's better than Notepad). IDEs? Who needs 'em ;) Who? Anyone who understands just how useful a debugger can be in

Re: [PHP] Forum

2005-12-06 Thread Dotan Cohen
On 12/6/05, Larry E. Ullman [EMAIL PROTECTED] wrote: Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? I would suggest that Phorum (www.phorum.org) and phpBB (www.phpbb.com) are the two biggies

Re: [PHP] Assigns True but not false?

2005-12-06 Thread Andy Pieters
On Tuesday 06 December 2005 17:38, Gabe wrote: $this-m_arrQuesInfo[$this-m_itemID]['blnVacPromo'] = ( ( !empty($_POST['vac_promo']) ) ( $_POST['vac_promo'] == 'on' ) ) ? TRUE : FALSE; I have a habit of casting true or false to boolean so that I'm sure they're not interpreted as 1 or 0. Try

Re: [PHP] Forum

2005-12-06 Thread Dotan Cohen
On 12/6/05, Andy Pieters [EMAIL PROTECTED] wrote: On Tuesday 06 December 2005 21:25, you boldly pressed keys on your keyboard to form this message: One big problem that I have had is with forum spam. Phpbb makes it easy to control. I won't go into all the details, but you could research

[PHP] references, circular references, oop, and garbage collection in PHP5

2005-12-06 Thread Alan Pinstein
So.. I am having PHP5 memory management problems. They are similar to those described in this thread: http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/1555640 (so maybe this question belongs on php-dev but I figured I'd try here first... seems like a userland question) Basically I

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jochem Maas
John Nichel wrote: Jay Blanchard wrote: [snip] [snip] FlameBateAnd for those interested in using a real computer/ FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? Because they have 'real' price tags. Shame really, as OS X pisses all

Re: [PHP] references, circular references, oop, and garbage collection in PHP5

2005-12-06 Thread Ray Hauge
I am uncertain on this, but I believe that the $this variable is already just a reference to the class you are calling it from. Then passing the reference by-reference to the addParent() method of the Child class could be what is causing your issue. I'd be curious to see what would happen if

[PHP] Optimizing Images

2005-12-06 Thread Tim Traver
Hi all, ok, I'm trying to write a script to optimize images for the web, but I can't seem to figure out how to go about reducing the color pallete, and therefor reducing the size of the images. I'm trying to be generic about it so that users can optimize GIF's and JPG's or even PNG's. I

Re: [PHP] Optimizing Images

2005-12-06 Thread John Hinton
Tim Traver wrote: Hi all, ok, I'm trying to write a script to optimize images for the web, but I can't seem to figure out how to go about reducing the color pallete, and therefor reducing the size of the images. I'm trying to be generic about it so that users can optimize GIF's and JPG's

[PHP] Web calendar and online Dairy

2005-12-06 Thread Vikram Kumar
Hi! I need a web calendar and online diary application. Can some one develop those applications for me. You may use open source applications, or already developed applications in your previous projects, I need simplest calendar and online diary applications. And ofcourse, I will pay you.

[PHP] Debuggers on Windows Servers

2005-12-06 Thread Mark Steudel
Anyone out there running debuggers and profilers on your windows boxes? I'd like to start profiling some of my code and use some debuggers. Since we have dev sites on the same box with product sites, I wanted to make sure that before I ask our Sysadmin to install anything that they are stable and

Re: [PHP] Web calendar and online Dairy

2005-12-06 Thread Terence
Vikram Kumar wrote: Hi! I need a web calendar and online diary application. Try this, it might fit your needs. http://www.k5n.us/webcalendar.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Assigns True but not false?

2005-12-06 Thread Curt Zirzow
On Tue, Dec 06, 2005 at 12:38:28PM -0500, Gabe wrote: In this if statement, if the condition is true, then it will assign true to the array (as I want it to). If the condition evaluates to false, it assigns nothing. Any idea why it won't assign false? If I switch the FALSE boolean value

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Curt Zirzow
On Tue, Dec 06, 2005 at 06:36:33PM +0100, M. Sokolewicz wrote: Jason Petersen wrote: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to

[PHP] Classes/Objects - Books/Links?

2005-12-06 Thread Michael Hulse
Hello, I want to learn about classes and objects in PHP. (IMHO) I would say that my understanding of functions is very good. Any books that you could suggest that specifically address just classes/objects? How-a-bout sites/links/tutorials on the web? I am hoping that by learning how to use

Re: [PHP] Classes/Objects - Books/Links?

2005-12-06 Thread Chris Shiflett
Michael Hulse wrote: Any books that you could suggest that specifically address just classes/objects? Adam Trachtenberg's Upgrading to PHP 5 (O'Reilly) is a good book. It covers all of the new features in PHP 5 (so it's not just OOP, sorry), but the chapter on objects is excellent. Chris

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Michael Hulse
On Dec 6, 2005, at 6:38 PM, Curt Zirzow wrote: On Tue, Dec 06, 2005 at 06:36:33PM +0100, M. Sokolewicz wrote: Jason Petersen wrote: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better

Re: [PHP] Urlencode vs htmlentities

2005-12-06 Thread comex
Should I use htmlentites on $top first? AFAIK, all of what you said is correct except for that, where you should use htmlentities(urlencode($top)). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >