4M4Life.com

Discussion Zone: => Computers & Technology => Topic started by: Omega on May 15, 2009, 07:13:13 PM


Title: Having PHP problems (hope this is the right place to put this)
Post by: Omega on May 15, 2009, 07:13:13 PM
I need some serious help.
Title: Re: Having PHP problems (hope this is the right place to put this)
Post by: Red on May 16, 2009, 05:09:34 PM
Well, I think it would HELP us if you explained what the problem was in better detail. =P
Title: Re: Having PHP problems (hope this is the right place to put this)
Post by: Flashwerewolf on May 16, 2009, 09:16:32 PM
 :poked: Hes dead, Red.
Title: Re: Having PHP problems (hope this is the right place to put this)
Post by: Omega on May 16, 2009, 09:44:23 PM
When I go to preview the php file in my browser, nothing appears. I mean the code I typed is suppose to appear, but I get nothing!  [ssj]
Title: Re: Having PHP problems (hope this is the right place to put this)
Post by: Red on May 26, 2009, 01:17:35 AM
Well....

I don't know!!! [ssj]
Title: Re: Having PHP problems (hope this is the right place to put this)
Post by: kinjo on May 26, 2009, 08:00:52 AM
PHP code is not like HTML
 
php you need to have on a server which tells it to show, you cant just drag it on your browser without it being uploaded to a webpage
 
html you can preview in your browser, php not without it being hosted on a server (a server that supports php) like the server the 4m4life.com is on
Title: Re: Having PHP problems (hope this is the right place to put this)
Post by: Whalesdude on May 26, 2009, 04:53:02 PM
Well, not exactly.. For temporary purposes, you can put the full file extention to something on your computer (Or the internet) to pull the files from. But, to keep it more organized, (When hosted) I put the files in their own rightful directories on my webhost.

And, effectively, php code IS HTML... There's just more rules and more functions when coding in it.

Also, if you don't have a header, that could be your problem, Omega.