Hi friends, I'm a problem with a code PHP, I do not know much thing of this language, only the basic...
Then if somebody will be able to help me...
The code is:
Necessary to modify the following:
<a href="'.$file.'" target="_blank">
Necessary that a new window with specific size is opened, without bars of clod roller, status and others...
I tried to place the following command:
<a href="javascript:;" onClick="window.open('.$file.','resp1','scrollbars=no,width=660,height=505,scrolling=no');">
But when loading the page is indicated error in the modified line...
I do not know what it must be wrong in the code, the shown error is:
-----------------------------------------------------------
parse error, unexpected T_STRING, expecting ',' or ';' in /home/.../test.php on line 35
-----------------------------------------------------------
It will be that somebody can help me, which is the error?
Or somebody knows one another form of for the link as indicated?
Thank U
Then if somebody will be able to help me...
The code is:
| Quote: |
|
<?php if ($handle = opendir('imagens')) { while (false !== ($file = readdir($handle))) { if (strtolower(substr($file,-4,4)) == '.jpg' || strtolower(substr($file,-4,4)) == '.gif' || strtolower(substr($file,-4,4)) == '.png' || strtolower(substr($file,-5,5)) == '.jpeg') { $alt = 'click to view the image in original size...'; echo '<a href="'.$file.'" target="_blank"><img src="thumb.php?'.$file.'" alt="'.$alt.'" /></a>'."\n"; } } closedir($handle); } ?> |
Necessary to modify the following:
<a href="'.$file.'" target="_blank">
Necessary that a new window with specific size is opened, without bars of clod roller, status and others...
I tried to place the following command:
<a href="javascript:;" onClick="window.open('.$file.','resp1','scrollbars=no,width=660,height=505,scrolling=no');">
But when loading the page is indicated error in the modified line...
I do not know what it must be wrong in the code, the shown error is:
-----------------------------------------------------------
parse error, unexpected T_STRING, expecting ',' or ';' in /home/.../test.php on line 35
-----------------------------------------------------------
It will be that somebody can help me, which is the error?
Or somebody knows one another form of for the link as indicated?
Thank U
