Jump to content

otuatail

Members
  • Posts

    961
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

otuatail's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

1

Community Answers

  1. Wow you could have fun with that. Especialy to get you up the search engine rankings.
  2. Yes this is odd The following website is a recipe, however no matter how much or how little you copy and paste into notepad (getting rid of formatting) you get an extra line Read more: http://www.simplyrecipes.com/recipes/quesadilla/#ixzz4Lp5hmm6l In the method of cooking copy paragraph 1 2 and 3 seperatly. you always get the extra URL Read more... Read more is not in the text.
  3. Thanks for that. Simple error. Interesting to see what it evaluated to. cellpadding="1 > <tr> <td colspan="2" class="title" align="center">Event Log</td> Where does it stop? cellpadding="1 > <tr> <td colspan=" Thanks.
  4. Hi. It’s been a long day. I have made a minor change to a web page. All I did was changing the size of a table. The font has changed to elephant size font. I can’t see why it is so large. http://www.desmond-otoole.co.uk/info.php
  5. Hi. I have a website with lots of comedy scripts. I am happy for anyone to grab a script if they want to. The only thing I want is to know is which pages have been visited. I have php code that logs the information. However the full URL to the document is displayed and it could be accessed directly. I have a HTML5 page with the PDF document within a document object. I tried moving the document to a secure folder with .htaccess. The reason is it has to be accessed through the web page only. This doesn’t work. Any solution?
  6. Is there any decent php editor for Android? My editor on my PC is for windows.
  7. date_default_timezone_set("Europe/London"); This works ahead of the time(); Looks like I have to do it because some other sod might change it. I used $now = new DateTime(); echo 'Time now: ' . $now->format('Y-m-d H:i:s') ; but got Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /vhost/vhost15/d/e/s/desmond-otoole.co.uk/www/banking/LogMe.php:64 Stack trace: #0 /vhost/vhost15/d/e/s/desmond-otoole.co.uk/www/banking/LogMe.php(64): DateTime->__construct() #1 {main} thrown in /vhost/vhost15/d/e/s/desmond-otoole.co.uk/www/banking/LogMe.php on line 64
  8. What I am doing is $value = time(); This is returning a GMT value; date('I'); which isn't documented in the manual returns 0 date('e') returns +0000 Any suggestions? I have also been told that as I am on a shared server anyone can mess around with the INI file. This is mad.
  9. The problem I have is that I want the summer time now not GMT. time(); is giving me a value of GMT.
  10. I don't have access to php.ini I don't own the server it is on.
  11. Hi I have used this for some time now everywhere on a website. (Very old) Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /vhost/vhost15/d/e/s/desmond-otoole.co.uk/www/Forum/LogMe.php on line 58 Is there a quick fix for this if it is outdated. Preferably for the UK and observing summertime. Thanks!
  12. otuatail

    HTML 5

    I have a HTML 5 page with an embedded PDF document in the same directory. What I want to do is put the PDF in a secure folder with a simple .htaccess. The reason is I don't want anyone to access the pdf document directly. I realise that the document could be downloaded anyway but I just want to log how many times it is looked at using PHP. The HTML document is actually a PHP file. Can this be done as I have made attempts to move it unsuccessfully.
  13. Ok this is partly html and I put it here because it was HTML5 and I thought that a HTML5 wiz kid could tell me better. I'll try the echo sugested by Psycho Thanks.
  14. Need to cancel this but can't find a button. Fatal error: Cannot redeclare myErrorHandler() (previously declared in /vhost/vhost15/d/e/s/des-otoole.co.uk/www/library/secure/SecureFunctions.php:68) in/vhost/vhost15/d/e/s/des-otoole.co.uk/www/library/secure/SecureFunctions.php on line 94 here is the function function myErrorHandler($errno, $errstr, $errfile, $errline) // ********** <- Line 68 { switch ($errno) { case E_USER_ERROR: $_SESSION['MyError'] = "Gotcha: <br>$errstr<br>$errfile<br>$errline"; mailtoX('Error', $errstr,$_SESSION['MyError']); $_SESSION[Error]= $errstr; $redirect = "Location: http://www.desmond-otoole.co.uk/myerror.php"; header($redirect); exit(0); break; case E_USER_WARNING: // echo ""; break; case E_USER_NOTICE: // echo ""; break; default: // echo ""; break; } /* Don't execute PHP internal error handler */ return true; } // ********** <- Line 94 $old_error_handler = set_error_handler("myErrorHandler"); Need to cancel this but can't find a button.
  15. Hi I am trying to replace fixed names of pdf documents with variables. This works <object data="Darth.pdf" type="application/pdf" width="950" height="800"> alt : <a href="Darth.pdf">test.pdf</a> </object> This fails when using a variable <object data=$doc type="application/pdf" width="950" height="800"> alt : <a href=$doc>test.pdf</a> </object> $doc = "Darth.pdf" How can I modify this HTML5 to work?
×
×
  • 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.