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

    CRC32 - always returns a signed int?

    No matter what value I give for crc32() I end up with an integer that could be stored in a signed int column in a mysql database. Is there a way to find out if this would always be the case? Celia
  2. SCelia

    Remote Connection to Mysql

    Is it possible to connect to mysql on another computer, in a different state? Is this secure? (could somebody intercept my username/password and gain access to my database?) Is it fast? Running a few small select statements and about 2 update/inserts? Most webhosts run php in safe mode, if it...
  3. SCelia

    "parse error, unexpected $" but there's no dollar sign there!

    "parse error, unexpected $" but there's no dollar sign there! (it's the end of the page) Now I've had this error before and I solved it eventually. The trouble is I forget how I solved it, I just remember I had a hell of a time doing it. And this time I have a 1300 line program! I...
  4. SCelia

    MySQL Link-Identifier?

    $db = mysql_connect(hostname,username,password); mysql_select_db(db_name,$db); produces the error "invalid mysql link-identifer" or something to that tune. The same happens in mysql_query("query",$db); All the params were correct, and I'm certain itts connecting because it...
  5. SCelia

    getTimezoneOffset() baffles me

    Ok I find this handy little function that returns the difference in minutes from GMT. I run it tho and I get 420, i.e 7 hours. I'm 8 hours off GMT (PST). So I change the time zone on my computer to GMT and run the program again. -60. Wierd, so I just need to add 60 to it for some reason. I set...
  6. SCelia

    Can VB do...?

    Can you create a CGI application in VB? i.e is it possible to create a visual basic script and submit an html form to it just like you would to a perl/php cgi script? Celia
  7. SCelia

    simple loadvariables actionscript

    my simple script: loadVariablesNum("url-is-here", 0); //create arrays cName = clName.split(","); cColor = clColor.split(","); xCoord = xlCoord.split(","); yCoord = ylCoord.split(","); Ok if I test this movie the arrays cName, cColor etc are...
  8. SCelia

    Variable scope: creating a global array within a function

    I have a function eval_code. In the function I have eval($eval_str); in $eval_str I have: $title[] = $row['title']; I want the array $title to be availiable to a required file later on in the page. i.e. eval_code($php_doc) require('foo'); where foo uses the array $title. If you followed...
  9. SCelia

    PREG_REPLACE different from PREG_MATCH_ALL?

    Ok see if you can understand this: $main_page_data is mixed html/php code like your average php webpage. //notice these use the exact same pattern... preg_match_all (&quot;/<\?(.+?)\?>/s&quot;,$main_page_data,$matches); preg_replace (&quot;/<\?(.+?)\?>/s&quot;,'<BREAK>',$main_page_data)...
  10. SCelia

    Using LWP module

    When you are retrieving web pages with the lwp module is it possible to change the ip address given to those web pages? I know you can set the user agent and the referer but can you set the REMOTE_ADDR variable or go through a proxy or something to mask it? I want to make a script to automate...
  11. SCelia

    What's XML good for?

    In English Please:) Heard an awful lot about xml but not sure what on earth it is. Kinda have the impression that it lets you make custom markup tags but not sure what use that is... Celia
  12. SCelia

    Ugly Regexp

    I'm trying to match all <input> where type=text and then extract the name and value params. Because type, name, and value could be in any order I used the ? quantifier on the value and text params. Unfortuantly this also prevents the matched values from being stored in the $1,$2,$3...
  13. SCelia

    Opening/Writing Images

    This file is an attempt to find the unique images in a directory and write them to a new directory. Unfortuantly one of its problems is that the output file is a garbled thing that is not readable as a jpg. How can I fix that? my $skip = 0; #must be set to zero intially my @all_files =...
  14. SCelia

    comparing images

    I have 6000 images, most of which I beleive to be duplicates. I wish to sort all the unique images into a new directory using perl. Some unique images have the same file size so they cannot be sorted by size. I wrote this program to do the job, but it only finds two unique images and I know...
  15. SCelia

    Reading and image and then saving it to a new location

    Heres the problem: open (IMAGE, &quot;image.jpg&quot;) or die &quot;Cannot open file image.jpg: $!&quot;; binmode IMAGE; read( IMAGE, $doc, 10000 ); close IMAGE; it seems to read in okay. Now I try to create that image in a new directory: open(IMAGE...
  16. SCelia

    Can't call method &quot;execute&quot; on an undefined value at...

    That error is beginning to get on my nerves. I just can't figure out what I messed up. Hoping you folks will be able to tell me. statement: $table = 'tourney'; my $sth = $dbh->prepare(&quot;INSERT INTO $table VALUES (?,?,?,?,?,?)&quot;) or die &quot;Couldn't prepare statement: &quot; ...
  17. SCelia

    Can Visual Basic...

    I need to write a program that can take a plain text file and turn it into a encyrpted adobe pdf and microsoft reader file. It will have to have its fonts changed, a table of contents added with all the sections automatically indexed, etc. So I would basically need a program that can, on a win...
  18. SCelia

    Can C...

    I need to write a program that can take a plain text file and turn it into a encyrpted adobe pdf and microsoft reader file. It will have to have its fonts changed, a table of contents added with all the sections automatically indexed, etc. So I would basically need a program that can, on a win...
  19. SCelia

    Can PERL....

    I need to write a program that can take a plain text file and turn it into a encyrpted adobe pdf and microsoft reader file. It will have to have its fonts changed, a table of contents added with all the sections automatically indexed, etc. So I would basically need a program that can, on a win...
  20. SCelia

    Regexp help?

    This has got me baffled, I'm trying to match this: <TH>Jets <TD>9<TD>$170<TD>703328<TD> 320 And the regexp I'm using to do it is... /\<TH\>Jets\n\<TD\>\d+\<TD\>\$(\d+)\<TD\>(\d+)\<TD\>\n(\d+)/i the above regexp is all on one line btw. Maybe I'm jsut too tired to spot the error, but I've...

Part and Inventory Search

Back
Top