Author Topic: PHP...Where to start?  (Read 6859 times)

0 Members and 1 Guest are viewing this topic.

tenniskid493

  • Guest
PHP...Where to start?
« on: January 20, 2006, 08:08:00 am »
I figured out that the best and most efficent way to store all the info and stats for the forum RPG will be by using PHP.  What do I need to do to be able to host a .php file on my Invision board.  Right now, it doesn't work.  It just gives me a blank screen.

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
PHP...Where to start?
« Reply #1 on: January 20, 2006, 08:10:00 am »
Umm, can I see the source of the file? It might be an error. Also, try putting the file in your folder on my server, see if it works there. :)smile.gif
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

tenniskid493

  • Guest
PHP...Where to start?
« Reply #2 on: January 20, 2006, 08:12:00 am »
it was an extremly simple code just to see if it worked

c1-->
CODE
ec1





c2
ec2

it's actually an html file w/ php script

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
PHP...Where to start?
« Reply #3 on: January 20, 2006, 08:53:00 am »
This is mine:

c1-->
CODE
ec1

Testing php



echo "

Hello world!

";
?>
c2
ec2

Don't know if this helps any, I am still learning as well...

You can look at the source files in the php folder on my server...
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Tyler

  • Guest
PHP...Where to start?
« Reply #4 on: January 20, 2006, 12:33:00 pm »
Here is mine :Pblah.gif

c1-->
CODE
ec1

parse_str($_SERVER["QUERY_STRING"], $string); // use $string, could be a security breach otherwise
error_reporting(E_ALL); // All Errors

$page_buffer = NULL;
$page_buffer .="

Hello!

";

if ($string["say_something"] == 1)
 

tenniskid493

  • Guest
PHP...Where to start?
« Reply #5 on: January 20, 2006, 12:54:00 pm »
hmm...none of those seem to work.  I'll try to do it in pure php and not just scripting inside of html

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
PHP...Where to start?
« Reply #6 on: January 21, 2006, 08:52:00 am »
make sure your extensions are .php and not .html (sounds stupid, but I have seen it before)
>(<')

tenniskid493

  • Guest
PHP...Where to start?
« Reply #7 on: January 21, 2006, 12:54:00 pm »
If I have them as .php it views it as a home publishing file.  Is there a way I can get around this???

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
PHP...Where to start?
« Reply #8 on: January 22, 2006, 08:35:00 am »
yeah, change how it is registered in windows. You have to have appache installed and go to http://localhost to actually view the site though
>(<')

tenniskid493

  • Guest
PHP...Where to start?
« Reply #9 on: January 22, 2006, 11:03:00 am »
You have to have appache installed to see php???

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
PHP...Where to start?
« Reply #10 on: January 22, 2006, 11:40:00 am »
I believe so.

Also, make sure you are saving it as a text document...

Did you try loading it to my site to see if it works?
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
PHP...Where to start?
« Reply #11 on: January 22, 2006, 12:48:00 pm »
tenniskid, you only need it if you want to view on you computer, not files on a server
>(<')

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
PHP...Where to start?
« Reply #12 on: January 22, 2006, 12:59:00 pm »
Well, the machine would still need apache to run...  
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
PHP...Where to start?
« Reply #13 on: January 22, 2006, 01:30:00 pm »
granted, yes. Look at source forge, there are enough there to fit you
>(<')

tenniskid493

  • Guest
PHP...Where to start?
« Reply #14 on: January 22, 2006, 02:06:00 pm »
@tifreak...I couldnt find the folder you made for me..where is it??

So if I wanted to upload a php file to a web host and then have people be able to see it, I would have to have apache on my computer??? Or would my host have to have apache??