• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

add script into html page

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
7 posts • Page 1 of 1

Postby peppi » Tue Oct 26, 2010 1:09 pm

i have try'ed to put the script into a html page
it did work but not the way i want it to

the script has the background page wich is green still in it
i can change the color to black but that still does not work for me because then i have a big black spot next to the chat box


so my question is
how can i delete the page and keep the chatbox only
so this way i can implement it on a html page

so i just want the chatbox and not the whole page

here is a example of the page
link removed problem solved

and here is the reason why i want to extract just the chatbox
link removed problem solved
Last edited by peppi on Wed Oct 27, 2010 11:59 pm, edited 1 time in total.
peppi
Member
 
Posts: 16
Joined: Mon Oct 25, 2010 9:48 pm
Top

Postby peppi » Tue Oct 26, 2010 5:57 pm

this has been resolved
should i post the how to here ?
or should i act as the rest of those who ask questions here ?
peppi
Member
 
Posts: 16
Joined: Mon Oct 25, 2010 9:48 pm
Top

Postby waiheke » Wed Oct 27, 2010 3:28 pm

Hey Peppi

An html page is frozen in time and space. It cannot change until you edit it,and upload it, and then it is frozen in the new way.

A php page can change instantly - it uses a PHP engine to create, when users do things, or request data, new pages.

You can't put php pages into a html page - unless you use an i-frame (they are nasty) - or something like that. But why would you want to ??

you do not need an index.html. A browser will look for an index.html, then index.htm, and finally index.php - and it behaves perfectly.
Last edited by waiheke on Wed Oct 27, 2010 3:32 pm, edited 1 time in total.
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Postby OldWolf » Wed Oct 27, 2010 11:28 pm

It's important to note that a php file can act as an HTML file. Everything outside of <?php ?> will act like a normal HTML file. However, an HTML file cannot do the same with php. This is simply because the php isn't parsed if the file's name is .htm/.html. The server doesn't know you want it processed.

Also, minor detail, but the browser actually doesn't look for index.html/index.htm/index.php... the server actually serves that file on root access. This is customizable, so some hosts might (for some dumb reason) have it set up not to do that.

All this said, I think peppi indicated the issue as resolved. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby re*s.t.a.r.s.*2 » Thu Oct 28, 2010 2:34 am

Also, minor detail, but the browser actually doesn't look for index.html/index.htm/index.php... the server actually serves that file on root access.

If using apache server those are the default page the server will serve even ISS6 and ISS7 will do that by default but php files in ISS6....
However, an HTML file cannot do the same with php. This is simply because the php isn't parsed if the file's name is .htm/.html. The server doesn't know you want it processed.

Now it is possible for apache to parse php script in html files, putting this in apache.conf file will allow to parse php in html files.
Code: Select all
AddType application/x-httpd-php .php .php3 .phtml .html

also you can do it in .htacess and tell apache to do the same if you cannot edit the apache config files. file using the following directive.:
Code: Select all
AddHandler application/x-httpd-php5 .php .html .htm

regards
Last edited by re*s.t.a.r.s.*2 on Thu Oct 28, 2010 2:36 am, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby OldWolf » Thu Oct 28, 2010 7:03 am

That's a good point (on the parsing of html files)! I shouldn't have said possible... but rather than by default (as far as I'm aware) no server is set up to do so. You are definitely right though, it can be set to parse just about anything.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby waiheke » Thu Oct 28, 2010 10:16 am

Oh excellent to know that ! Thanks stars2 ! :)
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 17 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub