Choosing content of cache in codeigniter - php

I am making a web application with updates and content listing with PHP ad codes included in it.
How can I disable caching only for PHP ad codes?

After Searching a lot for this problem i found this
Simple Cache
This really worked like a charm, if anyone who got the same problem may use it :)

Related

Why WPBakery cause wordpress website to stop?

I'm having this really weird issue in my wordpress website which is hosted on GoDaddy server.
The issue is, when I try to edit any page using WPBakery, the server resources gets full immediately (Please refer to the screenshot). However on another host(bluehost) I didn't face such issue. I've tried to contact the support but it didn't help. Also I tried to optimize the website using JetPack plugin but I still get the same issue. The website will keep a good performance as long as I don't edit any page. Any thoughts what's going on?
Try wordpress debug and see if there are any errors when you try to update a page using wpbackery

Finding and Editing HTML Elements in PHP

First off sorry for being a complete newb and if this is a something I shouldn't be bothering people with, but I am fairly new to PHP and I have been tasked by my employer to make a couple of changes to a website that seems to be written primarily in PHP.
The website is ems-uk.co.uk
I have been asked just to check the location on the maps that display on the pages but I can't for the life of me find the file to edit within the file manager. I can find exactly what I need to change when I "inspect element" in Chrome but cannot find anything even close in the index.php file and there appears to be no other files for separate pages.
Hope someone can direct me in the right area and sorry again if this is the wrong arena for a question like this.
A bit of inspection suggest this is an OpenCart powered CMS/ecom site with the Kuler Moment theme (skin 3). I'm not familiar with the OpenCart dashboard but you may be able to log in and configure the google maps module from there. Failing that I would look in the theme files for the location map section.
You're looking to it wrong. PHP is server sided, you're trying to edit things client side.
You will need access to the webserver and edit code there. If you're asking this I'm not sure if its good if you're editing pages on that website though.

How to create an index-file for Xampp

I apologize in advance if this issue has been posted before. My problem is that my programmer had to bail on my project due to personal reasons and left me alone with a 95% finished site. I have some basic experience with ASP classic but PHP is fairly new to me.
FireFTP scr_shot: https://www.dropbox.com/s/9lws1u0sl8k93rg/fireftp_scr_shot.jpg
To shorten it up; (with Xampp installed) I have downloaded my site to the hard-drive and is now trying to get it work on 'localhost'. Immediately I sense the absence of an index-file.
Do I need to make one myself for the use in localhost? In that case, what am I looking for?
Thank you in advance.
First if you want to make an index-file of your current website, you have to put all your pages in a folder in
xampp/htdocs/
e.g
C:\Xampp\htdocs\mywebsite
then after you make a directory just visit the url like this:
localhost/mywebsite
, remember to put an index file inside the mywebsite folder.
It turned out that there was a MYSQL-database behind the site which I had no idea about or any knowledge of how to get around.
I had the database taken off and written the code into the site-files.
Afterwards everything worked as laid out above comments.

Magento links are not working

I have a magento theme installed on a folder: http://mysite.com/mag/
On the main folder, mysite.com it's running a website on Zen Cart, so I created a folder called "mag" where I installed magento.
It worked until now..
Only the first page is loading when I access mysite.com/mag/, but when I click on a diffrent page I-m sent to the index page from: mysite.com (and the url showed is: http://mysite.com/mag/page-like-this.html)
So where is the problem?
It worked before, and right now it doesn't work any more..
So as was discovered trough our comments you have most probably been hacked in some way. There are a lot of steps to go trough to clean a website and its impossible for us to tell you what to look for without knowing what kind of attack you where a victim of.
But, you can safely delete all those .html files since they should not be part of magento/zend framework. Also look for weird javascript that would be encrypted. One very long string of minimized javascript somewhere at the end probably of all the html files and probably your main index.php file.
There is a lot of ressources online to help you I suggest googling "magento hacked" or some such thing.
Good luck!
Here's a stackoverflow question about some such hacks on magento.

Dynamic Cache Manifest for app

There is a lot of questions about this subject, but I can't really find anything usefull to my problem. I'm using the HTML5 cache manifest on a web app. The web app is made in wordpress and it's also made like a Native app on iPhone.
The problem is, that I would like to get the native app run when fly mode is enabled or you just don't have a connection to the internet. Right now I'm caching all the images, libaries and the php templates, and that works fine.
The problem is, that I would like it to cach or save the content of the pages. It would be possible and easy if all the pages was static HTML, but all my content is dynamic.
Anyone who knows a way to do this?
I'm using the Patrick Chia's wordpress plugin to make the cache manifest file.
Thanks!
Use caching for the pages and something like localStorage for the data. Then use Javascript to merge the two.

Categories