p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: ahhh, help, newbie!


Message #1 by "Richard Craddock" <craddy@t...> on Tue, 21 May 2002 23:51:13
Ok, I woke up this morning with nothing to do, and thought, ?I will set up 
a web server!! I installed apache and php and all that good stuff. Apache 
works fine. But I don?t think php does. 
I was looking on here and found another post by katkat (I do believe) so I 
stole their test and test2 and they display but I am having the same 
problem as them. The second page loads but with no info. I also did what 
they said fixed the problem as well as trying everything you all 
suggested. Now I?m baffled!

 Does this mean it IS working, just badly, or it ISNT working at all???? I 
am very confused and any help would be great!

crad
Message #2 by "Nikolai Devereaux" <yomama@U...> on Tue, 21 May 2002 22:39:00 -0700
Hey, welcome to the language!

That said, let's get down to brass tacks.  (Strong Bad rules!*)

first thing's first -- write a simple script:

<?php  phpinfo(); ?>

run that.  Do you see your php installation information?  If so, that's a
great start.  If not, let us know and we'll move forward from there.

nik

Message #3 by "Richard Craddock" <craddy@t...> on Wed, 22 May 2002 11:49:54
umm, no. 

it just shows the code. nothing else. guess that means it dont work! 

crad
Message #4 by "Guitargod \(E-mail\)" <kaykay@g...> on Wed, 22 May 2002 16:52:08 +0530
Hey Richard,
	If it's just showing the code then it means that the code isn't getting to
PHP at all (if PHP is installed properly)... and there's some problem at the
server... well that's what it should be according to the book. So check if
the ISAPI filter etc. are directed to properly, and make sure that you are
accessing the file via: http://127.0.0.1/phpinfo.php or what ever you have
named it. Those were the initial errors that I ran into.

it's
-KayKay
btw :)

-----Original Message-----
From: Richard Craddock [mailto:craddy@t...]
Sent: 22 May 2002 11:50
To: beginning php
Subject: [beginning_php] RE: ahhh, help, newbie!


umm, no.

it just shows the code. nothing else. guess that means it dont work!

crad

Message #5 by "Richard Craddock" <craddy@t...> on Wed, 22 May 2002 17:27:53
hello!

One of my friends noticed that the file extensions were: .php.txt (duhh). 
This was because I used notepad! So I used html kit to make a .php file 
and it works!

Thank you all for your help!!!!


crad
Message #6 by "Josh" <jebster@c...> on Wed, 22 May 2002 18:36:55
> hello!

> One of my friends noticed that the file extensions were: .php.txt 
(duhh). 
T> his was because I used notepad! So I used html kit to make a .php file 
a> nd it works!

> Thank you all for your help!!!!

> 
c> rad

You can use Notepad just when you save it instead saving it as this 
file.php do it like this "file.php" and it will save it as a PHP file.
Message #7 by "Nikolai Devereaux" <yomama@u...> on Wed, 22 May 2002 10:37:48 -0700
> You can use Notepad just when you save it instead saving it as this
> file.php do it like this "file.php" and it will save it as a PHP file.

Or you can use a *real* editor that won't insert ^Ms at the end of every
line and make it difficult to deal with should you port your scripts to a
*nix server!

Notepad has so many limitations that I wonder why anyone uses it for typing
anything that takes longer than one minute.

Message #8 by Peter Simard <pasimard@v...> on Wed, 22 May 2002 14:16:50 -0400

ND> Notepad has so many limitations that I wonder why anyone uses it for typing
ND> anything that takes longer than one minute.

There is a certain sort of person who sneers at anyone who uses an
editor over Notepad, as if somehow doing so makes the code less
genuine.





-- 

 Peter                            
mailto:pasimard@v...


Message #9 by "Nikolai Devereaux" <yomama@u...> on Wed, 22 May 2002 11:46:23 -0700
> ND> Notepad has so many limitations that I wonder why anyone uses
> it for typing
> ND> anything that takes longer than one minute.
>
> There is a certain sort of person who sneers at anyone who uses an
> editor over Notepad, as if somehow doing so makes the code less
> genuine.

They're called "morons".  If anything, using an editor over notepad makes
the code _more_ genuine because at least it saves it with the appropriate
file extension by default.  >:)

nik

Message #10 by "Duncan Hutty" <duncanh@h...> on Wed, 22 May 2002 15:06:09 -0400
>who sneers at anyone who uses an editor over Notepad

Obviously stupid people or at least uninformed; Notepad *is* an editor,
albeit a very limited (and irritating, although that is subjective) one. So
too are vi & its clones, emacs, UltraEdit, Hotmetal, Homesite, Frontpage,
etc. Some have more than just editing capabilities.

Learn about the options, decide which has the best power/ease-of-use for
your purpose(s), demonstrate a useful feature/problem with one or another to
help someone else, but don't criticise someone else for their decision. It's
theirs to make and probably doesn't affect you anyway.

Duncan Hutty

Message #11 by Jacob Cohen <cohen@r...> on Wed, 22 May 2002 12:11:55 -0700
Hello Nikolai,

yomama@u... wrote:
>> There is a certain sort of person who sneers at anyone who uses an
>> editor over Notepad, as if somehow doing so makes the code less
>> genuine.
> They're called "morons".  If anything, using an editor over notepad makes
> the code _more_ genuine because at least it saves it with the appropriate
> file extension by default.  >:)

Not to mention the fact that Notepad doesn't even do what it does
particularly well. To illustrate this point, type a few lines of text
in notepad, then highlight a word and hit Ctrl-F or select "find" from
the menu. It doesn't fill in the text you highlighted like you'd
expect.

Now do the same thing in Wordpad.

Little usability features like this make certain editors a lot easier
to use over time.

Notepad is often popular on Windows, because like vi on unix, you can
count on its existence.

-- 
Regards,
Jake                          mailto:cohen@r...

Message #12 by "Guitargod \(E-mail\)" <kaykay@g...> on Thu, 23 May 2002 12:03:23 +0530
There's an editor called Lemmy that is available for Win (shareware) which
is a Win32 version of VIM. It might be handy for those who are unfortuantely
stuck with Notepad :)
-K

-----Original Message-----
From: Nikolai Devereaux [mailto:yomama@u...]
Sent: 22 May 2002 23:08
To: beginning php
Subject: [beginning_php] RE: ahhh, help, newbie!



> You can use Notepad just when you save it instead saving it as this
> file.php do it like this "file.php" and it will save it as a PHP file.

Or you can use a *real* editor that won't insert ^Ms at the end of every
line and make it difficult to deal with should you port your scripts to a
*nix server!

Notepad has so many limitations that I wonder why anyone uses it for typing
anything that takes longer than one minute.


Message #13 by "Dan Ostrowski" <dan@t...> on Thu, 23 May 2002 16:33:38
-------------------------------------
There's an editor called Lemmy that is available for Win (shareware) which
is a Win32 version of VIM. It might be handy for those who are 
unfortuantely
stuck with Notepad :)
-------------------------------------



Why would you use Lemmy for Windows when you can download VIM itself and 
use it on a windows Platform.

baffled,
dan
Message #14 by "David Scott-Bigsby" <DScott-Bigsby@P...> on Thu, 23 May 2002 13:39:11 -0700
> There's an editor called Lemmy that is available for Win
> (shareware) which
> is a Win32 version of VIM. It might be handy for those who
> are unfortuantely stuck with Notepad :)

UltraEdit is another Windows text editor (shareware) worth trying. It 
has the pretty printing, regexp search & replace, and a ton of other 
power tools. I've been a convert for four years.

dsb

***************************************       
David Scott-Bigsby
Product Manager, Web Site and PEDN

PureEdge Solutions
The Leader in Secure XML e-Forms

v:250-708-8145  f:250-708-8010
1-888-517-2675   www.PureEdge.com
***************************************
Message #15 by "Laurie Tsakiris" <laurietsakiris@h...> on Fri, 24 May 2002 07:47:52 -0700
Edit Plus is also (sortafree) shareware and a great tool - will even compile
java


----- Original Message -----
From: "David Scott-Bigsby" <DScott-Bigsby@P...>
To: "beginning php" <beginning_php@p...>
Sent: Thursday, May 23, 2002 1:39 PM
Subject: [beginning_php] RE: ahhh, help, newbie!


> There's an editor called Lemmy that is available for Win
> (shareware) which
> is a Win32 version of VIM. It might be handy for those who
> are unfortuantely stuck with Notepad :)

UltraEdit is another Windows text editor (shareware) worth trying. It has
the pretty printing, regexp search & replace, and a ton of other power
tools. I've been a convert for four years.

dsb

***************************************
David Scott-Bigsby
Product Manager, Web Site and PEDN

PureEdge Solutions
The Leader in Secure XML e-Forms

v:250-708-8145  f:250-708-8010
1-888-517-2675   www.PureEdge.com
***************************************


Message #16 by "Srinivasan Prasanna" <Sri_Core@m...> on Fri, 24 May 2002 13:56:22 -0400
------=_NextPart_001_0000_01C2032A.C95C14C0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Laurie you are right Edit plus is really a great editor. Also betweens it
 is sort of free ware plus share ware..... I don't want any trouble for a
ny one but point is Edit plus rocks!!!!
Thanks
Sri 
 
----- Original Message -----
From: Laurie Tsakiris
Sent: Friday, May 24, 2002 10:50 AM
To: beginning php
Subject: [beginning_php] RE: ahhh, help, newbie!
 
Edit Plus is also (sortafree) shareware and a great tool - will even comp
ile
java


----- Original Message -----
From: "David Scott-Bigsby" <DScott-Bigsby@P...>
To: "beginning php" <beginning_php@p...>
Sent: Thursday, May 23, 2002 1:39 PM
Subject: [beginning_php] RE: ahhh, help, newbie!


> There's an editor called Lemmy that is available for Win
> (shareware) which
> is a Win32 version of VIM. It might be handy for those who
> are unfortuantely stuck with Notepad :)

UltraEdit is another Windows text editor (shareware) worth trying. It has
the pretty printing, regexp search & replace, and a ton of other power
tools. I've been a convert for four years.

dsb

***************************************
David Scott-Bigsby
Product Manager, Web Site and PEDN

PureEdge Solutions
The Leader in Secure XML e-Forms

v:250-708-8145  f:250-708-8010
1-888-517-2675   www.PureEdge.com
***************************************



to unsubscribe send a blank email to leave-beginning_php-823862D@p...
.com.Get more from the Web.  FREE MSN Explorer download : http://explorer
.msn.com


  Return to Index