Forum Moderators: coopster

Message Too Old, No Replies

PHP files not processed or "found" on remote server

User login system works locally; not on remote server

         

mlkarie

3:58 pm on Oct 23, 2003 (gmt 0)

10+ Year Member



I’ve just uploaded a user registration system to the remote server where my client’s website is to be hosted. The Flash file (in the htm file) correctly calls the php file to do the database processing, but it says “file not found”.

I then wrote a basic test file, which contains one line of text in HTML, followed by a line of text in the form of <? echo “This is sentence no 2”?>. This file works perfectly on localhost on my own computer. On the remote server, only the HTML line of text shows up.

I’m using PHP 4.3.2 MySQL 4.0.13 PHPMyAdmin 2.5.2

Remote server: PHPMyAdmin 2.5.1 MySQL 3.23.54
can’t see what PHP version they are using (could be PHP3)

Even if the remote server is running a previous version of PHP, surely something like ‘echo “this is my sentence” ‘ should work?

The remote server’s control panel facility has a PHPMyAdmin page where I created the database file. Surely if the server admin has set up PHPMyAdmin, then PHP itself must also be working properly?

What can I check from my side, before contacting them to ask why the PHP file is not being processed correctly?

Please help
mlkarie

Timotheos

4:51 pm on Oct 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

The acid test is to put a file on the remote server that just has this:

<?php phpinfo();?>

That will display lots of info about the php setup. One thing you'll want to check first is to see if short tags are enabled. I think it's better practice to write <?php rather then just <?

Tim

mlkarie

6:15 pm on Oct 23, 2003 (gmt 0)

10+ Year Member



Thanks, I should have thought of phpinfo();

You are not going to believe this, but right now that remote server even says "Page not found" for some of the straight *.htm files that I'm uploading to test, even though the files are clearly visible in the ftp window.

So I can't even get to see if the phpinfo() line is working, seeing that it won't even display a simple htm file. (All files are in the same folder - the ones that are displayed, as well as the ones that aren't displayed.)

Will report back later if I get somewhere with this...