Php/Html include
7 posts
Page 1 of 1
Hi i'm making a page where my classmates can go and check what food is served in the school cafeteria.
The page first had a javascript that read from a textfile and made a table from the stuff in it, but it did not use utf-8 so some words looked strange. So i changed to php but then i got problems with the include part because my version of xampp didn't let me use
Please help me if you can /Martin.
The page first had a javascript that read from a textfile and made a table from the stuff in it, but it did not use utf-8 so some words looked strange. So i changed to php but then i got problems with the include part because my version of xampp didn't let me use
Code: Select all
So then i changed the page to a .php file so it was able to use the include part. But i'm still having problems with some words not showing right.<?php include("convertintotab.php"); ?>
Please help me if you can /Martin.
You do not have the required permissions to view the files attached to this post.
Well I'm missing convertintotab.php
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
Oh forgot to add it to the archive.
You do not have the required permissions to view the files attached to this post.
A friend helped me out, the problem was that the textfile was not in utf-8 :S
What PHP version are you on that you're using include(FILENAME)?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

if the "include" header is in the directory with the main (host) script. Add this before the include keyword.
Code: Select all
set_include_path("./"); // Or specify the folder after the / in the path.
include("myfile.php");
Martin wrote:A friend helped me out, the problem was that the textfile was not in utf-8 :SThe problem was solved lol
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023