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!

Search results for query: *

  • Users: menkes
  • Content: Threads
  • Order by date
  1. menkes

    PHP Require in Ajax Requested File

    I have three files: container.php, content.php, and action.php. All three files use a "require" statement to bring in some global data. - container.php loads -> all good - container.php requests data via Ajax from content.php ->all good - container.php sends form data to action.php via Ajax ->...
  2. menkes

    Dynamic Div Pushing Content Down

    First off, design is definitely not my strong point...but I need to get this working. It is an Ajax search box that drops down a suggestion list - standard stuff these days. But I just cannot get the CSS right: Here's the html: <body style="margin-top: 0px; padding-top: 0px;"> <div...
  3. menkes

    mssql query - fixed length column pads with spaces

    Using PHP 4.3.9 results from a query DID NOT include spaces at the end of a fixed length column: select fld from tbl where id = 1 assuming fld is varchar(12) returns '12345' I moved my site to a new server using PHP 5.2.8. No changes at all to the database. The same exact query now returns...
  4. menkes

    PHP4 ISAPI to PHP5 FastCGI Issues

    As the subject says, I am converting an existing site. Specifically from 4.3.9 to 5.2.8 on Windows 2003 server using IIS6. I seem to have two problems that, although I have read the manual and many sites, I just cannot get my brain around. 1. Scope: Something has changed here, but I do not...
  5. menkes

    li tag style not working

    CSS is NOT my strong point, but I need to get this template working. I use PHP and a database to dynamically generate a navigation menu. Although I 'know' which page the user is on, I cannot seem to make my list item display correctly. Here is an example of the generated HTML: <div...
  6. menkes

    MSSQL Query While Looping through Previous Result Set

    I am having an issue with doing a query while looping through a result set. I do use a database abstraction layer written years ago by Frank Kromman...but not sure if that is causing the problem. Here is an example of what is going on (I am typing this on the fly): $sql1 = "Select name, age...
  7. menkes

    PHP MSSQL - OK on W2K, but not 2003 server

    We run a site using PHP 4.3.9. It has successfully run for years using 3 database servers. All of the servers are W2K running SQL Server 2000 SP3 or SP4. In expanding our site, we now need to connect to 3 additional database servers. All of these servers run SQL Server 2000 SP4 on Windows 2003...
  8. menkes

    Calling subroutines dynamically

    I am hoping to maybe get some ideas on how to accomplish the task I have more efficiently. I have a script that queries a DB table for new files received from clients. The script stores the info for these files in a hash of hashes, with one of the values being a unique code for that client...
  9. menkes

    &quot;Please Wait&quot; Page is not loading

    I need to have a page that shows "Please Wait" and shows progress periodically while a background process runs (think Expedia or Orbitz). I found some code on the web and tested it on my Windoze XP Pro box...worked just fine. I then placed the code on my web server (W2K server, IIS 5) in a new...
  10. menkes

    DBD ODBC Nested Queries

    Is it possible to do nested queries with DBD::ODBC? I have been taking the first query, throwing the results into a hash, then looping through the hash for the next query. It just seems there should be a more efficient way. If I just nest the queries I get an error that the execute statement...
  11. menkes

    GPG and System Command

    I have a script that does several functions, one of which is decrypt a file. We previously used PGPCmdLine, but need to switch to GnuPG (GPG) v1.2. We are running on W2K Server using Perl 5.8. The specific line in question is: $status = system($gpg, "--passphrase-fd", "0"...
  12. menkes

    PDF::API2 Z Order problem

    I am just playing around with this, and have run into a problem I cannot fix. Here is the code: use PDF::API2; my @cols = @ARGV; my $yLoc = 720; my $pdf = PDF::API2->new(-file => "$0.pdf"); $pdf->mediabox(595,842); my $page = $pdf->page; my $box = $page->gfx(); $box->fillcolor( 'lightgrey'...
  13. menkes

    Start Next Page Commands - PCL5

    I need to understand all the PCL5 commands that would cause a printer to start on the next piece of paper (eject the current page). Obviously an x0C and the Esc&a#G would do this (this is for duplex printing), but what are the other codes??
  14. menkes

    Find Pattern in Binary File

    I have a binary file (PCL5) where I need to insert some information at specific points. The file consists of groups of pages (from 1 to n) separated by XML comments. The largest files are only about 50MB. This is the first binary file I have worked with, so I am having difficulty...and after...
  15. menkes

    Can you modify a file in-place?

    I have a file that I need to modify, but would like to do so without creating a new file. There are 2 form feeds in the file that must be removed. The first is near the top of the file...always at the start of line 52. The last form feed is the only thing on the last line of the file. I know I...
  16. menkes

    Select Query With Aggregate - Need Help

    OK, I cannot figure this one out. In one table, tblAPPLICATION, I need to retrieve one or more rows for a specific client. The key for each row is the application code, which is a one byte alpha character. From another table, tblESTIMATE, I need to retrieve the SUM of all estimates for each...
  17. menkes

    Query joined table twice

    I know the answer to this is not terribly difficult -- except I seem to not be able to get it. I am querying a table that has multiple fields that refer to other tables. Two of the fields refer to the same table, but different records. Example: Table1, Field1 = Sales Rep ID : get name from...
  18. menkes

    RegEx - Swap Character position

    First of all, this is a &quot;lazy&quot; post...I am so inundated with work I do not have the energy to research this so I am looking for a gimme. My apologies for being so rude. Now, I need a quick and easy: $var = 12345.7809- I need to read that as a true numeric value, i.e. -12345.7809...
  19. menkes

    When Is A File Done Transferring?

    I have a simple script that scans FTP directories every 15 minutes for new files. When a file is found the script: 1. puts the file name in an array 2. moves/renames the file to another server 3. queries a DB to see who the file belonged to 4. sends an email listing the...
  20. menkes

    Large File, Complex Processing, Processor Speed &amp; Memory

    I have a script which performs some complex data manipulation on multiple files. I am looking to decrease the processing time, but have not been very successful. THE SCRIPT -Read 6 files directly into hashes. These files are about 14MB in size. -Read the main file line by line using...

Part and Inventory Search

Back
Top