Im new to postgres and im trying to connect to a postgres database through php. This is the error:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: role "apache" does not exist in /var/www/localhost/blablabla...
This is the situation:
cp /path/file /path/file.new <---file got variable MB
During the copy (it will take some time) is there a way to check if file.new is completly or not completly copied?
hello, i got a problem that i dont know how to solve it.
I did an html page, with a drop down menu (li and lu), The page got 2 flash in the page. With the firefox it runs OK, but in the IE the page enters in a infinit loop and the flash never loads. I did run a firefox html validator and i got...
i did a script in bash and i want to run it with few arguments.
#define rr "/path...."
execl(rr,"rr",arg1,arg2,arg3,arg4,arg5,arg6,(char *)0);
is this correct????
code:
char buffer[2]={NULL,NULL};
...// time code and stuff
strftime(buffer, 2, "%M", loctime);
when i print to stdout the buffer i got trash like @, but like this:
char buffer[3]={NULL,NULL,NULL};
...// time code and stuff
strftime(buffer, 3, "%M", loctime);
the buffer is OK, i...
Hello
code:
while(condition){
pID=fork();
if(!pID){
/* do something */
exit(number);
}
}
wait(number);
Imagine that my while loop creats 4 childs processes. The execution time of each child are diferent, so child nº2 could end first than child nº1. My...
hello, a got this code that returns me the first colum off the file, but he change colum with space, i want to change colum with another char, like ";"
/usr/bin/awk '{ print $0 }' file
example: a;b;c;d
this will return "a" and not the full line
thanks
i got this code in PHP:
echo "x".$_GET["var"]."x"; <-- in the html appears as "xx"
then a call for a page with this
...page.php&var=<? echo $_GET["var"]; ?>
in the target page i see in the url ....var=%20%20%20%20%20
and when the variable var contains something it shows the...
Hello
I have a 10 files in a total off 20 mb and i want to create a tar.gz file but with 10 mb volumes. So it will create 2 tar.gz files.
Need some help for this job. Thanks
Hello
Any one knows how to replace a line in a file at the exact handler position.
exemple file:
hello
handler -> hello hello
hello
-------------------
replacing with guys will result:
hello
guys
hello
----------------
and not this
hello
guys hello...
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.