News: May 16, 2012, 11:14:19 PM

Please help support the ongoing development of our Affiliate Website Script using our
recommended Hosting Company & Directory Submission Software

Stay informed with our eBay RSS Feeds from our eBay affiliates forum:

eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.
Welcome, Guest. Please login or register. *

How do I trigger the correct version of PHP?
Pages: [1]   Go Down
  Print  

  How do I trigger the correct version of PHP?
Author Message
0 Members and 1 Guest are viewing this topic.
MrJaymo
New EZAWBer
*

Karma: 8
Offline Offline

Posts: 24


Chief Everything, Jaymo's Garage Sale


WWW
« on: March 29, 2008, 05:20:36 PM »

I'm sure the answer is simple, but I'm not seeing it   Huh?

My initial issue was that when installing and testing the ioncube loaders on my Earthlink hosted site, I was being told that my version of PHP needed to be upgraded because the necessary loader file was no longer supported.

Turns out that my server, however, supports both PHP4 (version 4.1.2) and PHP5 (version 5.0.5). With that, I have reinstalled the ioncube loaders. My problem now is that the "default" appears to be PHP4.

If I run the loader test without modification (http://www.jaymoinc.com/jaymos-test-site/ioncube-loader-helper.php), the script attempts to load PHP4 and I get the original error. However, if I modify the name of the test file with the extension *.PHP5 (http://www.jaymoinc.com/jaymos-test-site/ioncube-loader-helper.php5), I get a successful load.

So now that I know that the ioncube loaders should work successfully on my server, how or where do I need to make modifications to ensure that the proper version of PHP is triggered for the EZAWB scripts?

Any guidance or insight would be greatly appreciated.
Logged

www.auctionsforobama.com
www.auctions4golf.com
www.hiphophoneyonline.com
EZAWB Admin
EZAWB Admin
Administrator
Master EZAWBer
*****

Karma: 61
Offline Offline

Posts: 1019


The Best Affiliate Website Builder!


WWW
« Reply #1 on: March 29, 2008, 05:45:16 PM »

MrJaymo,

Question... Wouldn't it be easier to just use HostGator.com?

Their hosting is very affordable at $10 per month for unlimited domains...

My philosophy is; if it doesn't work right away, and you have to spend too much time getting it to work, then use something else.

Does anyone else have anything to suggest?

I'd appreciate it  Smiley

Thank you. icon_salut

Jorge
Logged

MrJaymo
New EZAWBer
*

Karma: 8
Offline Offline

Posts: 24


Chief Everything, Jaymo's Garage Sale


WWW
« Reply #2 on: March 29, 2008, 06:01:02 PM »

Jorge...

I might get there or go that direction at some point in the future, but right now (1) I get great personal satisfaction from learning how "things" work and (2) I believe that there's no sense in spending money on a "new tool" if the one you already have would or should do the job.

Thanks though for your thoughts.
Logged

www.auctionsforobama.com
www.auctions4golf.com
www.hiphophoneyonline.com
EZAWB Admin
EZAWB Admin
Administrator
Master EZAWBer
*****

Karma: 61
Offline Offline

Posts: 1019


The Best Affiliate Website Builder!


WWW
« Reply #3 on: March 29, 2008, 06:07:47 PM »

MrJaymo,

Got it Smiley

I wish I knew the solution for you. Huh?

I will really appreciate if you find a work-around, if you could post it for all of us to learn from it. icon_thumright

Thank you icon_salut

Jorge
Logged

MrJaymo
New EZAWBer
*

Karma: 8
Offline Offline

Posts: 24


Chief Everything, Jaymo's Garage Sale


WWW
« Reply #4 on: March 31, 2008, 05:00:40 PM »

I'm sure the answer is simple, but I'm not seeing it   Huh?

My initial issue was that when installing and testing the ioncube loaders on my Earthlink hosted site, I was being told that my version of PHP needed to be upgraded because the necessary loader file was no longer supported.

Turns out that my server, however, supports both PHP4 (version 4.1.2) and PHP5 (version 5.0.5). With that, I have reinstalled the ioncube loaders. My problem now is that the "default" appears to be PHP4.

If I run the loader test without modification (http://www.jaymoinc.com/jaymos-test-site/ioncube-loader-helper.php), the script attempts to load PHP4 and I get the original error. However, if I modify the name of the test file with the extension *.PHP5 (http://www.jaymoinc.com/jaymos-test-site/ioncube-loader-helper.php5), I get a successful load.

So now that I know that the ioncube loaders should work successfully on my server, how or where do I need to make modifications to ensure that the proper version of PHP is triggered for the EZAWB scripts?

Any guidance or insight would be greatly appreciated.

Turns out that the solution was simple as expected. The following is a log of my exchange with the folks at Earthlink which details the work-around. Unfortunately for me, my "starter site" doesn't support multiple domains so I've gone ahead and "invested in the new tool (Hostgator)".

I hope that someone else will benefit from this information...and don't hesitate to message me if you feel that I can be of assistance.

admin@jaymoinc.com: I understand from previous chats that PHP versions 4 and 5 are both available on my starter site, however, it appears to default to php4. How do I trigger php 5?
Christopher: You will need to use .php5 for your file extensions. 
Christopher: Using .php4 will only parse commands that are available on version 4 only.

admin@jaymoinc.com: ok
Christopher: Do you have any further clarications on this?
admin@jaymoinc.com: sorry for the delay
admin@jaymoinc.com: Are there any other options that you are aware of?

Christopher: Well, if you prefer using .php as your file extension or if you have a number of php files with the .php extension already on your webspace, you can add the following code to make our PHP 5 interpret it:
Christopher: AddHandler php5-script .php
Christopher: This code should be added on the .htaccess file.
Christopher: If you need to have your php be interpreted by our PHP 4.1.2, just change php5-script to php4-script.
Christopher: Each folder that has a php file should have their own .htaccess file.


In order to edit your .htaccess fill, you simply need to download it from your server to your hard drive, open the file in notepad, insert the new (or replace the existing) AddHandler instruction [AddHandler php5-script .php], save and reload.

Files with the .php extension will now trigger PHP5.

MrJaymo
Logged

www.auctionsforobama.com
www.auctions4golf.com
www.hiphophoneyonline.com
EZAWB Admin
EZAWB Admin
Administrator
Master EZAWBer
*****

Karma: 61
Offline Offline

Posts: 1019


The Best Affiliate Website Builder!


WWW
« Reply #5 on: March 31, 2008, 06:40:32 PM »

MrJaymo,

Thank you. icon_salut You are the man! icon_thumleft

Jorge
Logged


Pages: [1]   Go Up
  Print  

 

Jump to:  

Get your website featured here through Jan 22 2010

Choose Your Keywords (2 keywords max)

Powered by ezClouds


Please consider using our Recommended Hosting & eBay website Directory Submission Software
Host UNLIMITED eBay affiliate websites for only $7.95 per month!
You will be supporting the ongoing development of ez Affiliate Website Builder.

eBay affiliate hosting