Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by surefire

  1. I'm confused... You're saying that I may or may not have to share an IP among my own websites depending on whether I was the first of four accounts on a semi dedicated or if I was the last? I want to make an educated decision as to whether to host my numerous website accounts individually on shared servers or whether I should host them all on a semidedicated. Thanks in advance for any assistance with this decision.
  2. dsdemmin: Here is the answer to your question. Starting at approximately line 165 you will see this: And you can change it to this: There are three lines in bold that I added to make your suggestion work. Basically, it tells the server, "If this field was left blank then skip it and move on to the next variable in the loop." I've tested it out on my own site and works fine. Never thought of it before until you mentioned it.
  3. Hello again... Glad to see this script is working well for most of you. I can only take credit for the minor modifications. Anyhow, someone pointed out a line of code that I had neglected to delete from the script. My apologies. I hate to repost the entire script again... but I want to put up a copy that is free of unnecessary lines of code I added. So here it is: ***Special Note*** When you copy this script you MUST make sure that the text editor doesn't artificially wrap longer lines of code onto the next line. I've rewritten the code to try to make sure that this won't be an issue... but your best bet is a text editor like NotePad that will stretch the code as long as required. WordPad is an example of a text editor that you should NOT use because it will cut long lines of code into several lines and could change the way the server reads the PHP code. Also... make sure that the code starts at the very top of you file. In other words, there can't be a blank line before <?php If you do, then you'll get a message that says Unable To Send Headers on Line 373... or something very similar. ***End Notes*** I created additional comments in bold... some of which are redundant and obvious... but I want this to work for anyone who tries it. I'll go over the steps again in more detail: Copy and paste the script above into a text editor (NotePad strongly recommended. Avoid WordPad and other editors like Word that break long lines of code into several lines.) Read the comments in the first 1/3 of the script and replace all instances of 'yoursite.com' with your actual url I highly recommend that you create a 'Thank you' page that your visitor sees after they submit the form successfully Let's say you name the thank you page "thanks.htm" FTP this page to your public html dir Somewhere near line 50 is a line that reads: $redirect = "http://www.yoursite.com/thanks.php"; Change this to point to the location of your Thankyou page. Save your text file and name it whatever you want but make sure it ends with .php file extension (Example sendit.php) Create a folder on your website (I put the folder in the public html dir... but not necessary) I usually name this folder phpbin... but name it whatever you like FTP this script (sendit.php or whatever.php) to the folder you just created Open up any existing form on your site in a text editor or whatever you use to code html Direct the form to post to this script that you created (Should look something like: <form name="your_form" method="post" action="/phpbin/sendit.php"> You do NOT need hidden inputs in your form as you did with FormMail.cgi (recipient, referer, etc... not needed) You can add a hidden input for "required" if you want certain fields required (Ex: <input name="required" type="hidden" id="required" value="email, first_name, phone"> ) I made these directions as detailed as possible, but you'll find that it's a lot quicker to do this than it may appear. It's really quite easy and should work right off the bat after you change just six or seven lines of code. In fact, I could rewrite it for the group so that you only have to change one line of code to have it work for your site. Either way, it's pretty easy to use, so I'm more than happy to help anyone with this... although it appears that there are plenty of people that can help out on this forum. If you're not a coder and PHP is foreign to you, then this script might seem confusing. Just follow the instructions and read the comments in the script (indicated by //) and everything should work for you. One last thing, you can change the $banlist array to contain any emails or urls that you don't want. So if you decide you don't want any hotmail or yahoo emails, you can ban them right in the script. Be aware that this will turn some people off... but sometimes it's worth it... use your best judgement and tell your visitor what email addresses will not work with your form. Hope this helps.
  4. Hello everyone... I have an option that has been working for me for several months. I was previously with another hosting company that forbid the use of FormMail many months ago. I came across a PHP script that is written to take the same form inputs (hidden inputs) that FormMail uses. After months of studying and using PHP, I've learned several ways to make this script even more secure... Here's the final product of my work: Ok... the first thing you'll notice is that the original work is not mine... I revamped a script that you can find here: Jack's Formmail The original script is really good, but I had two main complaints 1- Security still too lax 2- I wanted the recipient email address embedded in the code so I wouldn't have to expose it in my html on the form. The security hole was fixed with a patch from www.toms-world.org but apparently the links to this patch don't work anymore... but the patch is included in the above script. The recipient email address was brought inside the form so that now you change the script for your particular site by replacing "yoursite.com" with your actual site url. To use this script, do the following: Copy the script to a text editor Change all instances of "yoursite.com" to your actual url Save it as something.php (example: sendit.php) Create a folder in your website for this script (example: phpbin) FTP the script to the folder Create your form and POST the form to the script you just created Create a thank you page for the visitor to see after they post the form... name it whatever you want, but you have to change the part in the script that redirects the visitor to a thanks.php page That's it. You can also create a hidden input field in your form to 'require' certain inputs... just like FormMail.cgi I sincerely hope this helps... I've used this script for months and it works perfectly. In addition, most hackers are looking for FormMail.cgi so just changing the name of the script to somethingelse.php is a step towards security.
  5. I'm considering moving several of my sites to a semi-dedicated server. I have two questions: 1-Will the sites be on the same IP address or will they be different? 2-If different, to what degree? Class C block or better? In other words 255.255.xxx.255 where x is the Class c Block Thanks
  6. Hot Scripts Comment: Why reinvent the wheel when there are so many free scripts out there? PHP/ ASP/ JSP/ ColdFusion/ XML/ etc. HotScripts Zone Alarm Comment: Especially if you have DSL or cable modem, you don't want people accessing your own computer. Software for your computer Zone Alarm Power Archiver Comment: Great for compressing and also unzipping all sorts of files, not just .zip... but dozens of formats. Software for your computer Power Archiver FTP Surfer Comment: Very easy to use, free. I like the drag and drop features similar to Windows Explorer. (But plenty of good ftp clients out there) Software for your computer FTP Surfer
  7. This may not really answer your exact question but as a PHP coder, I thought I could add my two cents. I also use Dreamweaver MX for design... but not for writing php. I've attempted to use Dreamweaver to write php code but it doesn't accomplish the task very well. The more involved you get with PHP, (or any server side code) the more likely you'll need to learn to code by hand. The good news is that you can very quickly cut and paste your past code into new pages and you're off and running. I use a php 'class' that I cut and paste into pages that will connect to a database. The second thing I would suggest (and you may have done this already) would be to upload a copy of phpMyAdmin. It's a fantastic way to manage your mysql database, add tables, perform queries, etc. I'd protect the directory (folder) where you install it with a password (.htaccess). Once you have phpMyAdmin installed, you can access your database and run queries from any internet connection (thus the secrurity steps I mentioned previously). You can download phpmyadmin here: phpmyadmin page It's hard to talk about this stuff without throwing tons of jargon around. Hope this helps a little.
  8. I just today signed up with TCH but looking at the php info page, it clearly says "-with pear-" in the compile details at the top of the page. See for yourself at TCH Info page I'll tell you something else that I noticed... As a webdesigner that uses a ton of php and mysql, I was pleasantly surprised to see that TCH has compiled PHP with all the fun goodies that I was missing at my old hosting provider: XSLT Pear (at least it appears to be included) Zend Optimizer GD And you can run cron jobs (automatic execution of certain scripts) To me, this is HUGE! In about 24-48 hours, I could give you a definitive answer. Hope this helps a little.
  • Create New...