I doubt that you will have much luck using php for this. If you can run java here is a simple class which creates a file of comma separated values which can later be used with the mysql command to load data from a file.
Code:
public class FileThing {
public static void main(String[] args) {
int a1, a2, a3, a4, a5, a6, a7;
for(a1=0;a1<=9;a1++){
for(a2=0;a2<=9;a2++){
for(a3=0;a3<=9;a3++){
for(a4=0;a4<=9;a4++){
for(a5=0;a5<=9;a5++){
for(a6=0;a6<=9;a6++){
for(a7=0;a7<=9;a7++){
System.out.println(
a1 + ", " +
a2 + ", " +
a3 + ", " +
a4 + ", " +
a5 + ", " +
a6 + ", " +
a7);
}
}
}
}
}
}
}
}
}
Usage:
- javac *.java
- java FileThing >temp
This took about 5-10 minutes on my PC and created a 200 MB large file.
Bookmarks