Jump to content

optioned

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by optioned

  1. Just to make sure, you haven’t installed any Ad blocker Extensions, On whole though the only thing that springs to mind are your settings if it works on some people and not on others because Chrome Updates it's self (if you allow it)
  2. If you only need to write to a file, and server side scripting will fit the bill then below I've written a simple piece of php to write to a file. (Tried to keep it as simple as I could....hope that you can understand it.) function writetofile($string,$name,$exists=false){ //if exists = false then it does not matter if it already exists. //if true and the file exists it will return false $fixed_extension = ''; //If you want to only allow .txt or lets say .csv to be written then change this and it will be glued as the extension. if($exists === true){ if(file_exists($name . $fixed_extension) === true){ return false; } } file_put_contents($name . $fixed_extension,$string); return true; } if(writetofile('Written at: ' . mktime(),"helloworld.html") === true){ echo 'Written to file.'; } else { echo 'File exists or there are limitations on the server.'; }
  3. iframes should not go completely. Obviously they are not preferred but if you remove scrolling and work out the width and height correctly then they can make a long job short. I do agree with the above however unless you have access to a cPanel or on your hosting providers control panel they give you the control to allow this you may have to either try and see if you can make up some kind of code to grab the html of the page (file open external which may be blocked) and separate the bits you do not require (can be messy esp if they / the map location changes the html) which is one of the few alternatives to includes or you may have to create a hidden iframe. (Hidden iframe meaning an iframe but no body other than coders will be able to tell it is in fact an iframe)
  4. I agree with the person above in that the PHP is pretty useless unless we get the full picture however is it just me or are you missing a '}' before the ' else {'. This error would make it die in all browsers but I just noticed that upon a glance. If W3's feedback does not answer your question try pressing View Source on the page then pasting that into the topic so we can clearly see what your browser is getting.
×
×
  • 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.