[PHP] IE title bug

2004-11-22 Thread Giles
Hello people

 

I am making a movie browsing site. On one page I have a list of movies as
links. When you click on the movie it goes to another page with the movie ID
as an anchor in the page so that the browser scrolls to that movie. 

 

The title of the page is made up of the movie category name and the movie
name. This all works fine in mozilla but in IE the title appears like this:

 

Site Name - Category Name#3037#3037#3037#3037#3037#3037#3037#3037

 

Where #3037 is the ID of the movie and obviously appears at the end of the
url. Looking at the source of the page the  tag is fine and does not
contain any id's (or it would appear in mozilla as well).

Also the title appears ok to begin with - the page has flash thumbnails of
the movies in and as each of these swf's load into the page another  #3037
appears in the title. We are using the satay method of flash embedding as
this is required by the client. Possibly it is something to do with that?

 

Anyone seen anything like this before or have any suggestions?

 

Thanks

 

 

Giles Roadnight

http://giles.roadnight.name

 



RE: [PHP] IE title bug

2004-11-23 Thread Giles
It is actually a known bug in Flash with IE

If you go here:

http://www.macromedia.com/software/flash/about/#globalnav

you'll get #globalnav in the title 3 times as there are 3 flash players in
the page!

We are actually now not using anchors (I wasn't too happy about them anyway)
so no longer have the problem.

Thanks for the reply though.

Giles Roadnight
http://giles.roadnight.name


-Original Message-
From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] 
Sent: 23 November 2004 16:17
To: [EMAIL PROTECTED]
Cc: Giles
Subject: RE: [PHP] IE title bug

This is probably more of a straight HTML/JS/something question.

Do you happen to be using any kind of javascript or vbscript in your
source that does any kind of "application.caption" or "window.title" or
anything like that?

I've used "Application.Caption" in VBA within Excel to update the title
of a window so I could get a quick and dirty status of something being
processed and I've seen odd things happen with that.


If your  HTML tag looks ok, I'd try to look into any
application. Or window. Stuff in Javascript or VBScript or some other
browser based scripting stuff.

Good luck!

-TG


> -Original Message-
> From: Giles [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 22, 2004 6:10 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] IE title bug
> 
> 
> Hello people
> 
>  
> 
> I am making a movie browsing site. On one page I have a list 
> of movies as
> links. When you click on the movie it goes to another page 
> with the movie ID
> as an anchor in the page so that the browser scrolls to that movie. 
> 
>  
> 
> The title of the page is made up of the movie category name 
> and the movie
> name. This all works fine in mozilla but in IE the title 
> appears like this:
> 
>  
> 
> Site Name - Category Name#3037#3037#3037#3037#3037#3037#3037#3037
> 
>  
> 
> Where #3037 is the ID of the movie and obviously appears at 
> the end of the
> url. Looking at the source of the page the  tag is 
> fine and does not
> contain any id's (or it would appear in mozilla as well).
> 
> Also the title appears ok to begin with - the page has flash 
> thumbnails of
> the movies in and as each of these swf's load into the page 
> another  #3037
> appears in the title. We are using the satay method of flash 
> embedding as
> this is required by the client. Possibly it is something to 
> do with that?
> 
>  
> 
> Anyone seen anything like this before or have any suggestions?
> 
>  
> 
> Thanks
> 
>  
> 
>  
> 
> Giles Roadnight
> 
http://giles.roadnight.name

 

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

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



[PHP] escaping quotes

2005-01-27 Thread Giles
Hi Guys

Really simple question. How do I change the following:

print("value='" . $attributes["messageSubject"] . "'");

to have double quotes around the subject field instead. i.e.:

print("value="" . $attributes["messageSubject"] . """);

thanks

Giles Roadnight
http://giles.roadnight.name

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



RE: [PHP] escaping quotes

2005-01-27 Thread Giles
Thanks, that works great.

Knew that worked for JavaScript but didn't know it worked for PHP.

Giles Roadnight
http://giles.roadnight.name


-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: 27 January 2005 17:07
To: John Holmes
Cc: Giles; php-general@lists.php.net
Subject: Re: [PHP] escaping quotes

John Holmes wrote:
> print("value="\" . $attributes["messageSubject"] . "\"");

Slight typo there:

"value=\"" . ...

-- 
Like Music?
http://l-i-e.com/artists.htm

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

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



[PHP] dba_open, dba_popen, caches, not closing database, etc..

2002-10-24 Thread Giles Constant
Hi People,

I'm having problems with the dba extension.

An application I've written using db2 is working beautifully on my
machine, but due to various reasons, the machine it's supposed to work on
can have anything but db2 as the database backend.

I've tried gdbm, ndbm and db3, and they all have the same problem - if
I've just written to the database, I can't open it again for about 5
minutes - the php page just prints the "Warning: driver initialization
failed in blahblah.php" error.  After leaving it for a while, it starts
working again.

I've abstracted the database through a class, which opens the database and
syncs all writes, but it doesn't automatically close it (without the use
of a destructor, there isn't anywhere I could sensibly put code to do it).

I've tried dba_open and dba_popen, and both demonstrate the same problem.

Anybody got any tips for this?

-- 
Giles Constant, Systems Programmer
Hyperlink Interactive
http://www.hyperlink-interactive.co.uk


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




Re: [PHP] dba_open, dba_popen, caches, not closing database, etc..

2002-10-24 Thread Giles Constant
that'll do it..  cheers :-)

-- 
Giles Constant, Systems Programmer
Hyperlink Interactive
http://www.hyperlink-interactive.co.uk

On Thu, 24 Oct 2002, Marek Kilimajer wrote:

> You can use register_shutdown_function().
>
> Giles Constant wrote:
>
> >Hi People,
> >
> >I'm having problems with the dba extension.
> >
> >An application I've written using db2 is working beautifully on my
> >machine, but due to various reasons, the machine it's supposed to work on
> >can have anything but db2 as the database backend.
> >
> >I've tried gdbm, ndbm and db3, and they all have the same problem - if
> >I've just written to the database, I can't open it again for about 5
> >minutes - the php page just prints the "Warning: driver initialization
> >failed in blahblah.php" error.  After leaving it for a while, it starts
> >working again.
> >
> >I've abstracted the database through a class, which opens the database and
> >syncs all writes, but it doesn't automatically close it (without the use
> >of a destructor, there isn't anywhere I could sensibly put code to do it).
> >
> >I've tried dba_open and dba_popen, and both demonstrate the same problem.
> >
> >Anybody got any tips for this?
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


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




[PHP] blank function parameters

2004-11-03 Thread Giles Roadnight
Hello
 
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
 
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
 
Thanks
 
Giles Roadnight
http://giles.roadnight.name
 


RE: [PHP] Re: blank function parameters

2004-11-03 Thread Giles Roadnight
Thanks for all the help guys, working great now.

Giles Roadnight
http://giles.roadnight.name


-Original Message-
From: Daniel Schierbeck [mailto:[EMAIL PROTECTED] 
Sent: 03 November 2004 18:37
To: [EMAIL PROTECTED]
Subject: [PHP] Re: blank function parameters

Matthew Weier O'Phinney wrote:
> * Daniel Schierbeck <[EMAIL PROTECTED]>:
> 
>>Giles Roadnight wrote:
>>
>>>If I defined a function with 4 parameters but only pass 3 I get an
>>>error. Is there anyway around this?
>>> 
>>>I want to be able to set the missing parameter to a default value if
it
>>>is not passed which works ok but How do I get rid of the error
message?
>>
>>If you want an argument to be optional and still be able to check 
>>whether or not it's been set, you can use NULL as the default value:
>>
>>function foobar ($a, $b, $c = null)
>>{
>> if (isset($c)) {
>> echo 'The third argument was set';
>> }
>>}
> 
> 
> That check should be for 'is_null($c)' as the default value of $c will
> be null, and it will be always set, even if not sent.
> 
> 
isset(null) evaluates to false...

-- 
Daniel Schierbeck

Help spread Firefox (www.getfirefox.com): 
http://www.spreadfirefox.com/?q=user/register&r=6584

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

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



[PHP] help with fopen path

2004-11-09 Thread Giles Roadnight
Hi All
 
I'm developing a fusebox PHP app and have a class in a /classes
directory that opens an xml file in a directory below the site root
using this path: "../siteconfig.xml"
 
All of the places I have used this class from so far have been in the
site root. I am now starting some pages in a sub directory. When I use
this class it says it can't open the file. I have tried
"../../siteconfig.xml" instead but it doesn't work either.
 
What's the best way to go about fixing this? I'm quite new to php and
I'm not sure where the relative path is taken from - i.e. is it the
index.php page or the class (obviously not) or my switch file or what?
 
Hope someone can help.
 
Giles Roadnight
http://giles.roadnight.name