www.webdeveloper.com

Search:

Type: Posts; User: hastx

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. There is no use to query member credits if the...

    There is no use to query member credits if the user id is not valid to begin with. So having it within your "if ($user_id != ''){..." condition, below the functions include seems correct (assuming...
  2. Replies
    4
    Views
    662

    The important thing to remember is not to...

    The important thing to remember is not to overcomplicate it...uploading a file in PHP is very simple and can be done in a few lines of code...it is actually more complicated adding security to it, so...
  3. Replies
    5
    Views
    1,310

    Post the script. Most of the time, this error is...

    Post the script. Most of the time, this error is generated by a redirect or die when you already echoed something to output.
  4. Replies
    3
    Views
    645

    If your goal is simply to check if an input is...

    If your goal is simply to check if an input is blank I would include the step within the sanitization itself like this:



    foreach($_POST as $key=>$val){
    if($val ==''){
    //flag it
    }else{...
  5. Replies
    3
    Views
    645

    Your enclosing "if" statement is saying only...

    Your enclosing "if" statement is saying only process the input "if" one of those fields is identical to blank...so unless one of the defined fields is in fact identical to blank, no code will be...
  6. Replies
    2
    Views
    569

    What happens when you run this code?

    What happens when you run this code?
  7. Replies
    1
    Views
    591

    As a default, PHP's file upload size limit is set...

    As a default, PHP's file upload size limit is set pretty small. You first have to decide what size of files you are going to allow to be uploaded and if they are very big, you might want to...
  8. Hold the form values in an array with blank...

    Hold the form values in an array with blank values. Then if the page has been posted load those values into the placeholders in the array.



    $frm_vals = array(
    'name'=>'',
    'addy'=>'',...
  9. Replies
    1
    Views
    690

    Honestly there are a lot of good hosts out there...

    Honestly there are a lot of good hosts out there and it completely depends on your bandwidth needed (if your "video product" involves streaming / downloading of video), and if there are any special...
  10. Replies
    1
    Views
    741

    Before risking re-inventing the wheel, have you...

    Before risking re-inventing the wheel, have you looked into seeing if someone already offers the info you need through an API? You might be able to retrieve channel listings and show lengths through...
  11. You just need to know what these different...

    You just need to know what these different machines are running...for example if you php server is Linux, and your remote server you wish to save the file to is Windows, you can mount the remote to a...
  12. Replies
    4
    Views
    1,628

    There are also frameworks like SLIM php that...

    There are also frameworks like SLIM php that offer easy ways to create "routing" rules. What is cool about this is it analyzes the URL path and routes the request to the script and can even disguise...
  13. Replies
    6
    Views
    624

    You could do an associative array, then use...

    You could do an associative array, then use extract();


    $list_day= array('checked0'=>'','checked1'=>'1','checked2'=>'2','checked3'=>'3');
    extract($list_day);


    This would automatically...
  14. Was this an interview for a web designer type...

    Was this an interview for a web designer type position? If he was trying to assess your distinction of the different web technologies...For that purpose I think he was probably looking for "no". Most...
  15. Replies
    1
    Views
    470

    First you have to understand that most sites...

    First you have to understand that most sites generate revenue through ads. With that in mind, just changing the ID in the url will take you to the full page of the site with the video in it so that...
  16. I like Lynda.com. I started learning PHP from...

    I like Lynda.com. I started learning PHP from there...good tuts.

    Breaking down OOP into a simple meaning is tough, but try this:

    Every program has tasks (for example get user credentials)...
  17. A LOT. In fact I would assume more than windows...

    A LOT. In fact I would assume more than windows on the global scope.

    I've run both platforms extensively...my company used windows exclusively when I started and I was plagued with patches,...
  18. Replies
    6
    Views
    788

    when your loop runs, it creates a bunch of inputs...

    when your loop runs, it creates a bunch of inputs all with the same name (invoice_details). This means that when the data is posted, the value of the last input of that name will be used.

    When...
  19. Nothing wrong with it. Sometimes people create...

    Nothing wrong with it. Sometimes people create version directories and then just create a script on the index page redirecting to the current version. This way you only need to update the current...
  20. Thread: json encode data

    by hastx
    Replies
    2
    Views
    611

    Also remember that json_encode() is fairly new...

    Also remember that json_encode() is fairly new and may not be included in your php install...i've ran into this a few times before, in which case there are some other functions and classes available...
  21. Replies
    2
    Views
    592

    I dont see any ID or class attributes in any of...

    I dont see any ID or class attributes in any of those link elements for the CSS to control. It looks like your include is working, you might post in the CSS forum to get the menu styling working.
  22. If your MySql DB is using case sensitive table...

    If your MySql DB is using case sensitive table and column names, you need to make sure to pass the appropriate column name filter...so if your column name is 'email' you need to do either:


    ...
  23. Replies
    2
    Views
    382

    do preg_match() on $html

    do preg_match() on $html
  24. Replies
    3
    Views
    374

    Thats not an easy question, but I think an easy...

    Thats not an easy question, but I think an easy way to implement a feature might be to have 2 tables (all users (lets call it 'users'), and one containing the users last activity time (lets call it...
  25. Replies
    2
    Views
    379

    I dont know of a single course to encompass all...

    I dont know of a single course to encompass all the technologies...my associates focus was in web technologies from the commuinity college here, but that is kind of generic encompassing many...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles