Jump to content

LemonInflux

Members
  • Posts

    944
  • Joined

  • Last visited

    Never

Posts posted by LemonInflux

  1. Hello all, just a quick (and hopefully quite simple question).

    PHP is my preferred language, as I am relatively new to Python, but I have noticed that Python is much quicker at processing various things, and for this reason have built most of my website in Python. However, I would still like to use PHP, for the sake of readability, to process the simpler things and be responsible for the output (into templates and whatnot).

    So my question is, how can I use PHP to collect the output from a Python script? I can't use file_get_contents or any file-based functions as it is on the same host, and therefore PHP would surely just return the source of the page?

    Thanks,

    Tom

  2. Sorry, I think I wasn't clear enough;

     

    I'm not asking for references to design patterns and such, I know what I'd use for which bits and how they would work. My problem is that I can't find a way to organise and plan development; I start on something and then think there'd be better places to start. So what I'm asking for is a good way of planning in which order the application will be built.

     

    Thanks

  3. Hey guys, this is a bit vague so sorry, but I'm trying to do this project with as little help as possible.

     

    I have a plan to make a CMS software core that can be extended via modules using a core API to access internal functions (database, sessions etc) and am having quite a large problem...

     

    I don't know where to start!

     

    Do I start with the framework? Code the core module and then design the framework around it? I have a fairly clear idea of how things will work; my problem is getting them down in PHP!

     

    I've been trying for a while, but I guess if you're not sure where to go first it's hard to do anything, so really I'm just looking for some ideas for good ways to organize its growth.

     

    Any help appreciated; thanks!

  4. If I understand you, you want to add something to show up every monday in the calendar?

    Have you considered putting it in every monday?

    If that doesn't solve your problem, just update the MySQL timestamp. UPDATE `table` SET 'timestamp_field' = 'nextMondayTime'.

  5. Brilliant :) Got that working now. But, surely there's a way to avoid the handlers and just let python interpret the script as it's written without having to go through a handler? If I put my python script on my webhost (that I don't run), it works fine without an index handler. Why is there a difference?

  6. I set up my handler. The only problem is every python script (well, any file ending in .py) goes back to that file, so whatever I do it just runs the handler function. How do I change this so it executes the file I'm pointing to?

     

    Thanks

  7. I have XAMPP installed on my localhost (windows XP SP2).

    I would like to add Python to this. I checked the XAMPP addons, but they only supply the files for linux (or, at least, that's how it looked).

    Has anyone done this? Or, does anyone know of a localhost-type software that supports python? I mean browser-based, not just the python CMD.

     

    Thanks in advance

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.