www.webdeveloper.com

Search:

Type: Posts; User: bokeh

Page 1 of 5 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    338
    Views
    97,373

    You need to start a new thread and post all your...

    You need to start a new thread and post all your code. Switch on error reporting on the server that doesn't work. If it all works on you windows server but not on another it is probably a permissions...
  2. Replies
    338
    Views
    97,373

    Something like this: function...

    Something like this:

    function ResizeToAspectRatio($source, $destination = NULL, $longside = 800, $as = NULL)
    {
    $as = $as?$as:4/3; // default aspect ratio (4/3)
    $as = ($as < 1) ? 1 : $as;...
  3. Replies
    338
    Views
    97,373

    How do you want to resize?

    How do you want to resize?
  4. Replies
    338
    Views
    97,373

    What email notification? Looks like you need to...

    What email notification? Looks like you need to start another thread because what you are asking is not related.
  5. Replies
    338
    Views
    97,373

    Nothing complicated about PHP. ...

    Nothing complicated about PHP.


    $uploadFilename = $_FILES[$fieldname]['name'];
  6. Replies
    338
    Views
    97,373

    Allowing people to decide the file name is a...

    Allowing people to decide the file name is a major security risk.
  7. Replies
    338
    Views
    97,373

    That code was just an example of one way to name...

    That code was just an example of one way to name a file so there weren't collisions. If you want to call a file something specific just write it into your code.


    $uploadFilename =...
  8. Replies
    3
    Views
    633

    Man I suck. When I grow up I want to become a...

    Man I suck. When I grow up I want to become a real web developer.

    What about the tabs? Am I missing some glaring shortcut there too? I don't often do coding any more so I'm a bit out of touch.
  9. Replies
    3
    Views
    633

    Checkbox not checking

    I've got a checkbox in an li element. I put an onclick on the li element to toggle the checkbox. This works fine if I am over the li element but not over the checkbox. But if I am over the checkbox...
  10. Thread: Maths question

    by bokeh
    Replies
    3
    Views
    515

    min( abs($diff % 360), 360 - abs($diff % 360)...

    min( abs($diff &#37; 360), 360 - abs($diff % 360) );Thanks NogDog. That's a percent sign isn't it?
  11. Thread: Maths question

    by bokeh
    Replies
    3
    Views
    515

    Maths question

    Trying to work out a simple way to do this. For a circle I've got to work out if one position is within 3 degrees of another. I want to do this with maths, not PHP built in functions.
    $pos1 = 3;...
  12. Replies
    338
    Views
    97,373

    That's a Javascript issue. You could do it like...

    That's a Javascript issue. You could do it like vBulletin, i.e. do the upload in a separate window.
  13. You should be using a database specific function...

    You should be using a database specific function like mysqli_real_escape_string(), not addslashes. Also if you end up with 1\/2 after using stripslashes that means you started with 1\\/2, i.e. 2...
  14. Replies
    338
    Views
    97,373

    Echo this query and check it for syntax

    Echo this query and check it for syntax
    <?php

    # Assuming image1, etc accept null values you could try something like this... Not tested

    #set some variables
    $query_part_1 = '';
    $query_part_2...
  15. Replies
    338
    Views
    97,373

    Post the bit of code that is building the query.

    Post the bit of code that is building the query.
  16. Replies
    338
    Views
    97,373

    Save the upload date in your DB and every so...

    Save the upload date in your DB and every so often delete the ones older than a certain age. Could be set up as a cron job.
  17. Replies
    1
    Views
    814

    Suggestions on side-menu order

    The site owner can add new pages via content management system.
    Once the page is created a new link automatically appears in the side-menu.
    Because this is CMS the side-menu built purely based on...
  18. Replies
    11
    Views
    1,517

    Still not clear. What variable is not an array?...

    Still not clear. What variable is not an array? If it is $data and you are only requesting one field it is not going to be an array.
  19. Replies
    11
    Views
    1,517

    You need to take a look at your zip code class...

    You need to take a look at your zip code class and find out why it is returning a float when you are expecting an array.
  20. Replies
    11
    Views
    1,517

    Do a var_dump($zips) to find out what the data...

    Do a var_dump($zips) to find out what the data type is and what it contains.
  21. I just get a parse error from the link.

    I just get a parse error from the link.
  22. Probably a register globals issue. Where is $p...

    Probably a register globals issue. Where is $p being set?
  23. Replies
    16
    Views
    3,080

    What do you think is controlling the demo?

    What do you think is controlling the demo?
  24. Replies
    12
    Views
    1,571

    Dude, if you're just running Apache you can only...

    Dude, if you're just running Apache you can only serve static pages. Pages with query strings need to be processed by a scripting language.
  25. Replies
    12
    Views
    1,571

    If you are not using any rewrite function on your...

    If you are not using any rewrite function on your current server why would you need to with Apache?
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles