Thanks for the response. I tried that, but most often I get information that is either way over my head, or not pertinent to my question. Mostly the latter. I can't possibly remember an entire manual, like some of you! 🙂 And for instance, I posted a question, and got some code examples like this one:
$linkhtml = <<<LINK
<a href="$dir/$file">$file</a>
LINK;
print $linkhtml;
Now, there is no explanation of any part of the code, but the code works great. I know what it does, but not why. To perform the same function, I was doing the following:
<a href="<? echo $dir; ?>/<? echo $file; ?>"><? echo $file; ?></a>
Mine is a real pain in the bo-tox! How did the nice guy who shared this with me, learn the command? Every site, tutorial, and information and search page I have gone to for info on links shows my method rather than his. Does my question make more sense, or am I muddying the water! LOL
And by the way, here is the PHP explanation of LINK, just as an example (I run into this with every function I have ever tried to lookup!)
link
(PHP 3, PHP 4, PHP 5)
link -- Create a hard link
Description
bool link ( string target, string link )
link() creates a hard link. Returns TRUE on success or FALSE on failure.
Note: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.
Note: This function is not implemented on Windows platforms.
See also the symlink() to create soft links, and readlink() along with linkinfo().
The above is a complete explanation of the function from php.net's site.
Look, you guys here are great, and I appreciate your assistance. I know a decent amount of code and am able to do most anything I want, but my code is always huge. The last site I built for a tracking program I wrote some 40000 lines of php code for a relatively small site. I know there are better smaller ways of coding, but trying to find the specific info on the web is like taking a drink from a fire hose. Then sometimes I get code in answer to a question with no explanation which makes it hard to re-use. As I said, I am not of a programmer's mind, nor do I know any other languages, even my HTML comes from a gui editor that I alter the code in to suit my needs. How do you guys, even the newbies, find these shorter ways of coding?
I looked at the newbie section thinking that maybe I could help someone with something that stumped me for a time, but even their methods of connecting to a mysql db is quite different. I don't know, maybe I'm just lost in this stuff! LOL
Thanks for listening.