I have a perl program that loads the contents of a file into an array. Is there a quick way to look at the array and see if one of the elements contains "exiting now"? I could do a loop, but was hoping for something simpler. I know for the most part, what I am looking for exists in a particular...
Please disregard, I realized I was working with the wrong copy of the application. I added /\&/ to the live application and it is working as needed.
To expand though, I upload the file to a temp directory, I rename the file cleansing out the characters you listed. Through much testing we...
I have a php script that runs when a user uploads a file, the basis of the app is that the php code passes a set of arguments to a perl script that encodes the data and stores it in a database.
I have a section that removes certain characters from the file names due to the passing of...
I have a site where the main page is protected by an .htaccess file so that I can allow only certain people to access the main site. It is a list of wedding guests and I do not want just anyone to change it. However, I installed phpBB in a subdirectory and when I go to the forum it asks for the...
I have a lab of windows xp sp3 machines that I need to "lockdown", the problem is when I use gpedit.msc the changes also affect the administrator. I need to have the administrator able to do everything. How can I setup a group policy that affects only regular users? I do not have a domain...
I have a client using Outlook 2003, when ever she opens Outlook, her calendar reminders pop up and repeatedly flash. If you dismiss them they go away, but if you close and reopen outlook they come back. She cannot snooze them either. I tried running "outlook /cleanreminders" but it did not help...
I have a form in an app that I inherited for creating email addresses. The form passes the user part , the domain part separately to a function that puts them together to make an email address and then validates everything up to the @. Problem is some admins have been putting the whole email...
I have a php page where a user can set information requested and upon submit it writes the information to a file. On my form I have two check boxes. If I check both of them and click submit, the information is put into the file, but when the page reads in the file, I cannot get the first...
Ok so I copy my files from the development server to the production server. i add the sudoers line accordingly. If I rung on command line, the hdparm stuff works, however it will not display in the brower.. Sheesh.... If it's not one thing.
Ok, making some progress I think. I still get
Array
(
)
If I run on the command line as root, php test.php, it displays the array accordingly.
If I su asterisk and run php test.php, i get:
HDIO_DRIVE_CMD(identify) failed: Permission denied
<pre>Array
(
[0] =>
[1] => /dev/sda:
)
So...
ok, did what you said and this is what display's
Array
(
)
my sudoers file looks like this:
asterisk ALL = NOPASSWD: /usr/bin/php -f /var/www/html/ivrconfig/pwd.php
This is a centos system running trixbox and asterisk. Asterisk is the user that everything runs as.
asterisk ALL = NOPASSWD...
I guess I was confused as I have never seen a php file constructed that way. I still am not getting something right, and I am frustrated. I am ready to scrap this whole thing! I created a php file with the example you provided. I called it test.php. my $pwd line looks like this $pwd = $cwd ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.