Hello there. I have just uploaded the script to a webserver and have everything properly chmoded. There is a slight problem when receiving an email with a link to an uploaded file, it looks like this:
It's this line in the process.php file that rarely ever works.
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
You can change it to somthing like this.
$where_form_is="http://www.yoururl.com/yourformsfolder/"));
Basically everything that should appear before "files/filename".
If you move the form location obviously you would have to change this manually to match the new location.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the help but this fix would become quite anoying each form that I would generate since I would need to edit the path each time for each form. Is there a way to actually fix it so it knows where it's located?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello there. I have just uploaded the script to a webserver and have everything properly chmoded. There is a slight problem when receiving an email with a link to an uploaded file, it looks like this:
http://files/myfilehere.jpg
As you can see, it doesn't provide the domain name but instead just has "files/". So of course the link to the uploaded image does not work.
I am not using a MySQL databas and everything was uploaded correctly with the proper directory format and permissions.
Could anyone please help out with this issue? Thanks in advance.
-Eman
It's this line in the process.php file that rarely ever works.
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
You can change it to somthing like this.
$where_form_is="http://www.yoururl.com/yourformsfolder/"));
Basically everything that should appear before "files/filename".
If you move the form location obviously you would have to change this manually to match the new location.
Thanks for the help but this fix would become quite anoying each form that I would generate since I would need to edit the path each time for each form. Is there a way to actually fix it so it knows where it's located?
Thanks.