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 strongm 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: *

  1. OrganizedChaos

    Run script to add remove email users.

    yes, I mentioned that horribly at the end of my description. My sudoers enrty looks like this. Cmnd_Alias OMADDU = /opt/scalix/bin/omaddu %group ALL=(ALL) NOPASSWD: OMADDU the group has the apache user in it, and it does not ask for a password when I su to apache and run it,
  2. OrganizedChaos

    Run script to add remove email users.

    Hi All, I am running Scalix email server and I am looking for a way to build a web interface to add and remove users (this would be much like the way one would add and remove linux users). I have set the apache user to have rights to run the program in the /etc/sudoers file. While apache came...
  3. OrganizedChaos

    Good way to bind 2 server folders from a web page

    Thanks for pointing me in the right direction... I ended up using the command exec("sudo mount --bind /olddir /newdir"); and adding the line apache ALL=/bin/mount, NOPASSWD: /bin/mount to my /etc/sudousers file This only allows apache to sudo the mount command.
  4. OrganizedChaos

    Good way to bind 2 server folders from a web page

    Hi there, I am trying to make an interface to do some scripting tools I normally run from a bash script and convert them to php pages. I need to figure out how to run the command from a webpage mount --bind /olddir /newdir This allows me to access files in /olddir by going to /newdir (I'm...
  5. OrganizedChaos

    PHP Upload - Allow .exe files

    Awesome, thats what I need.. Thanks for your help!
  6. OrganizedChaos

    PHP Upload - Allow .exe files

    Thanks, just ran a quick test, created a txt file on my desktop and renamed it to test.exe and was able to sucessfully upload it.. This is a server that I have built with FC4 and Apache, PHP, MySQL etc... All updated to the nexest versions. So it appears to either be a limitation in size, or...
  7. OrganizedChaos

    PHP Upload - Allow .exe files

    Currently, I am using the following to test an upload page I am building. <form enctype="multipart/form-data" action="test.php" method="post"> <div align="center"> <p> Upload</p> <p><input name="userfile" type="file" /><br /> <input type="submit" value="Upload" />...
  8. OrganizedChaos

    Can't send variables throught a page...

    as a side note, the article recomends to keep register_globals off. in order for test.php?testvar=anything to work, you would need to put in the code $testvar=$_GET['testvar'];
  9. OrganizedChaos

    permissions for php script

    if it is a web based php script (IE you are sending it variables via post or get or some other method), you shouldnt have to modify the permissions. If you just want to make it an executable, you can do chmod +x script.php
  10. OrganizedChaos

    insert new lines in column of a table

    Just so we are clear, when you say "insert row", you are talking about inserting a new id with new notes? And when you say "add more notes" you are talking about updating a current row? IE: add to the existing data already there?
  11. OrganizedChaos

    Parsing XML How?

    I dont have a ton of experience with this but I can post some code on what I have found. This takes a 5 digit league id used for myfantasyleague.com and parses the info I need with the built in PHP XML parser. I then create variables for the parsed data and eventually (not in this example, dump...
  12. OrganizedChaos

    Get data from a web page and insert into DB

    Cool, thanks alot guys, I appriciate the pointing in the correct direction, I will take this info and run with it....
  13. OrganizedChaos

    Change current PHP page that uses POST to a timed script

    Thanks for your reply, but, how would I make this script accept either a variable after the script name, or open a file and read the seperate names in and execute the script?
  14. OrganizedChaos

    Change current PHP page that uses POST to a timed script

    I have a page that I currently enter a name into a text box and hit submit to POST that data to another PHP page which then uses this name to run a couple of functions and make changes to a mySQL db. What I am looking to do is either; A. Turn the 2nd page into an executable that instead of...
  15. OrganizedChaos

    Get data from a web page and insert into DB

    Hi there, I am looking to provide a link to a PHP script, have it parse the comma delimited data on that page so I can enter the data I want into a mysql DB.. Here is an example of the page http://www.fftwelve.com/totstatsfx.php?folder=Monsters&pos=QB&weekstat=YTD&list=all&cnf=1&howmany= Can...
  16. OrganizedChaos

    Create mysql table with $variables

    I must have messed up my syntax, both examples that were posted worked for me.. Thank you both for your help and for the links... Thanks, Mike
  17. OrganizedChaos

    Create mysql table with $variables

    That did it.. Thanks for the prompt reply!
  18. OrganizedChaos

    Create mysql table with $variables

    I was wondering if it is possible to use variables in a sql statement when creating MySQL tables.. For example, if I wanted to add a table called "good" to my database, this would be it.. $sql = 'CREATE TABLE `good`( `id` int( 5 ) NOT NULL AUTO_INCREMENT , `good` int( 4 ) NOT...
  19. OrganizedChaos

    CSS - ouline text

    Ok, I figured that might be the case, thank you for your replies..
  20. OrganizedChaos

    CSS - ouline text

    I'm sorry, just tried that out.. That is not what I was looking for.. What I am looking for is something like this http://fozzil.net/Untitled-1.gif this is an image that I created with photoshop. The bottom word has a black outline around it using the stroke command in photoshop.. Any way to...

Part and Inventory Search

Back
Top