Jump to content

SomeFunkyDude

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

SomeFunkyDude's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. did anyone see this thread? I can't post a reply to it for some reason, but wow, this is a cool application for php. http://www.phpfreaks.com/forums/index.php/topic,265095.0.html
  2. I want to have a class, that creates table entries. E.G. createService.class.php this file will create new services, so I need to insert the result into a DB My question.. do I build the sql query inside this class, or a separate DB class?
  3. I, like you, am searching for a viable framework as well. Most if not all frameworks are OOP (object oriented programming). ZEND is probably the best since its actually supported by the creators of PHP, but there are other frameworks like Codeignitor that promise speed and ease of use. CakePHP also seems to be pretty popular. I'm sure you can find benefit in using these frameworks, but expect to spend a weekend or two just learning them. I spent a long time trying to learn Codeignitor, and covered a lot of the basics, but still have a ways to go. All in all, yes, you can get extra premade functions built into a framework, but that means you have to not only learn how to install and use the framework, but how to modify and add to the functions if they don't do exactly what you want them to. Ask yourself if it's easier to just make the functions yourself, or if its worth learning an entire framework just to use theirs.
  4. I want to create a CMS, and when the user logs in to update their photos or post news messages etc. they get a news feed from my server that lets them know if there's an update or upgrade for their CMS. Client needs will vary so I'll have to alter the CMS for each client, but my question is what is the best way to update their version of the CMS after it's deployed and possibly not on my server. Lets say there's a security issue with the login system, I want to have a way of when they log in next time to update their site, get a notification of a necessary update. This update would then create an entirely new php login script or update the existing one. I thought about possibly transporting the update by XML, by say a news feed of some sort, then parse the XML file into fwrite to write the new script to their file directory. I think including files from remote servers is possible, but a feature that I think for security reasons most hosting companies disable. It is possible though to have a php script that parses XML data then writes the data to a new php file (I think), though I'm not sure if this is the best method. Here's a test script I wrote, it uses php to fwrite a new file and the contents are actually a php script, so if you run the script it creates a script that multiplies 3x3. <?php $file = "multiply.php"; $handle = fopen($file, 'w') or die("error dude"); $message = "<?php\n"; $message .= "\$result = (3 * 3);\n"; $message .= "echo \$result;\n"; $message .= "?>"; fwrite($handle, $message); fclose($handle); echo "File ".$file." successfully created! View it <a href=\"".$file."\">here</a>."; ?> Does anyone have any thoughts on this issue of remote updates to external applications that you've previously created for clients?
×
×
  • 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.