Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 19:46:59 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: PHP...Where to start? -  (Read 408 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
tenniskid493
Guest
« on: 20 January, 2006, 15:08:00 »
0

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.
Logged
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 17 May, 2013, 18:40:51
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #1 on: 20 January, 2006, 15:10:00 »
0

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. Smileysmile.gif
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
tenniskid493
Guest
« Reply #2 on: 20 January, 2006, 15:12:00 »
0

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
Logged
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 17 May, 2013, 18:40:51
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #3 on: 20 January, 2006, 15:53:00 »
0

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...
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Tyler
Guest
« Reply #4 on: 20 January, 2006, 19:33:00 »
0

Here is mine Tongueblah.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)
 
Logged
tenniskid493
Guest
« Reply #5 on: 20 January, 2006, 19:54:00 »
0

hmm...none of those seem to work.  I'll try to do it in pure php and not just scripting inside of html
Logged
rivereye
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 18 September, 2009, 20:00:14
Date Registered: 14 September, 2008, 05:36:48
Posts: 1249


Total Post Ratings: 0

View Profile
« Reply #6 on: 21 January, 2006, 15:52:00 »
0

make sure your extensions are .php and not .html (sounds stupid, but I have seen it before)
Logged

>(<')
tenniskid493
Guest
« Reply #7 on: 21 January, 2006, 19:54:00 »
0

If I have them as .php it views it as a home publishing file.  Is there a way I can get around this???
Logged
rivereye
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 18 September, 2009, 20:00:14
Date Registered: 14 September, 2008, 05:36:48
Posts: 1249


Total Post Ratings: 0

View Profile
« Reply #8 on: 22 January, 2006, 15:35:00 »
0

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
Logged

>(<')
tenniskid493
Guest
« Reply #9 on: 22 January, 2006, 18:03:00 »
0

You have to have appache installed to see php???
Logged
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 17 May, 2013, 18:40:51
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #10 on: 22 January, 2006, 18:40:00 »
0

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?
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
rivereye
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 18 September, 2009, 20:00:14
Date Registered: 14 September, 2008, 05:36:48
Posts: 1249


Total Post Ratings: 0

View Profile
« Reply #11 on: 22 January, 2006, 19:48:00 »
0

tenniskid, you only need it if you want to view on you computer, not files on a server
Logged

>(<')
tifreak
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 17 May, 2013, 18:40:51
Date Registered: 16 September, 2008, 05:51:59
Location: Federation Starship Enterprise
Posts: 2850


Total Post Ratings: +73

View Profile WWW
« Reply #12 on: 22 January, 2006, 19:59:00 »
0

Well, the machine would still need apache to run...  
Logged

Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
rivereye
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 18 September, 2009, 20:00:14
Date Registered: 14 September, 2008, 05:36:48
Posts: 1249


Total Post Ratings: 0

View Profile
« Reply #13 on: 22 January, 2006, 20:30:00 »
0

granted, yes. Look at source forge, there are enough there to fit you
Logged

>(<')
tenniskid493
Guest
« Reply #14 on: 22 January, 2006, 21:06:00 »
0

@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??
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.298 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.