www.webdeveloper.com

Search:

Type: Posts; User: hastx

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: Class PHP

    by hastx
    Replies
    4
    Views
    956

    The first problem I see is that the first param...

    The first problem I see is that the first param of the "scrape()" function is looking for an array and you are passing a string...the second arguement, you are passing a string, but not enclosed in...
  2. Replies
    2
    Views
    1,321

    If you have already decided to use a "boxed"...

    If you have already decided to use a "boxed" platform such as drupal or word press, you dont really need to seek out PHP programmers...you just need someone with experience with the CMS you prefer....
  3. There is a class available HERE...

    There is a class available HERE that you can use to output a specific column to either an array of values, or comma separated string.

    Look in the commented out section of the the advanced example...
  4. That's too broad...it all depends on the type of...

    That's too broad...it all depends on the type of field and data to be validated. I would look up some tutorials, there are a bunch of free validation scripts available.
  5. Replies
    3
    Views
    2,270

    Thanks, that is a good option. The only problem...

    Thanks, that is a good option. The only problem is that this function only returns "authoritative" nameservers. In my case, I am querying an internal Windows DNS server to get internal computer names...
  6. Are all your quoted strings always going to end...

    Are all your quoted strings always going to end in '::cyt'?
  7. Replies
    2
    Views
    1,440

    Here is a class that deals with CSV files as an...

    Here is a class that deals with CSV files as an array of data and allows editing of the fields by a web form. I think it will do exactly what you are looking for:...
  8. Replies
    2
    Views
    2,319

    It's not very clear but I think this is closer to...

    It's not very clear but I think this is closer to what you are looking for



    $line = $_POST["name"] . ' ' . $_POST["email"] . "\n";
    file_put_contents("textfile.txt",$line,FILE_APPEND);
  9. Replies
    3
    Views
    2,270

    Get DNS server being queried

    I am using gethostbyname() to retreive the ip of a specific host...but what I want to do is display the nameserver being used to get the ip.

    The only way I can think to do this is by doing...
  10. 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...
  11. Replies
    4
    Views
    2,962

    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...
  12. Replies
    5
    Views
    2,406

    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.
  13. Replies
    3
    Views
    1,256

    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{...
  14. Replies
    3
    Views
    1,256

    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...
  15. Replies
    2
    Views
    850

    What happens when you run this code?

    What happens when you run this code?
  16. Replies
    1
    Views
    1,088

    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...
  17. Replies
    1
    Views
    1,385

    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'=>'',...
  18. Replies
    1
    Views
    1,148

    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...
  19. Replies
    1
    Views
    1,338

    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...
  20. 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...
  21. Replies
    4
    Views
    3,701

    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...
  22. Replies
    6
    Views
    1,103

    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...
  23. 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...
  24. Replies
    1
    Views
    763

    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...
  25. 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)...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles