www.webdeveloper.com

Search:

Type: Posts; User: keeps21

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    2,034

    Unfortunately I can't seem to be able to get the...

    Unfortunately I can't seem to be able to get the code to work that way. At least I've got it working with the extra foreach.

    Cheers for your help.
  2. Replies
    7
    Views
    2,034

    I've had to change the above to foreach...

    I've had to change the above to



    foreach ($feeds as $feed) :
    $fe = parse_feed($feed);
    foreach ($fe as $f):
    $merged[] = $f;
    endforeach;
    endforeach;
  3. Replies
    7
    Views
    2,034

    @SodBuster Thanks I've amended my code a...

    @SodBuster

    Thanks

    I've amended my code a little now - It will display items grouped into how old they are, IE, last hour, 1-2 hours old, 2-4 hours old and over 4 hours old.



    <?php
    //...
  4. Replies
    7
    Views
    2,034

    This is the code I've come up with - and it seems...

    This is the code I've come up with - and it seems to be working alright for me.

    Can anyone make any suggestions as to improvements - especially with regards to the way I'm handling the date.
    ...
  5. Replies
    7
    Views
    2,034

    PHP RSS Aggregator theory

    Just thinking about creating a website to take in multiple rss feeds, merging the data into an array and then outputting the latest 10 or so.

    Pseudocode


    # Initialise feedArray
    $feedArray =...
  6. The code now reads

    The code now reads



    <?php

    class FrontController {


    private static $instance;
  7. Good tip. As well as making __clone private too,...

    Good tip. As well as making __clone private too, just in case ;)
  8. You're right - I don't need to bother with the...

    You're right - I don't need to bother with the call_user_func_array().

    Thanks for pointing that out. :)
  9. FrontController and call_user_func_array() help

    I have a FrontController class which takes a request, explodes it into an array, the first item being the controller, second being the action and then the 3rd is the querystring.

    It then loads the...
  10. Replies
    2
    Views
    544

    $baseUrl = "http://localhost"; $gid = 1;...

    $baseUrl = "http://localhost";
    $gid = 1;
    $dirname = "C:\\wamp\\www\\rd\\images\\galleries\\{$gid}";

    $dir = opendir($dirname);

    while ( false != ($file = readdir($dir))) {
    if...
  11. Replies
    2
    Views
    544

    Reading files from a directory

    I have some code which opens a directory, reads the files and assigns the file url to a variable - $image_url



    $baseUrl = "http://localhost";
    $gid = 1;
    $dirname =...
  12. Replies
    1
    Views
    1,511

    Solved my problem by rewriting the code to not...

    Solved my problem by rewriting the code to not use ListDictionary.
  13. Replies
    1
    Views
    1,511

    List Dictionary Keys and values

    I have a list Dictionary.
    It is populated from my database, with a question ID and an answer as shown below.



    Dim AnswerArray As New ListDictionary()
    While MyDataReader.Read...
  14. Replies
    2
    Views
    2,893

    variable undeclared in included file.

    I have two files. (This is a simplified example)

    The first file declared variables - the second outputs the variables.

    The problem is that myArray is 'undeclared' when file2.aspx tries to use...
  15. Replies
    3
    Views
    1,228

    Thanks. Another thing is I need the variables...

    Thanks.

    Another thing is I need the variables to be 'populated' dynamically.

    The number of variables depends on the number of records returned from the database.

    Is it possible to create x...
  16. Replies
    3
    Views
    1,228

    Create an array from variables

    I have an array.

    I want to add the values of 6 variables into this array, however I can't find a way to do it.


    If I knew the values I'd do it like this


    MyArray(i)= New String { ("id"),...
  17. Replies
    3
    Views
    595

    You could write a script that reads through a...

    You could write a script that reads through a directory and creates a thumbnail and link for each image in that directory.
  18. Create a Select dropdown from a single database field

    In the database I have a table that contains a question_id, question, answer_type, answer_values

    I need to generate a form input type depending on the value in the answer_type column, this can be...
  19. Replies
    2
    Views
    3,048

    Solved

    Solved it myself.
    Was as easy as this



    <&#37;
    password = "mypassword"

    strPwd = password
  20. Replies
    2
    Views
    3,048

    asp.net/vb.net password hash

    I'm a PHP developer, very new to asp and only really using it because it's the only technology my client will use, and because of this i'm programming ni a PHP style, ie, not really using asp.net as...
  21. If anyone is interested here is what I've come up...

    If anyone is interested here is what I've come up with.
    Any advice on how to improve it is very welcome.



    <?php
    /**
    * Filename: class.comment.php
    * Date: 22 October 2008
    * Description:...
  22. Thanks for your help, however I'm still...

    Thanks for your help, however I'm still struggling with this.

    I know I'm not passing the $result variable correctly, or perhaps $result is not what I think it is.

    What i'm trying to do is...
  23. Just to explain why I'm creating the array. I'm...

    Just to explain why I'm creating the array. I'm trying to get my head around OOP & MVC.

    The code shown is part of a method belonging to the Comment class, which gets the info from the database.
    ...
  24. The problem was here: while ($row ) ...

    The problem was here:



    while ($row )


    It caused an infinite loop
  25. read MySQL data into array - Fatal Error: Allowed memory size exhausted

    Hey I have a script which is attempting to read data from a mysql query into an array.

    This array will then be looped through and each value output.

    However I'm running into the following...
Results 1 to 25 of 28
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles