Recent content by chronoel

  1. C

    Date problem with php?

    Hi, I'm using date('Y-m-d h:i:s a') but the time outputted by the function is wrong. what could be the cause of this? does it have to do with the time zone or daylight saving time? by the way, i'm using vista and my time zone is gmt +8:00 hope you can help! :) hi Joshua J, thanks for your...
  2. C

    how to point to an object's member in javascript? similar to php's: $var->$member?

    for example i have an object with two members: object.member1 object.member2 i want to dynamically select either member1 or member2 so i assign to a var the one which i want to select: whichMember = 'member1' is this possible like that in php? object.(whichMember) like in php's syntax...
  3. C

    how to point to an object's member in javascript? similar to php's: $var->$member?

    for example i have an object with two members: object.member1 object.member2 i want to dynamically select either member1 or member2 so i assign to a var the one which i want to select: whichMember = 'member1' is this possible like that in php? object.(whichMember) like in php's syntax...
  4. C

    Is it possible to run 2 different versions of apache/mysql/php on the same machine?

    is it possible to set different listening ports for the two apache servers? if so, how can i do it? and are there any more concerns which i have to address?
  5. C

    Is it possible to run 2 different versions of apache/mysql/php on the same machine?

    is it possible to set different listening ports for the two apache servers? if so, how can i do it? and are there any more concerns which i have to address?
  6. C

    x-requested-with missing in php $_SERVER variable when using apache?

    hi, i'm having a problem. i'm requesting some content from the apache server using ajax. in php, i want to detect if the request was done through ajax and i know the way to detect this is to see if x-request-with is in the $_SERVER variable. i checked HTTP_X_REQUEST_WITH but it's missing. i...
  7. C

    php smarty append plugin?

    hi i made a smarty function plugin that appends data to an array. i know i could do the appending in php but i still opted to create the plugin for smarty because i have some design logic which needs me to append some data to an array. the code for the plugin is shown below: function...
  8. C

    Php DomDocument question?

    hi, after i got a node of the dom i want to output it as it was created for example as shown below: $doc = new DOMDocument(); $doc->loadHTML("<tr><td id='foo' class='bar'>Baz</td></tr>"); $x = $doc->documentElement; foreach ($x->childNodes AS $item) { // output content of tr which is "<td...
  9. C

    emulate what the page will look like on the client side using php?

    hi i have this problem. i tried removing the sorting and changing the structure of a table from the server. so it's done on the client side using javascript. additionally, the structure of the table changes when i opt to do some grouping adding additional headers as need. just imagine that the...
  10. C

    Can I make a PHP website without MySQLServer?

    hi Bluebird, absolutely. you don't need a mysql server to create a php website. only that it would force you to think of other places where you can store the data that your website uses. other places where you can store data are text files or create a custom file where you define the type and...
Back
Top