C
|
cgphp 9/10/2013 |
Post your code. |
C
|
cgphp 9/11/2013 |
If you point your browser to http://webserver/web/imager.php?table=dbo_Table&field=IMAGEFIELD1&key1=123456
|
C
|
copper21 author 9/11/2013 |
If you point your browser to http://webserver/web/imager.php?table=dbo_Table&field=IMAGEFIELD1&key1=123456
|
C
|
cgphp 9/11/2013 |
Post the code of the imager.php file. |
C
|
copper21 author 9/11/2013 |
Post the code of the imager.php file.
|
C
|
cgphp 9/11/2013 |
You can attach the images as described in the Sergey tutorial. Post the code you use to attach the images stored in the database. |
C
|
copper21 author 9/11/2013 |
You can attach the images as described in the Sergey tutorial. Post the code you use to attach the images stored in the database.
|
C
|
cgphp 9/11/2013 |
If you click the button, what happen? Do you receive the message? |
C
|
copper21 author 9/11/2013 |
Yes, I do. All works except for the images from IMAGEFIELD1 and IMAGEFIELD2 are not attached. |
C
|
cgphp 9/11/2013 |
If the file are saved as binary, you can try this solution: $sql = "SELECT * FROM dbo.Table WHERE ID =". $keys['ID']; |
C
|
copper21 author 9/11/2013 |
Cristian, |
C
|
cgphp 9/11/2013 |
Yes, create a folder named files for example or what else you like. Put the folder at the same level as the other PHPrunner folders. Using firebug helps you to debug the server response more easily. |
C
|
copper21 author 9/11/2013 |
Perfect Cristian!
|
C
|
cgphp 9/11/2013 |
1. If I want to save all of the images in the "files" folder that get emailed, could I add a timestamp to each of the images so that they don't get overwritten; giving them a fairly unique name? $sql = "SELECT * FROM dbo.Table WHERE ID =". $keys['ID']; 2. Is what I did with the IIS_IUSRS permissions safe? I right clicked just on the "files" folder and gave them write permissions.
$timestamp = date('Ymdhis'); |
C
|
copper21 author 9/11/2013 |
Thanks again. I am using IIS. So creating a folder named "files" lets say at C:\inetpub\files and giving that folder write access to IIS_USRS is correct? I would then have my code like this? |
C
|
cgphp 9/12/2013 |
Yes, your solution should work. |
C
|
copper21 author 9/12/2013 |
Yes, your solution should work.
|