Pages
Categories
Tag Cloud
PHP Archive
-
How to 301 Redirect Entire Domain
Did you get a new domain and now want to point all the URLs from the old domain to the new one? If you’re using Apache Web Server, you can do this with a .htaccess file. 301 redirects are Google SEO friendly as well and should preserve link juice over time. Put the following in [...] -
WordPress Exclude Page from Nav
Want to exclude a specific page you have on WordPress from the Nav? Try the code below, most themes I’ve seen use wp_list_pages to populate the navigation. Replace 123 with the id of the page, and if there are multiple pages then separate with commas. wp_list_pages(array('title_li' => "", "exclude" => "123")); -
Relocate Magento Install
How do I relocate a Magento Install It’s really not that bad once you know what to edit. make a backup of your magento database make a backup of your magento files install files and database at new location go into core_config_data table and search for “base”, there’s two base URLs you’ll need to point [...] -
Magento Showing Old Images on Categories
Are your pictures showing old images on categories, but your product pages are showing the current one? Is the System -> Configuration -> Catalog -> Catalog -> Frontend -> Use Flat Catalog Product and Use Flat Catalog Category turned on? If so, try rerunning the index on Product Flat Data and Category Flat Data. That [...] -
How Do I WordPress
That’s a pretty good question. There’s two ways of hosting a wordpress blog, either on wordpress’s website or on your own domain. I’ll cover hosting wordpress on your own domain here. First, if you’re hosting your own website you’ll need to download wordpress from http://wordpress.org/ Extract the files and upload to your web hosting provider. [...] -
Install Magento 1.4.1.0 on CentOS 5.5 on VirtualBox 3.2.4
Install CentOS 5.5 on Virtualbox 3.2.4 Run through the install steps on CentOS 5.5, the only thing you have to pay attention to is to NOT select virtualization Install MySQL on CentOS 5.5 By default, CentOS 5.5 does not come with MySQL server. yum install mysql-server Set the root password for MySQL Before doing anything [...] -
PHP GEO IP Lookup
Find location by IP address Looking to determine a visitor’s location by IP address, then what you’re looking for is called GEO IP. If you don’t want to pay for this service and know a bit of PHP, then give this gem a try at: Geo Lite City Works pretty well, country is pretty accurate, [...] -
PHP 5.2 on CentOS 5.4
Want to install Magento on CentOS 5.4 and need PHP 5.2? Make a new file here: /etc/yum.repos.d/centos-test.repo and paste the following into that file [c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/5/testing/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing Now run: yum update php Voila! -
How to Install Magento 1.4.0.1 on Fedora Core 6
So, for some reason, you’d like to install Magento on Fedora Core 6. I’ve just recently had to do this, and thought I’d share my experience since I couldn’t find much articles on this myself. YUM Updates on Fedora Core 6 First off, I love yum, it is absolutely wonderful, and you should ALWAYS try [...] -
PHP – How to Read and Parse XML
object simplexml_load_file ( string $filename [, string $class_name = "SimpleXMLElement" [, int $options = 0 [, string $ns [, bool $is_prefix = false ]]]] ); This wonderful function reads XML from a file and turns it into an object. http://www.php.net/manual/en/function.simplexml-load-file.php




