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 SkipVought 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: *

  1. georgeocrawford

    Parsing 'From:' header regexp problem

    Thanks - will do! ______________________ George
  2. georgeocrawford

    Parsing 'From:' header regexp problem

    NB - I am using PHP with Perl Compatible regular expressions. Sorry if this is the wrong forum for the question. Hi all, This isn't quite the same question as normal. I don't want to validate an email address, instead I want to parse a 'From:' header into its constituent parts. I have a...
  3. georgeocrawford

    Parsing 'From:' header regexp problem

    Hi all, This isn't quite the same question as normal. I don't want to validate an email address, instead I want to parse a 'From:' header into its constituent parts. I have a complex web application which imports emails into a phpBB forum. Part of that process is to see if the email is from a...
  4. georgeocrawford

    margin-top not working

    Exactly what I wanted! I completely forgot about line-height. I had links with borders around them, and the top border was overlapping the text on the line above. Line-height solved it perfectly. Many thanks! ______________________ George
  5. georgeocrawford

    margin-top not working

    Thanks. I thought that might be the case. So no way of shifting it using margin? I guess I'll have to use relative positioning or something. ______________________ George
  6. georgeocrawford

    margin-top not working

    Here's some html: <b>My details</b><br /> <a class="normal" href="myurl">Edit Details</a> and here's the CSS: body { background : #ddd; font-family: Verdana, Arial, Helvetica, sans-serif; color: #0066cc; margin: 50px 10%; } a { color : #000; text-decoration : none; }...
  7. georgeocrawford

    I can't compile pdflib into PHP 5

    Will it do Bezier curves and polygons? ______________________ George
  8. georgeocrawford

    I can't compile pdflib into PHP 5

    Thanks for the confidence - it's nice to know it might not be me being thick this time! I'll keep my eyes open for any news. Case closed for now. ______________________ George
  9. georgeocrawford

    I can't compile pdflib into PHP 5

    Good advice, I'm sure. I'm actually running 4.3.8 already with a different Apache installation. My reason for all this palaver is firstly to check my scripts are compatible with PHP5, and secondly to branch off and extend some functionality using PHP5's new OOP features. I would like to run...
  10. georgeocrawford

    I can't compile pdflib into PHP 5

    Sorry for the delay - I've been away with work. So I compiled cpdflib, and tried to work with it for a bit. The problems are many - I have loads of Bezier curve and polygon drawing routines, and I need to embed some fonts in the PDFs. Changinf to cPDFlib is going to be an absolute nightmare...
  11. georgeocrawford

    I can't compile pdflib into PHP 5

    Well, I've got somewhere at least. I downloaded the PECL wrapper for pdflib, and installed it pointing to /sw/ as my directory for pdflib. It generated a file called pdf.so. With a bit of shifting things around, I discovered that if I put pdf.so in the path...
  12. georgeocrawford

    I can't compile pdflib into PHP 5

    Thanks very much for that slepnir - I'm glad it wasn't just me going mad! I'd like to ask two further questions. Firstly, is there any way I can compile PHP5 with both GD and pdflib support? Any trick, or short cut, or whatever? Would it work to install the pdflib extension from PECL? I don't...
  13. georgeocrawford

    I can't compile pdflib into PHP 5

    Hi, I would very much like some help with compiling PHP 5 on my machine. It's all gone well so far, with one small problem. I am running Mac OS X 10.3.4. I downloaded the first true release of PHP 5. Then I investigated the various libraries I need to include in the compilation. I found that I...
  14. georgeocrawford

    regexp help please!

    This seems to do what I want: $pattern = '/ \< ([[:alnum:]]+) \> ( (?>[^<>]+) | (?R) )* \< \/ \1 \> /Xx'; while(preg_match($pattern, $string, $captured)) { $string = preg_replace('/'.addcslashes($captured[0], '/').'/', '', $string, 1); $results[][$captured[1]] = preg_replace(array("/...
  15. georgeocrawford

    regexp help please!

    OK. Here's my pattern so far: $pattern = '/ \< ([[:alnum:]]+) \> ( (?>[^<>]+) | (?R) )* \< \/ \1 \> /Xx'; What I want to match is all the text between an opening and closing HTML-like tag. I want to allow for nested tags, so the regexp should match up until where the opening tag is...
  16. georgeocrawford

    XP startup doesn't get past welcome screen

    OK - I've sorted it! ______________________ George
  17. georgeocrawford

    XP startup doesn't get past welcome screen

    I'm using XP Home edition. When I try to start windows I get to the blue welcome screen and then the computer bleeps and that's it. The mouse doesn't freeze but nothing else happens. I get the same result in safe mode. I've also tried last known good configuration and tried changing the BIOS to...
  18. georgeocrawford

    help with mysql select please

    thanks for the quick responses - I'm working in PHP and I've replaced 25 lines of stupid array loops with one MySQL query - NICE! ______________________ George
  19. georgeocrawford

    help with mysql select please

    Got it - thanks a lot! SELECT a.forum_id FROM table1 a LEFT JOIN table2 b USING (forum_id) WHERE b.forum_name is NULL it works - does it look correct? ______________________ George
  20. georgeocrawford

    help with mysql select please

    Hi, If I have two tables, which both have a column named 'forum_id', how can I find a list of all the forum_id's which appear in table 1 but not in table 2? eg: table 1 forum_id forum_name 1 test 2 forum 3 george 4...

Part and Inventory Search

Back
Top