Load File into String
0
This function tries to locate a file in a give folder (either single level, or in any sub folder). Returns the relative file and path, or FALSE if not found. Skips over "." and "..".
8
I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.
9
This is a Tiny PHP Uploading script. It SHOULD be safe from both really large files and non-image files.
8
Use this utility to grab lines from a file. Arguments are the input file, starting ling number and ending line number.
10
Adds any character at the given index of a string.
NOTE: Count starts from 0
NOTE: Count starts from 0
10
This simple function simply removes the character at the given index from a string.
NOTE: The count starts from 0
NOTE: The count starts from 0
3
create a random string of 16 chars
9
Function that splits a given string into sections based on the allowed length for a section. Does not split words up. Splits string on Space character (can be set to another character)
8
This function simply splits a file based on the splitter supplied and returns an array with the values. It's pretty much like the file() function. This script could be helpful in section editings.
4
To create a chatprogram in java we need 2 classes one for Client and one for Server from which the client will be able to connect and exchange text messages. to compile the code simply type these commands in command prompt window:-
1)ipconfig(memorize the Ip address)
2)javac client.java
3)javac server.java
4)java server 10.69.23.203 (You need to type your own ip address)
5) After this you need to open another command prompt window(Make sure the server command prompt window is also open). now type:
java client 10.69.23.203
Thats it.
if anyone have any problems please post a comment and i will answer all of your questions or if you are having trouble in compiling.
1)ipconfig(memorize the Ip address)
2)javac client.java
3)javac server.java
4)java server 10.69.23.203 (You need to type your own ip address)
5) After this you need to open another command prompt window(Make sure the server command prompt window is also open). now type:
java client 10.69.23.203
Thats it.
if anyone have any problems please post a comment and i will answer all of your questions or if you are having trouble in compiling.









