php-windows Digest 3 Jul 2009 10:54:49 -0000 Issue 3653
Topics (messages 29431 through 29437):
is ZendStudio IDE necessary????
29431 by: Ravi Joshi
29435 by: Richard Quadling
29436 by: Sascha Meyer
29437 by: Arno Kuhl
Re: Can i run php script using command prompt in any location by typing
scriptname.php
29432 by: Richard Quadling
29433 by: Richard Quadling
29434 by: Richard Quadling
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I have Arachnophilia(IDE) and i can write php script using it.Is
it necessary to install ZendStudio-7.0.0-BETA(IDE) to write php script?
-Ravi Joshi
--- End Message ---
--- Begin Message ---
2009/7/2 Ravi Joshi <ravi.josh...@yahoo.com>:
> Hi,
> I have Arachnophilia(IDE) and i can write php script using
> it.Is it necessary to install ZendStudio-7.0.0-BETA(IDE) to write php script?
>
> -Ravi Joshi
>
>
>
>
Depending upon your requirements.
I use an old fashioned text editor with colour syntax highlighting for
PHP (EditPadPro - http://www.editpadpro.com)
If you are looking for an integrated debugging environment, then maybe
Zend is your bag.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
I need a car : http://snipurl.com/l4pih
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
Hi Ravi,
> I have Arachnophilia(IDE) and i can write php script using it.Is it
necessary to install ZendStudio-7.0.0-BETA(IDE) to write php script?
My two cents to your question:
It just depends on your programming experience with PHP, the complexity
of the project(s) you work on, the necessity of debugging possibilities,
the abstraction grade of your project (i.e. if you are using OOP with
the use of classes, interfaces, abstraction, inheritance) and some more
factors.
This would be my suggested approach:
* if you are used to use PHP and are skilled, things like notepad,
notepad++, PSPad and the like are enough for smaller projects. They are
quickly installed, don't need project setups, but miss most of the real
IDE's functions.
* if you are skilled and use PHP on a higher level with bigger projects,
I would suggest using Zend Studio (or the also eclipse-based PDT, which
is not commercial). Both provide good tools to organize and document
code, have auto-completion for classes, functions, variables; they
support remote debugging on debuggable servers with xdebug or Zend
debugger on the server side; and a lot more
* if you are not used to PHP and you mainly have to take care of design,
some commercial WYSIWYG tools like Dreamweaver would be better, because
they include complete script packages (i.e. user authentication,
recordset pagination and so on) - this approach would be more
frontend-oriented, because they are based on visual components.
Give us some more info on your background and experience for a better
suggestion.
Regards,
Sascha
Richard Quadling schrieb:
2009/7/2 Ravi Joshi <ravi.josh...@yahoo.com>:
Hi,
I have Arachnophilia(IDE) and i can write php script using it.Is
it necessary to install ZendStudio-7.0.0-BETA(IDE) to write php script?
-Ravi Joshi
Depending upon your requirements.
I use an old fashioned text editor with colour syntax highlighting for
PHP (EditPadPro - http://www.editpadpro.com)
If you are looking for an integrated debugging environment, then maybe
Zend is your bag.
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: Ravi Joshi [mailto:ravi.josh...@yahoo.com]
Sent: 02 July 2009 05:39 PM
To: php mailling list
Subject: [PHP-WIN] is ZendStudio IDE necessary????
Hi,
I have Arachnophilia(IDE) and i can write php script using
it.Is it necessary to install ZendStudio-7.0.0-BETA(IDE) to write php
script?
-Ravi Joshi
----
You answered your own question. "I have Arachnophilia(IDE) and i can write
php script using it." In case you missed it - no, it's not necessary to
install ZendStudio-7.0.0-BETA(IDE) to write php script, you can use
Arachnophilia(IDE).
Cheers
Arno
--- End Message ---
--- Begin Message ---
2009/7/2 Ravi Joshi <ravi.josh...@yahoo.com>:
> Hi,
> I have downloaded ZendServer-CE-4.0.3-Windows_x86.exe(49.6 MB) and
> installed it in C:\Program Files\Zend derectory .Whenever i want to run any
> php script i have to put my php script in C:\Program
> Files\Zend\ZendServer\bin directory and then by the command prompt first i
> goto in C:\Program Files\Zend\ZendServer\bin location and then i type php
> scriptname.php. after doing this i get the output from php script.
> I want to ask that can i run my php script by simply double clicking or
> by command prompt only by typing scriptname.php in any location.
> -Ravi Joshi
>
>
>
Yes you can. It's quite easy.
It involves a few things ...
1 - Add the location of php.exe to the path.
This is normally done by going to the Control Panel -> System ->
Advanced -> Environment Variables.
You can either add it just for you (User variables for xxxx) or
globally (System variables).
If there is no PATH, then add it. If there is a PATH then edit it and
add the location at the end with a ; in front ...
Existing Locations;C:\PHP5
(for example).
2 - Tell Windows that .php files are handled by PHP.EXE
At the command line type ...
ASSOC .php=phpfile
FTYPE phpfile=C:\PHP5\PHP.EXE "%1" %*
3 - Allow PHP files to be auto-executable.
Another environment variable to alter. This time it is PATHEXT. If you
want .PHP to be handled before .BAT then place .PHP before the .BAT.
If not put it at the end.
That should do the trick.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
I need a car : http://snipurl.com/l4pih
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
2009/7/2 Richard Quadling <rquadl...@googlemail.com>:
> 2009/7/2 Ravi Joshi <ravi.josh...@yahoo.com>:
>> Hi,
>> I have downloaded ZendServer-CE-4.0.3-Windows_x86.exe(49.6 MB) and
>> installed it in C:\Program Files\Zend derectory .Whenever i want to run any
>> php script i have to put my php script in C:\Program
>> Files\Zend\ZendServer\bin directory and then by the command prompt first i
>> goto in C:\Program Files\Zend\ZendServer\bin location and then i type php
>> scriptname.php. after doing this i get the output from php script.
>> I want to ask that can i run my php script by simply double clicking
>> or by command prompt only by typing scriptname.php in any location.
>> -Ravi Joshi
>>
>>
>>
>
> Yes you can. It's quite easy.
>
> It involves a few things ...
>
> 1 - Add the location of php.exe to the path.
>
> This is normally done by going to the Control Panel -> System ->
> Advanced -> Environment Variables.
>
> You can either add it just for you (User variables for xxxx) or
> globally (System variables).
>
> If there is no PATH, then add it. If there is a PATH then edit it and
> add the location at the end with a ; in front ...
>
> Existing Locations;C:\PHP5
>
> (for example).
>
> 2 - Tell Windows that .php files are handled by PHP.EXE
>
> At the command line type ...
>
> ASSOC .php=phpfile
> FTYPE phpfile=C:\PHP5\PHP.EXE "%1" %*
>
> 3 - Allow PHP files to be auto-executable.
>
> Another environment variable to alter. This time it is PATHEXT. If you
> want .PHP to be handled before .BAT then place .PHP before the .BAT.
> If not put it at the end.
>
> That should do the trick.
>
>
> --
> -----
> Richard Quadling
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> "Standing on the shoulders of some very clever giants!"
> I need a car : http://snipurl.com/l4pih
> ZOPA : http://uk.zopa.com/member/RQuadling
>
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
N:\>assoc .php=phpfile
.php=phpfile
N:\>ftype phpfile=C:\PHP5\PHP.EXE "%1" %*
phpfile=C:\PHP5\PHP.EXE "%1" %*
N:\>php
'php' is not recognized as an internal or external command,
operable program or batch file.
N:\>set path=%PATH%;C:\PHP5
N:\>set PATHEXT=%PATHEXT%;.PHP
N:\>php -v
PHP 5.3.1-dev (cli) (built: Jul 2 2009 10:58:12)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
N:\>copy con doit.php
<?php
echo PHP_VERSION;
^Z
1 file(s) copied.
N:\>doit
5.3.1-dev
N:\>
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
I need a car : http://snipurl.com/l4pih
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
2009/7/2 Richard Quadling <rquadl...@googlemail.com>:
> 2009/7/2 Richard Quadling <rquadl...@googlemail.com>:
>> 2009/7/2 Ravi Joshi <ravi.josh...@yahoo.com>:
>>> Hi,
>>> I have downloaded ZendServer-CE-4.0.3-Windows_x86.exe(49.6 MB) and
>>> installed it in C:\Program Files\Zend derectory .Whenever i want to run any
>>> php script i have to put my php script in C:\Program
>>> Files\Zend\ZendServer\bin directory and then by the command prompt first i
>>> goto in C:\Program Files\Zend\ZendServer\bin location and then i type php
>>> scriptname.php. after doing this i get the output from php script.
>>> I want to ask that can i run my php script by simply double clicking
>>> or by command prompt only by typing scriptname.php in any location.
>>> -Ravi Joshi
>>>
>>>
>>>
>>
>> Yes you can. It's quite easy.
>>
>> It involves a few things ...
>>
>> 1 - Add the location of php.exe to the path.
>>
>> This is normally done by going to the Control Panel -> System ->
>> Advanced -> Environment Variables.
>>
>> You can either add it just for you (User variables for xxxx) or
>> globally (System variables).
>>
>> If there is no PATH, then add it. If there is a PATH then edit it and
>> add the location at the end with a ; in front ...
>>
>> Existing Locations;C:\PHP5
>>
>> (for example).
>>
>> 2 - Tell Windows that .php files are handled by PHP.EXE
>>
>> At the command line type ...
>>
>> ASSOC .php=phpfile
>> FTYPE phpfile=C:\PHP5\PHP.EXE "%1" %*
>>
>> 3 - Allow PHP files to be auto-executable.
>>
>> Another environment variable to alter. This time it is PATHEXT. If you
>> want .PHP to be handled before .BAT then place .PHP before the .BAT.
>> If not put it at the end.
>>
>> That should do the trick.
>>
>>
>> --
>> -----
>> Richard Quadling
>> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
>> "Standing on the shoulders of some very clever giants!"
>> I need a car : http://snipurl.com/l4pih
>> ZOPA : http://uk.zopa.com/member/RQuadling
>>
>
> Microsoft Windows [Version 5.2.3790]
> (C) Copyright 1985-2003 Microsoft Corp.
>
> N:\>assoc .php=phpfile
> .php=phpfile
>
> N:\>ftype phpfile=C:\PHP5\PHP.EXE "%1" %*
> phpfile=C:\PHP5\PHP.EXE "%1" %*
>
> N:\>php
> 'php' is not recognized as an internal or external command,
> operable program or batch file.
>
> N:\>set path=%PATH%;C:\PHP5
>
> N:\>set PATHEXT=%PATHEXT%;.PHP
>
> N:\>php -v
> PHP 5.3.1-dev (cli) (built: Jul 2 2009 10:58:12)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
>
> N:\>copy con doit.php
> <?php
> echo PHP_VERSION;
> ^Z
> 1 file(s) copied.
>
> N:\>doit
> 5.3.1-dev
> N:\>
>
> --
> -----
> Richard Quadling
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> "Standing on the shoulders of some very clever giants!"
> I need a car : http://snipurl.com/l4pih
> ZOPA : http://uk.zopa.com/member/RQuadling
>
Remember that if you double click a PHP script and it runs, it will
close when it has finished. If you are expecting to see the output on
screen, you'll have to be quick.
php-win.exe is also available. This will not show any results - useful
for scheduled tasks.
Regards,
Richard.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
I need a car : http://snipurl.com/l4pih
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---