Jump to content

adho12

Members
  • Posts

    15
  • Joined

  • Last visited

  • Days Won

    1

adho12 last won the day on August 14 2013

adho12 had the most liked content!

adho12's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. &--#60;div&--#62;Thanks and here:&--#60;/div&--#62; &--#60;div&--#62; &--#60;/div&--#62; &--#60;div&--#62;addtoany_updater.sh (1 KB)&--#60;/div&--#62; &--#60;div&--#62;https://mega.co.nz/#!fwQ2FLhB!fnhtoX-PyLMrL-MNHnZZ2QZGOKku-BicKdQAzWt2nnA&--#60;/div&--#62; &--#60;div&--#62; &--#60;/div&--#62; &--#60;div&--#62;( I can't upload it in to the discussion)&--#60;/div&--#62; &--#60;div&--#62; &--#60;/div&--#62; &--#60;div&--#62;I hope it helps &--#60;/div&--#62; Thanks and here: addtoany_updater.sh (1 KB) https://mega.co.nz/#!fwQ2FLhB!fnhtoX-PyLMrL-MNHnZZ2QZGOKku-BicKdQAzWt2nnA ( I can't upload it in to the discussion) I hope it helps
  2. hi I want to use : http://www.addtoany.com/ to get the share buttons of fb and so one... And you can use: Self-host and Cache Script it would use a Cron Jobs i know it is possible an i want to use it. But I don't know how they gave my this code: var a2a_config = a2a_config || {}; a2a_config.static_server = "http://example.com/path/to/addtoany"; whit a file to so how do I have to do this thank you all and sorry for my english
  3. Hi it me again sorry to ask but I have a huge Problem and need help very fast… I am building a Website for a friend whit both a “mobile” and a “normal” version. I am new to programing any language. So I have almost no experience whit it... I know you normally you would use a CMS like drupal etc. but I don’t like them so… So I knew of the Ajax method using JavaScript so I wanted to use that method to build a simple CMS to swap the content whit “articles” in a folder on the server. So loading a single site is no problem… jQuery - AJAX load() Method or Load page to a div jQuery Mobile So back in the internet I found this method: It changes the div content and adds a #page name to the URL: How to load content with back button enable and refresh using Ajax the script: <!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.js"></script> <script type="text/javascript"> $(function(){ // part 1 $('menu a').click(function(){ location.hash=$(this).attr('href').match(/(^.*)\./)[1] return false }) // part 2 var originalTitle=document.title function hashChange(){ var page=location.hash.slice(1) if (page!=""){ $('#content').load(page+".html #sub-content") document.title=originalTitle+' – '+page } } // part 3 if ("onhashchange" in window){ // cool browser $(window).on('hashchange',hashChange).trigger('hashchange') }else{ // lame browser var lastHash='' setInterval(function(){ if (lastHash!=location.hash) hashChange() lastHash=location.hash },100) } }) </script> <title>main</title> </head> <body> <menu> <li><a class="menu_links" href="newproject.html">New Project</a></li> <li><a class="menu_links" href="accord.html">Accordion</a></li> <li><a class="menu_links" href="project_summary.html">Summary Table</a></li> <li><a class="menu_links" href="detail_report.html">Detail Report</a></li> <li><a class="menu_links" href="upload_data.html">Upload Data</a></li> </menu> <div id="content"></div> </body> </html> And in the demo (link) it works well. But for some reason I’m not getting it to work whit my own Site… Could someone please help me by explaining how I have to set all the <div> so that I can build the rest of my site? I know I am asking allot… But please help me… And thanks for reading this Question and answering my questions p.s. sorry for my bad English.
  4. Ah yes... But I don't want to zip php files I have to zip some java files...
  5. Hi it me again... Sorry to ask something again... but after reading about the huge improvements by gzip i wanted to use it on my Web-Site so I added this to my .htaccess #Gzip <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl|jpg|png|gif)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </IfModule> and this <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript </ifmodule> #End Gzip None of them gave any results... Is it because g-zip is disabled on helihost? Could you help my once again... Thanks ^^
  6. ok it works now... <?php header('Content-Type: text/cache-manifest'); echo "CACHE MANIFEST\n"; $hashes = ""; $lastFileWasDynamic = FALSE; $dir = new RecursiveDirectoryIterator("."); foreach(new RecursiveIteratorIterator($dir) as $file) { if ($file->IsFile() && $file != "./manifest.php" && substr($file->getFilename(), 0, 1) != ".") { if(preg_match('/.php$/', $file)) { if(!$lastFileWasDynamic) { echo "\n\nNETWORK:\n"; } $lastFileWasDynamic = TRUE; } else { if($lastFileWasDynamic) { echo "\n\nCACHE:\n"; $lastFileWasDynamic = FALSE; } } echo $file . "\n"; $hashes .= md5_file($file); } } echo "# Hash: " . md5($hashes) . "\n"; ?> Thanks
  7. The main problem is that it doesn't give an error and still nothing is stored... (the address is http://ahornung.tk/mob/ ) Am I using it wrong?... Thanks for your help...
  8. Hi Sorry to bother you once again, but I’m having a Problem here and am too stupid for the internet… So I’m trying to create an Dynamic Cache Manifest for my (offline) Web-App I’m using this http://grinninggecko.com/dynamic-cache-manifest/ version… <?php // Add the correct Content-Type for the cache manifest header('Content-Type: text/cache-manifest'); // Write the first line echo "CACHE MANIFESTn"; // Initialize the $hashes string $hashes = ""; $dir = new RecursiveDirectoryIterator("."); // Iterate through all the files/folders in the current directory foreach(new RecursiveIteratorIterator($dir) as $file) { $info = pathinfo($file); // If the object is a file // and it's not called manifest.php (this file), // and it's not a dotfile, add it to the list if ($file->IsFile() && $file != "./manifest.php" && substr($file->getFilename(), 0, 1) != ".") { // Replace spaces with %20 or it will break echo str_replace(' ', '%20', $file) . "n"; // Add this file's hash to the $hashes string $hashes .= md5_file($file); } } // Hash the $hashes string and output echo "# Hash: " . md5($hashes) . "n"; ?> And for some reason it doesn’t work…. Thanks and I hope you could help me… P.S. sorry for my english
  9. Hi Why do you think we don’t have a free will, or it's an illusion??? I mean of yes society and nature do restrict our will, because everything whit a rule has its restrictions, but that doesn’t make our free-will to an illusion… It’s just some other type of freedom… Or am I wrong? ps sorry for my english
  10. I see... why not? (sorry for my stupid Questions)
  11. ahhhhh It works THANKS ^^ (but <html> <head> </head> <body> is this also HTML?)
  12. <html> <head> </head> <body> <?php // Include the mobile device detect class require_once 'Mobile_Detect.php'; // Init the class $detect = new Mobile_Detect; // And here is the magic - checking if the user comes with a mobile device if ($detect->isMobile()) { // Detects any mobile device. // Redirecting header("Location: http://www.ahornung.heliohost.org/mob");} else {header("Location: http://www.ahornung.heliohost.org/pc");} ?> WEITERLEITUNG FOLGT! </body> </html> This is the rest of the Code, so No html...
  13. Hi I'm new to html and PHP and ended up coming to a point where I have no more knowledge and the Internet solutions don't work... So I’m trying to do a simple PHP-redirect after a mobile detection: <?php // Include the mobile device detect class require_once 'Mobile_Detect.php'; // Init the class $detect = new Mobile_Detect; // checking if the user comes with a mobile device if ($detect->isMobile()) { // Detects any mobile device. // Redirecting header("Location: http://www.ahornung.heliohost.org/mob");} else {header("Location: http://www.ahornung.heliohost.org/pc");} ?> Well on my PC, it’s a XAMPP-Server, I get my redirect but on the online-Server (Helios) I get this back: Warning: Cannot modify header information - headers already sent by So I hope someone could help me. Thanks for your help adho12 p.s. Sorry for my English
×
×
  • Create New...