inherit
Banned
39031
0
May 31, 2007 9:56:53 GMT -8
ryndell
1,808
March 2005
ryndell
|
Post by ryndell on Jul 28, 2005 9:50:17 GMT -8
Question can PHP and HTML or XHTML be mixed on one site . I mean have most of the scripts php , and a database, but also have certain areas XHTML , or HTML ... Like The HTML pages linked to the Home page, and would it still function as normal ? For one Complete Game ?
|
|
squalleh
inherit
-149255
0
Dec 2, 2024 15:37:39 GMT -8
squalleh
0
January 1970
GUEST
|
Post by squalleh on Jul 28, 2005 11:52:23 GMT -8
Question can PHP and HTML or XHTML be mixed on one site . I mean have most of the scripts php , and a database, but also have certain areas XHTML , or HTML ... Like The HTML pages linked to the Home page, and would it still function as normal ? For one Complete Game ? Yes, that's the beauty of PHP, it can be integrated into XHTML (and HTML) documents without anything special. Take, for example: <?php
$myText = 'a';
?> <html> <head> <title>Just a small test.</title> </head>
<body> <?=$a;?> </body> </html>
I integrated PHP into the document at two points. First, before the HTML document itself. Then, right inside the BODY Element, where I outputted a variable.
|
|
inherit
Banned
39031
0
May 31, 2007 9:56:53 GMT -8
ryndell
1,808
March 2005
ryndell
|
Post by ryndell on Jul 28, 2005 12:21:35 GMT -8
but i have a full gaming script php i am working on, and i wish to do the kingdom part in all html where it will be interactive but how would i link the html i have got into the main account .. so it just adds to it ?
|
|
inherit
RIP- Proboards Legend
39218
Conquester777 Conquester777
0
Oct 11, 2005 6:36:29 GMT -8
Conquester777
CirclesAreFun
4,008
March 2005
cq777
|
Post by Conquester777 on Jul 28, 2005 23:19:10 GMT -8
but i have a full gaming script php i am working on, and i wish to do the kingdom part in all html where it will be interactive but how would i link the html i have got into the main account .. so it just adds to it ? it's bad practice to turn the php engine on and off (as the above person has shown as an example) to use php and html mix, first off. php is only background stuff. you cant make a website without html really. you have to use it, even if you're using php. so to inject the design stuff, the html stuff around your php, you would just use the echo function. like: <? php stuff echo 'html'l php stuff echo 'html'; php stuff ?> like that. with the echo function you can either do echo "stuff"; or echo 'stuff'; , and you have to put a backslash before a quote like... echo "stuff's"; is okay, echo "i "\like\" stuffs"; is okay, echo 'stuff\'s'; is okay, echo 'stuff's'; is bad, and echo "i "like" stuffs"; is bad, but echo "stuff's"; is okay and echo 'i "like" stuffs'; is okay.
|
|
inherit
29687
0
Dec 11, 2006 0:27:09 GMT -8
Legendary SSJ Goku
The Legendary Strength revealed...
450
August 2004
lssjg
|
Post by Legendary SSJ Goku on Jul 29, 2005 20:23:54 GMT -8
if anyone wants to learn it... the best way is to go to google.com and type "easy PHP" without the " and ". Then the 1st site on the list (which is in english), it will bring you to.... on any way just go to prdownloads.sourceforge.net/quickeasyphp/easyphp1-8_setup.exe?download and choose the minor you want. The sydney, Australia one works. Anyway, why? Because it's very small and loads PHP, Apahce and mySQL on to your computer. Now go to W3schools or something like that, and learn some php... if you get stuck, load easyPHP and it then create a page and see if it works... then much around and you start learning it! Unlike HTML, you can't just say i want to learn how to make an ********* (insert thing) ********* and find the tags and do it. You gotta learn... And i recommend you learn the following first. HTML then XHTML then JAVASCRIPT if you want, i say it's got some basics in common with PHP PHP you want to learn it... right! mySQL to add better stuff to your pages! Anyway, the 1st is very easy, the 2nd is just html but done properly, 3rd is nie (but not a must) then PHP because you wanted to learn it at the start, then finally mySQL or Flatfiles. I prefer mySQL, but that is just my choice. Your two choices are PHP or Perl mySQL or Flatfiles Emjoy
|
|
squalleh
inherit
-149259
0
Dec 2, 2024 15:37:39 GMT -8
squalleh
0
January 1970
GUEST
|
Post by squalleh on Jul 30, 2005 7:43:40 GMT -8
if anyone wants to learn it... the best way is to go to google.com and type "easy PHP" without the " and ". Then the 1st site on the list (which is in english), it will bring you to.... on any way just go to prdownloads.sourceforge.net/quickeasyphp/easyphp1-8_setup.exe?download and choose the minor you want. The sydney, Australia one works. Anyway, why? Because it's very small and loads PHP, Apahce and mySQL on to your computer. Now go to W3schools or something like that, and learn some php... if you get stuck, load easyPHP and it then create a page and see if it works... then much around and you start learning it! Unlike HTML, you can't just say i want to learn how to make an ********* (insert thing) ********* and find the tags and do it. You gotta learn... And i recommend you learn the following first. HTML then XHTML then JAVASCRIPT if you want, i say it's got some basics in common with PHP PHP you want to learn it... right! mySQL to add better stuff to your pages! Anyway, the 1st is very easy, the 2nd is just html but done properly, 3rd is nie (but not a must) then PHP because you wanted to learn it at the start, then finally mySQL or Flatfiles. I prefer mySQL, but that is just my choice. Your two choices are PHP or Perl mySQL or Flatfiles Emjoy PHP or Perl -> What about ASP? Python? MySQL or Flat Files -> MSSQL, Firebird SQL, PostgreSQL, Oracle, or even LDAP. There are many choices outside the ones you mentioned.
|
|
inherit
Banned
10782
0
Aug 31, 2005 3:28:34 GMT -8
User
4,508
June 2003
lukezweb
|
Post by User on Aug 3, 2005 16:33:20 GMT -8
I make alot out of PHP Programs.
|
|
inherit
29687
0
Dec 11, 2006 0:27:09 GMT -8
Legendary SSJ Goku
The Legendary Strength revealed...
450
August 2004
lssjg
|
Post by Legendary SSJ Goku on Aug 4, 2005 0:26:35 GMT -8
if anyone wants to learn it... the best way is to go to google.com and type "easy PHP" without the " and ". Then the 1st site on the list (which is in english), it will bring you to.... on any way just go to prdownloads.sourceforge.net/quickeasyphp/easyphp1-8_setup.exe?download and choose the minor you want. The sydney, Australia one works. Anyway, why? Because it's very small and loads PHP, Apahce and mySQL on to your computer. Now go to W3schools or something like that, and learn some php... if you get stuck, load easyPHP and it then create a page and see if it works... then much around and you start learning it! Unlike HTML, you can't just say i want to learn how to make an ********* (insert thing) ********* and find the tags and do it. You gotta learn... And i recommend you learn the following first. HTML then XHTML then JAVASCRIPT if you want, i say it's got some basics in common with PHP PHP you want to learn it... right! mySQL to add better stuff to your pages! Anyway, the 1st is very easy, the 2nd is just html but done properly, 3rd is nie (but not a must) then PHP because you wanted to learn it at the start, then finally mySQL or Flatfiles. I prefer mySQL, but that is just my choice. Your two choices are PHP or Perl mySQL or Flatfiles Emjoy PHP or Perl -> What about ASP? Python? MySQL or Flat Files -> MSSQL, Firebird SQL, PostgreSQL, Oracle, or even LDAP. There are many choices outside the ones you mentioned. I was mentioning my favorite ones... ;D I find them easyier than ASP and Python (i tried all of them, half an hour on each, one each day for 4 days, and i picked PHP, just past Perl...) mySQL... i meant any SQL.... mySQL is just what i use... And i have found that SQL databases are popular, you can learn them quick and work well.... So basically.... just in case you didn't relise when you read it... IT IS FROM MY OPINION
|
|
inherit
g4m3 0v3r
771
0
Jul 18, 2011 18:29:23 GMT -8
David (Monty)
3,669
December 1999
mbarker22
|
Post by David (Monty) on Aug 4, 2005 2:21:20 GMT -8
PHP or Perl -> What about ASP? Python? MySQL or Flat Files -> MSSQL, Firebird SQL, PostgreSQL, Oracle, or even LDAP. There are many choices outside the ones you mentioned. I was mentioning my favorite ones... ;D I find them easyier than ASP and Python (i tried all of them, half an hour on each, one each day for 4 days, and i picked PHP, just past Perl...) mySQL... i meant any SQL.... mySQL is just what i use... And i have found that SQL databases are popular, you can learn them quick and work well.... So basically.... just in case you didn't relise when you read it... IT IS FROM MY OPINION You said as if there are no other choices.
|
|
inherit
29687
0
Dec 11, 2006 0:27:09 GMT -8
Legendary SSJ Goku
The Legendary Strength revealed...
450
August 2004
lssjg
|
Post by Legendary SSJ Goku on Aug 4, 2005 23:07:45 GMT -8
i was mearly talkiing about what was easy... i myself and others i know all found perl, php, mysql and flatfiles easier than the rest. Thus for someone to learn a database or web language like that, i thought that learning something easy would be best... and i am basing it on my experience plus about 15 other people i know
|
|
squalleh
inherit
-149264
0
Dec 2, 2024 15:37:39 GMT -8
squalleh
0
January 1970
GUEST
|
Post by squalleh on Aug 5, 2005 3:08:51 GMT -8
i was mearly talkiing about what was easy... i myself and others i know all found perl, php, mysql and flatfiles easier than the rest. Thus for someone to learn a database or web language like that, i thought that learning something easy would be best... and i am basing it on my experience plus about 15 other people i know What you and 15 others find easy isn't what somebody else may find easy, however. MSSQL, for example, is very simple too. Oh, and PostgreSQL is hardly any different in difficulty than MySQL. The PHP functions to interact with PostgreSQL are very similar to that of MySQL.
|
|
inherit
Banned
39031
0
May 31, 2007 9:56:53 GMT -8
ryndell
1,808
March 2005
ryndell
|
Post by ryndell on Aug 5, 2005 12:20:37 GMT -8
I know html, and xhtml fairly well, is okay at java. php gives me a few problems but i am learning it. If anyone knows anything about crons or cron jobs though , could you pm me . It should only take just a few minutes.
|
|
inherit
16205
0
May 4, 2012 21:08:07 GMT -8
Imusion
722
November 2003
imusion
|
Post by Imusion on Aug 5, 2005 13:11:46 GMT -8
but i have a full gaming script php i am working on, and i wish to do the kingdom part in all html where it will be interactive but how would i link the html i have got into the main account .. so it just adds to it ? it's bad practice to turn the php engine on and off (as the above person has shown as an example) to use php and html mix, first off. php is only background stuff. you cant make a website without html really. you have to use it, even if you're using php. so to inject the design stuff, the html stuff around your php, you would just use the echo function. like: <? php stuff echo 'html'l php stuff echo 'html'; php stuff ?> like that. with the echo function you can either do echo "stuff"; or echo 'stuff'; , and you have to put a backslash before a quote like... echo "stuff's"; is okay, echo "i "\like\" stuffs"; is okay, echo 'stuff\'s'; is okay, echo 'stuff's'; is bad, and echo "i "like" stuffs"; is bad, but echo "stuff's"; is okay and echo 'i "like" stuffs'; is okay. Thats not turning the PHP "engine" on and off. Restarting the PHP module would be turning the php "engine" on and off. There is no difference at all if you interchange between PHP and HTML like that. Also for an echo it's good practice to always use single quotes as PHP doesn't try to parse the stuff in it, giving it a slight load time advantage.
|
|
inherit
Banned
39031
0
May 31, 2007 9:56:53 GMT -8
ryndell
1,808
March 2005
ryndell
|
Post by ryndell on Aug 6, 2005 21:04:22 GMT -8
Question , I dont have a server on my computer its a server hosted by someone else, if i load this easyphp onto my computer . Will this apache, mysql ,and php effect my computer ,and give it any problems .
|
|
inherit
29687
0
Dec 11, 2006 0:27:09 GMT -8
Legendary SSJ Goku
The Legendary Strength revealed...
450
August 2004
lssjg
|
Post by Legendary SSJ Goku on Aug 6, 2005 21:16:11 GMT -8
no..... it will install it on the server.... and thus, not your computer... do you get it... Just like if i make a word document on my computer, it wont be on my best friends comp several streets away!
I really don't know why you wouldn't do it on your own computer... it's only 55 meg... which is a 6 meg download!
Anyway
If you have it own your computer it is so easy... all it is.. is, C:\Program Files\EasyPHP1-8\www put your junk in there... then to run it go into Internet Explorer or Mozilla or something and type http://127.0.0.1
and done.... you can muck around...
|
|