Everything posted by Jem
-
Will i need a SSL for this site?
Using SSL is not going to prevent the shop from being hacked. Suggesting this is quite misleading IMO.
-
PHP contact form XHTML strict
Sorry, I wasn't specific, I meant what's the mail provider of the recipient address; e.g. gmail, yahoo, or through your own domain (which I guess is what you're saying ) I ask because it's easy to whitelist certain incoming mail through some providers. If you're having these mails sent to an account hosted through your domain, is SpamAssassin enabled on the account?
-
PHP contact form XHTML strict
It happens sometimes. I need more details - what mail provider are you using?
-
PHP - Im confused!
No, that's perfectly fine.
-
Server-side validation neccesary?
Hehe, it's ok, I'm only messing
-
PHP contact form XHTML strict
You seem to have already put the code into contact.php? As long as I have that right, it will work from there
-
PHP contact form XHTML strict
You won't see PHP when you view source because it's parsed before it reaches the browser - that means that PHP is doing its job I've just had a look at your contact.php and it still says mail_form_v2.php in the form: <form action="mail_form_v2.php" method="post"> This needs changing to: <form action="contact.php" method="post">
-
Captcha not showing in register page
PHP is processed by the server before it reaches the browser - that means the files you've linked to are of no use to us whatsoever. Anyway, captcha issues are normally down to not having the right PHP graphics library.
-
Tutorial - Creating a PHP contact form
I was going to link you to Chris Shiftlett's article on it yesterday but every time I went to his blog it tried to show me any other blog entry than the one I wanted. Sorry I couldn't back that up with a little more background data Glad you found the info though.
-
Tutorial - Creating a PHP contact form
Two suggestions: 1) use mysql_real_escape_string() instead of addslashes 2) sanitise the IP as well - certain parts of $_SERVER are just as manipulatable as $_POST/etc
-
SQL Databases
I don't have an installed copy of Joomla to hand to answer the first one, but a bespoke e-commerce solution with over 1000 products (and 10 different price lists stacking up over 10k records; cart details at over 14k records) that I made for a work client is only using 2MB. Another example... my 7 year old blog with over 18,000 comments and nearly 1,000 entries is only using about 10MB. Most hosts offer multiple GB of database space. That's quite a lot
-
im going to shoot myself
If the make and model are going in, it sounds like if (strrpos($theData, "£") === false ) { is always reporting false. Your echo "hello"; - does that ever echo hello?
-
Server-side validation neccesary?
Are you asking which should you use out of htmlspecialchars and strip_tags? Both. strip_tags first to get rid of any html, then htmlspecialchars to deal with any left over stray characters ( < > & etc). If you're working with a database you should also use mysql_real_escape_string (or prepared statements). With regards to other common attacks, I have some good bookmarks here: http://delicious.com/jemjabella/security Ps. less of the 'chaps' if you don't mind
-
Is PHP installed - phpinfo()?
Again, the OP did state that it's not just phpinfo() not working. If PHP isn't set up properly the PHP version will display in cpanel but it doesn't necessarily mean anything. Jo needs to get in touch with his/her host.
-
Is PHP installed - phpinfo()?
This was specified in the first post
-
Server-side validation neccesary?
I think you're referring to the XSS cheat sheet: http://ha.ckers.org/xss.html And yes, they're "just" alerts - but the point with the cheat sheet is that if the alert works, so will other more malicious input.
-
how to do a dinamic webpage?
With all due respect, your first post shows you clearly have very little grasp on the time, effort and work involved in creating a CMS or the skill that it takes. You almost sum it up as if it's something you can chuck up in half an hour. I think unless you're prepared to realise the work that this is going to take you, you're better off with a packaged solution. With that said, I agree with Ben. Start with HTML and CSS. Once you've got that down, you want to learn PHP and basic MySQL syntax. You'll need to think about security a lot, too.
-
Is PHP installed - phpinfo()?
Change it to <?php phpinfo(); ?> in case short tags is turned off but yes, generally when you're asked if you want to save, PHP is not running/working.
-
how to do a dinamic webpage?
I think you're better off downloading a script - try WordPress
-
Contact form
You say it doesn't work - what's it doing/not doing? I've had a look at the form and it's very basic - no validation/sanitisation of data and no protection from spam. I am biased (of course) but I do recommend my own form: http://www.jemjabella.co.uk/scripts/free-php-mail-form In terms of learning PHP, I started with PHP 5 for Dummies. Although it's older now, it's still a good resource and would recommend checking it out if you can find it second hand/cheap.
-
Which is the best practice ?
Worrying about micro-optimisations normally detract attention from the bigger picture. If your app is so big that the fraction of a second saved by using a comma over "." is important, this probably isn't the forum to be asking questions on.
-
Google stopped indexing my Wordpress blog?
http://www.google.co.uk/search?q=site%3Anews.limobroker.co.uk It looks fine to me?
-
Problems registering on our forum (PHP related)
First make sure you're running the latest version of phpbb. If you're still having problems after that, you're more likely to get the answer from the phpbb site forums than here.
-
Which is the best practice ?
Even better: don't mix excess HTML and PHP: // break out of PHP ?> <tr> <td class="row"><?php echo $mysqlvalue; ?></td> </tr> <?php // and we're back again...
-
Server-side validation neccesary?
If the validation is JavaScript (jQuery), then it's client side validation & not server side. Just because you're sending the data through your form using a jQuery $.ajax request doesn't mean the form is unsubmittable with JS disabled - I could, for example, still create a form on my own site and POST data to your data processing script bypassing all client-side validation. Always validate data.