Hello i try to run a php script that writes random string in a file but nothing changes when i use this tcl with eggdrop. I can see that php file can write a string into dosya.conf when i enter command php -f portdegistir.php
Can you help me please i just want to run that php script correcty. I hope you understand sorry for my bad english.
bind raw * notice portsifre
proc portsifre {from keyword arg} {
global tj
if {[string match -nocase "*Client connecting*" $arg]} {
#Girişte notice sorgusu alalım
set port [lindex $arg 8]
set nick [lindex $arg 9]
set command "/home/sohbetka/eggdrop/scripts/portdegistir.php"
exec php -f $command
}
}
bind raw * notice portsifre
proc portsifre {from keyword arg} {
global tj
if {[string match -nocase "*Client connecting*" $arg]} {
set phpfile "scripts/portdegistir.php"
set port [lindex $arg 8]
set nick [lindex $arg 9]
set command "php -f $phpfile DEBUG"
catch {eval exec $command}
}
return 0
}