.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT: PHP (http://forum.shrapnelgames.com/showthread.php?t=10616)

Ragnarok October 24th, 2003 05:34 PM

OT: PHP
 
What are some good PHP sites to check out? I know just a little bit about PHP in general but I'm wanting to get to know more about it for possible projects that I may be working on for here at work. (shame on me, visiting this site while at work http://forum.shrapnelgames.com/image...s/rolleyes.gif )

I may end up getting a couple PHP books but was wondering if there is anything Online that is a good place to start off from.

Thanks!

[ October 24, 2003, 16:43: Message edited by: Ragnarok ]

Ruatha October 24th, 2003 05:45 PM

Re: OT: PHP
 
I looked mostly at other scripts and tried altering them to see what happened and then I wrote some of my own (Se PBW Emergency site) with help from Fyron, looking up the things I needed as I went along by searching Google for "PHP tutorial".

(Shame on me for replying while I'm at work http://forum.shrapnelgames.com/image...s/rolleyes.gif )

[ October 24, 2003, 16:46: Message edited by: Ruatha ]

tesco samoa October 24th, 2003 07:13 PM

Re: OT: PHP
 
php.net is the best site out there

then go to the following


http://www.phpbuilder.com/

http://codewalkers.com/

don't forget http://www.weberdev.com/

and

http://www.planet-source-code.com/

also for books check out www.books24x7.com ( yearly cost of 400 dollars for as many books as you want )

Ragnarok October 27th, 2003 03:03 PM

Re: OT: PHP
 
Ok, cool. thanks for the links and tips. I will start looking at those sites you posted.

Ragnarok November 5th, 2003 07:53 PM

Re: OT: PHP
 
So what's everyone use to edit their PHP pages with?

I've been trying to use Dreamweaver to type in my code manually and then just save it as a PHP file, which works just fine but some reason when I test in IE it opens the .php file I'm working on and displays all the code instead of showing what the results should be.

When I test in Mozilla it just opens to a blank page. The code is typed in correctly, and to make sure I wasn't messing it up I copied and pasted it from the tutorial I'm using and I get the same results.

So here's your chance to fill me in on the best way to edit PHP files and create them. http://forum.shrapnelgames.com/images/icons/icon7.gif

Fyron November 5th, 2003 07:56 PM

Re: OT: PHP
 
You can not view a php file directly in your browser. It is a server side scripting language that generates HTML on the fly and sends that off to the user's browser to display. In order to view php files locally, you must install some php software (which is free) from http://www.php.net/

You can use any text editor to make php files. It does not make a difference in the end, just what your preference is for creating them. They are just text files with a .php extension (like html are just text files with a .html extension).

[ November 05, 2003, 17:57: Message edited by: Imperator Fyron ]

Ragnarok November 5th, 2003 08:02 PM

Re: OT: PHP
 
Quote:

Originally posted by Imperator Fyron:
You can not view a php file directly in your browser. It is a server side scripting language that generates HTML on the fly and sends that off to the user's browser to display. In order to view php files locally, you must install some php software (which is free) from http://www.php.net/
<font size="2" face="sans-serif, arial, verdana">That is sort of what I was thinking was the problem. I have the software installed on our server here; so would I have to create my PHP file and save it on the server, perhaps in our webpage directory, and then access it via our webpage to test the code?

[ November 05, 2003, 18:09: Message edited by: Ragnarok ]

Fyron November 5th, 2003 08:31 PM

Re: OT: PHP
 
Yes. But, you can also install php on your computer. Every computer is a "server", technically. Just a local server though (you need extra programs running to allow Users over the net to see files on your comp, thus making it an actual web server). This is why you can do stuff like view html files that are on your computer in IE and such.

Ragnarok November 5th, 2003 08:32 PM

Re: OT: PHP
 
Quote:

Originally posted by Imperator Fyron:
Yes. But, you can also install php on your computer. Every computer is a "server", technically. Just a local server though (you need extra programs running to allow Users over the net to see files on your comp, thus making it an actual web server). This is why you can do stuff like view html files that are on your computer in IE and such.
<font size="2" face="sans-serif, arial, verdana">Ahhh ok, I'll download the files on install on my own PC to run from.

Thanks for the help, Fyron. http://forum.shrapnelgames.com/images/icons/icon6.gif

tesco samoa November 5th, 2003 08:49 PM

Re: OT: PHP
 
ace html 5 free is one i use. or just some text editor....

Atrocities November 6th, 2003 01:19 AM

Re: OT: PHP
 
Hell between all of you PHP people here, someone should be able to make one hell of a good web based game.

minipol November 6th, 2003 02:04 AM

Re: OT: PHP
 
I use editpad lite on win and vim on Linux to edit my php files

tesco samoa November 6th, 2003 03:37 AM

Re: OT: PHP
 
currently at work i am learning ingres http://forum.shrapnelgames.com/images/icons/shock.gif

Ruatha November 7th, 2003 07:30 AM

Re: OT: PHP
 
I use wordpad, but I really miss two things:
What linenumber am I editing (when debugging; Error in Line 252 (puh...))
And block cut/copy/paste.
In my old DOS editor Q-Edit I could select a block of text, say 10 columns and 20 lines in the middle of the page and copy that, in wordpad it automaticly includes the beginning of the lines, not what I want.
I guess I should either;
1. look for a better text editor.
2. Write one of my own. (Which I guess is harder than option 1) http://forum.shrapnelgames.com/images/icons/icon12.gif


EDIT1:
This looks good:
http://www.winsyntax.com/

[ November 07, 2003, 05:34: Message edited by: Ruatha ]

Ragnarok November 7th, 2003 05:01 PM

Re: OT: PHP
 
I'll probably end up using EditPlus2 as soon as I get it downloaded here at work. Currently I'm using Notepad but EditPlus2 is good.

SpaceBadger November 7th, 2003 05:40 PM

Re: OT: PHP
 
My favorite text editor is actually an old Version of MS Word that I used to use when I did lots of web-stuff. Big advantage over Wordpad was in the much more powerful search/replace. My current PC came with Word 2000 installed, and for some #$^%$&% stupid reason they have tried to turn the $&^* word-processor into a web-browser - it interprets all HTML and shows you what it would look like in a browser, rather than letting you actually see and edit it as text. http://forum.shrapnelgames.com/images/icons/icon8.gif (Why on earth would anyone want their word-processor to act like a browser? More MS stupidity, trying to make every program do everything, rather than letting each one do its own thing and do it well! http://forum.shrapnelgames.com/image...s/rolleyes.gif )

So now I have to use Wordpad, at least until I get around to finding an install CD for Word 97, at which time I will uninstall Word 2000 and replace it with the old one. (I also hate all of the autoformatting junk in Word 2000 - what a time-waster, on the very rare occasions that I use it instead of Wordpad I have to keep undoing stuff that the &^$^%#& program goofs up by guessing what I would want rather than just doing what I say. http://forum.shrapnelgames.com/images/icons/icon8.gif )

Err, umm, how did I get up on this soapbox? http://forum.shrapnelgames.com/image...s/confused.gif

SpaceBadger

[ November 07, 2003, 15:43: Message edited by: SpaceBadger ]

Ragnarok November 7th, 2003 07:36 PM

Re: OT: PHP
 
I'm not a big fan of Word. I use it every now and then for certain projects but overall I don't use it if I don't have to.

I'm a big fan of EditPlus2 now though. It's perfect for editing PHP if you ask me, or HTML (unless you have Dreamweaver) and Perl, and C, or C++, or Javascript. It has syntax coloring for all these programming Languages. Which I absolutly love, I need to have my color coding when I code something. http://forum.shrapnelgames.com/images/icons/icon7.gif So for me EditPlus2 is the way to go for all my PHP needs. http://forum.shrapnelgames.com/images/icons/icon6.gif

Fyron got me hooked on this program. He's good at doing things like that. http://forum.shrapnelgames.com/image...s/rolleyes.gif http://forum.shrapnelgames.com/images/icons/tongue.gif

SpaceBadger November 7th, 2003 07:41 PM

Re: OT: PHP
 
I hate Word 2000. I've been looking every place I can think of for the install CD for my good old Word 97, but can't find it. Where do you get EditPlus2?

SpaceBadger

geoschmo November 7th, 2003 07:45 PM

Re: OT: PHP
 
Quote:

Originally posted by SpaceBadger:
(Why on earth would anyone want their word-processor to act like a browser? More MS stupidity, trying to make every program do everything, rather than letting each one do its own thing and do it well! http://forum.shrapnelgames.com/image...s/rolleyes.gif )

<font size="2" face="sans-serif, arial, verdana">I agree that it wasn't implemented very well, but the idea there isn't to make WORD into a browser. It's to allow you to edit the html with a WhatYouSeeIsWhatYouGet interface. Some people, mainly those without any knowledge of html or interest in learning it, greatly prefer being able to edit web pages in this manner. My biggest problem with using Word to edit html is all the crap code it sticks in there. Meta tags out the wazoo.

I am pretty sure that Word 2000 and later will let you look at the html in text view won't it? That should give you what you want if it does.

Fyron November 7th, 2003 07:52 PM

Re: OT: PHP
 
Quote:

Originally posted by SpaceBadger:
I hate Word 2000. I've been looking every place I can think of for the install CD for my good old Word 97, but can't find it. Where do you get EditPlus2?

SpaceBadger

<font size="2" face="sans-serif, arial, verdana">http://www.openoffice.org is a good replacement for MS Office. It has a Version of Word, Excel, Power Point and IIRC Word Art (or something like that). It is free, and open source. And a lot smaller than MS Office is to boot. It can open and save all MS file formats, plus dozens more. And the best part? No @&#!*! paper clip to harrass you! http://forum.shrapnelgames.com/images/icons/icon10.gif

Quote:

So now I have to use Wordpad, at least until I get around to finding an install CD for Word 97, at which time I will uninstall Word 2000 and replace it with the old one. (I also hate all of the autoformatting junk in Word 2000 - what a time-waster, on the very rare occasions that I use it instead of Wordpad I have to keep undoing stuff that the &^$^%#& program goofs up by guessing what I would want rather than just doing what I say. )
<font size="2" face="sans-serif, arial, verdana">You can actually disable all of that in the settings... http://forum.shrapnelgames.com/images/icons/icon12.gif

[ November 07, 2003, 17:55: Message edited by: Imperator Fyron ]

tesco samoa November 7th, 2003 07:55 PM

Re: OT: PHP
 
Come on Paper Clip is BOB.

Fyron November 7th, 2003 07:57 PM

Re: OT: PHP
 
You can get EditPlus2 at: http://www.editplus.com/

Fyron November 7th, 2003 07:57 PM

Re: OT: PHP
 
Quote:

Originally posted by tesco samoa:
Come on Paper Clip is BOB.
<font size="2" face="sans-serif, arial, verdana">http://forum.shrapnelgames.com/image...s/confused.gif http://forum.shrapnelgames.com/image...s/confused.gif http://forum.shrapnelgames.com/image...s/confused.gif

SpaceBadger November 7th, 2003 10:39 PM

Re: OT: PHP
 
Sorry, Ragnarok, didn't intend to hijack the PHP thread... http://forum.shrapnelgames.com/images/icons/shock.gif http://forum.shrapnelgames.com/images/icons/blush.gif

OTOH, I expect you -will- be needing a good text editor... http://forum.shrapnelgames.com/images/icons/icon12.gif

Thanks for the info on EditPlus2 and OpenOffice, y'all. http://forum.shrapnelgames.com/images/icons/icon10.gif

It has been awhile, but I remember spending some time trying to figure out how to get Word 200 to just let me see the HTML as plain text, and it would not do it unless I bought some sort of add-on for Word - don't recall the exact name, but it was something to let Word function as an HTML editor - without that, it would not let you edit in either plain-text or WYSIWYG, it would just interpret the HTML and display the result. http://forum.shrapnelgames.com/images/icons/icon8.gif


SpaceBadger

Gee, these smilies are so much fun! http://forum.shrapnelgames.com/images/icons/icon6.gif

[ November 07, 2003, 20:41: Message edited by: SpaceBadger ]

Fyron November 7th, 2003 10:51 PM

Re: OT: PHP
 
Umm... what Version of Word 2000 do you have? It normally functions as a WYSIWYG right out of the box...

SpaceBadger November 8th, 2003 06:34 PM

Re: OT: PHP
 
Quote:

Originally posted by Imperator Fyron:
Umm... what Version of Word 2000 do you have? It normally functions as a WYSIWYG right out of the box...
<font size="2" face="sans-serif, arial, verdana">I could be mistaken on that. I wasn't looking for a WYSIWYG HTML editor, so didn't try to use it that way. I just want to view and edit the HTML as text. Seems odd, however, that they would include the capability to edit HTML in WYSIWYG mode, but require you to buy an add-on to do what I wanted...

SpaceBadger

Fyron November 8th, 2003 07:19 PM

Re: OT: PHP
 
You could always rename it to .txt temporarily... http://forum.shrapnelgames.com/images/icons/icon12.gif

I am pretty sure you can view the source of html as text in Word 2000.

SpaceBadger November 8th, 2003 08:04 PM

Re: OT: PHP
 
Quote:

Originally posted by Imperator Fyron:
You could always rename it to .txt temporarily... http://forum.shrapnelgames.com/images/icons/icon12.gif

I am pretty sure you can view the source of html as text in Word 2000.

<font size="2" face="sans-serif, arial, verdana">Try it. I did, a long time ago, and repeated again just now. Absolutely does not work.

I think that if the opening html tag was left off, and the file was saved with txt extension, and maybe some other jerry-rigging done, then it could be persuaded to let you see the markup tags - way too much headache for routine use in page creation/editing.

SpaceBadger

Fyron November 8th, 2003 09:18 PM

Re: OT: PHP
 
I have office XP installed, not 2000. But, I just changed a file extension on a html file to txt, and it opened as a txt file, displaying all the code. Do not save as txt or anything. Go to explorer and manually change the file extension from html to txt (you might need to go to the View tab of the Folder Options to allow it to display the extensions). Ignore the warning message that pops up. Then open it in Word.

SpaceBadger November 8th, 2003 11:12 PM

Re: OT: PHP
 
Quote:

Originally posted by Imperator Fyron:
I have office XP installed, not 2000. But, I just changed a file extension on a html file to txt, and it opened as a txt file, displaying all the code. Do not save as txt or anything. Go to explorer and manually change the file extension from html to txt (you might need to go to the View tab of the Folder Options to allow it to display the extensions). Ignore the warning message that pops up. Then open it in Word.
<font size="2" face="sans-serif, arial, verdana">Fyron... I know how to change file extensions. I don't need to change anything in Folder Options because the first thing I do with a new machine is go in and tell Windows to stop hiding all of that stuff. I am very happy that this will work for you in Office XP. It does not work for Word 2000 running on WinMe. Really, it just doesn't work. Thanks for trying, but... it doesn't work.

SpaceBadger

Fyron November 9th, 2003 01:22 AM

Re: OT: PHP
 
Oh well. EditPlus2 is a much better route anyways. http://forum.shrapnelgames.com/images/icons/icon12.gif

Tigbit November 9th, 2003 10:20 PM

Re: OT: PHP
 
Go on Google and search for TextPad. I use nothing else.

Fyron November 9th, 2003 10:42 PM

Re: OT: PHP
 
How does it compare to EditPlus2? Same thing, just different implementation?

Tigbit November 10th, 2003 08:31 PM

Re: OT: PHP
 
I have no idea, as I have never used EditPlus2.

Fyron November 10th, 2003 11:53 PM

Re: OT: PHP
 
So check out EditPlus2... it is fully functional shareware.

Tigbit November 11th, 2003 01:13 AM

Re: OT: PHP
 
I don't need to. I am very pleased with TextPad.

tesco samoa November 11th, 2003 06:12 AM

Re: OT: PHP
 
Fyron is BOB before your time.

How about this BOB quote

"You have inputed your password incorrectly three times would you like to change it now ? "

Ahhh good old BOB. Who became office clippy guy.


All times are GMT -4. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.