Search results

  1. L

    Unsuspension?

    I've not been on the forums for a while, am I able to get my site put back up if I start posting again?
  2. L

    form validation w/Javascript

    I'm sure you proberly know this but i'm just checking, make sure you have other validation on your website and don't rely on javascript. You can easily get around it and/or simply disable it.
  3. L

    include function

    If the include() function is disabled you could possibly use the require() or require_once() function? Just a suggestion..
  4. L

    Type of python usable?

    Thanks, would you happen to know what kind of time period it will be until this happens? thanks, Luke
  5. L

    Anybody need a little bit of quick php done?

    Nothing really, if you want to give something in return that is also fine. And I can help witih a login form, do you need it to be connected to a user database? What page will it need to rediect your site to once logged in? And lastly i'm assuming you would like this done in php, are you going...
  6. L

    Auto down counter

    Have you created the file 'num.inc' and made the chmod 755? Cause its acting as if the file does not exist.
  7. L

    Auto down counter

    FormToEmail.php - <?php //One less stock function. function onelessstock() { //Set file. $file = "num.inc"; //Make file handle, read. $fh = fopen($file, "r"); //Read file. $num = fread($fh, filesize($file)); //Close file. fclose($fh)...
  8. L

    Auto down counter

    Ok I think I finally got this worked out, please tell me if anything goes wrong so I can fix it, your files are below and you will have to create a file called 'num.inc' with the number of stock you have in the file and upload it. The file 'num.inc' will also have to be chmodded to 755 so that...
  9. L

    Auto down counter

    To do that you'll have to make the page a .php page or use ajax to make the request to get the value, are you willing to change the file from buy.html to buy.php or would you prefer that it stays .html.
  10. L

    Anybody need a little bit of quick php done?

    I'm rather bored right now and just wanted to know if anybody needs anything quick/simple done in php cause i'm up for a bit of a challenge and am in a programming mood.
  11. L

    Auto down counter

    Ah, beat me to it, I don't think this will quite work I may be wrong though, becauseyou open $stock with fgets() but you never turn it into an integer so you can't run $stock--; first you would need a line like: $stock = (int) $stock; That would make the $stock into an integer and it can be...
  12. L

    Auto down counter

    Okie, thanks for that i'll see what I can do.
  13. L

    Auto down counter

    You said once the contact has been sent they are redirected to another page, what is this page?
  14. L

    PHP message upload.

    Thankyou, glad I could help.
  15. L

    PHP message upload.

    Ah man i'm dumb, I think I found it, I just misspelt a word. <?php //Email function. function send_email($name, $comment) { //Set vars. $to = "person@email.com"; $subject = "Image uploaded by " . $name; $message = "An image has been uploaded, the details are below.\n\nName: "...
  16. L

    PHP message upload.

    Ok I have made it so it sends you an email after they have uploaded an image, if you need more information in the email or anything please just say and I'll fix it, you replace person@email.com with your email address. upload_file.php - <?php //Email function. function send_email($name...
  17. L

    PHP message upload.

    That doesn't sound too hard, can you paste the image upload script here or PM it to me so that I can take a look at it and modify it?
  18. L

    PHP MySQL Question..

    That should work but if he can't add a value into the table wouldn't it be easier to just md5 it for the url, for example. profile.php?id={md5($row_search[0])} That would at least give some kind of security and then they could just compare the md5 on the next page like. if($_GET['id'] ==...
  19. L

    javascript and external javascript files problem

    If you have php enabled on the site you are trying to do this on you can simple replace the .html at the end and put a .php and then the following will work. Instead of using <script src="thescript.js" ></script> you can add <?php include "ads.inc"; ?> And then in the same directory just add...
  20. L

    Type of python usable?

    Well I first tried just leaving a blank directory so I could see the extensions down the bottom, e.g apache 2.2, mod_ssl and that stuff but I couldn't see mod_python but I tried anyways, making a .htaccess file containing the following: AddHandler mod_python .psp PythonHandler mod_python.psp...
Top