Jump to content

gp177

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gp177's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. What about something line this? Just replace the characters below with the ones you don't want users to use. function isValidInput($content) { for($i=0;$i<strlen($content);$i++) { switch(substr($content,$i,1)) { case "<" : return false ; break ; case ">" : return false ; break ; case "\"" : return false ; break ; case "&" : return false ; break; case " " : return false ; break; } } return true ; }
  2. Did you set the mail properties in php.ini? Another thing to check is your virus scanning software. I know McAfee blocks the mail port by default and I would not be suprised to find out most others do now as well.
  3. This occurs when you are outputting data from a script before doing the header change. Usually this is because your echo'ing data or writing html somewhere on the script before the header location change. If you have display errors on and a warning/error is caught before the header change this would create a problem as well.
  4. So I am designing my first site using a MVC framework (CodeIgniter). I love it but I'm not sure how to use it to the fullest with my site. My server is a windows 2003 box using IIS. The site has: An intranet application (only subnet access, SSL not required but can be used). A static public site. A dynamic user account section with E-commerce (requiring ssl). If my understanding is correct, than everything in any MVC framework is called through a single front controller object. If that is the case then using different IIS settings (such as force ssl) on my controllers does not work. Is it possible then, to contain my entire site within one instance of CodeIgniter? Are there other frameworks that work differently that would support what I want to do? One solution is to do the ip restriction with php, so that both my intranet and dynamic site could sit in one instance of CodeIgniter. But that still leaves my static site. Any advice is welcome, Gp
  5. I wrote a program somewhat similiar to this. We use it at my work do archive scanned documents. I found that keeping files in folders based on a customer's uid has been helpfull once or twice but is not mission critical by any means. One thing that I do like about it, is if our database was ever destroyed, the tape backups on site were destroyed, and our off site backup facility was nuked, I would still be able to grab documents directly off the hard drive...
  6. Thanks responses. I have been playing with both Cake and CodeIgniter. I have been programing php for a couple years now but I am new to these frameworks. CodeIgniter really jumped out at me with its simplicity and ease of use. I have read some on the Zend framework (reviews tend to be mixed). It's still in beta and I have not been able to find anything saying when an anticipated stable release will be. Anyone have any idea?
  7. Just to make sure. Your restarting the World Wide Publishing (or whatever it is) and not just hitting the stop and play button in IIS right?
  8. Hi All, I work for a major university and I am developing a php site that will be used for e-commerce and user account management. Database entries will be using SOAP/webservices and SQL queries to pull records from the database. My question is how much framework do I need? At the minimum I always keep database, security, and templateing functions out of my display scripts. Is this enough? Does this sound like the type of project that warrants a full blown MVC framework? There is a history of high turnover in my position and I want to ensure that anyone who follows me will be able to manipulate the site without too much of a learning curve.
  9. Try to simplify things. Also, I would not suggest outputing an odbc error message. The less the user knows about your database the better. Below is a means of trying to do what you want and it fails without creating any havic (just an empty pull down). <?php function getPulldownItems() { $sql = "SELECT * FROM Departments" ; $conn = odbc_connect ('Tools', '', '') ; $menuItems = array() ; if($result = odbc_exec($conn, $sql) ) { while($menuItem = odbc_fetch_array($result)) $menuItems[] = $menuItem ; } return $menuItems ; } $menuItems = getPullDownItems() ; ?> <select name='myName'> <?php foreach($menuItems as $menuItem) { ?> <option value='<?php echo $menuItem['myColumnName'] ; ?>'><?php echo $menuItem['myColumnName'] ; ?></option> <? } ?> </select>
  10. It rocks on OS X. It ran a little too slow for my liking on my xp box with comparable hardware. I actually prefer it over textmate because of it's auto-completion (including user defined objects, functions and variables).
×
×
  • 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.