|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
-----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----- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 > |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 >> |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 >>> |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
-----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----- |
|
![]() |
| Outils de la discussion | |
|
|