Jump to content

how to recognise webpage.


seany123

Recommended Posts

is there some way of checking the pagename in php?

 

for example, home.php

 

 

also on a side question does anyone know how to autoplay a .avi video without showing anything but the actual video.. (im meaning i dont want to see the progress bar or play, stop, pause buttons etc)

 

all help would be great.

Link to comment
https://forums.phpfreaks.com/topic/224219-how-to-recognise-webpage/
Share on other sites

Look at the server superglobals.  $_SERVER[]  ... there are a few that may do what you want.. the one off the top of my head is $_SERVER['PHP_SELF']

 

As for the video, you will probably have to look into a custom player ( or use HTML 5's video tag (read long and hard about this before you use it)

thanks for the answers.

 

Look at the server superglobals.  $_SERVER[]  ... there are a few that may do what you want.. the one off the top of my head is $_SERVER['PHP_SELF']

 

As for the video, you will probably have to look into a custom player ( or use HTML 5's video tag (read long and hard about this before you use it)

 

why should i read long and hard about it before use?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.