[PHP-DEV] Smart Navigation

2002-05-22 Thread Fred Forsyth

Is there any way to emulate ASP.NET's smartNavigation trick? What it does it
to maintain control state and scroll position between postbacks, as well as
stopping the page from flickering when reloading. It makes a mostly static
page look very cool.

Anyone done this in PHP, or know how to use IFRAMEs to do it manually?

Cheers
Fred Forsyth.
Senior Software Engineer



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] COM interop and recordsets

2002-04-11 Thread Fred Forsyth

I'm trying to write a PHP4 application that will connect to my Windows COM
object. It deals with recordsets a lot. What I would like to know is, what
do I need to do to interface with the methods (the recordsets are causing me
problems right now) and how can I import the enums from the typelib?

Has anyone had any experience with this? I'm using PHP 4.1.2 at the moment.

Cheers
Fred Forsyth
Software Engineer.



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Bug #15213: Problem in the French version of documentation about the function mysql_result

2002-01-24 Thread fred

From: [EMAIL PROTECTED]
Operating system: NA
PHP version:  4.1.1
PHP Bug Type: Documentation problem
Bug description:  Problem in the French version of documentation about the function 
mysql_result

English DOC :
mysql_result() returns the contents of one cell from a MySQL result set.
The field argument can be the field's offset, or the field's name, or the
field's table dot field name (tablename.fieldname).

French DOC :
mysql_result() retourne le contenu d'un champs dans le résultat MySQL
result_identifier. L'argument row peut-être un offset de champs, ou le nom
d'un champs, ou le nom de la table + point + le nom du champs
(table.champs). 

In the second sentence The field argument... was translated in
L'argument row... instead of L'argument field...

Thats ALL.
-- 
Edit bug report at: http://bugs.php.net/?id=15213edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receives bad HTTPheader info from PHP Header()

2001-12-22 Thread Fred B


Can you suggest a workaround since it appears that lots of
PHP code uses this PHP Header() redirect to setup files for
users to download from sites?

FB

From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Bug #14653 Updated: Internet Explorer for Macintosh receives bad 
HTTP header info from PHP Header()
Date: 22 Dec 2001 09:16:21 -

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at 
http://bugs.php.net/?id=14653edit=2


ID: 14653
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: HTTP related
Operating System: Free-BSD 4.4
PHP Version: 4.0.6
New Comment:

Not a bug in PHP. Microsoft is just not able to write proper software.

Previous Comments:


[2001-12-21 19:05:02] [EMAIL PROTECTED]

The PHP Header() function isn't passing the correct HTTP redirect info to 
Internet Explorer 5.x for Macintosh.

program index.php:

?php

Header(Location: http://www.mywebsite.com/junk.zip;);

?

--

When this program is executed from Internet Explorer 5.0 or 5.1 for 
Macintosh, the file junk.zip will download correctly but it will be given 
the name index.php instead of junk.zip

--Fredb











_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receivesbad HTTP header info from PHP Header()

2001-12-22 Thread Fred B


This works properly on IE for Mac for redirecting users
to download a file:

Header(Refresh: 0;URL=http://www.mywebsite.com/junk.zip;);

HOWEVER, it clears the web page which is very confusing
to users. It's unsuitable for dynamic PHP sites.  sigh

The only other way to go, I think, is to write my own
custom version of PHP's Header() function.

Any other thoughts?

FB





From: Chris Newbill [EMAIL PROTECTED]
To: 'Fred B' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for 
Macintosh receives bad HTTP header info from PHP Header()
Date: Sat, 22 Dec 2001 12:54:28 -0700

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14

This would be a good document to look over for possible workarounds.

You should also try http://support.microsoft.com/ and see if they have a
KB issue on it.

-Chris

-Original Message-
From: Fred B [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 22, 2001 7:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for
Macintosh receives bad HTTP header info from PHP Header()


Can you suggest a workaround since it appears that lots of
PHP code uses this PHP Header() redirect to setup files for
users to download from sites?

FB

 From: Bug Database [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Bug #14653 Updated: Internet Explorer for Macintosh receives
bad
 HTTP header info from PHP Header()
 Date: 22 Dec 2001 09:16:21 -
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at
 http://bugs.php.net/?id=14653edit=2
 
 
 ID: 14653
 Updated by: sander
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Bogus
 Bug Type: HTTP related
 Operating System: Free-BSD 4.4
 PHP Version: 4.0.6
 New Comment:
 
 Not a bug in PHP. Microsoft is just not able to write proper software.
 
 Previous Comments:
 ---
-
 
 [2001-12-21 19:05:02] [EMAIL PROTECTED]
 
 The PHP Header() function isn't passing the correct HTTP redirect info
to
 Internet Explorer 5.x for Macintosh.
 
 program index.php:
 
 ?php
 
 Header(Location: http://www.mywebsite.com/junk.zip;);
 
 ?
 
 --
 
 When this program is executed from Internet Explorer 5.0 or 5.1 for
 Macintosh, the file junk.zip will download correctly but it will be
given
 the name index.php instead of junk.zip
 
 --Fredb
 
 
 
 
 ---
-
 
 




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receivesbad HTTP header info from PHP Header()

2001-12-22 Thread Fred B


I can't find anything in the Microsoft database about
this problem, and since IE 5.1 for Macintosh (for MacOS 8 and 9) was just 
released three days ago (and this problem is still in it),
I think they're either ignoring it or are unaware.

FB

From: Chris Newbill [EMAIL PROTECTED]
To: 'Fred B' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for 
Macintosh receives bad HTTP header info from PHP Header()
Date: Sat, 22 Dec 2001 12:54:28 -0700

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14

This would be a good document to look over for possible workarounds.

You should also try http://support.microsoft.com/ and see if they have a
KB issue on it.

-Chris

-Original Message-
From: Fred B [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 22, 2001 7:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for
Macintosh receives bad HTTP header info from PHP Header()


Can you suggest a workaround since it appears that lots of
PHP code uses this PHP Header() redirect to setup files for
users to download from sites?

FB

 From: Bug Database [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Bug #14653 Updated: Internet Explorer for Macintosh receives
bad
 HTTP header info from PHP Header()
 Date: 22 Dec 2001 09:16:21 -
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at
 http://bugs.php.net/?id=14653edit=2
 
 
 ID: 14653
 Updated by: sander
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Bogus
 Bug Type: HTTP related
 Operating System: Free-BSD 4.4
 PHP Version: 4.0.6
 New Comment:
 
 Not a bug in PHP. Microsoft is just not able to write proper software.
 
 Previous Comments:
 ---
-
 
 [2001-12-21 19:05:02] [EMAIL PROTECTED]
 
 The PHP Header() function isn't passing the correct HTTP redirect info
to
 Internet Explorer 5.x for Macintosh.
 
 program index.php:
 
 ?php
 
 Header(Location: http://www.mywebsite.com/junk.zip;);
 
 ?
 
 --
 
 When this program is executed from Internet Explorer 5.0 or 5.1 for
 Macintosh, the file junk.zip will download correctly but it will be
given
 the name index.php instead of junk.zip
 
 --Fredb
 
 
 
 
 ---
-
 
 




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re[2]: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintoshreceives bad HTTP header info from PHP Header()

2001-12-22 Thread Fred B

From: Daniel Lorch [EMAIL PROTECTED]
  This works properly on IE for Mac for redirecting users
  to download a file:
 
 Header(Refresh: 0;URL=http://www.mywebsite.com/junk.zip;);

uuuh ist this valid? I've never seen that before. I think it should
read:

(HTML)
(HEAD)
  (META HTTP-EQUIV=REFRESH CONTENT=0; 
URL=http://www.mywebsite.com/junk.zip;)
(/HEAD)

and doesn't belong into the HTTP header.

They are equivelant. The META tag version
creates the same HTTP header.

FB



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receivesbad HTTP header info from PHP Header()

2001-12-22 Thread Fred B


Is the PHP Header() function defined in
the file servlet.java that's part of the
PHP source code? The routine is listed below.
If so, it would appear that PHP is depending
on a Java servlet for the actual file redirection.

FB

public void header(String data) {

  // try to send the header using the most specific servlet API
  // as possible (some servlet engines will add a content type
  // header unless the setContentType method is called).
  try {
if (data.startsWith(Content-type: )) {
  response.setContentType(data.substring(data.indexOf( )+1));
} else if (data.startsWith(Location: )) {
  response.sendRedirect(data.substring(data.indexOf( )+1));
} else {
  int colon = data.indexOf(: );
  if (colon  0) {
try {
  addHeader.invoke(response, new Object[]
{ data.substring(0,colon), data.substring(colon+2) } );
} catch (Exception e) {
  e.printStackTrace(System.err);
}
  } else {
write(data);
  }
}
  } catch (IOException e) {
e.printStackTrace(System.err);
  }

}

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request: 101973

2001-12-13 Thread Fred Koopmann

Hello!

I am working with computers, and I am a freak for many years. 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12332: Reading and Writing files

2001-07-24 Thread fred

From: [EMAIL PROTECTED]
Operating system: All
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Reading and Writing files

Hi,
There is no fonction in PHP to read or write an integer or a long value
from a file.

Actually, I read a 2 or 4 characters string, and convert it into the
corresponding numeric value with this function :

function readNum( $f, $len )
{
$tmp = strrev( fread( $f, $len ) );
$val = 0;
for( $i=0; $i$len; $i++ )
$val += ord(substr($tmp,$i,1)) * pow(256,$len-1-$i);
return $val;
}

Regards,
Fred.

-- 
Edit bug report at: http://bugs.php.net/?id=12332edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12021: Problem with the data parameter in pdf_open_image()

2001-07-10 Thread fred

From: [EMAIL PROTECTED]
Operating system: Win NT 4.0
PHP version:  4.0.6
PHP Bug Type: FDF related
Bug description:  Problem with the data parameter in pdf_open_image()

Hi,

I use PDFLIB version 4.0.1 and PHP 4.0.6.

?
$file = image.jpg;
$len=filesize($file);
$fp = fopen($file, rb);
echo $fp;
$data = fread($fp, $len);
fclose($fp);

$pdf=pdf_new();
pdf_open_file($pdf, test.pdf);
pdf_begin_page($pdf, 595, 842);

// With pdf_open_image_file() it works !
// $pim = pdf_open_image_file($pdf, jpeg, $file);
$pim = pdf_open_image($pdf, jpeg, memory, $data, $len, 300, 100, 3, 8,
 );

PDF_place_image($pdf, $pim, 100, 500, 1);
PDF_close_image($pdf, $pim);
pdf_end_page($pdf);
pdf_close($pdf);
?

The script works with no errors, and the PDF file is created.
With pdf_open_image_file() the Jpeg file is correctly mixed in the PDF
file
With pdf_open_image(), at the place in the PDF file where I should find the
Jpeg data, there is garbage starting with C:\inetpub\wwwroot !

I need to use pdf_open_image() instead of pdf_open_image_file() because the
image I want to use is not a file, it's created with the gd library, and
the function pdf_open_memory_image() is not available in PHP 4.0.6 binaries
for Win32.

Regards.
Fred.

-- 
Edit bug report at: http://bugs.php.net/?id=12021edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8764:

2001-01-17 Thread fred

From: [EMAIL PROTECTED]
Operating system: NT 4
PHP version:  4.0.4pl1
PHP Bug Type: IIS related
Bug description:  




-- 
Edit Bug report at: http://bugs.php.net/?id=8764edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8765: Unable to load dynamic library

2001-01-17 Thread fred

From: [EMAIL PROTECTED]
Operating system: NT 4.0 SP6
PHP version:  4.0.4pl1
PHP Bug Type: IIS related
Bug description:  Unable to load dynamic library 


Unable to load dynamic library 'c:\php\extentions/php_ldap.dll'- ...
Unable to load dynamic library 'c:\php\extentions/php_oci8.dll'- ...
Unable to load dynamic library 'c:\php\extentions/php_oracle.dll'- ...

My php.ini:
...
extension_dir   =   c:\php\extentions
...
extension=php_cpdf.dll
extension=php_cybercash.dll
extension=php_db.dll
extension=php_dbase.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fdf.dll
 extension=php_gd.dll
extension=php_gettext.dll
;extension=php_ifx.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
extension=php_ldap.dll
extension=php_mhash.dll
;extension=php_mssql65.dll
extension=php_mssql70.dll
extension=php_oci8.dll
extension=php_oracle.dll
extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_sablot.dll
;extension=php_swf.dll
;extension=php_sybase_ct.dll
extension=php_zlib.dll

I'm sure they are stored there like the other and i'm sure that there's no other 
php.ini hanging around in my system.



-- 
Edit Bug report at: http://bugs.php.net/?id=8765edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8639: fopen always return true in some case

2001-01-10 Thread fred

From: [EMAIL PROTECTED]
Operating system: Linux RH6.1 / x86
PHP version:  4.0.4
PHP Bug Type: Unknown/Other Function
Bug description:  fopen always return true in some case

It seems that :
$test=@fopen("http://$url/$urlphotos/".$reference."-1.jpg","r");
# (with all vars correct)
always return true (at least with 4.0.4) ?!
Is it because it's a picture ?
Didn't test it with an html file though ...



-- 
Edit Bug report at: http://bugs.php.net/?id=8639edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]