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

    Not sure how to word this but ...

    Got it working fellas. It was, after all the effort, a cookie issue. Go figure! Thanks all!
  2. IamStang

    Not sure how to word this but ...

    Sorry for the poor subject line. My brain is fried from trying to find an answer to my problem and I just couldnt think of a short way of putting this. Basically, I am attempting to write code that a download manager can understand, so to speak. My links on my site are as such...
  3. IamStang

    Top Site PHP Script

    I have never had a need for one so all I can do is point you to google. I looked at the one by "Chipmunks". Seemed ok, but I am no expert on topsites. http://www.google.com/search?hl=en&q=free+php+scripts+topsites IamStang
  4. IamStang

    noob php question

    Assuming the username is being passed by a field named "username" in a submitted form: <?php $username = $_POST['username']; $path = "/var/www/html/userz/".$username."/"; if(isset($username)){ echo "The path to the directory is ".$path; } ?> <FORM METHOD="POST" ACTION="test.php"> <input...
  5. IamStang

    get current folder

    Have a look at this page of the manual. Specifically the part on "getcwd". If your still having trouble after reading that, let us know. Someone will help ya out. The Page: http://www.phpbuilder.com/manual/ref.dir.php Later! IamStang
  6. IamStang

    php form issue

    If I am understanding you correctly, this is what I would do. As was stated above by kenrbnsn, using a text box and letting the individual decide what to insert is a bad idea (IMHO). I would use an option pulldown. Use something like this near the begining of your script. $domain =...
  7. IamStang

    reloading the page

    Easiest way I can think of would be using a meta-refresh. See Here: http://www.submitcorner.com/Guide/Meta/refresh.shtml IamStang
  8. IamStang

    Trouble passing directory info

    Thanks! I figured it out using the dirname() function.
  9. IamStang

    Trouble passing directory info

    I have a problem that I hope someone can help me out with. I need to write a variable like the one below to a file. Currently, I am trying to do this similar to as shown below, to no avail: $dirPath = "C:\script_pages\myPHPscript\"; $userName = "Bob"; //Could be anything. $EmpHTMLFile =...
  10. IamStang

    Another question that has probably been asked a 1000 times

    For crying out loud! Why didnt it occur to me to use a foreach statement? After all, I just got through coding another part of my script using it. LOL Thanks DRJ478 for hooking the truck up and pulling my head out.
  11. IamStang

    Another question that has probably been asked a 1000 times

    Using the following example: $myFile = "optionList.txt"; $myOptions = fopen($myFile, "r"); $lock = flock($myOptions, LOCK_SH); if ($lock) { $options_read = fread($myOptions, filesize($myFile)); $lock = flock($myOptions, LOCK_UN); } fclose($myOptions); $exp_Options = explode(","...
  12. IamStang

    How does one &quot;search&quot; a txt file?

    Thanks for the reply. The file I am working with should never be more than 20 or so lines, so I dont believe size will be an issue. And, as it always seems to work out, I have found information, just a few minutes ago, regarding this. It never fails. I spend days trying to figure it out on my...
  13. IamStang

    How does one &quot;search&quot; a txt file?

    I know it is possible but I am finding very little information pertaining to my question. Everything tells one how to read/write/append to a txt file. I dont know, maybe I am just not looking in the right places. What I am trying to accomplish is this: I have a txt file. It is formatted...
  14. IamStang

    CGI write to file problem

    Nevermind. Delete this thread if ya want
  15. IamStang

    CGI write to file problem

    I have a problem with a cgi script not being allowed to create/write to a txt file. The Scenario: A Linux/Apache server with SeLinux disabled (temporarily) A cgi script that creates a new txt file containing info submitted by a visitor (ipaddy_data.txt) When I load the cgi in my browser, I get...
  16. IamStang

    How to track Crawler Hits ?

    mobajwa Before you install awstats, do a google for information concerning a hack/bacdoor that uses awstats. I have noticed several entries in my error logs reporting people trying to exploit this on my server. I do not use awstats, so no worries for me...
  17. IamStang

    Whats wrong with this httpd.conf - CGI not working.

    Hello all, I figured out what the problem is. The error "Can't open perl script "\r": no such file or directory" is telling me that the script I am trying to load has carriage returns in it. This is caused by the fact that the script was composed on a windows machine. I re-wrote the file using...
  18. IamStang

    Whats wrong with this httpd.conf - CGI not working.

    Thanks for the suggestion. But still getting the same error: "Can't open perl script "\r": no such file or directory
  19. IamStang

    Whats wrong with this httpd.conf - CGI not working.

    OK, before I just give up and go back to a WinBlows system, I am going to, once again, ask you folks for help. After a clean install of Fedora 3, what in the world do I need to do to get CGI to work? I have tried several different things mentioned in other threads on this forum and others...
  20. IamStang

    Searching a txt file.

    Thank you folks very much! I have posted, what some would consider, "lamer questions" on other boards and have been treated as such. This board seems to be the place to get help regardless of one's cgi coding experience. I learn internet related coding on my own and will be sure to frequent...

Part and Inventory Search

Back
Top