Jump to content

LemonInflux

Members
  • Posts

    944
  • Joined

  • Last visited

    Never

About LemonInflux

  • Birthday 06/29/1993

Contact Methods

  • AIM
    lemoninflux
  • MSN
    tomh86@hotmail.co.uk
  • Website URL
    http://www.reflexprojects.net

Profile Information

  • Gender
    Male
  • Location
    England

LemonInflux's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  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. Well my main reason is to see if I can. Also, I want it to be OOP and modular so I can easily extend it. My main problem is writing a neatly coded framework to intiate modules and plug-ins.
  4. 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!
  5. Beautiful! And apparently, gtk2 support is in development, so I shall keep checking back. Thanks very much!
  6. Google's visualization API is very good. There is a PHP class-based method of using it here.
  7. Really? I didn't know this. Clever *gets back on topic* What do the errors (from error reporting) say?
  8. mm, cookies. so have you tried turning error reports on?
  9. Should it not be: $result = mysql_query($sql) or die(mysql_error()); ?
  10. Is there any talk of a PHP-GTK compiler? I was just thinking that, if it could happen, it might be extremely useful. But is it going to happen, or are we going to have .phpw forever?
  11. 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'.
  12. oh yeah. sorry, it's been a long week. ---------------- Now playing: Elbow - An Audience With the Pope via FoxyTunes
  13. <?php if ((int) $_POST['amount'] < 5) { echo "less than 5"; } else { echo "more than 5"; } ?> ---------------- Now playing: Elbow - An Audience With the Pope via FoxyTunes
  14. 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?
  15. Aha, solved part of the problem by restarting apache. Now, when I browse to a .py, I'm told the object isn't found. Why? :S
×
×
  • 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.