-
Posts
1,008 -
Joined
-
Last visited
Everything posted by surefire
-
>include("$todaysFile[$x]"); At first glance it appears that you're telling the server to look for a file named $todaysFile[$x] instead of the value of $todaysFile[$x]. I would guess this would work better include($todaysFile[$x]); or include $_SERVER['DOCUMENT_ROOT'].'/'.$todaysFile[$x];
-
I know... I played with it quite a bit and I have come to the conclusion, from testing, that it's your image. It could also be the way I sliced it, but I don't think so, based on the fact that most of the lines line up. If my css were off or if I sliced it incorrectly then all the lines would be off. I also just tested in Photoshop by cutting out the middle and squeezing the top and bottom together... same result. So, that's how I've concluded it's your image. I'm taking the page down now.
-
Webgyrl, Had a few minutes on my hands, so I decided to show you what they're referring to. I sliced your image up into three slices and create a very basic css-p layout. h**p://www.jackintheweb.com/TCHgoofoff/index1.php (I will take this page down eventually) It will expand to any size you want. And to take it a step further, if you want to use php includes you would do so like this. header.php ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- body { background: #01557C; margin: 0; padding: 0; } #main { margin: 0 auto; width: 780px; background: url(i/Bg.jpg) 50% top repeat-y; } #left { width: 230px; float: left; } #content { margin: 0 10px 0 30px; } #spacer { width: 1px; height: 250px; } #right { width: 490px; float: right; } #clearIt{ clear: both; width: 99%; } #header { background: #01557C url(i/Header.jpg) top left no-repeat; height: 332px; } #footer { background: #01557C url(i/Footer.jpg) top left no-repeat; height: 209px; } div{ /*border: solid 1px #000;*/ } --> </style> </head> <body> <div id="main"> <div id="header"></div> <div id="content"> <div id="left"> <p>Left Content</p> <p> </p> </div> <div id="right"> footer.php ></div> <div id="spacer"></div> <div id="clearIt"></div> </div> <div id="footer"></div> </div> </body> </html> and so on an example page... example.php ><?php include $_SERVER['DOCUMENT_ROOT'].'/dir/path/to/header.php'; ?> Hello World<br /> Here is my content <?php include $_SERVER['DOCUMENT_ROOT'].'/dir/path/to/footer.php'; ?>
-
Hmmm... well. Another way I saved my eyes was to upgrade from old style monitor to a nice big flat screen. So, maybe that's the difference.
-
I was reading a blog the other day and there was a reference to something called 'Clear Type'. I followed the link to the Microsoft site and read a little blurb about a neat trick to make text easier on the eyes. I have used it for the past several days and it has been so much easier to put in long hours. (I apologize in advance if I'm the last person surfing the internet to discover this. But I didn't see any posts regarding this.) If you have XP, you can try it in just a few steps: 1- Right click on desktop 2- Choose 'Properties' 3- Choose 'Appearance' 4- Click 'Effects' button in bottom right corner 5- Under 'Use the following method to smooth... yada yada', choose 'Clear Type' Click Ok, ok Enjoy. Last thing. You web developers out there might want to remember to view your websites with Clear Type off so you are sure to see it as most will see your site. AFAIK, XP defaults to Clear Type off, so it would seem that most don't know about it.
-
I know just about everyone has chimed in with opines on Firefox but I want to mention something that from what I've seen, has been left out. Whoahorse asked some questions about FF in regards to web design. First, there are very important differences in the way FF and IE interpret CSS layouts due to a bug in the way IE interprets the box model. If you want more info on this, Google 'box model hack' and prepare to find thousands of pages. Now, if you design in tables, this doesn't really affect you. But the more you get into CSS, the more important it is to look at your sites in multiple browsers. If you start using CSS-Positioning for your layouts (maybe you already have) then it's recommended that you design, test, and tweak in the more rigid (accurate) browser: Firefox or something non IE. Of course you want to view the site in IE too since 90-95% of the world still uses it, but it's easier IMHO to design for FF and verify in IE than the other way around. Finally, there is an amazing web developer extension for FF (if there's one for IE I've never seen it) that gives easy buttons on a toolbar for viewing CSS, outlining html elements, editing css on the fly, disabling features, and giving you information on cookies... just a ton of information that I don't know how I would ever live without. I especially like it when I find an interesting design and I want to find out how they did it. Note: It's not nice to copy, but researching for the sake of improving skills is different.
-
If you upload what's known as a phpinfo page you'll see information on all the bells and whistles that TCH has loaded with PHP and you'll see some of the default settings and whether PHP is installed as a cgi module or Apache module. (To hardcore server gurus out there, forgive me if I use slightly incorrect terminology) You create a phpinfo page by creating a three line fine like so ><?php phpinfo(); ?> Name it whatever.php, upload it, 'hit' it with your browser, and up comes all the details on your particular php install. Once you see what you need, I suggest you remove the file from your server... just in case. To the best of my knowledge, PHP runs as an apache module on most, if not all, TCH servers. But I don't have first hand knowledge to say this for a fact. But regardless, the relevant question is how it runs on YOUR server. I haven't run across many situations where it would benefit you to have PHP run as a cgi module.
-
It also seems that with Zen you get more frequent upgrades and revisions to the code. This is a positive thing in the sense that you have people actively tweaking the code on an ongoing basis. But it can be a negative from a maintenance/upkeep standpoint. Just depends on your outlook. OsCommerce seems to have been stuck at 2.2 milestone 2 for almost as long as IE has been stuck at version 6. Having said that, I think that the OsCommerce folks are in the middle of a complete rebuild of the code and that the next major release will be very different (in coding terms) than version 2.2 For more info, you can visit the progress reports at http://www.oscommerce.com/community/reports
-
The easiest thing to do is to become familiar with the tools Google provides for conversion tracking. They are intended to be free and easy to use. For the best tracking, you will need code that puts a harmless cookie on the user's computer and then checks it on certain pages to track leads and sales. Using awstats alone won't do the trick unless you're only interested in counting the number of people visiting your site off an ad. If that's the case you can make the actual link in your adwords ad something like: yoursite.com/adwordsLandingPage.htm?ad=1 If you get enough hits relative to other pages on your site, you'll see this url in the stats.
-
Depending on the use of the class, you might want to put it on Hotscripts and then request feedback from those that download your code. You could either make a big deal of your interest in feedback on your site, or in your source code, or both. You could also put it on phpclasses.org and in the source code and in your summary of the code put a request for feedback.
-
Thank you for that info. I didn't need to use it since an automated email was sent out as soon as I changed the the account info. Thanks.
-
I think I figured out step one... under Change Account. The text reads Would I be correct to believe that the person receiving the account can set up a transfer action from ANY registrar, not just TCH?
-
If I need to transfer a domain I own to someone who doesn't currently have an account (no existing website address anywhere) then how do I do it? >They purchased the domain >They don't currently have a domain name Is this the same as a normal transfer... or is the fact that ownership is changing relevant and I need to do something different?
-
Same question from a different perspective... will there be any notice given?
-
I use DW to write my code (most of the time). And DW is great at a lot of things. But it's not very good at 1) complex css and 2) ftp Someone else at TCH recommended FileZilla and I love it. I use it exclusively for file upload, editing, etc. If you set it up correctly, it's really not that big of an extra step.
-
How Did The Enclosed Site Shorten The Url For A Pa
surefire replied to rnmcd's topic in Open Discussion
They used .htaccess and mod rewrite to make it work. I know that doesn't tell you how it's done in a way that's useful... but if you do a search on mod rewrite in this forum or in google, you'll find plenty to read. It's pretty complex, but very cool stuff. -
Vulnerability In Jack's Formmail Script
surefire replied to MikeJ's topic in Software/Scripts/Other Alerts
TCH-MikeJ is absolutely correct. I'm the good Jack. Different dude. Thanks for being so on top of things. -
Poll - What Email Program Do You Use?
surefire replied to dlevens's topic in CPanel and Site Maintenance
I switched from Outlook four months ago and I'm not looking back! I tried Mail Washer with Outlook, and it's a great app, but I don't see the point of using Mail Washer with Thunderbird. Here's why: I find the spam filter cuts out spam like nothing I've ever seen. Plus... and this is big. The default setting is to NOT show images in your emails from remote locations... one of the primary methods used by spammers to know that a particular account viewed a message. There's a convenient button to view images for that email if you know it's safe. That's basically what Mail Washer does, shows you a preview of the email with images removed. Then you decide which is junk. The biggest difference that I see is that with Mail Washer the junk messages are deleted from the serer, not downloaded. But having a junk bin that I deleted every two weeks is worth not having to go through two steps every time I want to check email. Did I mention how much I love Thunderbird? -
Lars, IMHO, I think you should reconsider. I am in a similar situation and I think that you would do well to keep an account open at TCH. In addition to points already made, here are a few more: 1- In about 15 minutes of easy effort, you can set up a simple web server on your own computer and develop your code in bleeing edge php nightly builds, if you choose. I took a suggestion from an old post right here in the TCH forums and used Abyss web server. Free software from Appellium. Download Windows installer for php 5.0+... you're running php on your own computer. Perfect for development purposes. And saves bandwidth. 2- You sound like you're in business, not a hobbyist. I'd suggest that the worst number in business is one of anything. One client, one server, one employee, one way of finding new business... etc. This includes one hosting company. This has nothing to do with TCH... you are running a risk putting all your eggs in any one basket... regardless of the quality of the basket. So, even if you find a host that is 'better' than TCH in your opinion... you know that TCH is here to stay, helpful, client focused, and lots of other wonderful things. I would propose that paying twice the hosting fees is just a cost of doing business.
-
Wigoweb, boxturt... thank you for the thumbs up! As many will attest, I put my heart and soul into not just the code, but the support. As we all know, support can make or break a software purchasing experience. I'm here to help whether you're running the free version, or the paid version. Thank you all for your support.
-
In my experience, you're able to use any TTF font you upload.
-
For brevity and more flexibility going forward: ><?php $file_ar = array('fileSun.htm', 'fileMon.htm', 'fileTue.htm', 'fileWed.htm', 'fileThur.htm', 'fileFri.htm', 'fileSat.htm'); $weekday = date("w");/* 0=Sunday */ if(isset($file_ar[$weekday]) && $file_ar[$weekday] != '') { include( $_SERVER['DOCUMENT_ROOT'].'/'.$file_ar[$weekday]; } ?>
-
Uploading Files Via Http Using A Php Script
surefire replied to mangarevolution's topic in Scripting Talk
Raul, I think the variable they should be using is $_FILES From php website: -
Because I know that there are quite a few TCH members using my code, Ultimate Form Mail, I want to get the word out on an upgrade needed asap for the ioncube loaders that go with the script. Ioncube Loader for 4.3.10 If you use the code, free or paid, please add this loader to your server right away. About three days ago, php 4.3.10 was released, and while it's recommended to upgrade to 4.3.10, some features of php 5 slipped in and that made some things go goofy. I noticed this yesterday afternoon, (right after TCH upgraded to 4.3.10) and I worked feverishly to get a workaround. And when I recoded my script, I emailed everyone who has purchased a license. Since I don't have an email database of those that download the code for free, I'm trying to get the word out this way. Anyhow, I reacted as quickly as possible and had a solution even before Ioncube came out with the new and improved loader for 4.3.10 with all the fixes in. There was nothing wrong with my code... it's written well. For curious coders out there, it was an issue with foreach() loops inside of methods of classes (object oriented programming) when running on a server with Zend Optimizer... at least that's what I've been able to determine so far. So, under that situation, good, clean, well written code wouldn't work in encrypted form. If you wish to read more about this, you can visit the ioncube site, at the link above, or you can visit my site, where I support my work with free help and assistance.