3 replies
Is it possible to have a PHP site working properly when developed using Wamp and get a host of errors once FTP'd on a linux server? How can a site work on Wamp and not for hosting? I really appreciate any insights.

I even imported my MySQL database and it's not being read. I've checked for errors but can't find anymore. The MySQL database on Wamp had no problems with a table not having a primary, all of a sudden, my hosting is giving me a "Index Not Defined" error in the MyPHPAdmin. Is it that much of a difference versus Wamp and going to a Linux hosted server? I don't get it.

The sad thing is, I took an Introduction to PHP and MySQL course and made this website. Like I said, it worked fine in Wamp. I don't get it. Any comments or suggestions are appreciated.



Jay
(Newbie to PHP and MySQL - But Determined to Learn)
#mysql database #mysql error #php #question #quick
  • Profile picture of the author jlandells
    Hi Jay,

    There could be an issue in terms of which modules you're using and the version of PHP. Try creating a phpinfo.php file (Google phpinfo for instructions) and try it out both locally and on your server. You may spot something fundamental.

    Hope that helps!

    -John.
    {{ DiscussionBoard.errors[6622398].message }}
  • Profile picture of the author frank007
    Hello Mate,

    Do one thing write this bit of code in a file for example test.php:

    Code:
    <?php
    phpinfo();
    ?>
    and run that file first in WAMP and then on your FTP location and check for the php version at the top of the page. If they are different contact your hosting and let them know about it and ask them to upgrade to latest version else you need to upgrade php version of your WAMP if you have an older version.

    Thank you

    Originally Posted by Prospernlive View Post

    Is it possible to have a PHP site working properly when developed using Wamp and get a host of errors once FTP'd on a linux server? How can a site work on Wamp and not for hosting? I really appreciate any insights.

    I even imported my MySQL database and it's not being read. I've checked for errors but can't find anymore. The MySQL database on Wamp had no problems with a table not having a primary, all of a sudden, my hosting is giving me a "Index Not Defined" error in the MyPHPAdmin. Is it that much of a difference versus Wamp and going to a Linux hosted server? I don't get it.

    The sad thing is, I took an Introduction to PHP and MySQL course and made this website. Like I said, it worked fine in Wamp. I don't get it. Any comments or suggestions are appreciated.



    Jay
    (Newbie to PHP and MySQL - But Determined to Learn)
    {{ DiscussionBoard.errors[6622724].message }}
  • Profile picture of the author Prospernlive
    Ok, I think the PHP version is different. I looked at the info.php and not sure what I'm looking for. Sorry I'm just now coming back. I'm having MySQL issues with another site as well but both problems are similar.

    One site isn't reading the database and the other site won't let me enter HTML advertisement. It's only accepting text. VARCHAR isn't a solution since it's limited to 255 characters.

    At this point, I'm lost. I can't post the link because I don't have 15 posts yet. What a shame, I'm not trying to sell anything lol.

    I'm still looking at the info.php file and I'll check the PHP versions. MySQL is the same 5.5.20. Thanks for the responses.
    {{ DiscussionBoard.errors[6654668].message }}

Trending Topics