Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: proggybilly
  • Order by date
  1. proggybilly

    Look to see if array element contains string

    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...
  2. proggybilly

    Special Character removal

    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...
  3. proggybilly

    Special Character removal

    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...
  4. proggybilly

    Do not want htaccess to affect subdirectory

    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...
  5. proggybilly

    Administrator affected by group policy

    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...
  6. proggybilly

    Outlook Reminders Flashing

    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...
  7. proggybilly

    Cannot get preg_match to work

    Excellent! That worked. I am ok with basic php programming, but I am a uber novice when it comes to using preg_match
  8. proggybilly

    Pulling checkbox values from a file.

    I got it working using trim
  9. proggybilly

    Cannot get preg_match to work

    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...
  10. proggybilly

    Pulling checkbox values from a file.

    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...
  11. proggybilly

    Running system command from php

    Oh it was running asterisk. For some reason, I had to do a service httpd restart and that fixed it.
  12. proggybilly

    Running system command from php

    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.
  13. proggybilly

    Running system command from php

    Correction, I changed my hdparm -I to hdparm -i and now it works! Thank you so very much!
  14. proggybilly

    Running system command from php

    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...
  15. proggybilly

    Running system command from php

    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...
  16. proggybilly

    Running system command from php

    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 ...
  17. proggybilly

    Running system command from php

    bump
  18. proggybilly

    Use info from file to use in bash script

    Worked like a charm! Now to work out the kinks. Trying to rsync from linux to windows so there are many firewall issues to work out.
  19. proggybilly

    Running system command from php

    I tried your idea and am not getting anything. Perhaps I am creating the wrong kind of file. Should this be a PHP file or a regular text file?

Part and Inventory Search

Back
Top