cmd.php error : No such file or directory

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Nexus_man
Posts: 9
Joined: Mon Jun 14, 2004 4:29 am

cmd.php error : No such file or directory

Post by Nexus_man »

In data input methods i define this as the scripts path :
/var/www/progma/scripts/magenta/espinno-gw1/xxx.php

This path works in linux shell, and i can find the file from that path.

cmd.php also gives weird command not found, syntax error near unexpected token `"db.php"' and MULTI command:
error messages. Now if i copy these files xxx.php and db.php to a folder that is accessible from internet everything works fine and values are returned.

cmd.php also gives this error message when run:
: No such file or directorybytes.php: line 1: ?php
directory is correct and so is the name of the file, should i just code this in perl, because all of my perl scripts are working fine ?
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

make sure it says

"<?php"

not "?php"

i
Nexus_man
Posts: 9
Joined: Mon Jun 14, 2004 4:29 am

Post by Nexus_man »

Yes it is written like that <?php
my friend thought that cmd.php was trying to run the php script as a perl script, but i dont know ?

Update !

I added this to the beginning of the php file and it started to work
#!/usr/local/bin/php --

Yayyy everything works ! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests