Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP newbie would liek some tips

Newbie
 
Join Date: Dec 2006
Posts: 1
#1: Dec 11 '06
I'm running php on windows xp and am testing using a program called script gui to test my scripts offline. I have a script that I want to access on a client side computer.

Question 1
Now how do I test them online? Do I need webspace? a server? I'm completely new to it so I'm a little confused as to the best way to do this.

Question 2
I've written a script that lists all the files and directories in the directory that the script is being run from. I'm assuming that if this script is uploaded to a server it will list the files on the server. But what i want is to list all the hard drive directories and files on teh server side? I hope that makes sense.

Question 3
Can I see the hard drive files and directories of the server computer on the client side via a webpage?

Thx everybody.

ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Dec 11 '06

re: PHP newbie would liek some tips


Quote:

Originally Posted by ozy123

I'm running php on windows xp and am testing using a program called script gui to test my scripts offline. I have a script that I want to access on a client side computer.

Question 1
Now how do I test them online? Do I need webspace? a server? I'm completely new to it so I'm a little confused as to the best way to do this.

Question 2
I've written a script that lists all the files and directories in the directory that the script is being run from. I'm assuming that if this script is uploaded to a server it will list the files on the server. But what i want is to list all the hard drive directories and files on teh server side? I hope that makes sense.

Question 3
Can I see the hard drive files and directories of the server computer on the client side via a webpage?

Thx everybody.

Question 1:
If you want to run server side scripts, you need a server. Ideally would be to install a server (Apache), together with PHP and MySQL on your own PC. This set is sometimes referenced as WAMP (Windows Apache MySQL PHP). Some links / tutorials are:

http://www.expertsrt.com/tutorials/M...ll-apache.html
http://www.devarticles.com/c/a/PHP/I...ation-of-WAMP/
http://www.phptoys.com/e107_plugins/...php?content.26

Question 2.
If you setup your script correctly (e.g. possibility of specifying the start directory) you can do that.

Question 3:
Either with your directory program or via an FTP client.

Ronald :cool:
Reply