[PHP] put result of include into a variable

2002-11-22 Thread Patrick Anderson at TUE
Hi,

For some (strange, I know) reason I would like to copy the content of a
webpage into a database.

I would like to have code like

$whocares = include (http://www.microsoft.nl;);
$query = insert into html values ($whocares,...);
..

However, include can not copy the content to a variable. Does anyone
have an idea how to circumvent this problem?

Thanks,
Patrick



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




[PHP] Url of frame in php variable

2002-08-01 Thread patrick anderson

Hi,

does anyone know of an elegant way to get the Url of the current frame
in a php variable.

Thanks for any suggestions.

Patrick

PS I know that PHP_SELF will provide the url of the main frame


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




Re: [PHP] Url of frame in php variable

2002-08-01 Thread patrick anderson

I would like to include a style sheet  based on the url;
the references to the style sheet are stored in MySQL.

I guess the way to code this would be to use php to create
the javascript code with the list of style sheets.

thanks,

patrick


Justin French wrote:

 the only way would be with javascript, but remember, this would be done
 AFTER the page leaves the server (client side), so it will be quite messy.

 or you could try keeping track of what the sub-frame is doing with
 sessions... each time you change it's URL, update the session variable.

 or you could re-think your code design so you don't have to rely on
 something so complicated :)

 I guess knowing the reason why you need to do this might enable us to give
 you more help.

 Justin French

 on 01/08/02 10:32 PM, patrick anderson ([EMAIL PROTECTED]) wrote:

  Hi,
 
  does anyone know of an elegant way to get the Url of the current frame
  in a php variable.
 
  Thanks for any suggestions.
 
  Patrick
 
  PS I know that PHP_SELF will provide the url of the main frame
 


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




[PHP] How to get the url of frameset

2002-02-27 Thread Patrick Anderson at WFW

Hi,

Within a frame I would like to get the url of the frameset
and include a different css dependent on the url. I am
using apache and php, and first tried with HTTP_REFERER.
However, this only works the first time you call the frame and not
when you have a link (the referring page will be the frame and not the
frameset).

Any tips how to get the url of the frameset?

Thanks,


Patrick.


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




[PHP] Character translation in IE

2001-02-05 Thread Patrick Anderson

Hi,

I am using php, mysql and apache on a linuxserver to create some user
home pages,
and I have a problem with names including special chars.
If I retrieve an url including for example

/photos/BendseMartin97.jpg

everything is ok using netscape, but it doesn't display correct
using IE.

Apache error log reports: File does not exist:
/photos/BendseMartin97.jpg
Using netscape everything is ok and Apache access logs: GET
/photos/Bends%F8eMartin97.jpg


Is there a function to convert the special characters. I checked the
manual, but I only
found translation tables to html entities.

Thanks for any help,

Patrick.

-- 
PHP General 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]