Jump to content

LemonInflux

Members
  • Posts

    944
  • Joined

  • Last visited

    Never

Everything 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. 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
  16. I did that part, ran the script, and was pointed back to my handler.
  17. 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
  18. Hi, I tried that, and I can now see the mod_python file in the modules/ folder. However, when I try to open a python script, all that happens is the source code is shown on screen. What's happening? Thanks, Tom
  19. 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
  20. Not Found The requested URL /share/calculator.php was not found on this server. Apache/2.2.0 (Fedora) Server at www.designshowcase.co.za Port 80
  21. Anyone? ---------------- Now playing: Hadouken! - Driving Nowhere via FoxyTunes
  22. str_replace("\n", ' ', $input); ---------------- Now playing: Hadouken! - What She Did via FoxyTunes
  23. I'm getting an external feed (namely, the youtube standard feeds (such as http://gdata.youtube.com/feeds/api/standardfeeds/top_rated)). I then want to parse it into a nested array so that I can display the data in a more friendly way to the users. ---------------- Now playing: Hadouken! - What She Did via FoxyTunes
  24. Ah ok. My initial intention was to try and build a youtube data API class without using the zend framework (so I had something I had built to feel proud of etc ) but I guess, for now at least, this seems an infinitely simpler option. ---------------- Now playing: Hawthorne Heights - Life On Standby via FoxyTunes
  25. But it's built onto the framework. I thought I had to include it all to use bits, because it was all linked. ---------------- Now playing: Hawthorne Heights - Life On Standby via FoxyTunes
×
×
  • 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.