Jump to content

sunil_23413

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sunil_23413's Achievements

Member

Member (2/5)

0

Reputation

  1. I need an Ajax code so that I can achieve the functionality like the attached image. There will be horizontal scroller with left, right arrow for image scrolling. If a user will click on any image then that that image will be opened above the scrolling bar. [attachment deleted by admin]
  2. I want to apply htaccess password protection to one of my my site http://manjotone.freehostia.com . When I go to above url it demands a username/password. Even if I fill correct username/password (test/test) it still does not show the site and the login box appears each time whether I fill correct or wrong username/password. How can I resolve this issue? The content of htaccess file is AuthName "Restricted Area" AuthType Basic AuthUserFile /home/www/manjotone.freehostia.com/.htpasswd AuthGroupFile /dev/null require valid-user And the content of htpasswd file is test:VKDgrEqD7TJBM I simply upload these files through FTP where my site exists .please suggest me what should I do to overcome this issue.
  3. Hello here is my site http://mygradregistry.com. when user goes to link "http://mygradregistry.com/profile.php" then it should look like "http://mygradregistry.com/username" showing the content of profile.php i have username in my session variable.
  4. I have a form which has two fields 1. Email 2. Website url When the user submits this form an email goes to the email address filled above which contains the screen shot of the webpage whose url is filled above. I need an image screen shot so that I can send it in an email. Is there a php script which can take screen shot of the webpage for a given url? I used file_get_contents() function but it does not display the webpage properly. Some images and links are not shown.
  5. I am using htaccess to redirect url on a live server. My htaccess file are working well on localhost but giving problem on live server. It shows an error like “/home/a1pro/public_html/euterpedia.com/a1/show.php not found on server”. What I guessed form the above error message is that “a1pro” should be “~a1pro” as my site url is http://64.34.170.31/~a1pro/euterpedia.com/. Then I echo $_SERVER['SCRIPT_FILENAME'] variable it displayed like /home/a1pro/public_html/euterpedia.com/artist_list/index.php But I think it should display /home/~a1pro/public_html/euterpedia.com/artist_list/index.php as my site url is http://64.34.170.31/~a1pro/euterpedia.com/
  6. I am working in a php project. I enabled mod_rewrite nodule from the httpd.conf file. I go to apache -> conf-> httpd.conf and uncommented the #LoadModule rewrite_module modules/mod_rewrite.so this and mod_rewrite module was enabled successfully. I checked it using phpinfo function. Now I uploaded the same project to live server .but I don’t have permissions to enter in conf folder. So cannot edit httpd.conf file to enable mod_rewrite module. How can I enable mod_rewrite module using php.ini or htaccess file or using some php coding?
  7. Hi there I am going to make a web application that is to be run on various kiosk machines set up at various locations in the country. You can see a demo at the following link: http://www.hotellocalinfo.com/territory/index.asp?territory=100&kiosk=k10006&button=i When you visit this you will see a window opens .then there various menus on it .when we click on a certain menu, its sub-menu opens and then further there submenu opens and so on……Or as you see in various ATM machines. Currently the functionality of the above link is made using php, mysql and flash .But we are thinking to make our web application using php, mysql and Ajax. Or any CMS can be the better solution to our problem? Which of the above three can be the better solution to our problem?
  8. Hi there, I am fetching external header (any content) from a live site. And I am cacheing it for 2 minutes using the method ob_start().The code s given below: check2.php <?php $cacheFile = 'cache.html'; $t2=(filemtime($cacheFile)); $t=time(); $d=$t-$t2; if ($d<120) { $content = file_get_contents($cacheFile); echo "in cache"; echo $content; } else { echo "not in cache"; ob_start(); $blog_baseurl="http://internetworld.idg.se/"; $url = "http://internetworld.idg.se/?exportHeader=true&standAlone=true&disableLogin=true"; $sideTopPage =file_get_contents($url); $replaceArray = array('src="/'); $sideTopPage = str_replace($replaceArray, 'src="'.$blog_baseurl, $sideTopPage); $replaceArray = array('href="/'); $sideTopPage = str_replace($replaceArray, 'href="' . $blog_baseurl, $sideTopPage); echo $sideTopPage; $content = ob_get_contents(); ob_end_clean(); file_put_contents($cacheFile,$content); echo $content; ob_end_clean(); } ?> the above code is generating a cahe file named cache.html. But this cached file(cache.html) is also not loading very fast. The only reason is that cached file (cache.html) contains the following code due to which some adds are coming. <div class="adContainer"> <script type="text/javascript" src="http://adserver.adtech.de/addyn|3.0|506|1040245|18003|16|ADTECH;loc=100;key=;grp=18003;asfunc=1;misc=1237453012837"></script> <script type="text/javascript">showHeliosAd(1040245, 18003, false)</script> </div> So due to the above code cached content is not loading fast. If I remove the above code from cached file (cache.html) then cached content is loading extremely fast So in the end I can say that the major problem is regarding the cacheing of dynamic advertisement that are fetched using a JavaScript. any suggestions are most welcome
  9. thanks a lot, i got you point and i am able to cache it as you told in the post. but there is a large sized image file and flash file in the footer. So even after cacheing the footer it is taking a lot of time to load as the image and flash file are fetched from the live url. is there any way to save or cache the image and flash files so that image and flash files are fetched from the cache and not from live url
  10. Well I am going to fetch footer (any content) from an external site. Want to cache it for 2o minutes and place it at a position in my ipboard site. As I am newbie to IP.Board 2.3.I don’t know how caching is done in IP.Board 2.3. So I am not able to cache the external footer from a live site. Well as all the content of ipboard has inbuilt cacheing. But the external footer fetched from other site is taking a lot time to load as I am not able to cache it. Or simply anyone as a suggestion on how to cache any content fetched from any other live site. I want to cache all the content including images.
×
×
  • 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.