• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

php pages do not work.

I created a website for a client that uses 2 php pages. Everything worked fine, then they moved the domain. When I re-uploaded the website, the php pages stopped working. The photos page shows up, but the photo thumbnails do not show up. The contact page doesn't even show up at all, if using IE it asks you to download contact.php  and when using mozilla it just shows the code.

I spoke to the guy who is supposedly "in charge" of their IT department and told him I didn't think php was enabled or it was improperly configured on their hosting server. He replied that everything was up and it was something in my code. I remember something similar to this in the past with a php.ini or conf file but can't put my finger on it.

Thanks in advance!

bbrunning
0
bbrunning
Asked:
bbrunning
  • 4
  • 4
  • 3
2 Solutions
 
gamebitsCommented:
Save this in a file with a php extension and upload to the server than open the page with your browser you should see how php engine is set up on the server (if it's runnunig)

<?php
phpinfo()
?>
0
 
nizsmoDeveloperCommented:
Are any of the code paths hard coded instead of relative paths? This may cause some problems when moving to a different host/url.

Images not showing up suggests that maybe the GD library is not installed (if you utilized GD library for creating thumbnail).
To verify:
<?php phpinfo(); ?>

This should display lots of details of PHP, look for the GD library section.

Hope this helps.
0
 
nizsmoDeveloperCommented:
@gamebits

I think you missed the ";"

No big deal though :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
bbrunningAuthor Commented:
gamebits:

I made a file called temp.php with only this in it:
<?php
phpinfo()
?>

when I uploaded it and typed it in the url, ie asked if I wanted to save/open/cancel the file.

here's the link
http://www.condohoteluniversal.com/temp.php
0
 
bbrunningAuthor Commented:
nizsmo:
I never hardcode url paths, just folder paths just in case they change servers/domains.

also I added the ; and it did the same thing.
0
 
gamebitsCommented:
On my browser it shows the text

<?php phpinfo(); ?>

I have to say php is not running on the server.
0
 
nizsmoDeveloperCommented:
bbrunning:

PHP is indeed not running like gamebits said.

Hope this clarifies up the problem with your PHP scripts, as there is probably nothing wrong with your scripts, just the server can't handle PHP at the moment.
0
 
bbrunningAuthor Commented:
I just needed reassurance from some fellow coders. You guys don't understand the crap I've had to deal with from this so called "IT Manager" for this company. He just won't take "It's not on my side, it's on your side that is the problem" for an answer. hehe

Thanks again guys!

bbrnning
0
 
nizsmoDeveloperCommented:
Glad to be of assistance :)
0
 
gamebitsCommented:
Thanks for the points and the grade, you should ask the "IT manager" to show you a working example of a php page.
0
 
bbrunningAuthor Commented:
lol, yeah that'd prolly show him who's right. =þ
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now