There are millions of sources of free PHP scripts ranging from simple examples to very complex applications. Here are some search results to get you started:
Google Search: free php scripts
Google Search: free php programs
Google Search: free php tutorials
The larger ones have multiple files and are zipped. Those ones you can just upload to your site, unzip them, maybe adjust a few settings and it is ready to go. A large single file script will usually be in the form of a text file. There are two ways to deal with those. The best way is to upload it and change the extension from .txt to .php. The other way is to copy and paste it into your editor. If you do that, there is a chance that you will get bit by...
Whenever you copy PHP code there is a possibility that you will pick up an irritating bug. What it does is replace a normal space with which Alt-Space on WebTV. I don't know how you make it with a computer. PHP ignores normal spaces in code but if there is a instead, the code is corrupted. Since a looks the same as a normal space, there is no way to see where the bug is. Fortunately, the Find/Replace function on most WebTV friendly file managers can take care of the bug. Webtv users can simply enter an Alt-Space in the Find field and a normal space in the replace field to find and kill all copy bugs.
You can find small scripts in newsgroups, forums and web pages as either text, or syntax highlighted code. An example of a text example is:
<?php echo "hello world"; ?>
With a block of code that small it isn't very likely that you will get the copy bug but the longer the code is and the more line breaks there are, the more likely the code will get corrupted when you copy and paste it. Syntax highlighted code is found in the examples at php.net and in phpBB type forums and looks like this:
<?php echo "hello world"; ?>
The odds of getting corrupted code when you copy and paste syntax highlighted code is so high that I just automatically assume that it is corrupt and use Find/Replace to debug it before I try it.
|
|
|