I’m in the process of re-installing a backup of a PHP script on a new server.
The previous web developer has gone missing in action and he has yet to release the domain in that’s under his management.
So for the new server they only provided me with mySQL details and FTP access. They say they don’t have temporary testing url so I can only upload the backup without testing it.
I changed the mySQL server variables but in the script there are also some server side specifics. For example the full path has to be defined in the config file. I only have FTP access so I can’t run a simple phpinfo().
Is there any other way to get this specific server information with only FTP access? I basically need the full server path where the script will be installed.
Thanks!
Well, IF apache (or whichever webserver) on that IP is already configured for your FQDN (which you couldn’t set to the new IP yet), then you could upload a PHP file with a phpinfo() call. Afterwards you could telnet onto the known IP port 80 and send
So e.g., if your FQDN was http://www.example.com:
The web server should then send the output of your PHP script.
Note that your lines have to end with a
<CR><LF>and that there is a blank line after your Host:-line.