Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. To check what a function returns, just look it up in the manual. Although this one gets a bit confusing. "Return values are the same as with include(). If the file was already included, this function returns TRUE" This makes me think if it's including it the first time, it will still return FALSE, so the logic you want won't work.
  2. Windows has scheduled tasks, but go for Linux anyway :)
  3. This is why you don't just copy and paste code without understanding it. [b] isn't php, that's a bold tag. Take that stuff out, and in the future POST the error, not just that you got one.
  4. @ surpresses errors, so @require_once isn't going to give any errors, and the if won't be reached.
  5. perhaps there are none. Do print_r($config);
  6. It can't be empty if it's showing anything. It may have been empty when you uploaded it, but it has been written to and isn't empty anymore. I wanted to see that file.
  7. "I am aware that certain functions are specific to php5 and they would not work." There's your answer. You're asking if something you just said won't work, will work. I gave you a way to make sure it runs on 5, if you want to know if your code built for 5 will run on 3, then no, you will likely have a lot of issues.
  8. Once you have the first letter, then do "SELECT * FROM table WHERE name LIKE '$letter%'
  9. you can use htaccess to direct it to use a certain version, or end the file with .php5
  10. lol that's logically impossible. It doesn't need to, what Jenk posted is right.
  11. http://www.phpfreaks.com/tutorials/142/0.php
  12. image.png needs to be a string, surrounded with '' 'image.png'
  13. Okay but did you try what I posted, or just say no? What is $parser? It's probably something in there that's causing the problem then. I give up, good luck.
  14. ... <?php print nl2br($parser->content($temp_data[content])); ?> *shrug*
  15. This is a CSS question. You probably need to adjust margin, padding, or line-height
  16. timestamps start at 1970, the unix epoch. You can't have a strtotime() before then.
  17. Okay you have to take OUT the stripslashes, and use nl2br. Not both.
  18. [quote author=genericnumber1 link=topic=123561.msg510873#msg510873 date=1169503342] [quote author=jesirose link=topic=123561.msg510869#msg510869 date=1169503292] Or you could just use a variable ;) [/quote] COULD do that, but what if he wanted to add more allowed MIME types later :P [/quote] Amazingly enough, one of the cool things about variables is they can vary. They can be changed. It's pretty easy to add another value to an array.
  19. Because those aren't new lines in HTML. Run it through nl2br.
  20. Or you could just use a variable ;)
  21. You're probably calling stripslashes too many times. Take it out?
  22. [s]The Little Guy's code will go from the current year to 2020, and then break in that year.[/s] Or it did until it was changed? Mine goes from 2001 to the current year.
×
×
  • 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.