Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Does anyone here use PHP?

Author
Message
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 23rd Oct 2003 23:58
I'm trying to install php on my PC so I can test my scripts before sending them to my server. I've done everything that's in the installation text except for 1 thing: I don't have a web server. Is it totally necessary, considering I don't want to host anything, all I want to do is run scripts locally. If I do need a web server, which is the smallest one I can get that supports PHP?

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 24th Oct 2003 00:03
www.easyphp.com or www.easyphp.org or somming.

install this, run it and put the files in the www folder. PHP, APACHE and MYSQL all working.

So you could get the binary distros for APACHE and PHP and configure yorself, but unless you want the really hard stuff and latest features easyphp will do fine.

Web Design Starting from $200. Special limited offer. MSN or Email me for more information.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 24th Oct 2003 00:04
Got to be Apache - best FREE webserver around and supports PHP, and Yes, a webserver is necessary.

If your mansion house needs haunting, just call Rentaghost!
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 24th Oct 2003 00:12 Edited at: 24th Oct 2003 00:14
I was hoping the server wasnt necessary. And of course I'll use Apache. Not only is it the best FREE webserver, it's THE best webserver. Is the windows version as good as the linux one? I have the linux version installed, but I don't know anything about its windows counterpart.

Thanks for the speedy replies.

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Great Knight
21
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 24th Oct 2003 00:14
I use apahie for my Linux server.

AMD Atherlon 2400+ XP, 380 DDr memeory, ATI Radeon 9000 64 DDR, Windos XP home edition.
-----------------------And a Katana.
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 24th Oct 2003 00:16
hmmm... **Dumb question alert**
When I installed Linux, it came with apache. Where do I get a windows port?

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 24th Oct 2003 00:35
Does nobody know how to use google?

http://www.apache.org/

If your mansion house needs haunting, just call Rentaghost!
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 24th Oct 2003 01:27
Since so many people use apache, and talk about it, I thought a google search would give another one of those endless lists with completely irrelevant content... Any way, thanks spooky.

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 24th Oct 2003 03:05
Apache for Windows is fine and will do everything you need for testing PHP scripts. Personally I'd recommend you use Xitami though. You'll be set-up and working within seconds without any of the conf file complications or overhead.

(Having said that, I use the PHPEd Technology Platform (Apache,MySQL,PHP4) on my Windows box for all site testing before uploading to the TGC server.

Cheers,

Rich

"It's easy to be mean when death equals a high score screen."
"You can take your Quake and go away, I'd rather play Bubble Bobble any day."
Elleomea
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location: England
Posted: 24th Oct 2003 03:24 Edited at: 24th Oct 2003 03:25
You don't need a webserver to test simple PHP scripts. Just run "php myphpfile.php" from the command prompt and it'll give you all the output in plain text, though for more complicated scripts a webserver is definitely preferable.

How much ham could a hamster stir, if a hamster could stir ham?
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 24th Oct 2003 17:45
OK, it's working now, but I keep getting a strange error. Instead of my HTML code showing up, I get something like "no input file". What's this?

one more question: How do I make the PHP automatically sign off a logged on user when he/she closes the browser?

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Oct 2003 00:24
session cookies are best way

Got a knack for finding secrets??? Jingot Racing---A new brand of Racing---Only from Nightwatch Studios
"hey, it's tomorrow" - Hamish
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 25th Oct 2003 00:36
Man, I hate those sign images, always make me think someone is hacking onto my computer!

PS: Mattman, harsh, not sure bout the rest of you, but I'm on Ravens side.


Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 25th Oct 2003 00:57
NWC-- that's Mattman's system info, not yours, unless IE6 suddenly looks like Opera to me . Yes, it's harsh, he'll have to remove it on very short notice I'm sure, but it does bring a smile to my face...

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 25th Oct 2003 01:05 Edited at: 25th Oct 2003 01:07
what do you mean, "that's Mattman's system info"? Unless ofcourse, he also has a server in Brazil...

I'm using Opera too. Take a look at this:
click on File then Quick Preferences.
at the bottom, it says "identify as _____".
you have it configured to identify itself as IE.

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 25th Oct 2003 01:13
How did you guys learned it?!
Im tring to learn it now but it is hard
even when I copy a code (see and write not ctrl+C then ctrl+V)
I get tons of errors and when I think I fixed them I get more errors
so Im kinda frustrated from this but I hope I will not give up
I would like to build a forum sometime
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 25th Oct 2003 02:14
Yeah, PHP can be frustrating at times. Errors messages can be as vague as DB's sometimes. Usually missing semicolans off end of lines is my favourite.

Your best bet is to buy a book. I am going through a PHP for beginners book and it really helps. Also download the php help file from the php site. It is really useful.

A background in javascript is also very helpful.

If your mansion house needs haunting, just call Rentaghost!
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 25th Oct 2003 04:26
'you have it configured to identify itself as IE.'

D'oh, I thought it was set to identify as Mozilla 5. My bad

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 25th Oct 2003 05:26
Quote: "I get something like "no input file". What's this?"


A 404 basically.

Quote: "How do I make the PHP automatically sign off a logged on user when he/she closes the browser?"


It depends how they logged in! If you use cookies, just erase them. If you use a session, it'll expire when they close the browser anyway.

Cheers,

Rich

"It's easy to be mean when death equals a high score screen."
"You can take your Quake and go away, I'd rather play Bubble Bobble any day."
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Oct 2003 08:25
IF you would like Omega, I could take it out. Or you could just disable sig images

Got a knack for finding secrets??? Jingot Racing---A new brand of Racing---Only from Nightwatch Studios
"hey, it's tomorrow" - Hamish
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 25th Oct 2003 12:54
I use phpdev, do a search on google. When you want to use PHP just run phpdev and you're away

Fishie says:
"Those who fail to prepare prepare to fail"
"Rules are for the guidance of the wise and the blind obdeniency of the fools"
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 25th Oct 2003 15:41
@Mattman: Nah, I like some peoples sig images, like Ravens, TheCodingAreas, fine pieces of craftmenship, even if they didnt make em themselves.


TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 25th Oct 2003 15:48
Quote: "A 404 basically."

OK. That explains quite a lot. When I try to run my PHP script it works, but when I pass arguements (forum.php?s=1) I get this error. This means that it's trying to open that file without removing the arguements first. I'll go hit my head with a hammer for a while...

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Oct 2003 18:19
I took it out of my sig anyways, some people might also dislike it.

Got a knack for finding secrets??? Jingot Racing---A new brand of Racing---Only from Nightwatch Studios
"hey, it's tomorrow" - Hamish
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Oct 2003 22:23
Where's Andrew, I thought he knew everything there is to know about PHP.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 25th Oct 2003 22:40
Quote: "I took it out of my sig anyways, some people might also dislike it.
"


Thanks, I just think its creeepy seeing my IP and ISP on a sign carried by a troll. How the heck do they do that anyway?


David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 25th Oct 2003 22:44
Quote: "Thanks, I just think its creeepy seeing my IP and ISP on a sign carried by a troll. How the heck do they do that anyway?"


It's very easy PHP. In order to get an image you have to know where to send it back, so your ip address is always broadcast.

Nothing you can do about it no matter how high you crank up the firewall

Fishie says:
"Those who fail to prepare prepare to fail"
"Rules are for the guidance of the wise and the blind obdeniency of the fools"
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Oct 2003 08:57
Quote: "so your ip address is always broadcast"


Broadcast yes, but easily fake-able.

Cheers,

Rich

"It's easy to be mean when death equals a high score screen."
"You can take your Quake and go away, I'd rather play Bubble Bobble any day."
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Oct 2003 08:15
LoL... now we're gtting into the technical stuff...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Oct 2003 08:22 Edited at: 26th Oct 2003 08:23
Ok Rich... that is just odd...

I just posted
Quote: "LoL... now we're gtting into the technical stuff..."


AFTER i had read you post about it being fakable...

Yet, it says that you posted AFTER me, and therefore i couldn't have read it... but i did... What's going on?

[EDIT] Arrgggg, and this post is before it too... what's up with that? [/EDIT]


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Oct 2003 13:18
Quote: "@Mattman: Nah, I like some peoples sig images, like Ravens, TheCodingAreas, fine pieces of craftmenship, even if they didnt make em themselves."


nice to know what confidence you have in my art stills, my last 3 signatures have been 100% my own work. Current one though is based on pre-made characters, still my own sketches inked and coloured in photoshop. Same goes for the background.

as for the signature sign of mattmans, he no doubt got it from the jscript banner that does that which is currently doing the rounds.
pissed me off because it has a thing in it that said
"You use AOL, which completely SUCKS!"
i reckon none of the morons that badmouth AOL have ever even bloody used it.

Nice to see that there is actually someone else on NTL:Interactive ... god almost none on is on it here, makes for some truely awesome game pings


To Survive You Must Evolve... This Time Van Will Not Escape His Fate!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 26th Oct 2003 16:45
Ya, that banner is pretty cool. It said AOL sucks? I did not make it myself, but I disagree with that statment (not saying it is good, but it does not suck either)

Got a knack for finding secrets??? Jingot Racing---A new brand of Racing---Only from Nightwatch Studios
"hey, it's tomorrow" - Hamish
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 26th Oct 2003 17:03
I got another two questions ^^

1. Where do you write PHP I mean in which program?
Im currently using HTML-KIT but it is not only for PHP
and I want a program for PHP only any ideas?
2. From where did you learn PHP?
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 26th Oct 2003 17:05
1. Any text editor basicly. I write all my web pages (using JavaScript, HTML, PHP) in notepad
2. www.phpfreaks.com is a good one. I got a book, "Essential PHP for web professionals" by Christopher Cosentino, although I dO NOT reconmend it.

Got a knack for finding secrets??? Jingot Racing---A new brand of Racing---Only from Nightwatch Studios
"hey, it's tomorrow" - Hamish
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 27th Oct 2003 12:55
Renegade - get something with PHP syntax highlighting like Homesite, PHPEd, phpEdit, etc. Have a search around, you'll find plenty of them out there. You can use Notepad, but personally unless you've got time to burn like it's going out of fashion, don't bother.

Cheers,

Rich

"It's easy to be mean when death equals a high score screen."
"You can take your Quake and go away, I'd rather play Bubble Bobble any day."
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 27th Oct 2003 12:57
JessTicular: maybe a result of British Summer Time ending and screwing with the times a bit. Dunno. No other reason why it should have done that. Maybe you're just going mad?

Cheers,

Rich

"It's easy to be mean when death equals a high score screen."
"You can take your Quake and go away, I'd rather play Bubble Bobble any day."
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 27th Oct 2003 22:21
Quote: "like Homesite, PHPEd, phpEdit, etc. Have a search around, you'll find plenty of them out there"


Thats what I mean but I want a program that someone knows
and not just a program got a name for me?
I will also appreciated if someone will help me in the ICQ or messangerwhich mean that I will send him some scripts and he will see what are the problems with it (not some thing like forum only small scripts).
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 27th Oct 2003 22:24
Quote: "Thats what I mean but I want a program that someone knows
and not just a program got a name for me? "


Most of those are pretty famous programs, Macromedia Homesite def.

I use DPHPEdit, search on google.

"The trouble with the French is that they have no word for 'entreprenuer'" - Pres. George W Bush
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 28th Oct 2003 00:30
I found this program and download it
Its a very nice program I hope I will love it

thank you for all of your help
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 29th Oct 2003 14:13 Edited at: 29th Oct 2003 14:23
Sorry for rising this topic but I can use a hand.

here is the source for my login system
it have a lot of problems that I don't see
but maybe you will see them.

I know this is not the best syntax
but it is only my first script.

hmmmmm you cant see all the php script
I was certin that you will be able to see the php

got it go to here http://planet.nana.co.il/caspi00/phpscript.txt
and look at the source.
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 29th Oct 2003 14:38
I use HTML Kit.

I would use Zend Studio, but my version is now obsolete. HTML-Kit is very good as you can d/l updates which add things like all the PHP commands so finding the right command when you can remember it has never been easier.

Also it has a preview and gecco mode (spelling??) so you can see it in IE and Mozilla.

Also there is a FTP feature so that you can work off files on a server (great for quick fixes or development).



Not that i like it.

I also use Edit Plus for quick viewer, and notepad for scanning. I have about 3 others around, Context and another couple. Cant remember.

Web Design Starting from $200. Special limited offer. MSN or Email me for more information.
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 29th Oct 2003 14:40
Your server seams to be down or something... I can't click on the link.

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 29th Oct 2003 15:42
Another handy editor is http://textpad.com/. It supports a lot of different file formats with syntax highlighting, and its cheap.

I would be unstoppable if I could just get started...
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 29th Oct 2003 16:38
I had use HTML-KIT before and now I got back to it
I didn't like DPHPEdit
Now my problem is with that script, the website
is working fine in my computer try to refrash a few times
or try again later I hope it will work.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 29th Oct 2003 16:43
Page cannot be displayed. So, can't check the code.

Cheers,

Rich

"It's easy to be mean when death equals a high score screen."
"You can take your Quake and go away, I'd rather play Bubble Bobble any day."
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 29th Oct 2003 16:55 Edited at: 29th Oct 2003 17:07
hmmmmmmmm
Thats what happand when you are using a free host :

If I will copy the code to here (Message not source
the PHP will be shown?

Here try this
http://uploaded.fresh.co.il/3f9fd766047eb971.txt
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 30th Oct 2003 01:02
linked to a gif... i just finished a login system, but I used javascript instead.
Essentally it was a case of checking to see if a cookie was created. When they register it puts a cookie there with the relivant information and each visit updates certain information for use later.
All done with a few if/else statements along with readCookie and writeCookie

but it depends exactly what your trying to achieve if it'd be useful, I can't get it to access mySql atm though probably a lack of exp using db's


To Survive You Must Evolve... This Time Van Will Not Escape His Fate!
Renegade
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Israel
Posted: 30th Oct 2003 14:18
I just checked the source in the post that I post before
and in the source you can see the system including PHP

Login to post a reply

Server time is: 2024-11-24 02:47:45
Your offset time is: 2024-11-24 02:47:45