I changed website hosts. The code that worked on my old host does not
work on the new host. It appears that the php code is not running or
running correctly. Nothing related to php is displaying. Not even the
php code. Why would it work on one host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are there any
places to validate php code?
-- 15 1210
On Apr 18, 9:01*pm, "dan" <wrote:
I changed website hosts. The code that worked on my old host does not
work on the new host. It appears that the php code is not running or
running correctly. Nothing related to php is displaying. Not even the
php code. Why would it work on one host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are there any
places to validate php code?
--
Have you checked the error logs? Also, are you moving platforms? e.g
Windows to Linux? Another possiblity maybe that an extension that is
required is not present.
On Sat, 19 Apr 2008 00:01:16 +0200, dan wrote:
David Pyles wrote:
>On 4/18/2008 5:09 PM, dan wrote:
David Pyles wrote:
On 4/18/2008 4:01 PM, dan wrote:
I changed website hosts. The code that worked on my old host
does not work on the new host. It appears that the php code is
not running or running correctly. Nothing related to php is
displaying. Not even the php code. Why would it work on one
host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are
there any places to validate php code?
The first thing to do is to see whether your new host actually has
PHP installed and turned on. Copy and paste the following into a
text editor and save it as test.php and upload it to your server.
If PHP is working it will return more than you ever wanted to
know about the PHP settings on the server. If not, it will juts
return itself in your browser.
<?php
phpinfo();
?>
At first, it displayed a blank screen. After I deleted the local
.htaccess file, it displayed a whole crap-load of info.
Did you try your pages again after you deleted the .htaccess file? It sounds like it was blocking PHP.
Dave Pyles
Yes. This is one of the pages crashing: http://www.jaymartinreptiles.com/tips.html
..html is not usually parsed for php tags... Which are now clearly viaible
in the source.
--
Rik Wasmus
On 18 Apr 2008 22:01:16 GMT, dan wrote:
David Pyles wrote:
>On 4/18/2008 5:09 PM, dan wrote:
At first, it displayed a blank screen. After I deleted the local
.htaccess file, it displayed a whole crap-load of info.
Did you try your pages again after you deleted the .htaccess file? It sounds like it was blocking PHP.
Dave Pyles
Yes. This is one of the pages crashing: http://www.jaymartinreptiles.com/tips.html
Perhaps the webserver does not process through the PHP processor what it
does not know is php. How do we know this html page is php?
--
97. My dungeon cells will not be furnished with objects that contain reflective
surfaces or anything that can be unravelled.
--Peter Anspach's list of things to do as an Evil Overlord
On Apr 18, 3:57 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Sat, 19 Apr 2008 00:01:16 +0200, dan wrote:
David Pyles wrote:
On 4/18/2008 5:09 PM, dan wrote:
David Pyles wrote:
On 4/18/2008 4:01 PM, dan wrote:
I changed website hosts. The code that worked on my old host
does not work on the new host. It appears that the php code is
not running or running correctly. Nothing related to php is
displaying. Not even the php code. Why would it work on one
host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are
there any places to validate php code?
The first thing to do is to see whether your new host actually has
PHP installed and turned on. Copy and paste the following into a
text editor and save it as test.php and upload it to your server.
If PHP is working it will return more than you ever wanted to
know about the PHP settings on the server. If not, it will juts
return itself in your browser.
<?php
phpinfo();
?>
At first, it displayed a blank screen. After I deleted the local
.htaccess file, it displayed a whole crap-load of info.
Did you try your pages again after you deleted the .htaccess file?
It sounds like it was blocking PHP.
Dave Pyles
Yes. This is one of the pages crashing: http://www.jaymartinreptiles.com/tips.html
.html is not usually parsed for php tags... Which are now clearly viaible
in the source.
--
Rik Wasmus
Looks like the case. Rename your pages to end with .php instead
of .html (and related links) that should clear up the problem (if you
host supports PHP). To do it the other way and keep html at the end,
you will need to contact your web host to render .html pages as if
they were .php pages.
I changed website hosts. The code that worked on my old host does not
work on the new host. It appears that the php code is not running or
running correctly. Nothing related to php is displaying. Not even the
php code. Why would it work on one host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are there
any places to validate php code?
ISP provides PHP of course?
Correct verstion set? Esoecially important to set permissions
correctly also.
Using relative & not literal paths?
Identical directory structure?
Capitalization?
Glitch in a filename etc.?
Missing/forgotten file?
Both are Apache 2.2.8? Not clear what that means there.
Diffs in super globals or global use?
PHP.ini needs revision?
I'd give the new sites docs a good readthru for hints if you haven't
already.
HTH
Twayne
Rik Wasmus wrote:
On Sat, 19 Apr 2008 00:01:16 +0200, dan wrote:
David Pyles wrote:
On 4/18/2008 5:09 PM, dan wrote: David Pyles wrote:
On 4/18/2008 4:01 PM, dan wrote:
I changed website hosts. The code that worked on my old host
does not work on the new host. It appears that the php code is
not running or running correctly. Nothing related to php is
displaying. Not even the php code. Why would it work on one
host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are
there any places to validate php code?
The first thing to do is to see whether your new host actually
has >PHP installed and turned on. Copy and paste the following
into a >text editor and save it as test.php and upload it to
your server. >If PHP is working it will return more than you
ever wanted to >know about the PHP settings on the server. If
not, it will juts >return itself in your browser.
<?php
phpinfo();
?> At first, it displayed a blank screen. After I deleted the local .htaccess file, it displayed a whole crap-load of info.
Did you try your pages again after you deleted the .htaccess file?
It sounds like it was blocking PHP.
>
Dave Pyles
Yes. This is one of the pages crashing: http://www.jaymartinreptiles.com/tips.html
.html is not usually parsed for php tags... Which are now clearly
viaible in the source.
Hmmm. I'm not a php programmer. I had my website done about 5 years ago
and it worked flawlessly. I guess I need to find someone to "revisit"
the code of my site for flaws. Thanks everyone!
--
On 19 Apr 2008 14:09:01 GMT, dan wrote:
Rik Wasmus wrote:
>On Sat, 19 Apr 2008 00:01:16 +0200, dan wrote:
David Pyles wrote:
On 4/18/2008 5:09 PM, dan wrote: David Pyles wrote: On 4/18/2008 4:01 PM, dan wrote: I changed website hosts. The code that worked on my old host does not work on the new host. It appears that the php code is not running or running correctly. Nothing related to php is displaying. Not even the php code. Why would it work on one host and not the other?
Apache 2.2.8
Any ideas? The new host is not too excited about helping. Are there any places to validate php code?
The first thing to do is to see whether your new host actually
has >PHP installed and turned on. Copy and paste the following into a >text editor and save it as test.php and upload it to your server. >If PHP is working it will return more than you ever wanted to >know about the PHP settings on the server. If not, it will juts >return itself in your browser.
><?php phpinfo(); ?> At first, it displayed a blank screen. After I deleted the local .htaccess file, it displayed a whole crap-load of info.
Did you try your pages again after you deleted the .htaccess file?
It sounds like it was blocking PHP.
Dave Pyles
Yes. This is one of the pages crashing: http://www.jaymartinreptiles.com/tips.html .html is not usually parsed for php tags... Which are now clearly viaible in the source.
Hmmm. I'm not a php programmer. I had my website done about 5 years ago
and it worked flawlessly. I guess I need to find someone to "revisit"
the code of my site for flaws. Thanks everyone!
Code's probably fine, as far as it goes. Webserver's probably just
configured differently and you need all those .html pages and links to
them to become .php pages instead.
--
40. I will be neither chivalrous nor sporting. If I have an unstoppable
superweapon, I will use it as early and as often as possible instead of
keeping it in reserve.
--Peter Anspach's list of things to do as an Evil Overlord
Peter H. Coffin wrote:
On 19 Apr 2008 14:09:01 GMT, dan wrote:
Rik Wasmus wrote:
On Sat, 19 Apr 2008 00:01:16 +0200, dan wrote:
David Pyles wrote:
On 4/18/2008 5:09 PM, dan wrote: David Pyles wrote:
On 4/18/2008 4:01 PM, dan wrote:
I changed website hosts. The code that worked on my old
host >does not work on the new host. It appears that the
php code is >not running or running correctly. Nothing
related to php is >displaying. Not even the php code. Why
would it work on one >host and not the other?
>
Apache 2.2.8
Any ideas? The new host is not too excited about helping.
Are >there any places to validate php code?
>
The first thing to do is to see whether your new host
actually >has >PHP installed and turned on. Copy and paste
the following >into a >text editor and save it as test.php and
upload it to >your server. >If PHP is working it will return
more than you >ever wanted to >know about the PHP settings on
the server. If >not, it will juts >return itself in your
browser. ><?php
phpinfo();
?> At first, it displayed a blank screen. After I deleted the
local >>.htaccess file, it displayed a whole crap-load of info.
Did you try your pages again after you deleted the .htaccess
file? It sounds like it was blocking PHP.
>
Dave Pyles
Yes. This is one of the pages crashing: http://www.jaymartinreptiles.com/tips.html
.html is not usually parsed for php tags... Which are now clearly
viaible in the source.
Hmmm. I'm not a php programmer. I had my website done about 5 years
ago and it worked flawlessly. I guess I need to find someone to
"revisit" the code of my site for flaws. Thanks everyone!
Code's probably fine, as far as it goes. Webserver's probably just
configured differently and you need all those .html pages and links to
them to become .php pages instead.
Yep. I changed all html extensions to php and changed all code
references from html to php and my site is back up and running. Sadly,
I need a new ISP. This new one could not even get me back up and
running and that's his business.
Thanks to all for your help!
--
dan wrote:
Peter H. Coffin wrote:
>Code's probably fine, as far as it goes. Webserver's probably just configured differently and you need all those .html pages and links to them to become .php pages instead.
Yep. I changed all html extensions to php and changed all code
references from html to php and my site is back up and running. Sadly,
I need a new ISP. This new one could not even get me back up and
running and that's his business.
Thanks to all for your help!
If (1) you don't have thousands of pages on your site and (2) the new
host allows you to use htaccess files, then all you needed to do was add
a single line in there that would parse all .html pages for php:
If it's using PHP4:
AddType application/x-httpd-php .php .htm .html
or PHP5:
AddHandler application/x-httpd-php5 .html .htm .php
JackM wrote:
dan wrote:
Peter H. Coffin wrote:
Code's probably fine, as far as it goes. Webserver's probably just
configured differently and you need all those .html pages and
links to them to become .php pages instead.
Yep. I changed all html extensions to php and changed all code
references from html to php and my site is back up and running.
Sadly, I need a new ISP. This new one could not even get me back up
and running and that's his business.
Thanks to all for your help!
If (1) you don't have thousands of pages on your site and (2) the new
host allows you to use htaccess files, then all you needed to do was
add a single line in there that would parse all .html pages for php:
If it's using PHP4:
AddType application/x-httpd-php .php .htm .html
or PHP5:
AddHandler application/x-httpd-php5 .html .htm .php
Tried that and it failed to work.
--
dan wrote:
JackM wrote:
>dan wrote:
>>Peter H. Coffin wrote: Code's probably fine, as far as it goes. Webserver's probably just configured differently and you need all those .html pages and links to them to become .php pages instead. Yep. I changed all html extensions to php and changed all code references from html to php and my site is back up and running. Sadly, I need a new ISP. This new one could not even get me back up and running and that's his business.
Thanks to all for your help!
If (1) you don't have thousands of pages on your site and (2) the new host allows you to use htaccess files, then all you needed to do was add a single line in there that would parse all .html pages for php:
If it's using PHP4: AddType application/x-httpd-php .php .htm .html
or PHP5: AddHandler application/x-httpd-php5 .html .htm .php
Tried that and it failed to work.
Dan,
Their job is to keep the server running, not fix your pages for you.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
Jerry Stuckle wrote:
dan wrote:
JackM wrote:
dan wrote:
Peter H. Coffin wrote:
Code's probably fine, as far as it goes. Webserver's probably
just configured differently and you need all those .html
pages and links to them to become .php pages instead.
Yep. I changed all html extensions to php and changed all code
references from html to php and my site is back up and running.
Sadly, I need a new ISP. This new one could not even get me
back up and running and that's his business.
Thanks to all for your help!
If (1) you don't have thousands of pages on your site and (2) the
new host allows you to use htaccess files, then all you needed to
do was add a single line in there that would parse all .html
pages for php:
>
If it's using PHP4:
AddType application/x-httpd-php .php .htm .html
>
or PHP5:
AddHandler application/x-httpd-php5 .html .htm .php
Tried that and it failed to work.
Dan,
Their job is to keep the server running, not fix your pages for you.
They BUILD and MAINTAIN websites as part of their service.
--
dan wrote:
Jerry Stuckle wrote:
>dan wrote:
>>JackM wrote:
dan wrote: Peter H. Coffin wrote: >Code's probably fine, as far as it goes. Webserver's probably >just configured differently and you need all those .html >pages and links to them to become .php pages instead. Yep. I changed all html extensions to php and changed all code references from html to php and my site is back up and running. Sadly, I need a new ISP. This new one could not even get me back up and running and that's his business. > Thanks to all for your help! If (1) you don't have thousands of pages on your site and (2) the new host allows you to use htaccess files, then all you needed to do was add a single line in there that would parse all .html pages for php:
If it's using PHP4: AddType application/x-httpd-php .php .htm .html
or PHP5: AddHandler application/x-httpd-php5 .html .htm .php Tried that and it failed to work.
Dan,
Their job is to keep the server running, not fix your pages for you.
They BUILD and MAINTAIN websites as part of their service.
Their job is NOT to troubleshoot and fix YOUR code. It is only to
supply you with a place to host your site. If they also design
websites, they are responsible for what they do.
YOU, not your hosting company, are responsible for the code, html, etc.
that you supply. You want them to take over responsibility? Then
expect to pay for it. Big bucks.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
Jerry Stuckle wrote:
dan wrote:
Jerry Stuckle wrote:
dan wrote:
JackM wrote:
dan wrote:
Peter H. Coffin wrote:
Code's probably fine, as far as it goes. Webserver's
probably just configured differently and you need all
those .html pages and links to them to become .php pages
instead.
Yep. I changed all html extensions to php and changed all
code references from html to php and my site is back up and
running. Sadly, I need a new ISP. This new one could not
even get me back up and running and that's his business.
Thanks to all for your help!
If (1) you don't have thousands of pages on your site and (2)
the new host allows you to use htaccess files, then all you
needed to do was add a single line in there that would parse
all .html pages for php:
>
If it's using PHP4:
AddType application/x-httpd-php .php .htm .html
>
or PHP5:
AddHandler application/x-httpd-php5 .html .htm .php
Tried that and it failed to work.
Dan,
>
Their job is to keep the server running, not fix your pages for
you.
They BUILD and MAINTAIN websites as part of their service.
Their job is NOT to troubleshoot and fix YOUR code. It is only to
supply you with a place to host your site. If they also design
websites, they are responsible for what they do.
YOU, not your hosting company, are responsible for the code, html,
etc. that you supply. You want them to take over responsibility?
Then expect to pay for it. Big bucks.
If you say so.
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: murmur |
last post by:
http://www.threetwo.org/sullivan/mockup/
seems to work in mozilla 1.4, netscape 7.1, ie 6. Screenshots from other
systems/browsers would be great, particularly mac and aol.
Suggestions for...
|
by: Dave |
last post by:
A friend of mine pointed out the other day that certain elements on my web
site are too small. But in most of what I publish, fonts are at default size
or smaller, and my images are easy to see. I...
|
by: JT |
last post by:
Hi,
I think I need a "best practices" lesson on web sites and web services.
In order to conform to the restraints of my web host, my web services
seem to need to be in a subfolder of my web...
|
by: mike |
last post by:
I help manage a large web site, one that has over
600 html pages... It's a reference site for ham radio
folks and as an example, one page indexes over
1.8 gb of on-line PDF documents.
The site...
|
by: mark4asp |
last post by:
I moved a page to another web-site and now it's broke!
I had 5 pages in their own web-site. These pages have now been moved
to another web-site. Everything is fine except that one of the pages,...
| |
by: nyhetsgrupper |
last post by:
Hi,
Which project type do you prefer? Is the web site or web application
project the best solution? The application I am about to write is
completly new so migrating from vs 2003 is not an issue,...
|
by: Alan F |
last post by:
Can anybody please help me with this one.
I have just changed my hosting company and moved a web site to it.
For some reason my framed menus now no longer works correctly.()
I have set up up a...
|
by: John Ladasky |
last post by:
Hi folks,
Running Python 2.5 on both a Windows XP laptop, and an Ubuntu Linux
7.04 desktop.
I've gotten tired of maintaining multiple copies of my personal
modules that I use over and over. ...
|
by: Ty |
last post by:
Hello all,
I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |