Strider619
07-14-2003, 09:51 PM
I know what .php and cookies are but i dont know how to use them. Im 13 and im trying to make a website kinda like neopets but i have no idea how to use .php that good since only website i made was pure HTML. can you guys post where i can find a good place to learn .php for free?
P.S- how does neopets like generate pages instantly? i never fiqured it out....
No advertising, please :) -Moderator
Dude128
07-14-2003, 10:05 PM
to learn the language itself, I always recommend starting with the basic tutorial, then moving onto the full documentation (which is also very valuble as a reference later) at http://www.php.net
some of the other sites with good PHP tutorials are:
http://www.devshed.com
http://www.sitepoint.com
if you want tutorials with a specific purpose (for example, how to create a ____), you can try:
http://www.phpcomplete.com
first you should learn the language, or at least basic things about it. then you can move on to specific tasks- like creating a login script, for example, using tutorials. and make sure you understand each part of the tutorial as you work through it- later chapters or sections usually build on the basic concepts from earlier on.
jerry265
08-09-2003, 07:18 PM
I have the same problem Im 13 and know .php
but dont know php I built a website on pure html too
and well I wanna save bandwidth and I dont like using frames
Dude128
08-09-2003, 08:21 PM
sounds like you just need PHP includes (or SSI, for that matter).
create a file with what you want to appear on multiple pages, and save it as whatever (.txt, .php, .inc- it doesn't matter too much) and use this code on all the pages you want to have it:
<?php
include ("filename.ext");
?>
replacing filename.ext with the correct file name, and make sure you rename all the pages with that code to have the .php extension
also, in the future, please try not to bring up old threads. you can always create a new one :)
jerry265
08-09-2003, 09:06 PM
I dont get it....uhhh you know how some sites have
like the navigation and stuff and when they go another page the navigation and stuff are still there...
Dude128
08-09-2003, 10:35 PM
that's why you would use SSI or PHP includes. it puts the same stuff (such as navigation) on every page you put the code on.
or if it is actually the same stuff, they probably use frames. with SSI and PHP includes, it's a different page just with the same stuff on it.
jerry265
08-10-2003, 12:05 AM
it sorta worked except it wont stop repeating
and on the top it says warning...failed to open...
jerry265
08-10-2003, 12:24 AM
ok u in that php include code thing what if u want more than one page to appear?
Dude128
08-10-2003, 01:58 AM
if you have two different files you want to include and have them one after the other, you would use this:
<?php
include ("file1.ext");
include ("file2.ext");
?>
or if you wanted other content between them, you would do this:
<?php
include ("file1.ext");
?>
...your content here...
<?php
include ("file2.ext");
?>
jerry265
08-10-2003, 05:06 PM
sorry if im bugging u...
but how do u create a page like this index.php?page=something
i have index.php but how do create the pther half?
cause im using a free host that supoorts php
Bryan
08-11-2003, 02:54 AM
the web protal PHP Nuke usues the index.php?page=whatever to go through alot of its stuff..is that the type of thing your talking about?
jerry265
08-11-2003, 01:36 PM
yeah sorta...how do u create thos kind of pages