Posts: 3,343
Threads: 83
Joined: Mar 2003
Or include_once if you're a lazy coder
Naaah... I like the header() function... especially sending a Location: header :lol:
Posts: 773
Threads: 71
Joined: Mar 2002
Will you guys stop! You are making me feel stupid.
Just kidding.
Thanx, Nek. That thingie worked. Though I don't get it much.
this is the link:
http://www.samods.com/~lachie/test.php
Posts: 3,279
Threads: 170
Joined: Nov 2003
What it does is show you all the capabilities, versions, configurations, and installed modules of php and its environment. For example, I noticed you have the gd library installed (albeit an old 1.x version)...that means you have access to all of PHP's graphical functions (sweeeet!). You have MySQL installed, so you have access to databases. Your server is at racknine.com, which is shown in the environment variable "hostname". POST uploads are enabled, you have a 2M limit (the default). Your server supports sessions (always nice to have) and openssl (gr8). Each part of phpinfo tells you what kind of capabilities you have. You can cross-reference everything at
www.php.net in their online documentation to see what functions you have access to. PHP can be a little overwhelming at first but once you get the hang of it, especially if you have experience in C, it's a cakewalk. It's like going from VB to ASP...pure simplicity.
And umm...just for the record...for actual live sites, don't ever put out a phpinfo page. It exposes the server to a great number of weaknesses, because it gives absolute paths and many important server informations. Just warning you ahead of time.
I'd knock on wood, but my desk is particle board.
Posts: 773
Threads: 71
Joined: Mar 2002
What's the pupose of PHP IDE? I mean, I haven't tested it yet so I could use some general info about it. Does it work with online files? I mean, do you edit files uploaded on the net with it? Is this IDE neccesary since HTML doesn't have an IDE. I know that HTML is 1000 times simpler than PHP but what does this PHP IDE offer me?
Posts: 3,279
Threads: 170
Joined: Nov 2003
I didn't even know PHP had an IDE...but no, it can't be necessary considering how long I've been coding PHP without it
I'd knock on wood, but my desk is particle board.
Posts: 773
Threads: 71
Joined: Mar 2002
I'm not sure it's IDE but when you download it from
www.php.net , install it and simply run it you end up in somekind of...interface.
Posts: 838
Threads: 17
Joined: Jan 2002
I guess it's just another editor. There are loads of them around. And if you want to test the scripts offline, you'll need an local server, EasyPHP for example. You can find many useful things at
http://www.hotscripts.com
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta