YesNoOk
avatar

PHP help anyone? :) I would appriciate it. (Read 3794 times)

Started by He-Man, March 22, 2008, 08:24:37 pm
Share this topic:
PHP help anyone? :) I would appriciate it.
#1  March 22, 2008, 08:24:37 pm
  • avatar
  • ***
Hi guys. :)

We were assigned in the school to make a program or SOMETHING for the server, using Apache, PHP or God knows what more. LoL    We didn't get much information, because the teacher we have is a specialist in maths and JAVA, not these things. So how did we get that teacher? It's my school. It's a TOTAL mess, and I think I mentioned to you guys before. But this is my last course and I am done with this lousy school! Weeeeee!!

Anyway - back to the problem.
I have recently began reading about PHP in www.w3schools.com, and I would very much like to make an application or something, where you could upload your files to the server. :) The code is pretty much there too, and the whole PHP thing looks intressting.

But I still have some problems - like - how do I get started? What do I need? I have Windows Vista on my comp.
If anyone of you guys could just give me a little push in the right direction, I would *really* be grateful. :)

I just need to finish this before Wednsday - and when it's done - NO MORE COURSES!

Take care folks,
Best Wishes
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#2  March 23, 2008, 12:39:52 am
  • ***
  • idk
    • www.freewebs.com/dehvidtillos
At least after your done with it your never have too do it again...
Unless your getting a job it that line of work.
Re: PHP help anyone? :) I would appriciate it.
#3  March 23, 2008, 01:04:36 am
  • avatar
  • ***
At least after your done with it your never have too do it again...
Unless your getting a job it that line of work.


Yeah. You're right. Let me tell you man, I will be so glad to finally leave this school.
I have been met by nothing but incompetence from the teacher's and administrators.
Sheesh - I am coming to Mugen Guild FORUM to ask for help. That's how much they know.
Also - some teacher's know their stuff REALLY good - but because of the administration of the school -
they are assigned to teach stuff they don't expertise in.
At least here are some really nice people that helped me out in the past.
Once I finish this stuff - I need a vacation. 3 years non-stop stress... I need to back-off from it.
and everything I learned - I learned by my own hand.

Well it's no problem working with this - you know what I mean, mate? I love computers, and
that knowledge. How to make things work - with just digits. You know?

It's just that I have had a real mess with this school. I will be glad to leave it.
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#4  March 23, 2008, 01:08:54 am
  • ******
    • Germany
download XAMPP, install it. go into htdocs dir, delete all the useless crap in there, delete vista install win2k, create a file "whatever.php" in htdocs, and write:

Code:
<?php

for($i = 0; $i < 20; $i++)
  echo 'hello world: ', $i, '<br />';

?>

start apache and type localhost/whatever.php in your browser's address bar.
Re: PHP help anyone? :) I would appriciate it.
#5  March 23, 2008, 01:18:02 am
  • ***
  • +1 to whoever added Godzilla to the main index.
For syntax: http://php.net/
Superglobals: http://us3.php.net/variables.predefined
For publishers  I have had the best luck with Oreilly; You may want to find a good cookbook-esque book to help.

I actually wish I knew more about PHP but my knowledge is fairly limited. That is closer to a 400 level course.

Quote
Also - some teacher's know their stuff REALLY good - but because of the administration of the school -

Consider asking said teachers for help during their office hours, or email them and ask them for help.
i think we should call it an "engine" so we don't look like total idiots because otherwise we'd be arguing about a "game" and that would be somehow "dumber" than arguing about an "engine" on the "internet" for countless hours

Iced said:
I for one, do not enjoy round corners!  :bigcry:
But they hurt much less when we accidentally hit them!  :S
Re: PHP help anyone? :) I would appriciate it.
#6  March 23, 2008, 01:59:10 am
  • ***
  • idk
    • www.freewebs.com/dehvidtillos
That pretty crappy if your teachers suck that bad and you had to pay them for that...

totally unfair
Re: PHP help anyone? :) I would appriciate it.
#7  March 23, 2008, 06:45:36 am
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
In my high school, the person who taught the programming class only knew Office.  The person who taught our 400 level college course in databases graded our midterms in crayon... and was the chair of the computer science department.


Many people risk their lives everyday by having Mugen.
Re: PHP help anyone? :) I would appriciate it.
#8  March 23, 2008, 09:57:31 am
  • ***
  • +1 to whoever added Godzilla to the main index.
In my high school, the person who taught the programming class only knew Office.  The person who taught our 400 level college course in databases graded our midterms in crayon... and was the chair of the computer science department.

I'll trade you? My teacher makes you type papers that are so long that they are tl;dr only to randomly choose to read them from his students.

It like playing chance with your grades. I may as well be graded on how well I can roll dice.
i think we should call it an "engine" so we don't look like total idiots because otherwise we'd be arguing about a "game" and that would be somehow "dumber" than arguing about an "engine" on the "internet" for countless hours

Iced said:
I for one, do not enjoy round corners!  :bigcry:
But they hurt much less when we accidentally hit them!  :S
Re: PHP help anyone? :) I would appriciate it.
#9  March 23, 2008, 05:21:05 pm
  • avatar
  • ***
download XAMPP, install it. go into htdocs dir, delete all the useless crap in there, delete vista install win2k, create a file "whatever.php" in htdocs, and write:

Code:
<?php

for($i = 0; $i < 20; $i++)
  echo 'hello world: ', $i, '<br />';

?>

start apache and type localhost/whatever.php in your browser's address bar.

Hey Valodim :)

I tried doing that - but it didn't work very well. Apache won't work. It refused to install it. I didn't uninstall Vista because I don't have the Windows Server 2003  (if that is what you meant.)

I downloaded the PHP program, from www.php.net, and installed it as IIS ISAPI. I don't know if I did right...
When I open the PHP program after install - nothing happens. I don't know what to expect - nor what to do. :/
What should I do?

Again - thanks a lot for you helping me out again :) You have no idea how much I appriciate it.
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#10  March 24, 2008, 01:52:05 am
  • ******
    • Germany
I downloaded the PHP program, from www.php.net, and installed it as IIS ISAPI. I don't know if I did right...
When I open the PHP program after install - nothing happens. I don't know what to expect - nor what to do. :/
What should I do?

Ugh. Point-and-click-generation, anyone? o_O

Quote
I tried doing that - but it didn't work very well. Apache won't work. It refused to install it.

Error message "I refuse to install."? Cool.

Quote
I didn't uninstall Vista because I don't have the Windows Server 2003  (if that is what you meant.)

I added that remark in smaller font, as a short "Vista sucks!" remark. And I meant Win2k, why would anyone install Server 2003 on his home pc &gt;_&gt;

You can use IIS as well, but I can't help you with that. Find a tutorial on how to get PHP working with IIS, I'm certain they aren't difficult to find.

Generally: the php.exe is NOT meant to be executed, it is just an interface to parse .php files from your server instead of serving them as plaintext files. If you did it right:
Code:
and type localhost/whatever.php in your browser's address bar.
Re: PHP help anyone? :) I would appriciate it.
#11  March 24, 2008, 05:57:09 am
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
http://www.wampserver.com/en/

I used this a long time ago.  I don't remember having problems with it.  Likewise, you shouldn't have had problems with the one Val suggested either.


Many people risk their lives everyday by having Mugen.
Re: PHP help anyone? :) I would appriciate it.
#12  March 24, 2008, 06:05:39 am
  • ******
  • I am a ghost.
    • USA
    • www.bmarquis.com
where were you when I needed help? I used MyServer and had to install PHP by hand.

Accusare nemo se debet nisi coram Veridis
DYNOMITE
Re: PHP help anyone? :) I would appriciate it.
#13  March 24, 2008, 12:47:58 pm
  • avatar
  • ***
Quote
Quote
I downloaded the PHP program, from www.php.net, and installed it as IIS ISAPI. I don't know if I did right...
When I open the PHP program after install - nothing happens. I don't know what to expect - nor what to do. :/
What should I do?


Ugh. Point-and-click-generation, anyone?

Hm - it didn't generate anything from what I saw. When I opened the program - it all went black.
But you explained what it (PHP.exe) did later, so I am cool with that. :) I will try that out too, what you said.


Quote
Error message "I refuse to install."? Cool.

No no - IT refused to install. I tried to do it, but didn't work. I don't know why. I clicked "Install" quite some times, and I still kept getting error messages where it told me I couldn't install it.

Quote
I added that remark in smaller font, as a short "Vista sucks!" remark. And I meant Win2k, why would anyone install Server 2003 on his home pc

Yeah - Vista sucks, for now. And yes - that beats me too, because we had to install Server 2003 on our computers. But you know what the funny part is? That CD from where we installed Windows Server, we are NOT allowed to borrow home or anything. AND you can use the CD only once a week. On wednsday I have presentation. Sheesh.

Ok Valodim - thank you so much. :) I really appriciate all your help. I really do.
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Last Edit: March 24, 2008, 12:55:29 pm by He-Man
Re: PHP help anyone? :) I would appriciate it.
#14  March 24, 2008, 12:56:32 pm
  • avatar
  • ***
http://www.wampserver.com/en/

I used this a long time ago.  I don't remember having problems with it.  Likewise, you shouldn't have had problems with the one Val suggested either.

Ok - thanks Messatsu - I will try that one out too. Whichever works is good - as long as it works. I just want to finish it. I will try it out later, and tell you how it goes. :)
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#15  March 24, 2008, 04:55:05 pm
  • ******
    • Germany
Quote
Error message "I refuse to install."? Cool.

No no - IT refused to install. I tried to do it, but didn't work. I don't know why. I clicked "Install" quite some times, and I still kept getting error messages where it told me I couldn't install it.

I was hinting that we can't help you at all if you don't even give us the error messages. We can't smell what's wrong with the program, and for that purpose some great man thought up error messages to help find the problem :P
Last Edit: March 24, 2008, 05:12:36 pm by Valodim
Re: PHP help anyone? :) I would appriciate it.
#16  March 24, 2008, 10:24:47 pm
  • avatar
  • ***
http://www.wampserver.com/en/

I used this a long time ago.  I don't remember having problems with it.  Likewise, you shouldn't have had problems with the one Val suggested either.

Downloaded and tried it out. :D Now I am trying to set up everything. Correct me if I am doing wrong - but I tried to open up the WampServer 2.0, "Start All Services) and to open up the "http://localhost" page (while offline) and try to make configs. The thing is, it didn't connect - it didn't show anything. It just said that I am not connected to internet. Do I have to have an internet connection to set up my "server", or?

Also, I have my PHP code ready (thanks to Valodim) and I would like it to run. How does that happen? :)
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#17  March 24, 2008, 10:30:20 pm
  • avatar
  • ***
Quote
Error message "I refuse to install."? Cool.

No no - IT refused to install. I tried to do it, but didn't work. I don't know why. I clicked "Install" quite some times, and I still kept getting error messages where it told me I couldn't install it.

I was hinting that we can't help you at all if you don't even give us the error messages. We can't smell what's wrong with the program, and for that purpose some great man thought up error messages to help find the problem :P

Ohhh - ha ha ha ha! Now I understand what you mean. Ha ha ha. :D Well, next time I make them (and be so sure I will :P LoL) I will make a screenshot and post it up. :P That's a promise. :)
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#18  March 25, 2008, 09:02:18 am
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
http://www.wampserver.com/en/

I used this a long time ago.  I don't remember having problems with it.  Likewise, you shouldn't have had problems with the one Val suggested either.

Downloaded and tried it out. :D Now I am trying to set up everything. Correct me if I am doing wrong - but I tried to open up the WampServer 2.0, "Start All Services) and to open up the "http://localhost" page (while offline) and try to make configs. The thing is, it didn't connect - it didn't show anything. It just said that I am not connected to internet. Do I have to have an internet connection to set up my "server", or?

Also, I have my PHP code ready (thanks to Valodim) and I would like it to run. How does that happen? :)
It sure is nice to try to ask these things on a Mugen form, but you'll get more helpful responses on their forums than here.


Many people risk their lives everyday by having Mugen.
Re: PHP help anyone? :) I would appriciate it.
#19  March 25, 2008, 10:48:15 am
  • avatar
  • ***
http://www.wampserver.com/en/

I used this a long time ago.  I don't remember having problems with it.  Likewise, you shouldn't have had problems with the one Val suggested either.

Downloaded and tried it out. :D Now I am trying to set up everything. Correct me if I am doing wrong - but I tried to open up the WampServer 2.0, "Start All Services) and to open up the "http://localhost" page (while offline) and try to make configs. The thing is, it didn't connect - it didn't show anything. It just said that I am not connected to internet. Do I have to have an internet connection to set up my "server", or?

Also, I have my PHP code ready (thanks to Valodim) and I would like it to run. How does that happen? :)
It sure is nice to try to ask these things on a Mugen form, but you'll get more helpful responses on their forums than here.

Hey Messatsu, you won't believe what happened right now... IT WORKEEEEEEDDDD!!! :D The wierd thing is, when my friend put in the browser "127.0.0.1", the page worked PERFECTLY. Not if I put in localhost. o_O Seems like there is an association error or something, and this is what I would like to know how to fix. Anyway - it worked perfectly, and so did my PHP script!! That means - I AM DONE!!!!!!!!!!!!! :D

Many thanks to all of you guys. You've been of great support, and I *really* appriciate it. :)

After the presentation tomorrow, I will finally be able to breathe - after all these years....
I will devote myself to my meditation and martial arts, and just relax...
I might be away from the mugenguild forum too for a while - I just want to get away from a screen for a moment and have some time for myself.

Thanks again! I won't forget it. :)
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.
Re: PHP help anyone? :) I would appriciate it.
#20  March 25, 2008, 10:49:24 am
  • avatar
  • ***
In my high school, the person who taught the programming class only knew Office.  The person who taught our 400 level college course in databases graded our midterms in crayon... and was the chair of the computer science department.


 o_O

Guess I am not the only one now. LoL
But why??? That's what I understand dammit.  :S
The key to happiness is not to mourn on the past, or to worry about tomorrow - but to live here and now. In the present. Honestly and earnestly.