Jump to content

PHP


criss

Recommended Posts

with php, you have to test the script in a special environment or upload it and see what it looks like. Google XAMPP for a local environment. Also, you have to name the file test.php

Link to comment
Share on other sites

I don't know about you but I test my PHPs on a free web host that offers PHP. As most of you would guess, this host has many restrictions, so it's not good for a site, but it's good enough for tests. Here are some hosts that offer PHP support for free:http://1asphost.com/http://www.hotsql.comhttp://www.tripod.lycos.co.ukhttp://www.illusionfxnet.comhttp://www.maxhost.ru/http://t35.com/http://www.thefreeserver.com/http://www.oinko.net/freephp/http://www.free-hoster.comAnd the one I use :) :http://www.100webspace.comThe restrictions theese hosts have is a limited bandwidth, a banner that is displayed on your every page, the fact that you use a subdomain and few other stuff which isn't important...

Link to comment
Share on other sites

If you do a lot of PHP, I recommend you try using XAMPP. XAMMP is a installation package that includes Apache, MySQL, PHP, amung other things I have never used before such as SMTP stuff. Instead of having to go upload files on an FTP and viewing it online, you can just go to http://localhost in your browser and there you are. Although... if you're using a mac... then yeah... you probably do have to use one of the free websites listed :)

Link to comment
Share on other sites

I have learned, if you have <b>Macromedia Dreamweaver</b>, then you may preview your php scripts in this. However, you are limited to what you can preview, such as: sending email via form actions (example: submit button).

Link to comment
Share on other sites

Hi :)I am entirely new in this php scripting field .i just started writing some php scripts like "hello world" which i learned from w3schools.But my problem is in the bash shell i can write a hello.php file with permission 755and I can run it.But i cant write a php in an html filesome one please help me!!!!Please check whether this script is correct.================bash-2.05b$ cat tt1.html<html><body><?phpecho "Good morning>";?></body></html>bash-2.05b$ ls -l tt1.html-rwxr-xr-x 1 criss games 64 Oct 5 11:40 tt1.html================

Link to comment
Share on other sites

no, Blue, a .html cannot contain ANY php coding. Well, it can, but it wont do a thing.if you have php in a page, you have to use .php. see that even if you write pure HTML, with no php at ALL in a .php, it will work as if ti was a .html file.dain

Link to comment
Share on other sites

Hi every body,Thank you so muchthat was the mistake i ve made.i was trying to write a html file with php contents, now i got it working :)i

no, Blue, a .html cannot contain ANY php coding. Well, it can, but it wont do a thing.if you have php in a page, you have to use .php. see that even if you write pure HTML, with no php at ALL in a .php, it will work as if ti was a .html file.dain

Link to comment
Share on other sites

If you do a lot of PHP, I recommend you try using XAMPP. XAMMP is a installation package that includes Apache, MySQL, PHP...........Although...  if you're using a mac... then yeah... you probably do have to use one of the free websites listed :)

I dont want to start a mac vs pc war so early in my posting career here, but I really couldn't let this pass. If you're using a mac (osx) - go to sharing prefs, switch on web sharing. That's it - you now have a full apache web server. Want php? simple matter of uncommenting a couple of lines in the apache config file and you're away. MySQL? - download the MySQL osx installer and install it. I have a fully functioning vbulletin install running on mine - and I knew virtually zero about the guts of the web until a week ago. In fact I've only just started learning HTML! This site (and this forum) is proving most helpful in my studies :) brilliant tutorial on the subject: Here
Link to comment
Share on other sites

XAMPP can be good (so I hear), but its not as easily used, and not as good a learning experience as setting it up yourself (d/ling and editing httpd.conf etc).Check your library for a book on it, I searched for weeks for an online tutorial and didn't find one, got a book and it worked simple.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...