473,473 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

php inserting table

1 New Member
good morning!

i want to make a table in my program, what will i do? this is my program
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $file = "CHECK.TXT";
  3. echo "<table style=\"border: 0px solid black;\"> \n";
  4. $file_handle = fopen($file,"r");
  5.   $y = fgetss($file_handle,1024);
  6. $x= htmlentities(file_get_contents($file)). "<br/>";
  7.  
  8. echo "<td style=\"border: 1px solid black; width: 25px; padding:4p//x; text-align:center;\">"; 
  9. echo "<pre>".$x."<pre/>","<br/>";
  10.   fclose($file_handle);
  11. ?>
this is the output of my program that i want to have a table:

Volume in drive C has no label.
Volume Serial Number is ACF3-92D1

Directory of C:\Documents and Settings\Hitoshi Hyoda

2007/09/08 12:45 <DIR> .
2007/09/08 12:45 <DIR> ..
2007/03/01 16:52 290 1.txt
2007/04/24 07:03 <DIR> ChikkaDefault
2007/11/20 08:16 <DIR> Desktop
2007/11/16 16:56 <DIR> Favorites
2007/06/01 07:56 <DIR> logs
2007/11/19 17:00 <DIR> My Documents
2007/11/20 07:01 4 pid.txt
2007/11/20 07:01 152 PluginManager.log
2007/06/14 12:02 23 presets.ini
2007/09/08 12:45 <DIR> Saved Games
2007/11/19 12:44 <DIR> Start Menu
2006/09/26 00:31 <DIR> WINDOWS
4 File(s) 469 bytes
10 Dir(s) 5,583,568,896 bytes free



plese help me! thank you!
Nov 29 '07 #1
1 1222
pbmods
5,821 Recognized Expert Expert
Heya, Nicholai. Welcome to TSDN!

Have a look at this thread.
Nov 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Marko Poutiainen | last post by:
Situation: We had to make our SQLServer 2000 database multi-lingual. That is, certain things (such as product names) in the database should be shown in the language the user is using (Finnish,...
3
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
1
by: ing42 | last post by:
I have a problem with inserting records into table when an indexed view is based on it. Table has text field (without it there is no problem, but I need it). Here is a sample code: USE test GO...
3
by: rcoco | last post by:
Hi, I want to share this problem. I have a datagrid that will help me Insert data into sql database. So I made a button On my form so that when I press the button a new row on datagrid should be...
1
by: madhuxml82 | last post by:
Dear Forum Members, I have generated an XML Schema and a Table of XMLType referencing the XML Schema. Now When I am Inserting the Data into the Table. I am getting the Error 0RA-30937: Error is...
5
by: dos360 | last post by:
Hello, I have two tables, one is a list of activities, the other a list of participants. I want to insert one record in the activities table and then using its identity column as foreign key, I...
2
by: AlexanderDeLarge | last post by:
Hi! I got a problem that's driving me crazy and I'm desperately in need of help. I'll explain my scenario: I'm doing a database driven site for a band, I got these tables for their discography...
5
by: rando1000 | last post by:
Okay, here's my situation. I need to loop through a file, inserting records based on a number field (in order) and if the character in a certain field = "##", I need to insert a blank record. ...
5
by: billelev | last post by:
I have a large array of data (1000 x 40 x 3) that I am inserting into a database table. It is incredibly slow, and so I was wondering if there is a quicker way of inserting array data into a table....
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.