the command which would allow me to run DOS commands from PHP. I am not quite sure, but I remember `or ' allowing me to run commands. Also could you tell me what this process is called so I can learn more about it on the PHP website.
I have PHP 5 and users upload images while they put some info and all of these data are deleted after some period of time, but i am just afraid in case of any error some images stay there in the server. So I want to know how to check its last accessed date and creation date and any info related to date, so i regularly check and delete when expired.
I have a problem and I was told to check out the sessions part in PHP. What I want to deal with is the following :
I have a PHP page with a form, where the user writes some data. These data are then written into a file which is then used in a system command as input for an external program (NOTE: The data MUST be written into a file, it cannot be done elsewhise, because the external program takes a file as input).
The thing is that I must somehow create a file everytime a user enters data into the form, so I must learn something on sessions I think. since I don't have a login system or something like that, but just want to create a different file each time (with the session_id being part of it, so that the file is unique), which session commands do I need?
at the moment, i use a couple of cronjobs and wget to update some bits of the site, i would like to be able to specify a manual update by calling wget from an admin page. the system() call works correctly, but i get permission denied. because, i presume, apache doesn't own the directory i am wget-ting to. i can't chown the whole directory to apache.apache, because i need access to the directory for other users, (ftp). doesn anyone know a way around this?
I want to execute system commands through the functions provided by PHP (like exec, system etc)
In the LINUX machine in my work, everything seems to be OK, when, for example, I write system `ls`; and I print it on the screen. In my home PC on the other hand, where I have winXP and the Cygwin platform installed, none of these works.
1) Is the Cygwin platform sufficient to run system commands or must I have LINUX machine?
2) Do I need to change anything in my php.ini file in order to 'activate' the system commands?
I'm seeking a way to rasterize (that is convert to a raster of bits) HTML commands. My belief is that I'd do this by directing the HTML to an off-screen window or port, and then asking to get back a JPEG or other image format of the bits of that window.
i'm running the following php script, and where i would expect it to create a file, test.txt, it doesn't. it isn't in the directory i am exectuting the script in, nor can i do cat on it not that i would expect to, since it doesn't exist:
I am attempting to build a web form that will be used to launch the below command. However, the backslashes for the command line options are giving me a headache. The web form will have inputs for each option such as Adminuser, Adminpass, Adminhost, Adminport, CMD etc. COMMAND LINE COMMAND:
I'm currently working on the intranet site for our company and i've been asked to create a site where the status of our unix server is been displayed. at the moment all admins have their own logon using AIX (v4) and using the command topas to display the idle and other info.
what i want to do is create we php script that connects to the server using a logon and executing the topas command. i then want to display the idle process (but tahts not that importaint. i'll get to that when i'm able to connect to the server.