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...
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...
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...
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...
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...
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...
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...
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)
{...
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...
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...
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?
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...
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...
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.