473,734 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php sript wont run properly when inside a tbale cell

19 New Member
Hi,
Can anybody tell me why my php script wont run properly unless i put it in a page all on its own? Is it antisocial? Does it want to be alone? I have put it in a page with background and links to other pages, but it wont generate a large version of a thumbnail unless it has a page all to itself. here is the php coding i've used:
<td colspan="2" rowspan="3" width="760" >
<?php
/**
* Autogallery
* Urs Gehrig, <urs @circle.ch>
*
*/
// $Id: index.php,v 1.1 2002-10-07 23:50:02+02 urs_gehrig Exp urs_gehrig $

error_reporting (E_ALL ^ E_NOTICE);

require_once("i ntegratedtempla te.inc.php" ); // get this from pear.php.net or cvs.php.net
require_once("a utogallery.inc. php" ); // get this from circle.ch/scripts

// define to create the images index automatically or
// reading it from an index-file
define("GALLERY _SOURCE", "file");

if(GALLERY_SOUR CE == "file" )
{
/**
* define galleries from file; always start with an index of 1!
*/
$arr = file("./index.album");

function trim_array ($value, $key) {
global $arr, $multiple;
$i = 0;

foreach ($arr as $key => $val) {
// prevent adding empty lines to the selection menu
if(strlen(trim( $val)))
$multiple[++$i] = explode("#", $val);
}
}
array_walk($arr , 'trim_array');

} else
{
/**
* read image-folders of the format "YYYY-MM-DD". this is
* pretty cool if you upload images with forms and let generate
* php a folder on each "upload-day"
*/
$d = dir("./" );
while($entry=$d->read() ) {
if(stristr($ent ry, strftime("%Y") )) {
if(is_dir($entr y)) $multiple[++$index] = array("./cache", "./$entry", "./templates/frame.png", $entry );
}
}
}

// handle query-manipulations
if(!isset($_GET['g'])) $_GET['g']=1;

// get instance of autogallery
$ag = &new autogallery($mu ltiple[$_GET['g']][0], $multiple[$_GET['g']][1], $multiple[$_GET['g']][2] );
$ag->desc = "Page(s): ";

// handle the template file
$tpl = &new IntegratedTempl ate("./templates" );
$tpl->loadTemplatefi le("tpl.index.h tml", true, true);
$content = array(
// set rows and columns of images per page
"htm_conten t" => $ag->thumbnail_tabl e(3, 2, $multiple ),
// get the hosts address
"htm_host" => "http://" . $_SERVER['HTTP_HOST'] . (strlen($_SERVE R['PHP_SELF'] ) ? "" . str_replace(bas ename($_SERVER['PHP_SELF']), "", $_SERVER['PHP_SELF']) : "" ),
// set a title for the pop-up window
"htm_script " => $ag->show_jscript(" Autogallery Pop-Up Title"),
);
$tpl->setVariable($c ontent);
$tpl->show();

?>


</td>

hope you can help, thanks.
Diz
Apr 13 '06 #1
1 1594
Diz
19 New Member
the problem was with a norton pop up blocker. Using a grisoft AV instead and code works fine now.
Apr 26 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1655
by: Filips Benoit | last post by:
Dear All, I'm looking for a VBA-code to run a sql-sript from the Access.adp-interface. I want to send scripts so my client can add sql-server-objects from the interface. Thanks, Filip
1
8453
by: Kai Grossjohann | last post by:
I have a table which contains a top-aligned table cell: .... <tr style="height:40"> ... <td colspan="1" rowspan="2" align="left" valign="top" style="overflow:hidden;"> ...contents.explained.later... </td> ...
1
1977
by: Shawn Benson | last post by:
I have a Windows form where a user enters an order number which returns a dataset that is bound to a datagrid. The problem is when a user clicks on a cell in the datagrid, then enters another order to get information for, everything is updated with the new data except the cell in the grid that was selected. This behavior does not occur when a table style is not applied to the datagrid. How do I refresh the datagrid so that the cell in...
2
7741
by: taras.di | last post by:
Hi everyone, I know that there's been a bit of discussion involving placing <div>s inside table cells, but I've read all of the posts and couldn't find anything that solved my problem. I've written some test code which can be found at www.freepgs.com/dimitri/tables_css.php. 1) The first example places an absolute positioned div inside a
7
2624
by: Daniel Kabs | last post by:
Hi there, for a long time I've been using tables to layout elements on a web page. Example: Say we have a 2x2 table and I'd like to put text (left aligned) and buttons (right aligned) in the top right table cell. These elements should stay on one line and the table should keep a minimum width in order to prevent wrapping. -------------------------------------------------
2
2296
by: amitp | last post by:
hi i'm using MS Word2003 for my VB application which is a report. The word documents contains tables and the cells inside the table contain some fields. My application replaces the field values with Values from database. The problem i was getting is if the text length that is replaced is more than the cell length it was not displaying at all rather "Display Text Cannot Span More Than One Line" is displayed in that cell. I need to wrap the...
5
3636
by: Test | last post by:
Is it possibel to have DIV's inside a table cell so that their position can be given relative to top left corner of the cell. Now the DIVs seem to position themselves relative to previous object.
0
1743
by: creejohn | last post by:
Hi all-- I'm really stumped here. I have a (c# 2.0) calendar control that loads a menu for each day inside the cell corresponding to that day in the dayrender event. That is all working great. I have no idea how to figure out whether anyone checked any of the boxes, though! I've tried to loop through the controls to see if any are checkboxes, but I can't seem to get "inside" the calendar itself. Any ideas or guidance would be appreciated....
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.