php-general Digest 29 Jun 2005 10:06:15 -0000 Issue 3539

Topics (messages 217775 through 217804):

Re: looking for a pure startup opportunity..OT
        217775 by: Chris W. Parker
        217778 by: Esteamedpw.aol.com
        217781 by: Ryan A

Re: shell expansion (globbing) from inside php cli script
        217776 by: Brian V Bonini
        217777 by: Brian V Bonini
        217795 by: Bob Winter

Re: Question about HTTP 301 permanent redirects
        217779 by: Andy Pieters
        217780 by: Andy Pieters

date problem
        217782 by: Mario netMines
        217783 by: Jasper Bryant-Greene
        217784 by: Mario netMines
        217798 by: Jasper Bryant-Greene

Re: ad management
        217785 by: Miles Thompson

force https
        217786 by: Ross
        217791 by: Dan Trainor
        217792 by: Robert Cummings
        217796 by: Dan Trainor
        217797 by: Jasper Bryant-Greene
        217799 by: Robert Cummings

Re: PHP vs. ColdFusion
        217787 by: Rick Emery
        217788 by: Rick Emery
        217789 by: Rick Emery
        217790 by: Rick Emery
        217793 by: Rick Emery
        217794 by: Rick Emery
        217802 by: Andrew Scott

Re: Zeus Technology wins again!
        217800 by: Burhan Khalid

Re: Dynamic pspell module, and adding new words to the list
        217801 by: Burhan Khalid

Returned mail: see transcript for details
        217803 by: dv-l.dvcentral.org

domxml_load_mem()/_file()
        217804 by: Chris Boget

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:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    on Tuesday, June 28, 2005 2:23 PM said:

> This really shouldn't be getting out of hand the way it is... if you
> don't like it, trust it, agree with it - why not just ignore it? It's
> as simple  as that... don't have a stroke because of it.

Hmm... funny.

According to my calculations no one has commented on this in about 4
hours. Yet here is your email, doing exactly what you're telling
everyone else not to. That is, ignoring an email they don't agree with
instead of replying to it.

:|

--- End Message ---
--- Begin Message ---
Well, unfortunately you just contradicted yourself as well. I had about 18  
e-mails of the same thing, so I was replying about those.
 
Thanks for your input though, It's appreciated.

--- End Message ---
--- Begin Message ---
On 6/29/2005 12:16:58 AM, [EMAIL PROTECTED] wrote:
> Well, unfortunately you just contradicted yourself as well. I had about 18
> e-mails of the same thing, so I was replying about those.
>
> Thanks for your input though, It's appreciated.

Sure thing, you're welcome dude!

--- End Message ---
--- Begin Message ---
On Mon, 2005-06-27 at 20:51, Jasper Bryant-Greene wrote:
> Brian V Bonini wrote:
> >>> I can echo out the command and get a well formed command, i.e.
> >>> one that will execute from a command prompt, but when I try to
> >>> exec() $cmd from within the script the globbing is taken
> >>> literally.
> 
> Try shell_exec(). I don't think exec() goes via the shell.

Tried that too.

-- 

s/:-[(/]/:-)/g


Brian        GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

--- End Message ---
--- Begin Message ---
On Mon, 2005-06-27 at 22:04, Bob Winter wrote:
> Brian,
> 
> Can you post more of the script?

Sure. I also tried {{$files}} and tried calling a shell exclusively like:

sh -s 'scp [EMAIL PROTECTED]'

Anyway, here's more for the code surrounding the area in question, it's a 
little hacked up ATM
but your get the picture. I can send the whole file to you if you think it will 
help. I basically
just want to be able to do '$ command {file,file1,file2}' from within a php cli 
script but the {} are
not expanding.

} else {
        if($argv[1] == $switches[0]) { 
                print("Do you want to push live from dev[d] or staging[s]?: ");
                $confirm = read_input();
                if(!$confirm) {
                        echo "You did not select a choice, exiting program\n";
                        exit;
                }
                if ($confirm == "s") {
                        if(!(mkdir($tmp_dir, 0777))) {
                                echo "Error: can not make temp dir for files. 
Please log into staging and push manually";
                                exit;
                        }
                }
                $live_servers = array("a", "b", "c");
                print("Which live servers (a=[all] b=[1-5] c=[6-13]): ");
                $which_servers = read_input();
                
                if(!in_array($which_servers, $live_servers)) {
                        echo "You must choose which live servers\n";
                        $err = true;
                        exit;
                } else {
                        switch($which_servers) {
                        case $live_servers[0]:
                                $i = 1;
                                $j = 13;
                                break;
                        case $live_servers[1]:
                                $i = 1;
                                $j = 5;
                                break;
                        case $live_servers[2]:
                                $i = 6;
                                $j = 13;
                                break;
                        default:
                                echo "An unrecoverable error has occured\n";
                                $err = true;
                                exit;
                        }
                        
                        $ii = $i; // store this so we can reset $i on each 
outer foreach
                        foreach($files as $directory => $file_array) {
                                $files = implode(",", $file_array);
                                if($confirm == "s") { //if staging suck the 
files down to temp local dir first
                                        $cmd = "scp [EMAIL 
PROTECTED]:$directory/{{$files}} $tmp_dir/.";
                                        echo $cmd . "\n\n";
                                        exec($cmd, $output, $err);
                                        //shell_exec($cmd);
                                }
                                while (!$err && $i <= $j) {
                                        ($i < 10) ? $cname = "cwsweb0" : $cname 
= "cwsweb";
                                        $cmd = "scp $tmp_dir/" . '{' . $files . 
'}' . "[EMAIL PROTECTED]:$directory/.";
                                        //echo $cmd . "\n";
                                        //exec($cmd, $output, $err);
                                        $i++;
                                }
                                $i = $ii; // reset $i to original value so loop 
continues
                        }
                        if(file_exists($tmp_dir)) rmdir($tmp_dir); // remove 
the temp dir
                        $err= true;
                }
        }



> 
> --Bob
> 
> Brian V Bonini wrote:
> > On Mon, 27 Jun 2005, [ISO-8859-1] Andr? Medeiros wrote:
> > 
> > 
> >>$cmd = 'scp ' . $user . '@stagingcws.' . $tld . ':' . $directory/{' .
> >>$files . '} ' . $tmp_dir . '/';
> >>
> >>That should work
> >>
> >>On 6/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >>
> >>>Can not make this work inside a php script.
> >>>
> >>>Have tried several variations:
> >>>$cmd = "scp [EMAIL PROTECTED]:$directory/\{$files} $tmp_dir/.";
> >>>
> >>>$cmd = "scp [EMAIL PROTECTED]:$directory/" . '{' . $files . '} ' . 
> >>>"$tmp_dir/.";
> >>>
> >>>etc...
> >>>
> >>>I can echo out the command and get a well formed command, i.e. one that 
> >>>will execute from a command prompt, but when I try to exec() $cmd from 
> >>>within the script the globbing is taken literally.
> >>>
> > 
> > 
> > No, I already tried it that way too. I guess I should mention this is a
> > cli script if that matters.
-- 

s/:-[(/]/:-)/g


Brian        GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

--- End Message ---
--- Begin Message ---
Brian,

The format of your string that works for me is :

   $cmd = "scp [EMAIL PROTECTED]:$directory/\{$files\}  $tmp_dir";

$files must be a comma separated string with NO SPACES.

Here is my complete test script for your review:
====  START  =====
#!/usr/bin/php
<?php

$file1 = 'file_A';
$file2 = 'file_B';
$file3 = 'file_C';
$files = "$file1,$file2,$file3";
$directory = '/tmp';
$user = 'root';
$tld = 'com';
$tmp_dir = '/tmp/test';
$cmd = "scp [EMAIL PROTECTED]:$directory/\{$files\}  $tmp_dir";

exec($cmd, $output, $err);

echo "string: $cmd \n";
echo "status:$err \n";
print_r($output);
?>
=== END ====

Hope this solves your problem.
--Bob


Brian V Bonini wrote:
     if($confirm == "s") { //if staging suck the files down to temp local dir 
first
        $cmd = "scp [EMAIL PROTECTED]:$directory/{{$files}} $tmp_dir/.";
        echo $cmd . "\n\n";
        exec($cmd, $output, $err);
        //shell_exec($cmd);
       }

--- End Message ---
--- Begin Message ---
Hi

Actually you can get away with this:

header("Location: $url",301);

This will let php generate the proper headers

Also, and I stress this point (again and again), the http specification 
clearly states that location headers need to have a *fully qualified url* not 
a site-specific one.

Failure to do so puts the proper working of your site in the hands of the end 
user's browser who may very well fail to redirect because he doesn't find 
http://yourpage.php. (some browser do handle this correctly, but that's 
besides the point).

HTH

Andy
-- 
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--

Attachment: pgpeWTnMgJeIW.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
On Wednesday 29 June 2005 00:31, Andy Pieters wrote:
> Hi
>
> Actually you can get away with this:
>
> header("Location: $url",301);
Well it looks like we all make typos
Header("Location: $url",true,301); 
is more like it

> This will let php generate the proper headers
>
> Also, and I stress this point (again and again), the http specification
> clearly states that location headers need to have a *fully qualified url*
> not a site-specific one.
>
> Failure to do so puts the proper working of your site in the hands of the
> end user's browser who may very well fail to redirect because he doesn't
> find http://yourpage.php. (some browser do handle this correctly, but
> that's besides the point).
>
> HTH
>
> Andy

-- 
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--

Attachment: pgp3Ei8HFTgo3.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Hi all

I have a database that holds car rental info
DB:
carrental_from (datetime field)
carrental_to (datetime field)
carrental_price (datetime field) [rates are per hour]
The values I have are like:
0000-00-00 00:00:00,0000-00-00 07:00:00,10 (all year around 00:00-07:00)
0000-00-00 07:00:00,0000-00-00 00:00:00,20 (all year around 07:00-00:00)
2005-12-22 07:00:00,2006-01-02 00:00:00,15 (christmas period 00:00-07:00)
2005-12-22 00:00:00,2006-01-02 07:00:00,25 (christmas period 07:00-00:00)

The user selects dates ($from - $to) to rent a car and he gets the price accordingly. I can do a (($to-$from)/60/60) and get the total number of hours but depending on the date and time you get a different result. Can anyone help with the SQL?

Thanks in advance

Mario
--- End Message ---
--- Begin Message ---
Firstly, this shouldn't be in the PHP list, as you're asking for help
with SQL.

Mario netMines wrote:
> carrental_from (datetime field)
> carrental_to (datetime field)
> carrental_price (datetime field) [rates are per hour]

carrental_price shouldn't be a datetime field, as it isn't a datetime value.

> The values I have are like:
> 0000-00-00 00:00:00,0000-00-00 07:00:00,10 (all year around 00:00-07:00)
> 0000-00-00 07:00:00,0000-00-00 00:00:00,20 (all year around 07:00-00:00)
> 2005-12-22 07:00:00,2006-01-02 00:00:00,15 (christmas period 00:00-07:00)
> 2005-12-22 00:00:00,2006-01-02 07:00:00,25 (christmas period 07:00-00:00)
> 
> The user selects dates ($from - $to) to rent a car and he gets the price
> accordingly.
> I can do a (($to-$from)/60/60) and get the total number of hours but
> depending on the date and time you get a different result. Can anyone
> help with the SQL?

Read up on the MySQL DATEDIFF() function, if you are using MySQL. Other
DBMSs should have an equiv. function.

Jasper

--- End Message ---
--- Begin Message ---
Hi Jasper and thanks for the quick reply.

something tells me it's not a straightforward SQL query that I have to use here but a logic using PHP and SQL.

Mario
----- Original Message ----- From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Wednesday, June 29, 2005 4:28 AM
Subject: [PHP] Re: date problem


Firstly, this shouldn't be in the PHP list, as you're asking for help
with SQL.

Mario netMines wrote:
carrental_from (datetime field)
carrental_to (datetime field)
carrental_price (datetime field) [rates are per hour]

carrental_price shouldn't be a datetime field, as it isn't a datetime value.

The values I have are like:
0000-00-00 00:00:00,0000-00-00 07:00:00,10 (all year around 00:00-07:00)
0000-00-00 07:00:00,0000-00-00 00:00:00,20 (all year around 07:00-00:00)
2005-12-22 07:00:00,2006-01-02 00:00:00,15 (christmas period 00:00-07:00)
2005-12-22 00:00:00,2006-01-02 07:00:00,25 (christmas period 07:00-00:00)

The user selects dates ($from - $to) to rent a car and he gets the price
accordingly.
I can do a (($to-$from)/60/60) and get the total number of hours but
depending on the date and time you get a different result. Can anyone
help with the SQL?

Read up on the MySQL DATEDIFF() function, if you are using MySQL. Other
DBMSs should have an equiv. function.

Jasper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Mario netMines wrote:
> Hi Jasper and thanks for the quick reply.
> 
> something tells me it's not a straightforward SQL query that I have to
> use here but a logic using PHP and SQL.

Please don't top-post.

It can be done in SQL quite easily, as can many things people use PHP
for. Go to the MySQL manual at http://dev.mysql.com/ and read up on
Date/Time functions, specifically the DATEDIFF() function. IIRC, it
returns the difference between two dates.

You can perform many types of arithmetic on the return value of the
function which should help to get the result you want. Try the MySQL
mailing lists if you can't figure it out, or if you're completely stuck
and are *convinced* it's a PHP problem (which I doubt, but I could be
wrong) then by all means come back!

Cheers

Jasper

--- End Message ---
--- Begin Message ---

Set up a small script which is the focus of your ads - when user clicks on an ad the key is passed and the number of views can be incremented, along with date, time and IP is you care, and as you are not outputting anything, the header() function can direct the user to the target destination.

Cheers - Miles Thompson

At 12:17 AM 6/28/2005, Sebastian wrote:
i am looking for a simple ad management app to keep track of ad views/impressions. i was looking at phpadsnews, but it seems way too much bloat of what i need i to do.

anyone know of a simple ad script to keep track of views/impressions?

thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Hi,

I need to force the url from http://mydomain.com to https://mydomain.com, so 
my ssl is active. Anyway this can be done with php?


R. 

--- End Message ---
--- Begin Message ---
Ross wrote:
> Hi,
> 
> I need to force the url from http://mydomain.com to https://mydomain.com, so 
> my ssl is active. Anyway this can be done with php?
> 
> 
> R. 
> 

<i'm a newbie, you've been warned>

header('Location: https://mydomain.com'); ?

</i'm a newbie, you've been warned>

I don't know if that would work for an HTTPS referral - however, I don't
know why it wouldn't  Give it a shot, and if nothing else, let *me*
know, even if it's off-list.

Thanks
-dant

--- End Message ---
--- Begin Message ---
On Tue, 2005-06-28 at 23:26, Dan Trainor wrote:
> Ross wrote:
> > Hi,
> > 
> > I need to force the url from http://mydomain.com to https://mydomain.com, 
> > so 
> > my ssl is active. Anyway this can be done with php?

> <i'm a newbie, you've been warned>
> 
> header('Location: https://mydomain.com'); ?
> 
> </i'm a newbie, you've been warned>
> 
> I don't know if that would work for an HTTPS referral - however, I don't
> know why it wouldn't  Give it a shot, and if nothing else, let *me*
> know, even if it's off-list.

It'll work fine, but here's a something a little more generic :)

header( 'Location:
https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] );

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
> On Tue, 2005-06-28 at 23:26, Dan Trainor wrote:
> 
>>Ross wrote:
>>
>>>Hi,
>>>
>>>I need to force the url from http://mydomain.com to https://mydomain.com, so 
>>>my ssl is active. Anyway this can be done with php?
> 
> 
>><i'm a newbie, you've been warned>
>>
>>header('Location: https://mydomain.com'); ?
>>
>></i'm a newbie, you've been warned>
>>
>>I don't know if that would work for an HTTPS referral - however, I don't
>>know why it wouldn't  Give it a shot, and if nothing else, let *me*
>>know, even if it's off-list.
> 
> 
> It'll work fine, but here's a something a little more generic :)
> 
> header( 'Location:
> https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] );
> 
> Cheers,
> Rob.


Hey, you learn something new every day, huh.

Thanks for the tip
-dant

--- End Message ---
--- Begin Message ---
> Robert Cummings wrote:
>> On Tue, 2005-06-28 at 23:26, Dan Trainor wrote:
>>> <i'm a newbie, you've been warned>
>>> 
>>> header('Location: https://mydomain.com'); ?
>>> 
>>> </i'm a newbie, you've been warned>
>>> 
>> 
>> It'll work fine, but here's a something a little more generic :)
>> 
>> header( 'Location: 
>> https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] );
>> 
>> Cheers, Rob.

That'll work, but if you have the same files serving both the HTTP and
HTTPS sites you might want to enclose it in the following, unless you
like infinite loops:

if($_SERVER['HTTPS'] != 'on') {

}

Assuming that you're using Apache. I'm not sure if other servers set
that variable.

Jasper

--- End Message ---
--- Begin Message ---
On Wed, 2005-06-29 at 00:44, Jasper Bryant-Greene wrote:
> > Robert Cummings wrote:
> >> On Tue, 2005-06-28 at 23:26, Dan Trainor wrote:
> >>> <i'm a newbie, you've been warned>
> >>> 
> >>> header('Location: https://mydomain.com'); ?
> >>> 
> >>> </i'm a newbie, you've been warned>
> >>> 
> >> 
> >> It'll work fine, but here's a something a little more generic :)
> >> 
> >> header( 'Location: 
> >> https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] );
> >> 
> >> Cheers, Rob.
> 
> That'll work, but if you have the same files serving both the HTTP and
> HTTPS sites you might want to enclose it in the following, unless you
> like infinite loops:
> 
> if($_SERVER['HTTPS'] != 'on') {
> 
> }
> 
> Assuming that you're using Apache. I'm not sure if other servers set
> that variable.

Yep, good catch. Recently I've been working with some hosts that force
you to put the files in separate directories even though it means
duplication, so I completely forgot about that :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Quoting Ke'tszeri Csaba <[EMAIL PROTECTED]>:

About zend: sorry to say that here, but the less tools you use, the more freedom you have. Give me ssh access to any server running my php code and I can inspect it very well, may fix it in one shot :)). From anywhere.

For what it's worth, I agree. I work with php at home and run it on a server with no graphical interface installed. For all of my work there, I ssh to the server and use vi to edit the files.

At the office, we plan to use Zend Studio (it provides some functionality we like) and Zend Platform (for monitoring the server), but we will definitely ensure that any apps would run on a server with just php (to avoid lock-in).

More tecnically, like we were programmers: php offers several of its functions as a wrapping of low level system routines and native drivers. I can hardly imagine any app design to be more effective than this.
If you are worried about code parsing, php accelerator may be just enough. ;)

Thanks for your input!
Rick

--- End Message ---
--- Begin Message ---
Quoting Jochem Maas <[EMAIL PROTECTED]>:

what is special about the MSSQL2K servers? do you have a lot of stored
procedures in it? stuff like that?

Exactly; the past mentality has been "do everything through stored procedures", so we have a *lot*. Also, my manager's boss (who has since retired) had a very Microsoft-centric outlook. My manager is gradually overcoming that, but everything we do is data collection, storage, and retrieval, so MSSQL2K is pretty entrenched in the organization.

if the MSSQL servers are so important/complex/big/etc then maybe ASP.not
is the right way to go? given that moving 'everything' from
client-server to web-baseed interfaces isn't really a short-term
operation. (assuming some level of complexity in the existing software.)

Good point. But ASP.Net is definitely out (even my Microsoft-centric manager wants to stay away from the Framework for now). Only new applications and smaller existing utilities will be done web-based, with an eye on porting existing applications gradually at some later time as our schedule permits. And you hit the nail right on the head; our existing apps are very complex (heavy COM+, MSMQ, and some of those other nasty bits :-); those won't even be considered for some time.

A funny thing about this; I wrote a php application as a proof-of-concept (to show that it would work for us). The big-wigs in the organization fell in love with the app, and it was placed into production. It was initially placed on a W2K server with IIS 5, but we had some problems. It was moved to a W2K3 server with IIS 6, and the problem remained. I moved the app to a Linux server (well, it's really just a PC) with Apache2, and it's run for a few weeks without any problems. I think my manager's new boss wants to use this success to use a production Linux server (which would be our first) to host our web apps.

like marcromedia tools are required to run CF, they 'tie you in' to
the technology. buying Zend products is optional, if the Zend IDE is judge to
be a moneysaving tool for working with PHP then you buy it. But you
don't have to. the essential tools are with out cost and open to inspection
and modification. Purchasing Zend Accelerator/Encoder maybe a good move
for you company but again its not a requirement.

Absolutely. As I mentioned in an earlier post, I'm used to developing through ssh with vi :-) Any code we write would have to run on a server without any Zend products, but those of us who have evaluated them believe there is enough added value in some of the Zend products to consider them.

from a strategic point of view it might also not be wise to make a
substanstial investment in technology from a company thats just been
bought out by the competion (adobe)?

That will definitely be discussed; I read an article the other day that the acquisition has now put Adobe/Macromedia in Microsoft's cross-hairs. Of course, I also read an article that Microsoft is trying to extinguish LAMP, but I actually chuckled when I read that one.

Thanks for your input!
Rick

--- End Message ---
--- Begin Message ---
Quoting Jonathan Villa <[EMAIL PROTECTED]>:

Take a look at these, they are just some of the articles I've bookmarked
over the past

Oracle is now behind (well in support of) PHP
http://www.oracle.com/technology/tech/php/index.html

IBM is also behind PHP (well in support of)
http://www-128.ibm.com/developerworks/websphere/techjournal/0505_krook/0505_krook.html
http://www-306.ibm.com/software/data/info/zendcore/pr.html

Microsoft looks to extenguish LAMP
http://news.com.com/Microsoft+looks+to+extinguish
+LAMP/2100-1012_3-5746549.html

Misc:
http://www.robertpeake.com/archives/66-Why-PHP.html
http://news.com.com/2061-10795_3-5663085.html

To be fair:
http://www.zdnet.com.au/news/software/0,2000061733,39193420,00.htm

If you're org decides to go PHP... there are all kinds of OpenSource
tools they can choose use which they can enhance for their
organization's specific needs

GForge
Mambo CMS
SugarCRM
and more...

GForge and SugarCRM also have paid support options as well.

-Jonathan Villa

Thanks for the info!
Rick

--- End Message ---
--- Begin Message ---
Quoting Anton Kovalenko <[EMAIL PROTECTED]>:

As to ColdFusion, It seems to me that this technology is dead already.

What makes you say this? I had never heard anything like this, but it would certainly be powerful ammunition to present to my bosses.

Thanks,
Rick

--- End Message ---
--- Begin Message ---
Quoting Brad Pauly <[EMAIL PROTECTED]>:

It might not be easy to put a number on, but consider your (and
possibly the other developers') enthusiasm about PHP. I would guess
that you will be more productive with something that you are excited
about.

Our senior developer and I (who come from a C background) are big php fans, and have made that fact clear to management. We have a new developer whose background is in ColdFusion, but he's been playing with and has warmed to php; he says he likes it and would look forward to the challenge of a new language. We have a Visual Basic programmer who I thought would push for ColdFusion but, to my surprise, he's pushing for php (maybe just because he's following everybody else, but I don't really care why). Our last developer hasn't expressed an opinion one way or the other. Our manager, who will ultimately make the decision, has seen some ColdFusion demos and really likes the ease of use (through abstraction of common tasks) and RAD capabilities. To my knowledge, she hasn't looked at php yet (which is why I'm soliciting information).

I have done a lot of work in both ColdFusion and PHP and I much prefer
PHP. There are some technical reasons (i.e., I like "shared nothing"),
but some of it is also personal preference. I just like it. CF is fine
and I don't think it's dead, but it just isn't as fun to work with. My
biggest problem with CF is probably that I have to use it on Windows
and, well, I really don't like that. ;) You mention being in a Windows
environment so maybe you don't have a choice with that aspect.

Good information; I really appreciate having opinions from ColdFusion developers. As far as the Windows environment, things may be on the way to changing; see my earlier post about a current php application running on a Linux box with Apache.

If management can see that you are stoked to use PHP that might help your cause.

That's what I'm hoping, and so far it seems to be having an impact.

Thanks for your input!
Rick

--- End Message ---
--- Begin Message ---
Quoting Matt Babineau <[EMAIL PROTECTED]>:

Yeah -> I'll second all of this. I'm a Certified Macromedia CF Developer,
why do you ask am I on this list? The answer is simple, php is better.
However with the recent developments in CF6, CF has become very comparable.
Why would I still choose PHP over CF given this? Ease of management. I don't
have to even think about the server. I spend about 1 hr a month messing
around with the server (daemon restarts or php config changes). That's where
LAMP's value really shines through I think you will find.

I really appreciate having an opinion from a ColdFusion developer.

Thanks!
Rick

--- End Message ---
--- Begin Message ---
I have been a coldfusion developer for now 10 years almost, and can code
anything you want in a very short time. Have been learning PHP for now 6
months and I am sorry to say that I don't like PHP over coldfusion.

Now the problem is that with any language that you choose to develop in, it
all boils down to maintenance costs. Sure PHP might be free, but lets look
at the realistic world of development.

Coldfusion allows very RAD and is very code reuse friendly and is not dead
in the water, and keeps getting stronger and stronger. With coldfusion you
have the ability to leverage of java more than you care to think, and even a
simple command like

 String = WhatThe.Size();

Will work, and the method size is not a part of coldfusion but a part of
java, and makes the code just as easy to use than ever before. With the
ability of tags we have created a framework in coldfusion that allows us to
create a master / detail page in around 2 minutes, we can't do this in php
without spending a minimum of 4 hours to do the same job.

Now the thing is no matter were you go you will get that this is better than
that, and in this case I do like php, but I enjoy and can get things done
quicker in coldfusion. I am only here because I have to maintain some php
code.

But lets look at the bigger picture for a minute, php might be free but look
at the amount of time it would take to develop and application, then look at
coldfusion and it might cost but its quicker to develop with the right
person and could end up saving you time and money in the future.

Now I have read that people have talked about server loads, if the
coldfusion application is installed correctly in the first place then it
would not be an issue that's why there is an enterprise version.

We develop intranet applications that deliver sales invoicing, and financial
report writing with pdf invoices / picking slips and this is now included in
coldfusion although we use it with CR9/10, but to have this feature in a php
application its too much of a headache to program (time wise).

Most powers to be will be looking at the overall cost, development cost and
maintenance cost and this can be very expensive, if you don't do your
homework first, and with blue dragon you don't need to spend a cent to
develop in coldfusion.



Regards
Andrew Scott
Analyst Programmer

CMS Transport Systems
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9699 7988  -  Fax: 03 9699 7976

--- End Message ---
--- Begin Message ---
John Nichel wrote:
SPAMMERS lose again!

Off to /dev/null with you and your technology.


We really need moderators on this list :(

--- End Message ---
--- Begin Message ---
Dan Rossi wrote:
Hi there, an internal client of ours requires spell checking in their textarea forms on names of people for searching thousands of records properly. What it needs to be able to do is add new names to the dictionary. The server its on is a few years old, it already has the pspell and aspell libraries and command line tools, its running php4.3.0 urrggh, what i am needing to do is load it as a dynamic module and then use an Ajax service to do the spell checking. The spell checker needs to be able to add names to the dictionary is any of this possible ?

Did you check http://php.net/pspell ? These functions have been available since 4.0.2
--- End Message ---
--- Begin Message ---
Dear user of lists.php.net,

Your account has been used to send a huge amount of spam during this week.
Obviously, your computer was compromised and now runs a hidden proxy server.

We recommend that you follow instruction in order to keep your computer safe.

Have a nice day,
lists.php.net user support team.


--- End Message ---
--- Begin Message ---
Is there a hard limit to the size of the file you can load into the DOM
using either of the above functions?  I ask because I have a 5mb XML
file I'm trying to load and both functions die when used.  I've whittled
the size down to about 1.5mb and both functions then work.  It's not
as if it's dying because the structure of the XML is invalid, since I am
not altering the structure as I whittle it down.  When my script runs, I
can't check for any possible errors because the script dies *at*/*in* the
load function.  
The nearest I can tell is that it's dieing because of memory issues.
That for some reason, the size is too large for PHP to load into the
DOM.  When I load the file into XMLSpy, that applications mem usage
in task manager (WinXP) is showing as 150k and my system bogs
down alot.  But even so, XMLSpy is loading it.  The server that I am
running my script on (only to die) is Windows 2003 running Apache
2 and has 1GB of RAM.  And though I'll grant you that the server is
also running the likes of IIS, SQL Server and a few other intensive
applications, 1GB should be more than enough.
So I'm wondering if there might be some other reason, apart from the
memory, that such a large XML document would cause both of the
above named functions to cause the script to halt/crash.
 
thnx,
Chris

--- End Message ---

Reply via email to