Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Terrible Newbie PHP Question...
I am an applications software developer of many years, but I am only now
getting into web development with PHP.  I have a beginning PHP book, I have
downloaded and installed apache Server and PHP and I have created my first
"Hello World" php script.  Now, according to my book I should simply place
it into "any web-accessible directory" and call it with something like
"http://www.example.com/pmnp/1/phpinfo.php".

Okay, I must have missed something or I am an absolute total idiot, because
somehow I can't seem to find out anywhere how to create/declare a
web-accessible directory or where that path is defined.  I am sure this must
be a no-brainer to anyone who has ever used PHP, but please consider that I
do not come from this domain and could really use a simple paragraph that
speaks to this.

Thanks in advance!

Mark



Report this thread to moderator Post Follow-up to this message
Old Post
Markosoft
01-27-06 02:55 AM


Re: Terrible Newbie PHP Question...
Markosoft wrote:

> I am an applications software developer of many years, but I am only now
> getting into web development with PHP.  I have a beginning PHP book, I
> have downloaded and installed apache Server and PHP and I have created my
> first
> "Hello World" php script.  Now, according to my book I should simply place
> it into "any web-accessible directory" and call it with something like
> "http://www.example.com/pmnp/1/phpinfo.php".
>
> Okay, I must have missed something or I am an absolute total idiot,
> because somehow I can't seem to find out anywhere how to create/declare a
> web-accessible directory or where that path is defined.  I am sure this
> must be a no-brainer to anyone who has ever used PHP, but please consider
> that I do not come from this domain and could really use a simple
> paragraph that speaks to this.
>
> Thanks in advance!

Hey, what you're looking for is a webspace. But you don't really need that
if you don't want to publish your scripts to the public in the inet. You
can do everything locally on your local Webserver (Apache).

--
chEErs roN

I'm root, I'm allowed to do this! ;)
keep on rockin'

Report this thread to moderator Post Follow-up to this message
Old Post
roN
01-27-06 02:55 AM


Re: Terrible Newbie PHP Question...
I appreciate your comments, but I still don't understand.  If I have a file
called C:\PHP\phpinfo.php and I have apache server running on my PC (I did
install it with localhost and the service is running), what do I have to do
to see the results fo the script in a browser?

Thanks again,

Mark


"roN" <NOspam@example.com> wrote in message
news:43tajvF1oholrU8@individual.net...
> Markosoft wrote:
> 
>
> Hey, what you're looking for is a webspace. But you don't really need that
> if you don't want to publish your scripts to the public in the inet. You
> can do everything locally on your local Webserver (Apache).
>
> --
> chEErs roN
>
> I'm root, I'm allowed to do this! ;)
> keep on rockin'



Report this thread to moderator Post Follow-up to this message
Old Post
Markosoft
01-27-06 02:55 AM


Re: Terrible Newbie PHP Question...
Message-ID: <St-dnXXzHaVz6ETeRVn-oQ@centurytel.net> from Markosoft
contained the following:

>I appreciate your comments, but I still don't understand.  If I have a file
>called C:\PHP\phpinfo.php and I have apache server running on my PC (I did
>install it with localhost and the service is running), what do I have to do
>to see the results fo the script in a browser?


if you install php and apache as a bundle (e.g PHPDEV
http://www.firepages.com.au/ or XAMPP
http://www.apachefriends.org/en/xampp.html ) everything is set up for
you.

I find PHPDEV easiest.  Go for phpdev 423.  Install it, run it from the
start menu and that's it..  Within the phpdev folder it creates another
folder called www which is your web root.


--
Geoff Berrow  0110001001101100010000000110
 0011011010110110010001101111011001110010
11
 1001100011011011110010111001110101011010
11

Report this thread to moderator Post Follow-up to this message
Old Post
Geoff Berrow
01-27-06 08:55 AM


Re: Terrible Newbie PHP Question...
In article <St-dnXXzHaVz6ETeRVn-oQ@centurytel.net>, info@markosoft.net
says...
> and I have apache server running on my PC (I did
> install it with localhost and the service is running)
>
Within the apache install, there's usually a folder called 'htdocs'.
That's the default 'web-accessible directory'.
Put your PHP scripts in there.
The default folder can be changed.

Or, as Geoff pointed out, get a bundle where (near-enough) everything is
set up as it's installed.

Rocky

Report this thread to moderator Post Follow-up to this message
Old Post
Rocky
01-27-06 11:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:12 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.