PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > what new setup?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
what new setup?

Réponse
 
LinkBack Outils de la discussion
Vieux 30/09/2007, 04h41   #1
Fred
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut what new setup?

Hi,
I am totally new to php and wish to set it up on my computer with
the following in mind:

First I want to set up so as to have php able to run my scripts on
this machine without having going through a web server. For example,
file i/o, create files, delete files, read in text a line at a time or
whole files to a var; split lines into several vars etc, etc. Also,
move, create, rename, and delete sub-directories; read from and write to
a database. (mysql?) You get the idea - sort of like souped up batch files.
Second, Then start applying this to php at work on my web site.

I am not sure what to get in the way of a simple to set up solution but
I have looked here:
http://www.hotscripts.com/PHP/Softwa...allation_Kits/

Perhaps something like WAMP5, EasyWAMP, or perhaps ZZEE PHP GUI? The
problem is that I don't know nuthin yet.

This is not something I'm going to dally with. I really want to get a
handle on PHP and at the same time solve some of my real needs at the
home computer level. If it's necessary to have a web server from the
getgo I have a little server on the network here in the home where that
can reside while I learn.


I hope I have been clear as to what I wish for so perhaps someone could
start me off with some ideas as to what simple installation would get me
going.

In advance thank you very much for listening!

fried
  Réponse avec citation
Vieux 30/09/2007, 15h42   #2
Brendan Gillatt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what new setup?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fred wrote:
> Hi,
> I am totally new to php and wish to set it up on my computer with the
> following in mind:
>
> First I want to set up so as to have php able to run my scripts on
> this machine without having going through a web server. For example,
> file i/o, create files, delete files, read in text a line at a time or
> whole files to a var; split lines into several vars etc, etc. Also,
> move, create, rename, and delete sub-directories; read from and write to
> a database. (mysql?) You get the idea - sort of like souped up batch files.
> Second, Then start applying this to php at work on my web site.
>
> I am not sure what to get in the way of a simple to set up solution but
> I have looked here:
> http://www.hotscripts.com/PHP/Softwa...allation_Kits/
>
> Perhaps something like WAMP5, EasyWAMP, or perhaps ZZEE PHP GUI? The
> problem is that I don't know nuthin yet.
>
> This is not something I'm going to dally with. I really want to get a
> handle on PHP and at the same time solve some of my real needs at the
> home computer level. If it's necessary to have a web server from the
> getgo I have a little server on the network here in the home where that
> can reside while I learn.
>
>
> I hope I have been clear as to what I wish for so perhaps someone could
> start me off with some ideas as to what simple installation would get me
> going.
>
> In advance thank you very much for listening!
>
> fried



I recommend NetServer as a WAMP - you simply extract it, open up the
program and tell it to install the particular servers you want. Comes
with PHP Apache MySQL and FileZilla.

- --
Brendan Gillatt
brendan {at} brendangillatt {dot} co {dot} uk
http://www.brendangillatt.co.uk
PGP Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFG/6fQkA9dCbrNdDMRAtPOAJwMQ6tPz5mwzaIAucWvf4XU9soJcAC ggN7C
vjG0amxBXhMYbRl0Jv1vM88=
=E3vw
-----END PGP SIGNATURE-----
  Réponse avec citation
Vieux 30/09/2007, 16h42   #3
Fred
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what new setup?

Brendan Gillatt wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Fred wrote:
>> Hi,
>> I am totally new to php and wish to set it up on my computer with the
>> following in mind:
>>
>> First I want to set up so as to have php able to run my scripts on
>> this machine without having going through a web server. For example,
>> file i/o, create files, delete files, read in text a line at a time or
>> whole files to a var; split lines into several vars etc, etc. Also,
>> move, create, rename, and delete sub-directories; read from and write to
>> a database. (mysql?) You get the idea - sort of like souped up batch files.
>> Second, Then start applying this to php at work on my web site.
>>
>> I am not sure what to get in the way of a simple to set up solution but
>> I have looked here:
>> http://www.hotscripts.com/PHP/Softwa...allation_Kits/
>>
>> Perhaps something like WAMP5, EasyWAMP, or perhaps ZZEE PHP GUI? The
>> problem is that I don't know nuthin yet.
>>
>> This is not something I'm going to dally with. I really want to get a
>> handle on PHP and at the same time solve some of my real needs at the
>> home computer level. If it's necessary to have a web server from the
>> getgo I have a little server on the network here in the home where that
>> can reside while I learn.
>>
>>
>> I hope I have been clear as to what I wish for so perhaps someone could
>> start me off with some ideas as to what simple installation would get me
>> going.
>>
>> In advance thank you very much for listening!
>>
>> fried

>
>
> I recommend NetServer as a WAMP - you simply extract it, open up the
> program and tell it to install the particular servers you want. Comes
> with PHP Apache MySQL and FileZilla.
>


Thanks so much Mr. Gillatt! That sounds like what I would need. Just
one question - Does a setup such as this allow for the execution of the
script on the local machine?

Fred



> - --
> Brendan Gillatt
> brendan {at} brendangillatt {dot} co {dot} uk
> http://www.brendangillatt.co.uk
> PGP Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0xBACD7433
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (MingW32)
>
> iD8DBQFG/6fQkA9dCbrNdDMRAtPOAJwMQ6tPz5mwzaIAucWvf4XU9soJcAC ggN7C
> vjG0amxBXhMYbRl0Jv1vM88=
> =E3vw
> -----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 02/10/2007, 13h43   #4
Erwin Moller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what new setup?

Fred wrote:

> Thanks so much Mr. Gillatt! That sounds like what I would need. Just
> one question - Does a setup such as this allow for the execution of the
> script on the local machine?


Yes.

After a succesfull install you can simply use:
http://localhost/

or from commandline:
php <somescript>

If you are going to play around with files, be sure you understand
filepermission.
PHP runs as a user (of course), often www-data or apache or nobody
(maybe more, I saw only these 3).

Regards,
Erwin Moller

>
> Fred
>

  Réponse avec citation
Vieux 02/10/2007, 17h37   #5
Fred
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what new setup?

Erwin Moller wrote:
> Fred wrote:
>
>> Thanks so much Mr. Gillatt! That sounds like what I would need.
>> Just one question - Does a setup such as this allow for the execution
>> of the script on the local machine?

>
> Yes.
>
> After a succesfull install you can simply use:
> http://localhost/
>
> or from commandline:
> php <somescript>
>



> If you are going to play around with files, be sure you understand
> filepermission.


Thanks, I understand file permissions but have to rethink them on
windows which has a little different setup.

> PHP runs as a user (of course), often www-data or apache or nobody
> (maybe more, I saw only these 3).
>
> Regards,
> Erwin Moller
>

Thanks Mr. Moller!



>>
>> Fred
>>

  Réponse avec citation
Vieux 03/10/2007, 09h53   #6
Erwin Moller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what new setup?

Fred wrote:
> Erwin Moller wrote:


<snip>

>
>> If you are going to play around with files, be sure you understand
>> filepermission.

>
> Thanks, I understand file permissions but have to rethink them on
> windows which has a little different setup.


Aha, Windows. No www-data or nobody or apache then. ;-)

The username of the process in IIS6 and lower defaults to
IUSR_<machinename> where <machinename> is simply the name of your computer.

If you are on IIS7, it is simply IUSR, but IIS7 is more complex than
just that. (And unstable on my Vista)

Good luck and happy PHP-ing.
Regards,
Erwin Moller

>
>> PHP runs as a user (of course), often www-data or apache or nobody
>> (maybe more, I saw only these 3).
>>
>> Regards,
>> Erwin Moller
>>

> Thanks Mr. Moller!
>
>
>
>>>
>>> Fred
>>>

  Réponse avec citation
Vieux 03/10/2007, 21h38   #7
Brendan Gillatt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what new setup?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erwin Moller wrote:
> Fred wrote:
>
>> Thanks so much Mr. Gillatt! That sounds like what I would need.
>> Just one question - Does a setup such as this allow for the execution
>> of the script on the local machine?

>
> Yes.
>
> After a succesfull install you can simply use:
> http://localhost/
>
> or from commandline:
> php <somescript>
>
> If you are going to play around with files, be sure you understand
> filepermission.
> PHP runs as a user (of course), often www-data or apache or nobody
> (maybe more, I saw only these 3).


In windows (as my netserver is set up) it runs as SERVICE. I don't care
about this from a security standpoint - I only run it localy - not even
accesible from LAN. I suggest the OP does the same if they're just
starting out on setting up servers. Ultimately, I would set up a local
user with very limited permissions and run the apache service under that.

> Regards,
> Erwin Moller
>
>>
>> Fred
>>



- --
Brendan Gillatt
brendan {at} brendangillatt {dot} co {dot} uk
http://www.brendangillatt.co.uk
PGP Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFHA++bkA9dCbrNdDMRAnOsAJ0cLtw/y+QcOXXdxBdq6NFK/3bpHQCfcAVT
qpl64jW9KQ0g3TJtVZ1TXsE=
=YPR5
-----END PGP SIGNATURE-----
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h25.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,21387 seconds with 15 queries