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 SkipVought 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: *

  1. unomateo

    How to set group write on a shared directory

    I need some help with a shared directory on a linux server. I made a group called web I made a couple users called usr1 and usr2 usermod -a -G web usr1 usermod -a -G web usr2 I made a directory called test chown root.web test -R chmod 2775 test Now I thought when usr1 creates a file in test...
  2. unomateo

    duplicate records, is it better to select then insert or supress error

    I have about 100 tables that are identical. each table has about 20,000 rows in each. Each table does an insert every 10 minutes. the memory on my server is rather high and I'm looking to lower it. before I do an insert, I do a select statement to see if the record exists. If it does, I...
  3. unomateo

    problem with passing param toswf

    I'm working on an affiliate program with a flash banner. The affiliate program generates a param tag that looks like this: <param name="movie" value="http://affiliate-press.com/ads/girl_laptop.swf?clickTAG=http%3A%2F%2Faffiliate-press.com%3Fa_aid%3Dbb8a7d65%26a_bid%3Df2afcabd" /> in my...
  4. unomateo

    how to avoid duplicate functions with dynamic function names

    I have a problem with duplicate javascript functions. I am making widgets for websites. the problem is when they add 2 widgets, they get duplicate javascript functions and the first function get all messed up. is there a way to do something like this: var fname = "function_name"; function...
  5. unomateo

    simple preg_match_all problem

    actually this is the proper string $search = "/\[.*\]/U";
  6. unomateo

    simple preg_match_all problem

    looks like I needed to add U to the search. $search = "/[^\[].*[$\]]/U";
  7. unomateo

    simple preg_match_all problem

    $text = "[newsletter_bookmarks][newsletter_cl_post]"; $search = "/[^\[].*[$\]]/"; //search for 'functions' preg_match_all($search, $text, $matches); print_r($matches);
  8. unomateo

    simple preg_match_all problem

    I'm trying to add placeholders to an html file, then replace the placeholders with preg_match_all. This is the output with the below code: Array ( [0] => Array ( [0] => newsletter_bookmarks][newsletter_cl_post] ) ) it is matching everything from the beginning [ to the very end ]...no matter...
  9. unomateo

    how to startx on a webserver running init 3

    Gunnard, I think I need to explain a little more. I have a webserver that hosts my website. On my website I want to enter a url and get the screenshot of that url webpage. To get the screenshot I am going to run scrot with shell_exec php function. First i need to open firefox on the...
  10. unomateo

    setting background color convert from rgb to hex

    no, it's not homework. I can understand running it thru your function, but I will have to do a regex search to find all the rgb's... The work flow is like this: I have a table that I change the color to with javacript. The table is surrounded with a div tag. after I change the color, I get...
  11. unomateo

    setting background color convert from rgb to hex

    I've determined this is a problem with Firefox and not IE I have a full webpage, that I use javascript to edit the colors. Then I get all the code and firefox will convert all the hex values in style tags to rgb values I send the color as #ffffff function change_border(color) {...
  12. unomateo

    setting background color convert from rgb to hex

    Let me try your script again, with the way you have it in the alert...
  13. unomateo

    setting background color convert from rgb to hex

    Hi, thanks, but I found another script that converted to hex, but there is something with style.backgroundColor that changes it. I had to user document.getElementById('inner_body').bgColor = color That seems to not change it to rgb. will the above script work to make a color a few shades...
  14. unomateo

    setting background color convert from rgb to hex

    I'm using javascript to allow users to set the background color of a table. the problem is, when I set the background color, I use hex (#ffffff), but after it is set as background-color, it converts to rgb(255,255,255) function change_inner_body(color) { alert(color) //this displays #ffffff...
  15. unomateo

    help with simple regex search

    looks like the /s modifier does the trick Thanks for your help
  16. unomateo

    help with simple regex search

    yeah, I think that there is a line break. I'm runnging this on wordpress posts and I think wordpress adding a line break. the source code shows <br /> but looks like this: this fails: test<br /> link this works: test<br />link how do I match line breaks?
  17. unomateo

    help with simple regex search

    I'm trying to find the link in a webpage. given this link: <a href="http://test.com" title="title text">test link </a> this works and I am able to find the link in the page: $search = "|<a href=\".*\".*</a>|"; but if there is a <br> in the link: <a href="http://test.com" title="title...
  18. unomateo

    how to startx on a webserver running init 3

    a little more about what I'm attempting to do. I'm trying to make a website thumbnailer, so when someone adds a link, I take a screenshot and thumbnail, similar to snap.com or alexa. so, I installed scrot on the server, but need to have X server running. Since it is a webserver only it is in...
  19. unomateo

    how to startx on a webserver running init 3

    I need to start the x server system on a remote webserver. the server is running fedora 5. the server boots to runlevel 3. I have tried to change to runlevel 5, then startx...but run into many errors during x startup. I'm trying to use scrot to take a screenshot on the server, but I need x...
  20. unomateo

    JSON help - how to access data

    I finally realized that the tutorials were not just sending the json data. They were added a function to the json data, then using the call back to read the jason data. no library needed and so far I'm able to access data across domains... this seems to be exactly what I need

Part and Inventory Search

Back
Top