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 Shaun E 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: karnaf
  • Content: Threads
  • Order by date
  1. karnaf

    window.focus() not working in Firefox / Netscape?

    yes! this is another of those questions about "Is this not working in Firefox???". I can't help it :-) I have a line in my code that goes: <script type="text/javascript">setTimeout('top.focus()', 10000);</script> It works great in Internet Explorer 6, but does nothing in FireFox 1.0.7 or...
  2. karnaf

    Local net addresses vs. www net addresses - how to configure?

    Hi, I'm trying to configure my XP Pro computer to know that any address that ends with .local (e.g. http://mysite.local http://anotherone.local) accessed by it will go to my local Linux server, but any other web address (e.g. http://www.tek-tips.com :) ) will go to the outside world. My home...
  3. karnaf

    Forcing PHP5 to be case-sensitive.

    Quoting from Zend newletter from May 7, 2001 As it looks to me, PHP5 is still case insensitive when it comes to functions and classes. Does anyone know if there is a way to force PHP5 to be case sensitive? so that if I have class Foo() { function Goo() { print ("Hello world!"); } }...
  4. karnaf

    Get the environment info with ASP

    Hello all, I've been a PHP programmer for a while and want to try some ASPing. There is a function in PHP that gives a list of all the environment info + installed libs [ phpinfo() ]. It gives out a list of the global variables and their values, the environment info (such as which DB libs are...
  5. karnaf

    creating a StringToRegEx function....

    I was trying to create a small function that will convert any given string into a "safe" regular expression by replacing any non alphanumeric character X into a \X (add the backslash before it) I was counting on the fact that if the non-alphanumeric character is preceded by a backslash, the...
  6. karnaf

    Masking parts of a string (hopefully with preg_replace)

    I've been trying to solve this one using regular expressions (preg_replace) but can't find the solution. Thought I'd ask for the good people's advice. B-) I have a string which has a few [tags] in it. I want to replace everything between the start and the end with some character (same one)...
  7. karnaf

    Elegant solution for SELECT clause...

    I'm trying to avoid multiple calls to SQL and saving info in arrays... trying to find an elegant solution for a query... I have two tables in my DB for controling which pages each user can reach- user_access (user_id, page_id) user_pages (page_id, page_name) now I want to create a SELECT...
  8. karnaf

    A complicated preg_replace() problem....

    I've been trying to find a way through this, but it's just getting frustrating... The closest info I've found about this was in thread434-523609 but the problem there is different from mine. I need to go over an html file and highlight words or part of words in it (kind of what you get at the...
  9. karnaf

    2 general document.cookie questions...

    Just 2 general Qs... 1. Does a session-only cookie (document.cookie) have to have an 'expires' field? 2. What happens if I call the SetCookie() twice with the same info? will the second call overwrite the first or will I have two cookies? (for example - 1st cookie: &quot;MyC=1; ratio=0.5;&quot...
  10. karnaf

    Comparing fields in two tables.

    Let's assume I'm trying to do something like SELECT table1.field1, table1.field2, table2.field1 FROM table1, table2 WHERE (table1.field2 != table2.field1) where table1.field2 and table2.field1 are both strings. 3 questions - a. do I use the '!=' for not-equal or the '<>' ? (Which is the...
  11. karnaf

    Update query with a string in it....

    Hi, I'm using MySQL with php3 and I encountered a problem when trying to update the DB using an update string like this - $update_sql_str = &quot;UPDATE table SET field='$string' WHERE id = $id &quot;; Now, the problem is that $string is a variable containing a string that has both 's and...

Part and Inventory Search

Back
Top