[PHP] Re: New-line characters

2002-04-05 Thread Jamie Watt
You'de be better off using the built in nl2br() function (http://www.php.net/manual/en/function.nl2br.php) it'll have the same effect as a it'll insert a br tag everwhere a newline character occurs. Where 2 newline characters occur it will produce brbr which in your HTML will break your text in

[PHP] Re: [PHP-GENERAL] animated gif

2002-04-05 Thread Jamie Watt
Sounds like you'll have to use PHP to to first create the images. Then in your output page just include some javascript to rotate the images. If you have to you can use PHP to write the javascript. Jessica Lee Tishmack [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... can you

[PHP] Re: script-controlled tablewidthchange, for diff. screen resolutions

2002-04-05 Thread Jamie Watt
Sounds like you might be trying to do things the hard way. Wouldn't it be easier to simply set the table widths as a percentage rather than an exact width in pixels? Eg. width=50% The above example will set the table width to 50% of the browser window width. Or maybe you could use a bit of

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Jamie Watt
?php header(Location: $csv_filename); ? Mikhail Avrekh [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can say something like: ?$csv_filename= whatever.csv;? script language=javascript window.open(?=$csv_filename?, target,

[PHP] Re: Remembering choices

2002-04-02 Thread Jamie Watt
That's exactly what sessions are for, check out http://www.php.net/manual/en/ref.session.php for more info about using sesions. Hi, I have a menu, where I would like to be able to store which link the user last pressed. What is the best way of doing this? I thought about sessions, but is it

[PHP] Re: Really slow include

2002-04-02 Thread Jamie Watt
What you need to do is include the path to the file in relation to the file that is including it, this can be an absolute path or a relative path. Eg. Assuming the file is located in /www/foo/htdocs/foo/index_test.php and the include file is in /www/foo/htdocs/ Absolute path: