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 Chriss Miller 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: craigey
  • Content: Threads
  • Order by date
  1. craigey

    replace not matching my string

    I have a script that uses convertToHtml, which all works fine, except it produces multiple table headers due to the way I'm looping through a list of server names. I'm trying to tidy this up if only the replace procedure would play nicely. Instead it seems to fail matching the string that I...
  2. craigey

    output url status html

    Hi, The script below is successfully checking a list of wsdls & was outputting to the console the correct status. However I've tried converting the output to HTML, but the output from the $body variable is blank (I'm guessing this is because it's not an object), but I don't know how to make it...
  3. craigey

    split character nearest to maximum line length

    Hi, I have a list of comma separated items, but only have a limited line length (aprox 50 chars) to display them. If I split them at the comma, I'll end up with a long list of items. What I'd like to to is fit as many as I can on each line. In essence I'd like to loop through the string &...
  4. craigey

    Date modified & DST

    Hi, I have some javascript below that reports the time since the html file was generated. This was all working fine until DST, where it started showing the Last Updated time as an hour behind the actual time. I believe I understand the concept of javascript time (i.e. milliseconds since 1...
  5. craigey

    importing a csv automatically not splitting each row

    Hi guys, I'm trying to import a csv file to Excel & forcing the cells to be text fields so that numeric values don't loose leading zero's. Unfortunately the code I have is importing all of the lines in the csv to row 1. I would apreciate some help to show me what I am missing to split the...
  6. craigey

    Excel - number of birthdays per month by gender

    Hi I'm trying to display the number of birthdays per month for a list of people which is split by gender. This is so the people using this know how many cards / present to buy (for a cancer charity) & if they should have racing cars or princesses (or other sterotypical themes). For example...
  7. craigey

    checking if folder exists & contains files

    Hi, I'm trying to automate a backup of various directories using Rsync. The source directories are mounts of a couple of network shares & the destination is the mount of an external USB drive. I have an issue with one of the directories where my script reports that the destination doesn't...
  8. craigey

    Move one file based on date/time but leave others.

    Hi, I have a vbscript that backs up a couple of mysql databases every 6 hours to a backup directory on the D:\ drive. The filenames are formated with the date, time & server name, like so: servername_Sat-04-06-2011_00_30_02.zip servername_Sat-04-06-2011_06_30_02.zip...
  9. craigey

    inserting multiple entries as CSV / array?

    Hi, I'm trying to insert some values into a SQL server 2005 db & I'm aware that it doesn't support arrays. However it would make my life a lot easier if it did. I'm inserting some translated words into the language table, but was hoping I could have a list of the translations & a list of the...
  10. craigey

    Sort array by another array or key in X order

    Hi All, I have an array that contains a list of 10 files. I want to change the order of some of the elements in the array so whe I do a for each loop the first three elements are always in the same order. eg: $contentfiles = glob("" . $files . "*.php"); $correctorder = array ('0' =>...
  11. craigey

    CSS help with transparency

    Hi all, I'm trying to get the page http://dtmautoval.co.uk/test/index.html to appear without the white background around the 4 corners. After a bit of fiddling around with the CSS I managed to remove all the white from the page, which had the desired effect on the corners & top of the...
  12. craigey

    populating array from an array

    Hi, I'm listing a directory & trying to use a foreach loop to empty the list into an array, but keep running into problems "Parse error: syntax error, unexpected T_FOREACH, expecting ')' ". Can anyone shed some light, please? $timestorepeat = 5; //path to directory to scan $scrolldirectory =...
  13. craigey

    checking if files exist on startup / label array

    Hi Guys, I have a program that relies heavily on various Dll files. I have tried telling my users that these dll files need to be in the same directory as the exe, but they still seem to forget this. I have added the required filenames to an array & created a msgbox for each one that isn't...
  14. craigey

    create folder using sql

    Hi all, I'm trying to create a folder using either host mkdir or running a job which runs mkdir. The mkdir seems to work, but creates a folder called my_directory rather then using the value of the variable. Declare my_Directory varchar2(100); Begin select p_value into My_Directory from...
  15. craigey

    Random image link

    I'm trying to create a scrolling marquee that scrolls random images including links. Unfortunaltey I keep running into problems with each of my loops! There are several arrays (1 per image) that contains height, width, title, image-url & link-url. I'm trying to get these images to all appear...
  16. craigey

    Changing the process name

    Hi, I'm using tomcat on a windows machine. It's called via a bat file which in turns calls catalina.bat Only thing is when I check the process name using task manager I only see java.exe. & I have several other java apps running, so I can't tell which is which. Is is possible to set the...
  17. craigey

    Reading session variables with javascript?

    Is it possible to read a session variable using javascript? I'm trying to use an image verification script using PHP. I need to check the MD5 hash of the value entered into the text box is equal to the MD5 hash of the Imagecode. The imagecode is stored as a session variable...
  18. craigey

    using && and || problem

    Hi guys, I'm not too good when it comes to javascript & have run into a problem with a line of code. The original line is: if(f.value=='' && f.id!='email'){cf_adderr(f)} which I thought would be relatively straightforward to add some additional validation too, such as: if(f.value=='' &&...
  19. craigey

    retrieving several blobs

    Hi, I'm trying to retrieve several images (stored as blobs in mysql). I can display any of the images individually from the database. However when I try to display all the images as scaled down thumbnails, I only get the binary data displayed. I know this has to do with the header content...
  20. craigey

    stip out part of filename

    Hi guys, I've been working on a script for organising the office MP3 collection. So far so good. All mp3's from each artist have there own folder. The only problem is that if i have 2 tracks with a variation on the artist name, such as: "Eminem - sometrack.mp3" "Eminem feat Dr Dre -...

Part and Inventory Search

Back
Top