Just to make it complete...
any idea how I could do this on a windows server?
passthru("c:\wamp\php\php.exe c:\wamp\www\app\jobs\script.php");
visit my website at http://www.phpscriptor.com
ok, how can I do that? can you help me with this?
this is what I have:
passthru("/usr/local/bin/php /home/admin/domains/myweb/app/jobs/script.php");
visit my website at http://www.phpscriptor.com
Hello,
How can I execute a script in the background. I don't want to wait until it's finished.
I tried passthru("myscript.php"). I worked, but I still need to wait until the script is finished before I can work on...
any help would be appriciated.
visit my website at http://www.phpscriptor.com
Sorry, I just found the solution. (why do we always find the solution after posting?)
foreach($array as $key=>$var) {
$company[$key]= $var['company'];
$name[$key] = $var[name];
}
array_multisort($company,SORT_ASC,$name,SORT_ASC,$array);
visit my website at http://www.phpscriptor.com
Hello,
I found a solution for this, but lost it and don't know how I did it. So maybe someone could help me..
array[0]['company'] = 'Company 1';
array[0]['name'] = 'Name 1';
array[1]['company'] = 'Company 1';
array[1]['name'] = 'Name 2';
that's how my array looks like. Now I want to...
aaaaaaaaaaaaaaaaaaaaaaaaah ... so easy... thanks
anyway, just for the record... is it possible in javascript to use a value as a variable?
visit my website at http://www.phpscriptor.com
Hello,
is it possible to use/convert a value in a variable to a variable name?
I have a object data.monday = 5
var test = "monday";
I want to use something like alert(data.test); Offcourse this is not working, anyone an idea what I could do?
visit my website at http://www.phpscriptor.com
thank you for your replay. I still need to test it with IE6, but IE7 and firefox are working fine.
One more question. Let's say I have 2 'popup' div's shown at the same time. And they are overlapping eachother (totally or just a part), how can I control them so that the first popup is above the...
Yes something like that. One way or the other it's calling the function when it loads the page? So it's not working.
Anyway you gave me a good direction and I managed to do it.
I'm not explaining how because it was not with javascript, I'm working with the Zend framework and I could easy add...
Hello,
Just wondering if it's possible to write one onsubmit function for every form in my website. So that the function is called when a form is submitted. I don't want to add onsubmit in every form tagg.
I just want to display a message when a form is submitted. Something like 'data is...
Hey,
I have a div where I show a little message like ("Loading data..."). I want this always in the middle of my screen.
So I did it with some javascript:
function showdiv() {
var A = document.getElementById(E);
var C = screen.width;
var D = screen.height;
A.style.position ="absolute"...
Hmm I don't know if I made myself clear.
I'm building a website. Where you can make a comment. And upload multiple files to that comment. Those files are stored in the table tbl_files. And upload to a path e.g. http://mydomain/files/. I want to delete those files. Not the table-file.
visit my...
Hello,
I don't know if this is a good way. But I'm using cascade delete. E.g. I have a table tbl_comments and a table tbl_files. To each comment I can attach more files. The files are stored on my harddisk.
With cascade deleting, I delete a comment and all the file records are deleted. No...
Sorry, if I'm going to far with my questions but...
Can you tell me where it can go wrong? Maybe an example? 'Cause seems to me that it's working with HAVING.
By the way, what's the difference between HAVING and WHERE? Are there rules when/why you should use having, and when/why WHERE?
visit...
This is a little of the sql-string. I left out some more joins 'cause they are not making the problem.
As you see, I have a table tbl_company with 2 foreign keys to the table tbl_contacten. I want to use a where on the field Adres, Contact1 and Contact2. If I could use the AS-field I could do...
select field1 AS test FROM tbl_test WHERE field1 > 5;
Yes I know that, but this is just a simple example. In reality the select is a little more complex.
I assume they had a good reason to do that. But it would 've made things a lot easier if you could use the as-field in the where or orde or...
Hello,
I run into a little problem. Is this possible 'cause it's not working for me:
select field1 AS test FROM tbl_test WHERE test > 5;
I'm always getting the message:
Unknown column 'test' in 'where clause'
Is there a way to make this working?
visit my website at...
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.