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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by shagymoe

  1. shagymoe

    Thousands of hits from where?

    Here is a link where other people are experiencing the same exact thing, however, they haven't decided the cause/solution. http://www.webmasterworld.com/forum39/1435-2-15.htm
  2. shagymoe

    Thousands of hits from where?

    Most requests are for the DocumentRoot page. The request in the log is "GET / HTTP/1.1" 200 29514 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" The logs show that they just connect once and don't browse any other pages.
  3. shagymoe

    Thousands of hits from where?

    Hi all, I just set up my server the other day and it isn't listed anywhere but I've been getting over a thousand hits a day. Is this virus attacks or what? I installed awstats and almost all of the ips are unresolved. Any suggestions on figuring this out? Thanks
  4. shagymoe

    Can anyone recommend a web editor for PHP?

    http://www.editplus.com/ it highlights things well (although not errors) you have to install the user contributed plugin for PHP (I think). I like it allright. It is windows only, but it works with wine. Shagy
  5. shagymoe

    Iterating over muli-dimensional arrays.

    I haven't really written any recursive functions, although I understand the concept, I am new to implementing it on anything other than a trivial problem. Looks like I should give it a deeper look. I was also thinking that maybe the OO approach would be better, but again I don't instinctively...
  6. shagymoe

    Iterating over muli-dimensional arrays.

    Lets say I have a multi-dimensional array like this: $file_mod_info[$mod_type][$mod_file_path][$index]='mod_string'; Then I iterate over it like so: foreach ($file_mod_info as $mod_type => $mod_file_path_array) { foreach ($mod_fil_path_array as $mod_file_path => $index_arrray) { foreach...
  7. shagymoe

    Passing generated input variables to the next page

    I just looked in the FAQs and saw the same thing...I think that will work, thanks for the help!
  8. shagymoe

    Passing generated input variables to the next page

    I have a php script which generates a list of modules to install or uninstall based on reading the directory names. So the page presents the user with something like this: Text Radio Radio Radio Button Button Button -------------------------------------- Module1...
  9. shagymoe

    Dealing with stupid binary vs. text mode.

    Trust me, I'd love to ditch M$, but it ain't an option. Also, with Perl it isn't a problem...
  10. shagymoe

    Dealing with stupid binary vs. text mode.

    Hmmmm...well aparently you have to use \r\n in windows instead of \n. This really makes it a PIA to keep your script cross-platform. Now I have a $newline variable which I am passing to every function instead of using GLOBAL. Sheesh. i.e. if ($os_type == 'windows') {...
  11. shagymoe

    Dealing with stupid binary vs. text mode.

    Ok, this is driving me nuts. All I want to do is open a file, search for a string, insert a string immediately after the search string and close the file. I am using fopen()fread() preg_match and preg_replace to open the original file, read it all into a string and then replace the search...
  12. shagymoe

    Detecting illegal chars with preg_match

    I didn't test it, but I'm pretty sure you have to place the ^ before the character class, like this: preg_match("/^[a-zA-Z0-9.@_\-]/", $str)
  13. shagymoe

    Column alias after function?

    Thanks....it didn't occur to me, but should have.
  14. shagymoe

    Column alias after function?

    I am wondering how to include the column name as an alias after performing the to_char function. Here is the query: select seq_number AS SEQUENCE, ref_code AS PART_NUMBER, to_char(insert_date, 'HH24:MI DD-MON-YY')AS DATE from table where ref_code like '5555555'; The "AS DATE" part...
  15. shagymoe

    Escaping single quotes in SELECT statement

    allright, well duh. I just answered my own question. I simply assigned the POST data to variables and used the variables in the select statement like so: $partnumber=$_POST['partnumber']; $date=$_POST['date']; $stmt = OCIParse($conn, "select t1.seq_number, t2.ref_code...

Part and Inventory Search

Back
Top