Free Web Hosting Forum
(#11 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 4,609
Join Date: Jul 2009
Location: Spain
Default 02-04-2012, 07:31 PM

You can try using another type of file (instead of a txt file extension). For security reasons txt files are not allowed on the server.

Also if you have a programming problem it is recommended that you write your question in the forum section for "Web Programming"


Si este mensaje te ha servido de ayuda no dudes en pulsar sobre el botón karma
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
Junior Member
JBGO is on a distinguished road
 
Posts: 13
Join Date: Aug 2011
Default 02-04-2012, 07:34 PM

At last !!! Thanks for answering ! I'm testing now !

Could you move the subject in "Web Programming" please Thanks !

PS : What type of file can I use and want path ...

Last edited by JBGO; 02-04-2012 at 08:06 PM.
Reply With Quote
(#13 (permalink))
Old
Senior Member
Firebirds is on a distinguished road
 
Posts: 252
Join Date: Feb 2012
Default 02-04-2012, 08:43 PM

It has to be in public_html.
You can use html, css, js, php, and more. 000webhost doesn't let you use txt and asp doesn't work.


All your problems magically solved.
How to use custom domain. | Account under review? | Can I do this/whatever?
Have a happy magical day
~Firebirds
Reply With Quote
(#14 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 544
Join Date: Dec 2010
Default 02-05-2012, 05:15 AM

The following code works in my localhost server installed in a linux system:

PHP Code:
<?php
$conn 
mysql_connect("localhost""root""****");
mysql_select_db("test"$conn);

$sql "load data infile '/var/www/html/member.txt' into table `load_data`
FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (name, password)"
;  

$result mysql_query($sql$conn);
if(!
$result) echo "DB error";
?>
I tried a similar code with .dat file (instead of .txt file) in 000webhost.com server, and it did not work
(I got "DB error" message). It might be because a user is not granted with 'file' privilege.

Last edited by grace1004; 02-05-2012 at 05:25 AM.
Reply With Quote
(#15 (permalink))
Old
Junior Member
JBGO is on a distinguished road
 
Posts: 13
Join Date: Aug 2011
Default 02-05-2012, 06:53 AM

Much better when I'm in the good section ^^

Quote:
It might be because a user is not granted with 'file' privilege.
I think too ...

Quote:
It has to be in public_html.
ok, but what that should I use to go there ?

Best regards,

Last edited by JBGO; 02-05-2012 at 10:09 AM.
Reply With Quote
(#16 (permalink))
Old
Junior Member
JBGO is on a distinguished road
 
Posts: 13
Join Date: Aug 2011
Default 02-06-2012, 12:38 PM

Nobody uses Load data infile ? An idea
Reply With Quote
(#17 (permalink))
Old
chanh's Avatar
Administrator
chanh is on a distinguished road
 
Posts: 1,888
Join Date: Dec 2008
Default 02-06-2012, 07:29 PM

please read TOS, game script is not allowed on free hosting.
Reply With Quote
(#18 (permalink))
Old
Junior Member
JBGO is on a distinguished road
 
Posts: 13
Join Date: Aug 2011
Default 02-06-2012, 08:35 PM

Quote:
please read TOS, game script is not allowed on free hosting.
There's NO game script here ! It is a simple file of numbers !
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com