php-windows Digest 4 Sep 2007 10:21:25 -0000 Issue 3320

Topics (messages 28414 through 28420):

Re: Which function?
        28414 by: Gustav Wiberg
        28415 by: Gustav Wiberg

Directory browser
        28416 by: Gustav Wiberg
        28417 by: Jason
        28418 by: Gustav Wiberg
        28419 by: Gustav Wiberg

open/download file not under www-root
        28420 by: Gustav Wiberg

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Some more info:

I get this (Javascript) error from Firebug:

unterminated string literal
Tip('\n


Is this something that could be solved in php?

Best regards
/Gustav Wiberg


-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 10:25 AM
To: '[EMAIL PROTECTED]'
Subject: Which function?

Hi there!
 
Is there ant predefined function for doing this?
 
I want to put text (from a database) inside quotes, like for example 
Javascript:window.alert('<?php echo $dbText;?>');
 
Is there any function in PHP for translating $dbText into something that 
Javascript would accept? (something inside quotes) 
I tried with http://se.php.net/manual/sv/function.htmlentities.php but that 
didn't seem to work
 
Best regards
/Gustav Wiberg
 
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29 
20:21
 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29 
20:21
 

--- End Message ---
--- Begin Message ---
 

-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] FW: Which function?

Hi!

I got it working anyhow (just before you sent your answer- thanx by the way!)

The problem was that there was a text in the database that wasn't "together" 
and 

It was like


Abc...abc...abcd<br>



Abc...abc...abcd




Instead of

Abc...abc...abcd<br>Abc...abc...abcd

And this I solved in the db (because in normal cases this "split of text" 
wouldn't occur.


Best regards
/Gustav Wiberg 

-----Original Message-----
From: Nadim Attari [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 11:09 AM
To: Gustav Wiberg
Subject: Re: [PHP-WIN] FW: Which function?

Gustav Wiberg wrote:
> Some more info:
>
> I get this (Javascript) error from Firebug:
>
> unterminated string literal
> Tip('\n
>
>
> Is this something that could be solved in php?
>
> Best regards
> /Gustav Wiberg
>
>
> -----Original Message-----
> From: Gustav Wiberg [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 30, 2007 10:25 AM
> To: '[EMAIL PROTECTED]'
> Subject: Which function?
>
> Hi there!
>  
> Is there ant predefined function for doing this?
>  
> I want to put text (from a database) inside quotes, like for example 
> Javascript:window.alert('<?php echo $dbText;?>');
>  
> Is there any function in PHP for translating $dbText into something that 
> Javascript would accept? (something inside quotes) 
> I tried with http://se.php.net/manual/sv/function.htmlentities.php but that 
> didn't seem to work
>  
> Best regards
> /Gustav Wiberg

Hello,

Try to use this function to display your texts in JS

    function txtForJS($text = '')
    {
        $txtForJS = '';

        $text = trim($text);
        if ($text != '')
        {
            for ($x = 0; $x < strlen($text); $x++) $textArr[$x] = 
ord($text{$x});
            $txtForJS = 'String.fromCharCode('.implode(',', $textArr).')';
        }

        return $txtForJS;
    }

Javascript:window.alert('<?php echo txtForJS($dbText); ?>');

Let me know if it worked.

Thx,

Nadim Attari
Alienworkers.com
Mauritius

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29 
20:21
 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29 
20:21
 

--- End Message ---
--- Begin Message ---
Hi there!
 
Is there anyone who know of a free directory browser like this one?
http://bisqwit.iki.fi/folderphp/
 
I would like to use it, but I can't found any download-link ):
 
Best regards
/Gustav Wiberg
 

--- End Message ---
--- Begin Message ---
Hi,

I'm not sure but I think this is his download page:

http://bisqwit.iki.fi/src/

HTH
J

At 11:00 30/08/2007, you wrote:
Hi there!

Is there anyone who know of a free directory browser like this one?
http://bisqwit.iki.fi/folderphp/

I would like to use it, but I can't found any download-link ):

Best regards
/Gustav Wiberg


--- End Message ---
--- Begin Message ---
Hi!

I thought so also, but you hade to select the folder folderphp on the 
http://bisqwit.iki.fi/folderphp/ and download each file separatly. I've got a 
quick
Reply from the author.

Thanks anyway! :-)

Best regards
/Gustav Wiberg



-----Original Message-----
From: Jason [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 12:07 PM
To: Gustav Wiberg; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Directory browser

Hi,

I'm not sure but I think this is his download page:

http://bisqwit.iki.fi/src/

HTH
J

At 11:00 30/08/2007, you wrote:
>Hi there!
>
>Is there anyone who know of a free directory browser like this one?
>http://bisqwit.iki.fi/folderphp/
>
>I would like to use it, but I can't found any download-link ):
>
>Best regards
>/Gustav Wiberg
>

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


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29 
20:21
 

--- End Message ---
--- Begin Message ---
Hi!

Anyone who know of something similar would be great! (It wasn't exactly what I 
was looking for when I saw the code...)

Best regards
/Gustav Wiberg

 

-----Original Message-----
From: Jason [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 12:07 PM
To: Gustav Wiberg; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Directory browser

Hi,

I'm not sure but I think this is his download page:

http://bisqwit.iki.fi/src/

HTH
J

At 11:00 30/08/2007, you wrote:
>Hi there!
>
>Is there anyone who know of a free directory browser like this one?
>http://bisqwit.iki.fi/folderphp/
>
>I would like to use it, but I can't found any download-link ):
>
>Best regards
>/Gustav Wiberg
>

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


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29 
20:21
 

--- End Message ---
--- Begin Message ---
Hi!
 
Windows 2003 Server/PHP 5.0.1
 
Is it possible to download a file from a server that is at for example 
u:/documents/ which is not under the www-root?
How would I reference that file. (I just want to open it -for example a 
word-file)
 
/Gustav
 
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 2007-09-03 09:31
 

--- End Message ---

Reply via email to