Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sen5241b
  • Content: Threads
  • Order by date
  1. sen5241b

    Double Bar "||" bitwise operator?

    I am doing code archeology (digging up someone else's code) and I see the use of two vertical bars in what appears to be a bitwise operator. Can't find any explanation of this on the web and my experiemt below doesn't really explain it all. The code I dug up looks like this: answer =...
  2. sen5241b

    Kdevelop - Am I the only one using this? Good PHP IDEs?

    The nice thing about Kdevelop is that it is free. It has a great syntax checker ? what do you use if anything? Is it worth the money?
  3. sen5241b

    Run PHP script but browser blank NADA

    After I upgraded my server I stopped getting PHP errors displayed. Now, when there is a typo, the browser is blank there is nothing. Firefox and IE both do this. If I find the typo and fix it then the browser displays what I have in the script. I have no php.ini In my script I have the...
  4. sen5241b

    Combine 4 different arrays into one

    I need to combine 4 different arrays into one. Each of the 4 arrays has a different structure. How?
  5. sen5241b

    Disentangle jumble of words - No easy solution

    Trying to write a PHP function that disentangles a jumble of words. I already have something written but it is imperfect. liquidweather: liquid weather OR liquid we at her ? If your answer is the latter doesn't make sense then the solution becomes very difficult. Code to determine the meaning...
  6. sen5241b

    Is MySQL much faster then SQLite 3?

    I created a a database table in MySQL called placenames -a simple list of 260K place names. The following code finds a name in the table super fast. $result = mysql_query("SELECT * FROM placenames"); while($row = mysql_fetch_array($result)) { if ($place == $row['placename']) { do whatever etc...
  7. sen5241b

    Cannot Create Simple SQLite

    I want to do something which sounds very very simple but which has turned out to be incredibly difficult. I want to create a sqlite database with two one field tables of unicode text. I load the data from two text files. One is simply a list of surnames and the other a list of unicode place...
  8. sen5241b

    Portable MySql Databases

    I built a Linux based app with a MySql database and I want people to install it by just taking the app folder with the database in it and have the app be able to access the DB. Currently, to install my app the user has to create a database and load the data which is a pain in the neck. Have...
  9. sen5241b

    BIG Loop dies with NO error

    I am loading an array with data from a text file and it dies with no error well before it finishes. The script works fine on one server but not on another. The file is 2703 KB with 296700 rows --so the script should loop 296700 times to load the data into the array. I already changed...
  10. sen5241b

    Preserve order string field in Mysql

    I have a list of place names in a text file ordered by how well known the place is. I want to load the list into a simple one field table in Mysql and preserve the order in which it is loaded. When I list out the table it is listed alphabetically. Using PHP, how can I preserve the original order...
  11. sen5241b

    Run PHP script get Blank screen in browser

    I have been getting a lot of blank screens lately when trying to run a PHP script with the slightest error. Firefox shows a blank screen but IE produces "The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed " for the same script. I...
  12. sen5241b

    PHP 6 when !!!???

    Searched high and low. Does anyone know when PHP 6 will be released?
  13. sen5241b

    explode and preg_split eat all Memory

    Why do both the explode and preg_split functions eat up the available 32MG of memory on my server resulting in a Fatal error? Kinda crazy that it does. (I un-commented the explode and got same error.) The data has a lot of Unicode non-English chars. $len = mb_strlen($FileContents); echo '<br>...
  14. sen5241b

    SQL 2008 Install crashes server

    I am seeing my server crash when I try to install SQL Server 2008. The server is a newly built Windows Server 2008 with no history of use for anything! When I get to the setup screen where you choose between "windows security" and "mixed mode", I can switch back and forth between the tabs on...
  15. sen5241b

    Read big unicode file, massage data, write unicode

    I am trying to read a 25 MG file with UTF-8 words in it, massage the data and then write it back out preserving the UTF-8 encoding. Is there a way to read in an EOL terminated line one at a time and preserve the UTF-8? Binary safe fread and fwrite recognize EOF but not EOL.
  16. sen5241b

    preg_match_all - just got to be a BUG

    I have a PHP script that calls PREG_MATCH_ALL in a loop. The purpose is to test a series of regexs. The script is supposed to call preg_match_all 112 iterations in a loop but with > 9500 bytes search string it dies after about 100 iterations. The larger the input string the sooner preg_match_all...
  17. sen5241b

    Good Practice to get rid of ALL Notices ??

    Is it really a good programming practice to deal with or get rid of ALL Notices in your PHP? I get these a lot: Notice: Array to string conversion in /home/content/f/r/e/fred111/html/myfolder/tects2.php on line 147
  18. sen5241b

    Regex kills PHP script

    I call preg_match_all repeatedly in a loop and the script works fine. If however I pass preg_match_all a really big text string to search in, the script just dies after the nth time I call preg_match_all. The larger the input string the fewer times I can call preg_match_all before the script...
  19. sen5241b

    Help with Good Programming Practices

    I seem to get errors a lot because strlen just gives the length but positions with a string are different because the first char is position zero. When determining whether a given position within a string is out of range (passed the the end of string) sometimes I use '>=' other times I compare...
  20. sen5241b

    Pass string to PHP but CRLF stripped out

    User enters text into HTML form and text, with CRLFs, is passed via POST method to PHP script. I var_dump text but all CRLFs are stripped out. Why? How can I preserve CRLFs in the PHP string value?

Part and Inventory Search

Back
Top