Jump to content

OJB

Members
  • Content Count

    362
  • Joined

  • Last visited

Everything posted by OJB

  1. I too use IPB, but I am running an older version which back in the day was free of charge. It is no longer available (but there are still a few developers who patch it if/when vulnerabilities are found)... SMF is Simple Machines Forum . It is a very simple and easy to use forum. I installed it once as a test, it was pretty straight forward, but having used IPB for like 6 or so years I am far more comfortable with that. You will find loyal customers for all forums, equally you will find disgruntled ones too. There are loads of forums out there, but if you are inexperienced with forums
  2. Glad you got it working. With the migration to the a new server the IP does change because the server is located in a physically different location... If you connect to your FTP using: ftp.yourdomainname.ext (ext being.com .co.uk .net etc etc) then this would resolve to the servers new IP without any change from you...
  3. Is there any reason why you are validating with Javascript? Not saying it is necessarily a bad thing to do but you can quite easily disable javascript in your browser and hence bypass all your error checking. Does the script even manage to get to RegSubmit2.php? Have you tried: print_r($_POST); at the top of RegSubmit2.php? That will print out the $_POST array so you can analyse if anything has been set. If you are not getting to the second PHP file then there is either a problem with the JS validations. I would recommend putting a bunch of alerts in your JS to f
  4. What happens once the form is posted? I can't see how entering an email would cause a 406 error when submitting a form. If you have any source code then maybe PM it to me and I will have a look and see what is happening.
  5. I don't know in that much details sorry.. have a look here as this might help: http://httpd.apache.org/docs/2.0/bind.html
  6. some PHP versions are fussy with using shorttags make sure your: <? echo date("Y"); ?> is actually <?php echo data('Y'); ?> Also, if you are running on your local machine there is no need to use IIS (which is very complicated), unless of course you have a windows box at TCH Just use apache, download XAMPP as that has PHP, MySQL, Apache and a bunch of other things bundled in to it and it has a nice simple to use installer. The majority of boxes at TCH are linux boxes, hence use apache, so use apache instead on your home machine unless as I say you have an II
  7. That seems like a slightly insecure method of doing it. Setting your file to nobody and 777 means that is could potentially be modified by an external source. I have just checked and using SmartFTP you can change the modified and created dates of an uploaded file... try looking into getting SmartFTP - there is a 30 day trial, but it costs for the full version, however I think it was worth it.
  8. This error means that the values you are seeking (i.e. userFirstName, userLastName etc) do not exist in the $_REQUEST array. How are you sending data? Try this at the top of your code: >print_r($_REQUEST); that will print out the $_REQUEST array and show you what keys have what values (if any). Are you posting from a form to this script? If so you need to verify the names of your input fields in the form and ensure they match the keys you are seeking in the $_REQUEST array I would also use the $_POST array instead of the $_REQUEST array if you are getting data posted fro
  9. This may be a completely incorrect thing to say, not sure about FTP ports etc but does this not work: 69.66.218.208:6000 I know things like SSH access use that sort of syntax for ports and IP addresses.
  10. This has happened to me twice now. Once from FTP connections and one from CPanel log ins. Can I just ask do the numbers add up over time? If so, are they ever flushed (like on a monthly basis) or do they continuously to add up?
  11. Most frameworks (such as CakePHP which I have used various times) just require uploading the files in the root directory of your site or in a sub-domain.... I have cake running on one of my sites.
  12. ^^^ Having just checked, it appears I got it confused. preg_replace is quicker when you are doing complex things like regular expressions pattern matching and replacement, for a simple character change in a string str_replace is just as quick if not quicker. So you can use all of the methods mentioned... apologies for confusing the matter...
  13. I would say don't use str_replace... it is pretty slow in comparison to other functions. Just use the built in mysql_real_escape_string($string_to_escape) when saving to the db. If they are returning slashes then use stripslashes($string_to_strip) or even preg_replace("/\\\'/","'", $string_to_strip); - preg_replace is much quicker than str_replace and much more efficient. Edit: missed off a backslashes from the regular expression in preg_replace also... just to show you how they work: give these a go: ><?php // String with slash $string = "Paul\'s famous pa
  14. If you are a coder, then look into the GD library for PHP. It has image resizing methods built within it.
  15. It always best to be safe and change your login details, but it is more than likely that your account HASN'T been compromised but rather your email address has been spoofed. Meaning someone has sent mail 'claiming' to be from you, but really it is originating somewhere else. There quite frankly is nothing you can do about this, except make sure your email address isn't written in plain text on any websites. If you have to display your email address on a site then either: 1) encode your email address by using something like this: http://www.wbwip.com/wbw/emailencoder.html and then put the e
  16. Hey I was recently made redundant (sad times I know!) but as part of a job interview I have been asked to prepare a web site before hand. The task itself is pretty simple (I hope) but they are requesting a 'URL to login and see the database (e.g. with phpmyadmin)' so they can inspect my database design skills and table names etc. Is this possible through CPanel? I'd rather not have to do this, but I need the job haha. What's the best approach to this? Cheers, OJB
  17. What is it you are trying to do, there may be other ways to do it in PHP?
  18. On a shared host you cannot have a second domain pointing to different content than your base domain. So if you current one points to (for arguments sake) /movies you cannot buy another domain and point it to /bluray. To do this as Bruce said you will require either a separate shared hosting account or a reseller account As for your FTP question. Yes you can lock an FTP account to a specified folder, so they wouldn't be able to gain access to your other files.
  19. 3 spam messages man, I get roughly 50 a day on my site. My spamproof method is to force all new members to have their first 2 posts moderated. Once 2 posts have been approved they upgrade to a full member account with posting privileges. It works perfectly in the sense that NO spam ever reaches the public eyes, but its annoying having to clean out 50 posts a day (at least) of filthy I AM A SPAMMER and **** adverts!!! This is with IPB, so I dont know if this can be done with SMF.
  20. does the laptop boot up (even if the screen is off)? if not then it MAY be faulty RAM
  21. checkout http://www.hotscripts.com/PHP/index.html there will probably be something there Or you can code your own. I have done one myself in the past which can be used to store the file both on the filesystem and also save it in the db.
  22. If you are a competent coder there are APIs for online payment processors. I personally have integrated two sites... one with paypal and one with protx... the good thing about paypal is you dont require an SSL certificate and its pretty easy and everyone knows who paypal are... but they do take a chunk of your cash Protx was pretty simple too but you do require an SSL certificate....
  23. Luckily I have never received one of these... maybe because I hide my personal details from the whois?
  24. No problemo, glad you got it sorted. Good luck with the site!
  25. Sure By adding [] to the end of the name you are not creating a single element called MBS-Services-of-Interest anymore, you are creating an array called MBS-Services-of-Interest So when you were selecting multiple options before if would only be able to store one of them as MBS-Services-of-Interest and would overwrite any other selections, now instead it can store as many elements as you require.. so it will be MBS-Services-of-Interest[0] = 'first choice' MBS-Services-of-Interest[1] = 'second choice' and so on...
×
×
  • Create New...