Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. you never initialize $tnode. At some point you need to do $tnode = new (whatever the heck this object type is);
  2. There's really no reason for that code to be passed in the url.../ is a valid url character.
  3. I'd do this: RewriteRule ^article/([A-Za-z0-9_/]+)$ /index.php?id=$1 [NC] This way it will catch those %2f (I think)
  4. The "[/url]" was in YOUR code. You're welcome.
  5. is $s ever = 000500? print_r($Source) to make sure
  6. You never closed your PHP before starting the HTML change to [code]} else { ?><a href="editreviews.php?revID=<?php echo $row_rsReviews['urev_id']; ?>"><?php echo $row_rsReviews['urev_date']; ?>[/url]<?php }[/code] Not sure what the url code is for.
  7. How are you directing it to this file in the first place?
  8. Try reformatting your if to this: [code]if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "text/css") || ($_FILES["file"]["type"] == "text/html") || ($_FILES["file"]["type"] == "text/php")) && ($_FILES["file"]["size"] < 250000))[/code] This will check if any of the file types, AND the size. Yours was a little confusing.
  9. print date("F jS Y", strtotime($rowDate));
  10. Instead of array_push( $this->nestedObjects, $object ); Try just $this->nestedObjects[] = $object; Then try $a->getObjectNumber( 0 )->getName();
  11. I wonder if there is something you can work with in your mod_rewrite.
  12. str_replace(" ", "+", $string); Although you should use -, not +
  13. You tried this: $clean_url = explode('/',urldecode($_SERVER['PATH_INFO'])); ?
  14. Edit the php.ini file. (Google for help)
  15. I realize you're in Asia, but presumably you speak English, and can type it properly. The chatspeak is annoying enough to make me not want to help you. If you were running it on your computer, your computer was the 'server', so it used your time. If you're using a new server, it will use that time. To display the time of a user's computer, you should use a client-side language such as Javascript, or let the user set their timezone and calculate it that way. PHP has no way of telling what the client-computer's settings are.
  16. In order to use <?, short tags must be on in the php.ini. I believe it's on by default, so it's weird that yours is off, but it is considered best practice to use <?php
  17. No, it's server time. PHP is a server-side language.
  18. Then I think the problem is with your javascript code. View the source, if everything is printed to the html page, then it worked. If your HTML page contains this: <script> var objDate = new Date(); if (objDate.getHours() < 12) document.write("Good morning"); elseif (objDate.getHours() < 16) document.write("Good afternoon"); else document.write("Good evening"); </script> Then the problem is NOT the PHP, but the JS. Does JS have an elseif construct?
  19. We'd need to see the code for the "blank" page. Make sure you have error reporting turned on.
  20. View the source to see if it outputs anything Turn error reporting on Make sure $log is defined.
  21. Fatal error: Call to undefined function mysql_connect() in D:\Htdocs\rockdaleisd.net\azureadmin\lib\db.php Normally, we'd need to see the file the error is occuring in, not the one in which you include the problem file. However it looks like PHP was not set up with the mysql library.
×
×
  • 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.