CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rogernem

Page 1 of 8 1 2 3 4

Search: Search took 0.03 seconds.

  1. PHP php to read information from IIS - IIsWebServer class

    In C# I can use the following to get information from the IIS Server Object
    DirectoryEntry entry = new DirectoryEntry("IIS://" + server + "/W3SVC", "user", "pass");

    In VBS I can use the following...
  2. Replies
    1
    Views
    591

    PHP Problem with variable being cast to int

    I get a float value from a xml file and I assign this value to a variable

    $value = 13.80;

    When I do number_format($value,2,".",","); I get NULL. Any ideas why?

    When I try echo empty($value)...
  3. Replies
    5
    Views
    1,652

    PHP Re: strlen returning not expected results

    Perfect. Thanks so much for clarifying.
  4. Replies
    5
    Views
    1,652

    PHP Re: strlen returning not expected results

    actually mbstrings are not the problem.

    so strlen actually counts the number of bytes of a certain character instead the character itself?
    Because the manual doesn´t make that clear

    strlen...
  5. Replies
    5
    Views
    1,652

    PHP strlen returning not expected results

    header("Content-type: text/html; charset=UTF-8");
    ini_set('mbstring.internal_encoding', 'UTF-8');

    $data = '$1�2';
    echo strlen($data);


    Instead of 6 I am getting 9. Can someone explain...
  6. Replies
    3
    Views
    938

    Re: How to: distinct count

    how?
  7. Replies
    3
    Views
    938

    How to: distinct count

    I have a table (SHOPS) as follows:

    ID | PRODUCT | QTY
    1 | 5 | 1
    2 | 5 | 1
    3 | 5 | 2
    4 | 10 | 3
    5 | 12 | 1 ...
  8. PHP Send emails via localhost and receive them at the same server

    I know I can send emails via localhost with PHP



    $to = \"somebody@example.com, somebodyelse@example.com\";
    $subject = \"HTML email\";
    $message = \"<html>TEST</html>\";
    $headers =...
  9. Replies
    1
    Views
    1,410

    INNER JOIN - Is it possible?!

    There are sites that are hosted at several servers. Therefore I have 2 tables in my database as follows:

    DB SERVERS
    ----------------
    ID_SV - primary key
    NAME

    DB data:
    1 BRSev1
    2...
  10. Thread: CakePHP

    by rogernem
    Replies
    0
    Views
    565

    CakePHP

    Cake works routing things as
    Router::connect('/', array('controller' => 'MYCONTROLLER', 'action'=> 'MYACTION'));

    So I´d access it typing www.site.com/MYCONTROLLER/MYACTOIN

    What I need is to...
  11. Replies
    1
    Views
    718

    UPDATE with array

    I have a form like this:


    <form id="form1" name="form1" method="post" action="">
    <input type="checkbox" name="checkbox[]" id="checkbox[]" value="1" /> Item 1
    <input type="checkbox"...
  12. Replies
    6
    Views
    657

    Re: Post 2 arrays and combine them

    Thanks.

    This is my final code


    $checkboxes = array();
    $i=0;
    foreach ($_POST['myCheckbox'] as $index => $checkbox) {
    if(!empty($_POST['fone'][$index])){
    $checkboxes[$i] =...
  13. Replies
    6
    Views
    657

    Re: Post 2 arrays and combine them

    This was what I did:



    $checkboxes = array();
    foreach ($_POST['myCheckbox'] as $index => $checkbox) {
    $checkboxes[$index] = $checkbox.",".$_POST['fone'][$index];
    }
    ...
  14. Replies
    6
    Views
    657

    Re: Post 2 arrays and combine them

    that just gives me Array ( [0] => 4 [1] => 1 [2] => 2 [3] => 3 ) but where are the phone values?
    See?

    I´d need something like this:

    Array ( [0] => 4, 8765-8976 [1] => 1, 333-2222 [2] => 2,...
  15. Replies
    6
    Views
    657

    Post 2 arrays and combine them

    I have a form like the following



    <form action="" method="post" name="fcds">
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>TYPE</td>
    <td>PHONE</td>
    </tr>
  16. Replies
    1
    Views
    899

    protect pdf FROM SAVING

    I have a folder called "pdf" placed outsite public_html folder so files cannot be accessed via url
    In that pdf folder I have a .htaccess with "deny from all"

    In my index.php I have

    <a...
  17. Replies
    0
    Views
    1,048

    Session expired controlled in one place

    My web.config


    <sessionState mode="InProc" />


    My Global.asax


    void Session_Start(object sender, EventArgs e)
  18. Replies
    0
    Views
    744

    Session expired controlled in one place

    My web.config


    <sessionState mode="InProc" />


    My Global.asax


    void Session_Start(object sender, EventArgs e)
  19. Replies
    0
    Views
    1,920

    Mysql - CONSTRAINT problems

    I have 2 InnoDB tables: clients and domains

    I´m trying the following:

    ALTER TABLE clients ADD CONSTRAINT fk_clients_domains
    FOREIGN KEY (id_cli)
    REFERENCES domains (id_cli)

    I get...
  20. Replies
    3
    Views
    3,278

    Re: Zend - Hide public from url

    No ideas?!
  21. Replies
    3
    Views
    3,278

    Re: Zend - Hide public from url

    If I place that under my root dir I get redirected to www.myapplication.com/public/ and I also get a 500 error:

    Internal Server Error
    The server encountered an internal error or misconfiguration...
  22. Replies
    3
    Views
    3,278

    Zend - Hide public from url

    I´m using Zendframework to build my application.
    Its based on a MVC structure

    application
    library
    public

    To access my application I have set up my bootstrap.php file and I access it typing...
  23. Replies
    5
    Views
    1,024

    Re: Lots of selects in one select

    Exactly...what should I do then to be able to do that?
  24. Replies
    5
    Views
    1,024

    Re: Lots of selects in one select

    Perfect. Thanks a lot.

    Is there a way to know the biggest value from that same query?
    Something like "ORDER BY SUM() DESC"
  25. Replies
    5
    Views
    1,024

    Lots of selects in one select

    I have a database:



    Total date
    10 2010-01-10
    12 2010-01-12
    15 2010-02-15
    22 2010-02-22
    34 2010-02-23
Results 1 to 25 of 190
Page 1 of 8 1 2 3 4





Click Here to Expand Forum to Full Width

Featured