PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Last edited by s.dot on Thu Aug 18, 2005 3:35 pm, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
This has to work if you pass the file in a string variable ($string) (one solution to that is posted by raghavan20)
$newstring = str_replace('"','',$string);
in raghavan20's script the str_replace("\"\", " ", ... should I think be str_replace('"', ' ',...
as it was also advised by shiznatix
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
$buffer = fgets($handle, 4096);
$buffer2 = str_replace('"','',$buffer);
$buffer3 = explode(",",$buffer); -> you are not using the $buffer2 variable that holds the replaced data!
echo $buffer3[0]."<BR>";
You are putting the replaced buffer in $buffer2 and you are not using that variable everagain instead you are exploding the initial $buffer variable
As for ravaghan20 I am sure it works but for a string that has the format of the example you are giving ("\"string\") perhaps not for a string read from a file and has the "string" format
Last edited by korto on Thu Aug 18, 2005 3:35 pm, edited 1 time in total.
haha wow, thanks. Another stupid mistake
All works good now.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.