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!

Recent content by kevinpham

  1. kevinpham

    modules

    Hello, My host does not have some PERL module is I want.... Can I simply upload all modules i want to a folder and use this use lib 'path/to/modules/ will it works? or there is any other way??? cheer kevin
  2. kevinpham

    Yahoo search results

    I were messing with that number for a while, and I got this Our automated service availability system has blocked the processing of your request. We apologize for the inconvenience. Please try your request again later. When it works, you cannot go beyond 80 links per page Guess Yahoo does...
  3. kevinpham

    Yahoo search results

    How do I make Yahoo returns more than the default 20 results per page in search???? I hate to keep clicking to find the one i ones... Is there something we can do to the QUERY STRING such as add something like this into the QUERY STRING &link_per_page=200 I know it is not &link_per_page=200...
  4. kevinpham

    Simple Regex

    Hi, I just want a simple regex to do three things 1. take out the part between <body> ... </body> tag in an HTML file. 2. replace every relative image url with its full url <img src='aaa.jpg'> to be <img src='http://www.mydomain.com/aaa.jpg' 3. Replace every relative url with its full url...
  5. kevinpham

    regex : best way to get only the &lt;body&gt;...&lt;/body&gt;

    it helps alot... thanks for the tips. It got me worked for hours and now just a few minutes implement the approach, it works perfectly cheer kevin
  6. kevinpham

    regex : best way to get only the &lt;body&gt;...&lt;/body&gt;

    Hi, What is the bestway to extract only the <body>....</body> of an HTML file, and convert all links and graphics to their predefined URL. For example, if I have <html><head></head><body> junk <a href=&quot;/local/files/.html&quot;><img src=&quot;/local/images/.gif&quot;></a> junk <a...
  7. kevinpham

    Detecting Image Size

    that's so useful. now i know where the width and height come from... and understand more then functions that tracy provided thanks cheer kevin
  8. kevinpham

    Detecting Image Size

    Is there a way you can resize them without using Image:Magick if the width is bigger than what you want? cheer kevin
  9. kevinpham

    Detecting Image Size

    thanks, I just found it and was about to post it here and see you post. Wonderful... I dind't know much about images. if i knew they have image tags somewhere in that binary chunks, i could write one myself. But thanks to the one who wrote that. Now, i won;t let users submit images that are...
  10. kevinpham

    Detecting Image Size

    thanks tracy, It is great if you have it on hand... c'z it is like find a sand in a desert. Do you know if it require any special modules to run??? I will keep searching. Anyone who knows, please let me share... cheer kevin
  11. kevinpham

    Detecting Image Size

    Hi, how do you detect the image size using plain CGI with and without any additionaly modules? It screw up my program when someone upload an image with big size, if I displaying with resizing effect , says width=200, then smaller images whose width is only , says 50, looks distorted So it is...
  12. kevinpham

    CGI redirect code??

    well, you can set the header to something else depend on what you want to print.. here is a shortlist text/plain: Plain text. text/html : HTML files. text/richtext: Rich Text Format. image/gif : GIF images image/jpeg : JPEG images image/x-xbitmap X bitmap is a very...
  13. kevinpham

    CGI redirect code??

    Hi Missbarbell, your line is just equivalent to my code... the internal working of the CGI.PM will use my code, and nph->1 just tell the server not to parse the header... so why waste time initilize the variables of the CGI object? cheer kevin
  14. kevinpham

    2 scripts to run

    hi, i am sure you can combine the two scripts into one. by calling this code in teh first script use progr2.cgi; (or require &quot;prog2.cgi&quot;;) &and_call_the_function you want that exist in prog2.cgi I've tried this and it works fine on me ( i have a membership program and use Yabb...
  15. kevinpham

    CGI redirect code??

    Hi use this: print &quot;Location:your-redirect-url\n\n&quot;; make sure you have \n\n at the end or it will says invalid header cheer kevin

Part and Inventory Search

Back
Top