ok, so a client's host suddenly upgraded to 5 the other day, and now my stuff won't work. we turned on Zend Engine 1 compatibility mode, but it still only spits out empty <html> and <body> tags. anyone have any tips?I seen you post this in Torrent's php5 thread. sorry TM, I don't have any experience in php5. but from what I have read it should be a clean switch. the only gotcha is mysql. now they use mysqli or something. have you looked at the logs? sometiems it may error out and not giving you a message.
can you post some code?
an you run phpinfo() and see if it is actually working?yeah, it's working alright. i have no access to the logs on this host. i can't even run phpMyAdmin to check the database. here's the phpinfo()do you use mysql? if so that would cause it. mysql is not enabled as an extension anymore in php5.0. you have to compile it in it now and it doesn't look like it is.
as far as that I don't know. can you contact there support team?i do use MySQL, but i wouldn't think that cause it to spit out a blank screen. i've been emailing support, but it's a slow process and i'm not sure how up to speed on PHP5 they actually are.
but yeah... i've read at php.net that most code should generally run exactly the same way as before. so i can't imagine what's wrong, but it's really been quite a setback for the client & me. we were soooo close to relaunching the site!Just FYI, I use quite a bit of mySQL on my site, and I just starting messing with php5 (powweb.com, my new host has php 4.x set as the default, and php5 handles all .php5 files). I haven't run into any problems (except that I had to switch my site over from .php to .php5, but that's just a host-specific thing). All of my mysql_query's (inserts, updates, deletes, etc), mysql_error's, num_rows, etc, etc...they all work fine. Here is a link to my php5 phpinfo() (<!-- m --><a class="postlink" href="http://autotransteam.com/php5/phpinfo.php5">http://autotransteam.com/php5/phpinfo.php5</a><!-- m -->). Mine has that mysql section though...
If all pages give you the same effect, could you post some code from one?I forgot all about php5 being at powweb. and if I remember correctly, it appears I can't so this maybe false , that they compiled it with the mysql extension so ti will run as normal like php4.I'm not too familiar with the changes from php4 to php5, but all of my stuff seems to work just fine in 5. It even has some nice changes. Take a look at the foreach statement. Now you can do this:
can you post some code?
an you run phpinfo() and see if it is actually working?yeah, it's working alright. i have no access to the logs on this host. i can't even run phpMyAdmin to check the database. here's the phpinfo()do you use mysql? if so that would cause it. mysql is not enabled as an extension anymore in php5.0. you have to compile it in it now and it doesn't look like it is.
as far as that I don't know. can you contact there support team?i do use MySQL, but i wouldn't think that cause it to spit out a blank screen. i've been emailing support, but it's a slow process and i'm not sure how up to speed on PHP5 they actually are.
but yeah... i've read at php.net that most code should generally run exactly the same way as before. so i can't imagine what's wrong, but it's really been quite a setback for the client & me. we were soooo close to relaunching the site!Just FYI, I use quite a bit of mySQL on my site, and I just starting messing with php5 (powweb.com, my new host has php 4.x set as the default, and php5 handles all .php5 files). I haven't run into any problems (except that I had to switch my site over from .php to .php5, but that's just a host-specific thing). All of my mysql_query's (inserts, updates, deletes, etc), mysql_error's, num_rows, etc, etc...they all work fine. Here is a link to my php5 phpinfo() (<!-- m --><a class="postlink" href="http://autotransteam.com/php5/phpinfo.php5">http://autotransteam.com/php5/phpinfo.php5</a><!-- m -->). Mine has that mysql section though...
If all pages give you the same effect, could you post some code from one?I forgot all about php5 being at powweb. and if I remember correctly, it appears I can't so this maybe false , that they compiled it with the mysql extension so ti will run as normal like php4.I'm not too familiar with the changes from php4 to php5, but all of my stuff seems to work just fine in 5. It even has some nice changes. Take a look at the foreach statement. Now you can do this:
PHP:
$arr = array(1,2,3);
foreach($arr as &$value){$value += 2;}
//$arr is now [0]=3 [1]=4 [2]=5[php]
Scoutt...at powweb servers www1-www14 I have php5 I think...the rest don't have it yet. I'm www12 :)I am on www14 I believe, I will have to play with it later. :)
TM, can you show us some code so we can see if is the code or not?i'm running b2evolution, which runs fine on php5, AFAIK...
/index2.php:
if( empty($blog) )
{
require dirname(__FILE__).'/default2.php';
exit();
}
$show_statuses = array();
$linkblog_cat = '';
$linkblog_catsel = array( );
$timestamp_min = '';
$timestamp_max = 'now';
require dirname(__FILE__)."/$core_subdir/_blog_main.php";
?>
...which eventually gets around to calling up
/skins/vatmag/_main.php (attached):have you tried loading this page directly?
default2.php
if so does it work?hmm... that's a file i never really did anything with, since i solved the issue it pertains to elsewhere... i set that variable in another file. so i'm not sure how that default2.php could ever be called upon, but it is a blank file...
we've reverted back to PHP 4.3.4 today though.than it appears not to have been your code then huh?
that is cool.yeah, honestly, i don't think this host is very experienced (to put it diplomatically). they're nice, though.