Search found 7 matches
- Fri Sep 05, 2008 5:41 am
- Forum: PHP - Code
- Topic: exec() problem - maybe IIS
- Replies: 7
- Views: 1419
Re: exec() problem - maybe IIS
Have you tried to print the output of your system call? I would suggest something like this for troubleshooting purposes: $x = 0; system("C:\My.bat",$x); print_r($x); I have some spare time today and am looking at this again. I ran the above and it displays the command line followed by ...
- Wed Sep 03, 2008 5:06 am
- Forum: PHP - Code
- Topic: exec() problem - maybe IIS
- Replies: 7
- Views: 1419
Re: exec() problem - maybe IIS
Cheers for your help! I have echoed the command and it looks fine, i then ran that command from the command line in the same directory (that was echoed) and the .bat ran fine. IIS is using anonymous access and I have added the user id used for this to the administrator group. I have now added full c...
- Wed Sep 03, 2008 4:50 am
- Forum: PHP - Code
- Topic: shopping basket
- Replies: 1
- Views: 63
Re: shopping basket
Which way is up to you. $_SESSION is used as an array. I think it's best you start by reading the basics on php.net -> http://uk3.php.net/manual/en/index.php
- Tue Sep 02, 2008 11:43 am
- Forum: PHP - Code
- Topic: exec() problem - maybe IIS
- Replies: 7
- Views: 1419
Re: exec() problem - maybe IIS
Thanks Andy. I have tried everything on that page and none of it worked. I guess it must be either a permissions / user problem or a problem with IIS. The pain of it is it dosen't return any errors, it just says it works!
It's really giving me a headache!!
It's really giving me a headache!!
- Tue Sep 02, 2008 9:58 am
- Forum: PHP - Code
- Topic: exec() problem - maybe IIS
- Replies: 7
- Views: 1419
exec() problem - maybe IIS
Hey all I have the following code; if(exec("C:\Flash.bat")) { echo("Working!"); }else { echo("Not Working!"); } It's running on php 5.2.3 and using IIS. The code always says it's working, but the .bat is not running. I hav...
- Wed Aug 20, 2008 5:17 am
- Forum: PHP - Code
- Topic: LAST_INSERT_ID only returning 0
- Replies: 4
- Views: 390
Re: LAST_INSERT_ID only returning 0
Cheers All,
Yeah, connection was a copy of dataConnection so nothing returned. Dumped everything from getLastID() and used mysql_insert_id($this->dataConnection); and all fine now. Just a case of over-doing a solution.
Thanks
Yeah, connection was a copy of dataConnection so nothing returned. Dumped everything from getLastID() and used mysql_insert_id($this->dataConnection); and all fine now. Just a case of over-doing a solution.
Thanks
- Fri Aug 15, 2008 7:15 am
- Forum: PHP - Code
- Topic: LAST_INSERT_ID only returning 0
- Replies: 4
- Views: 390
LAST_INSERT_ID only returning 0
Hi all, I had a search through the forum for my problem and have checked all the obvious stuff. We recently changed one of our apps from MySQLi to MySQL. We were using mysqli_insert_id to return the last inserted id, but due to the change we moved everything about and the new code only returns 0. pu...