[PHP-WIN] [Fwd: [php-gurus] PHP renders funny]

2005-01-24 Thread Louis Young
Just more on this. Check what happens to the HTML rendered by the PHP script: Original Message Subject:[php-gurus] PHP renders funny Date: Mon, 24 Jan 2005 17:18:16 +0200 From: Louis Young <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: php-w

[PHP-WIN] PHP renders funny

2005-01-24 Thread Louis Young
Hi guys I've got a website set up on my machine and it all works fine if I access it from the local machine, but when I access it from another machine the web page comes out all distorted and only comes right if I refresh the page a couple of times. Any ideas? Cheers Louis -- PHP Windows Mailin

[PHP-WIN] Page not displaying all my data

2005-01-20 Thread Louis Young
Hi there I'm looping through a table and displaying data for each record, but the page just stops in the middle of nowhere. Is there a configuration setting somewhere that could be causing this? The code looks like this: while($row=mssql_fetch_array($rsElecTrans)) { ?>

[PHP-WIN] Move to first record mssql

2005-01-19 Thread Louis Young
Hi there I'm looping through an mssql dataset, using while($row=mssql_fetch_array($rsElecTrans)), but now I would like to loop through the same dataset again later on, but inn order to do this I need to move to the first record, so I tried: mssql_data_seek($rsElecTrans, 0); while($row=mssql_fe

[PHP-WIN] SpreadSheet_Excel_Writer PEAR package

2005-01-19 Thread Louis Young
Hi there Why does my background color not show if I set a cells pattern to 0? Cheers Louis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Latest version of Sql Server client tools (was weird windows error)

2005-01-18 Thread Louis Young
Hi According to google the reason for me experiencing the mssql dll problem is because I don't have the latest version of MS SQL Server client tools installed. I have MS SQL Server 2000 developer edition client tools. Does anyone know where I can find the right version or at least the right ver

[PHP-WIN] Weird windows error

2005-01-18 Thread Louis Young
Hi there I've now upgraded both Apache and PHP. Apache is version 2.0.52 and PHP is version 5.0.3.3. I've put the dll php_mssql.dll into C:\windows\system32 and then I do: C:\WINDOWS\system32>regsvr32 php_mssql.dll but I get the following error: --- RegSvr32 --

[PHP-WIN] Stored proc

2005-01-18 Thread Louis Young
Hi Guys I'm trying to execute an MSSQL 2000 stored proc in PHP: This: $sp_FINGPDebtorBalance_query=mssql_query($_GLOBALS["GPDB"] . "sp_FINGPDebtorBalance_rset '" . trim($Outlet_session) . "E', 0"); produces the following: *Warning*: mssql_query(): Query failed in *c:\program files\apache group\a

[PHP-WIN] PHP doesn't like COM

2005-01-18 Thread Louis Young
Hi Guys I tried using COM to connect to Excel, but this didn't work, so I'm using PEAR now, but now there's another issue. I'm trying to connect to an ActiveX component and having trouble again. The following line of code: $DelphiASPObj =& new COM("ClientBalance.coClientBalance") or Die("Did no

[PHP-WIN] Tool to convert delphi to php

2005-01-17 Thread Louis Young
Hi Is there a tool that can do this for me, or do I have to do it manually? Cheers Louis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Trouble opening excel workbook

2005-01-17 Thread Louis Young
Hi there I'm having a bit of trouble opening an Excel workbook. The following code: // Set the workbook to use and it's sheet $workbook=$_GLOBALS["templatedir"]."\ElectricityTransactions.XLT"; $sheet="Sheet1"; //Instantiate the spreadsheet component. $ex = &new COM("Excel.sheet") or Die ("Did not

[PHP-WIN] Memory error

2005-01-17 Thread Louis Young
Hi guys Using Apache/2.0.52 with PHP 4.3.10 on Windows XP. When I try to load a page, I get the following error message: --- php.exe - Application Error --- The instruction at "0x10007889" referenced memory at "0x30681876". The memory could not be

[PHP-WIN] Newbie question: convert string to int

2005-01-16 Thread Louis Young
Hi there What's the function to convert a string to an int. Cheers Louis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Change Excel spreadsheet

2005-01-14 Thread Louis Young
Hi What would be the best way to do the following: Open an existing Excel spreadsheet. Make some changes to it. Save it under a different file name. Anybody got some source or a URL? Cheers Louis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Insert range in Excel

2005-01-14 Thread Louis Young
Hi guys I managed to get this far with my Excel spreadsheet: // Set the workbook to use and it's sheet $workbook=$_GLOBALS["templatedir"]."\ElectricityTransactions.XLT"; $sheet="Sheet1"; //Instantiate the spreadsheet component. $ex = new COM("Excel.sheet") or Die ("Did not connect"); //Open the wor

[PHP-WIN] Call ActiveX component

2005-01-14 Thread Louis Young
Hi there I'm trying to call an ActiveX object from PHP. The code in ASP looks as follows: Set DelphiASPObj = Server.CreateObject("ClientBalance.coClientBalance") DelphiASPObj.GetClientBalance (Trim(Session("Outlet")) & "E") , Trim(Application("FinURL")), ReturnBalance I tried this in PHP: $Del

[PHP-WIN] This is a tricky one

2005-01-13 Thread Louis Young
Hi I have a header which I just include every time from all my pages, but the headers caption needs to change according to the page which has been loaded. I've tried global variables, but as soon as I jump into a different session they seem to lose their values. So, what I did was created a tab

[PHP-WIN] Error when trying to get global variables

2005-01-13 Thread Louis Young
Hi there I've used a tool called asp2php to convert all my asp files to php files, but now in ASP you have the global.asa file. I've converted this to global.php. So now part of it looks as follows: function Application_OnStart() { extract($GLOBALS); $Application["ConnectionString"]="PROVIDER=

[PHP-WIN] Application variables

2005-01-13 Thread Louis Young
Hi guys I know PHP doesn't support application variables. Anybody have a good workaround for this? Cheers Louis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Undefined variable

2005-01-12 Thread Louis Young
Hi there I'm getting the following error regardless of whether register_globals is on or off. *Notice*: Undefined variable: button1 in *C:\Program Files\Apache Group\Apache2\htdocs\spar\admin\login.php* on line *28 Here's the code for the entire page: Kwikpay