www.webdeveloper.com

Search:

Type: Posts; User: LaffinToo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    3,351

    I think you will find the performance neglible....

    I think you will find the performance neglible.
    a switch/case & if/else will create code like


    move AX,VariableA
    compare AX, ConstantA
    jumpnotequal Compare2
    move ax, Data1
    ...
  2. Replies
    6
    Views
    1,242

    I repeat once more: WGET is a binary file not a...

    I repeat once more: WGET is a binary file not a php script, there is no way that command will work. The php binary only executes php scripts not native compiled applications
  3. You should be using yer DB's DATETIME/DATE/TIME...

    You should be using yer DB's DATETIME/DATE/TIME field types, making expressions with time easier. Your way, you will need to probably create a php function and check each record.
  4. Replies
    6
    Views
    1,242

    And just how do you expect PHP to execute wget? ...

    And just how do you expect PHP to execute wget?

    either use a php script with the php binary, or use wget binary files.

    if you need both either use exec within yer php script or use a shell...
  5. Replies
    13
    Views
    2,876

    1) Wolfshade, admit you are wrong. Because trying...

    1) Wolfshade, admit you are wrong. Because trying to salvage your OP is futile.
    Programming Languages refer to any language you can construct code with algorithms.

    By your definition, I couldnt...
  6. 1) yes a) glob("{$sn}*.jpg") b) serialize...

    1) yes
    a) glob("{$sn}*.jpg")
    b) serialize into db text field, unserialize on retrieval
    c) create a new table of images, which also has a field for which item they belong to in the products...
  7. Replies
    7
    Views
    1,006

    Nice Catch, yep $_GET is case sensitive

    Nice Catch, yep $_GET is case sensitive
  8. Actually it's fine the way he has it. the...

    Actually it's fine the way he has it.
    the whitespace does help in reading the code, but isn't necessary.
    changing to double quotes is not necessary, and probably is preferred, since there is no...
  9. Replies
    3
    Views
    711

    My vote for the bitwise operator.

    My vote for the bitwise operator.
  10. And how do you validate users?

    And how do you validate users?
  11. my vote is on he is the only one using yahoo.com...

    my vote is on he is the only one using yahoo.com

    if thats the case, have him provide you with a working html email in raw form, so you can see whats up
  12. Sounds like you want an FTP area, which would be...

    Sounds like you want an FTP area, which would be better suited to your situation.

    I wouldnt recommend this type of strategy for a novice to attempt in PHP, solely for security reasons.

    You...
  13. Replies
    7
    Views
    1,023

    select flats.id AS id, flats.name, ...

    select flats.id AS id, flats.name,
    periods.avdate AS avdate,
    avg(periods.price) as avgdayprice,
    sum(periods.price) as totalprice
    FROM flats LEFT JOIN
    periods ON...
  14. Replies
    7
    Views
    1,023

    it's called JOINs in mysql select flats.id AS...

    it's called JOINs in mysql

    select flats.id AS id, flats.name,
    periods.avdate AS avdate,
    periods.price
    FROM flats LEFT JOIN
    periods ON flats.id=periods.id_flat
    ...
  15. Replies
    7
    Views
    1,203

    This really all depends on your programming...

    This really all depends on your programming level.
    Java / C - Coders can pratically jump into php with little training on the basics, since they are similar programming languages. And can start on...
  16. Replies
    9
    Views
    2,841

    SELECT id FROM AlbumPhotos WHERE id=$idyou are...

    SELECT id FROM AlbumPhotos WHERE id=$idyou are only returning the id of that record, either add the other fields you need, or use * for all fields :)

    SELECT * FROM AlbumPhotos WHERE id=$id
  17. Replies
    9
    Views
    2,841

    if (isset($_GET['id']) &&...

    if (isset($_GET['id']) && preg_match('#^[0-9]+$#',$_GET['id'],$matches) {
    your missing a paren

    if (isset($_GET['id']) && preg_match('#^[0-9]+$#',$_GET['id'],$matches)) {
  18. Replies
    13
    Views
    3,623

    MD5 is 96 bits wide, SHA is 256 or 512, My...

    MD5 is 96 bits wide, SHA is 256 or 512,
    My statement still stands.
    LOL

    Also note, that if you allow an infinite amount of login attempts, than you should look at locking out that account until...
  19. Replies
    9
    Views
    2,841

    The ID is a numeric value, pulled from the...

    The ID is a numeric value, pulled from the database giving the Albums location within the database.
    the preg pattern
    #^[0-9]+$#
    # - Delimenter - marks start/end of pattern
    ^ - Start of string...
  20. Replies
    13
    Views
    3,623

    Thats a misconception as Collisions will happen...

    Thats a misconception as Collisions will happen in EVERY hashing system.
    It's like comparing md5 vs crc32 vs crc16.
    and crc checks are even done today.
    It would be ridiculous to use SHA on a 256...
  21. Replies
    9
    Views
    2,841

    In your first script change...

    In your first script
    change
    Photo_Gallery.php?id=' . $albumname
    to this

    Photo_Gallery.php?id=' . $id
    in your second script
    change this

    if (isset($_GET['id'])) {
  22. Replies
    13
    Views
    3,623

    http://lastpass.com (my favorite) I do agree...

    http://lastpass.com (my favorite)

    I do agree with many of the statements here. I think passwords with a salt should be sufficient security, as you will encounter plenty of other security holes to...
  23. Replies
    10
    Views
    1,757

    Form/Field was empty on submission, where is your...

    Form/Field was empty on submission, where is your validation of form fields?

    if you change this line
    $Stud_ID = $_POST['Stud_ID']; to
    $Stud_ID = 1;
    do you get expected results?
    if so check...
  24. Replies
    8
    Views
    1,539

    Like above said, the e parameter is used for...

    Like above said, the e parameter is used for evaluating php code, like eval does. So your routine will issue a warning/error as it cannot parse the string as php code. You should use...
  25. Replies
    8
    Views
    1,512

    Corrections: No, PHP can not be embedded into...

    Corrections:
    No, PHP can not be embedded into HTML
    HTML can be embedded into PHP, even if there is no PHP code in the HTML (You need the php tags to drop in and out of php code)

    ...
Results 1 to 25 of 34
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles