Jump to content

Lodius2000

Members
  • Posts

    586
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.scriptingsource.com

Profile Information

  • Gender
    Male
  • Location
    Denver

Lodius2000's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. gotcha...makes perfect sense solved
  2. Andy-H That worked. just to make sure I understand how it worked (like i said, reeeeeeally rusty at my php): including the false value for $datetime means that modify() must accept some sort of argument, so if you put in an argument it returns false because it is supposed to throw an exception, and if you put no argument, the function returns false, which throws an exception right?
  3. So I am extending the DateTime class and would like to completely disable the modify() function that is built in so i have this: <?php class NewDateTime extends DateTime { public function modify() { throw new Exception('modify() has been disabled.'); } } thats not the entire class description, just the pertinent part of course now any time I create a new object from NewDateTime I get this message at the top of the screen: what gives? how do I get rid of this and still disable modify()? I'm betting its a setting that i have wonky but I am really rusty in php so dont know where to look in php.ini
  4. i should learn to test my theories that i propose before i test... magic quotes was on... didnt occur to me until i said it in the post tho solved
  5. Guys... im rusty and my script is not working right. i have an edit article page. it goes like this $article= "pull article text from database where id = whatever $clean_article= stripslashes($article); then create a text area with the contents of $clean_article then write $updated article to the db with addslashes($updated_article); so each time when i use say this line of code <img src="blah"> it should go in the db as <img src=\"blah\"> and come out of the db as <img src=\"blah\"> then before i see it is transformed into <img src="blah"> then goes back in the db as <img src=\"blah\"> instead i am getting this <img src="blah"> becomes <img src=\"blah\"> when i put it in the db then gets put on the page as <img src=\"blah\"> when i edit the article with the above script i see <img src=\"blah\"> in the text area the first time then subsequent times become <img src=\\\"blah\\\"> and so on what could be the problem could this be a magic quotes issue?
×
×
  • 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.