Forum: PHP Dec 5th, 2005 |
| Replies: 3 Views: 1,470 You sure can do that. Assuming that user.sh is in the same directory as the php page, just use the backtick operator:
<?php
`./user.sh`;
?>
If user.sh isn't in the same directory, try using... |
Forum: PHP Nov 30th, 2005 |
| Replies: 4 Views: 1,964 There are more than likely server configurations that are preventing you from accessing the file in ~/functions/. This is primarily due to security issues.
Also, you probably should specify which... |
Forum: PHP Nov 15th, 2005 |
| Replies: 3 Views: 2,448 By default, all variables used in functions are local variables, even if you use the same name of a global variable. You have to declare them global within the function. You can achieve this by... |
Forum: PHP Nov 7th, 2005 |
| Replies: 2 Views: 1,547 The 'return' character is not a space, it is '\n'.
-Fredric |
Forum: PHP Oct 30th, 2005 |
| Replies: 4 Views: 3,401 Like the error message makes perfectly clear, the variable is not defined anywhere before that call. Are you trying to send over the attachment's filename? Judging from your code, isn't that being... |
Forum: PHP Oct 30th, 2005 |
| Replies: 3 Views: 1,473 In PHP, as with most object oriented languages, $this is a reference variable that allows access to members variables of the class $this is used in. For example:
class NumberClass {
var... |