![]() |
|
|
|
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I have a site with simple php page:
http://alabanzayadoracion.org/preview.php which as you see gives error: error makes no sense, since, @ line 55 - 62 is: Code:
{
echo "<img src='http://alabanzayadoracion.org/graphics/himn1.gif' border='0' />";
}
echo
?>
<br>
<br>
however, have same page on former server (xxdaddy) ![]() and it runs fine on plesk with older ver. of php: MAA Player - Ministerios Alabanza y Adoración - Cantad al Señor hican cpanel server: 5.2.4 phpinfo() nodaddy plesk server: 4.2.2 phpinfo() Do I need to downgrade php, & if so, how? do I need to add edited php.ini to the domain? Thanks... |
|
||||
|
Hey man,
What you should do is this: How to: Change PHP Modes and Versions That way you can downgrade, etc ... without causing issues.
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
|
||||
|
Quote:
I read another faq to add entry to .htaccess for individual domain to change php version. |
|
||||
|
Quote:
Login to /whm Go to >> Service Configuration >> Configure PHP and SuExec besides, Is it wise to "down grade" -- what if another site needs the later version? I read another faq to add entry to .htaccess for individual domain to change php version. I'm not even certain that it is a version issue, perhaps, just a setting needs to be changed? |
|
||||
|
Yes, you can use this page to change the PHP versions that are running on your site. From PHP5 to PHP4 and Module (DSO) or CGI ...
This you will have to play with until your scripts works. For Godaddy.com its: DSO PHP4
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
|
||||
|
Why downgrade?
You should just fix the code so you can run the newer versions of PHP. It looks to me like you are just missing a semicolon. The code you showed should be: Code:
{
echo "<img src='http://alabanzayadoracion.org/graphics/himn1.gif' border='0' />";
}
echo "<br><br>";
Code:
{
echo "<img src='http://alabanzayadoracion.org/graphics/himn1.gif' border='0' />";
}
?>
<br>
<br>
|
|
||||
|
I dont know PHP too well, but I also noticed the error in the code with the standalone echo command.
__________________
█ HostICan Discount - New customer? Save $50 on your HostICan hosting purchase! █ HostICan Hosting Reviews - See what other customers say about HostICan. █ Simple Hosting - Web Hosting Made Simple! |
|
||||
|
By the sounds of it, PHP has reworked its PHP version 5 completely.
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
|
||||
|
That's what I've been studying though, PHP5.
![]()
__________________
█ HostICan Discount - New customer? Save $50 on your HostICan hosting purchase! █ HostICan Hosting Reviews - See what other customers say about HostICan. █ Simple Hosting - Web Hosting Made Simple! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to: Change PHP Modes and Versions | lnxcode | Virtual Private Servers (VPS) | 3 | 02-08-2008 05:04 PM |
| PHP compiling on VPS | roger | Virtual Private Servers (VPS) | 2 | 12-08-2007 07:34 PM |
| How To: Compile your PHP as CGI | lnxcode | Virtual Private Servers (VPS) | 5 | 10-30-2007 04:51 AM |
| Cannot Allocate Memory Error | itwasntme | Virtual Private Servers (VPS) | 10 | 10-26-2007 02:18 PM |
| CGI error | domz | Shared Hosting | 3 | 10-04-2007 03:10 AM |