[PHP] Re: reading a PDF's title

2006-09-20 Thread Shu Hung (Koala)
$string = file_get_contents($filename); $start = strpos($string, dc:title) + 10; $length = strpos(substr($string, $start), '/dc:title'); if ($length) { $title = strip_tags(substr($string, $start, $length)); } ? Cheers, Koala On 9/8/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: Hello, I

[PHP] reading a PDF's title

2006-09-07 Thread Shu Hung (Koala)
Hello, I know PDF files stores a Title somewhere. I'm not sure if it is at meta data or elsewhere. Does anyone have any method to get this Title out? Thanks Koala Yeung

Re: [PHP] php generated javascript

2006-09-07 Thread Shu Hung (Koala)
On 8/31/06, Curt Zirzow [EMAIL PROTECTED] wrote: On 8/30/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look

[PHP] php generated javascript

2006-08-30 Thread Shu Hung (Koala)
Hello, I'm writing a script to generate a javascript. The javascript would generate a banner when it is sourced. This javascript is sourced by another html like this: script type=text/javascript language='JavaScript' src='http://foo.com/testing/js.php'/script However, Sometimes the javascript

Re: [PHP] php generated javascript

2006-08-30 Thread Shu Hung (Koala)
On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser, and if that one looks as it should, it is probably your

Re: [PHP] multisession download

2006-02-08 Thread Shu Hung (Koala)
://phpsec.org On Fri, February 3, 2006 1:54 am, Shu Hung (Koala) wrote: Hello, I have a little strange question. Let say if I have a file /home/user/somefile.jpg I wanted to output this file from script, I wrote a little script: ?php

[PHP] multisession download

2006-02-02 Thread Shu Hung (Koala)
Hello, I have a little strange question. Let say if I have a file /home/user/somefile.jpg I wanted to output this file from script, I wrote a little script: ?php // open and pass the file out $handle =