TCH-JimE
Members-
Posts
2,740 -
Joined
-
Last visited
Everything posted by TCH-JimE
-
*Runs off to find his photoshop CD* Jim
-
Hi, Please understand that though we are logged in, some of us are not always at our desks! Unsure, but I believe so. I believe yes Sorry I use silver plan Other then should the server go down, you loose them all, nothing. But since we do a 99% uptime here, that should not be a problem Jim
-
Hi, The www. bit and Http://www should make no difference to the page. Internal links would be silly to count if a search engine does it cos its would be easy to spam Jim
-
Cartit Shopping Cart Help Needed
TCH-JimE replied to jtrai491's topic in Running your online business
Woohoo! Glad it works! (Its amazing what sleep can do!) Jim -
Hi, I think I will add to jacks comment about being quiet now, but one thing, from a guru's point of view, BACKUP! Make sure you have a backup copy of your website and database(s) so just incase it goes wrong, you can backup. You will not believe how invaluable this is, until you need it, and then you will thank your stars you did! Jim
-
Intresting. Jack, I did not know you had already done one, I am sorry! Jim
-
Hi, Agreed, use dreamweaver once to see how its done, and then scrap it and right your own connection to the database. Also find a good PHP book, there are hundreds out there and they can be readlly handy! Jim
-
Hi, Why not just allow her to FTP over her web client into the space and download it? Jim
-
See my help on some simple includes here Jim
-
Hi, I get around it by using turtles method, much easier! (that is unless your wanting to give client access and dont want them to see your public_html) Jim
-
Hi, Just another thought, any fields you want to include, whether hidden or not, must be unique. If you have several fields where people fill in there name, say name, surname, forename, they must all be called something different. It also helps that when using say $email that the original field is "email" in the same case! Hopefully that will stop a few hair wrenchings! Jim
-
Right, here goes my first article, critics welcome! Php Includes PHP includes are proberley the best time saving piece of coding I have ever come accros. They give you the ability to change all your files on your website, just be editing a single page, so you instantly save yourself time and hassle, and whats more, there so simple, you wonder how you ever did without them! What are Php Includes Code Wise? PHP includes are no more then a simple line of code in your original page. E.g.: ><?php include("Pool/Header.php"); ?> This single line tells the server to also "include" the file mentioned in the page before it gets sent off to the user's browser. The user sees nothing different, because to them, its a single page. What are good are PHP includes really then? Ah, the golden question, well here goes. Do you have a constant "menu" bar at the side of the page, or a banner, header etc which always occurs on all the pages. Maybe the bottom stating contact details and copyright notices. All of these are examples of coding which appears page after page after page, which you may want to edit at any point. But wait, that would mean editing, say 100 pages! By using the PHP include feature, you just create one file for say, the banner heading, and every page, just enter one line of code to call it. Then if you make any changes to the banner heading, you just change the one file, which will instantly change all other pages! How do they work? Basically, when a user requests any page from the server, the server grabs the page, and runs through it. As it runs through it, it will excute any commands it comes across. When using PHP files, anything in a <?php command ?> will be acted upon. Once its been acted upon, the server then sends the user the page. This takes place nearly instanteously, so the user never sees any diffenrece. How do I use Php includes in my website? Very easily! Here is my golden pointer: Your page must be saved as a PHP file. It wont work if you dont! Right once we got that sorted, here are some examples. I have produced 2 includes, one for the header, and one for the footer, and the index page. Include header - saved as "header.php" ><html> <head> <title>My Brand New Website</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="description" CONTENT="Jim Gurus Website"> <meta name="keywords" content="jim, guru, totalchoice, hosting"> </head> <body> <img src="Bigbanner.jpg"> Include Footer - Saved as "footer.php" ><div align="center" class="text"> <font face="Times New Roman, Times, serif"> <img src="flag.jpg" width="79" height="75"> <b>© 2003 Proudly Produced By <a href="mailto:webmaster@jimgurusdomainname.com">Jim Guru</a> </b> </font> </div </body> </html> Right so there are the two includes, which I can now include on every page. My two pages calling these includes would look like: Index Page- Saved as "Index.php" ><?php include("Pool/Header.php"); ?> My Front page , my website may not be big right now, but come back soon! <?php include("Pool/Footer.php"); ?> What the user then sees is: ><html> <head> <title>My Brand New Website</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="description" CONTENT="Jim Gurus Website"> <meta name="keywords" content="jim, guru, totalchoice, hosting"> </head> <body> <img src="Bigbanner.jpg"> My Front page , my website may not be big right now, but come back soon! <div align="center" class="text"> <font face="Times New Roman, Times, serif"> <img src="flag.jpg" width="79" height="75"> <b>© 2003 Proudly Produced By <a href="mailto:webmaster@jimgurusdomainname.com">Jim Guru</a> </b> </font> </div </body> </html> So now I have 2 files, which i can edit, and will change all my pages on the website. Maybe I would want to change the banner, or the meta tags, and rather then changing all the pages, i just change one! Other tricks with includes Page Variables You can pass variables on, e.g. page titles: ><?php $page_title="Jim Gurul"; include('header.php'); ?> where the header is: ><html> <head> <title> <?php echo $page_title; ?> </title> Paths You can put all your includes in a folder, like I do. I call mine "pool": ><?php include('../pool/header.php'); ?> Includes inside includes I am not going to show you an example here, but any bit of a coding you are including can include another include, and so forth. Although this may sound really complex its not!. Promise Overall Its difficult to comprehend how usefull these includes are, but thousands of people are using these nifty commands to save them time and effort and I urge you all to give them a try, as you will proberley wonder how you ever managed without them! Jim
-
Excellant. One little thing I would like to point out is that page 2 must be saved as a PHP file, otherwise it won't work. Normally I save everything in PHP to save hassle later Jim
-
Ah I see, I was thinking he wanted something far more complex then that. Thats me trying to hard again! Think I need more caffiene Jim
-
*Drools* Jim
-
Surefire, You could have: table.class1 as one css which you start to use for all tables. Then you suddenly realise that you want some tables to be displayed differently, so it means correctiong the HTML and making a new class. Sorry for the confusion! Jim
-
Caching, Not Refreshing, Cha,cha,cha...
TCH-JimE replied to alight's topic in CPanel and Site Maintenance
Alight, Whats your URL? And what should it look like? Silly question, you haven't accidently put the index page elsewhere by mistake have you? Jim -
Hi, I love it, its just annoying that the main AWSTAT does not include the subdomains. Does anyone know of way of showing the AWstat on a normal HTML page without the need to login to cpanel? Jim
-
Hi, Unfortuantley, all you can do is wait and politely email them. They should update them fairly reguarly although some take forever. This unfortuantley, nothing you can do about this apart from wait. Jim
-
Hi, Under TCH agreement, its your website, so you can do what you like. However, please note the bit in Mitch's post and if required, please refresh your memory on the TCH agreeement. Thanks Jim
-
Cartit Shopping Cart Help Needed
TCH-JimE replied to jtrai491's topic in Running your online business
Joe, That line of code will only clear the basket for you. I have looked through their "demo" and can confirm that you have all the right links in place which makes me wonder if its being referenced correctley (apart from that line above that is) Could you provide any light on what the "interal 500 errors" are? Jim -
Hi, All a domain name is, is another of saying IP address, just with words. Something must be pointing to this. It should be possible to point the MX NAME to your IP address on the server. I am assuming you must have a domain name for the current web address. This web address will have a MX name attacahed to it pointing to your server Nope we are not saying either of us is right, just trying to help I would leave this part to the tech guys. Correct. We dont answer unless we are sure. If you want me to hazzard a guess, I would say no it does not. Hope this helps you out a bit more! Jim
-
Hi, The only problem I had was getting the FTP to work. Once I done that, jobs a goodun'! jim
-
Cartit Shopping Cart Help Needed
TCH-JimE replied to jtrai491's topic in Running your online business
Hi, Change: http://www.keystone-embroidery.com/public_...i?command=empty To http://www.keystone-embroidery.com/cgi-bin...i?command=empty That cleared my "cart" then. For the rest, I cant help you as I dont have access to the manuls or anything or your account. From the page errors I am getting though I dont believe the paths are correct. Sorry! Jim
