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 bkrike 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

    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...
  2. 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...
  3. 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; }...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. georgeocrawford

    How to escape space on INSERT?

    <?php $object_name = mysql_real_escape_string($array[$i]); $query = &quot;INSERT INTO $table (`object_name` , `type` , `parent`, `size`) VALUES ('$object_name', '$type', '$parent', '$size')&quot;; $result = mysql_query($query); $parent = mysql_insert_id(); $query = &quot;SELECT * FROM `$table`...
  9. georgeocrawford

    awk - change field separator

    Hi, I'm piping the results of an ls -l into this awk command: awk '{print $9&quot;\tF\t&quot;$5}' However, when this is run on a filename with a space in it, I just get the first word of the filename printed. I think I need to change the default field separator from whitespace to just tabs -...
  10. georgeocrawford

    Which user to run Apache as?

    Hi, I'm getting in a bit of a muddle here. I have a PHP script which makes a couple of shell commands, and collects the output. One of the shell commands is to test if a given file is a Mac OS X alias. If it is, the shell returns the path that the alias points to. To do this, it uses an...
  11. georgeocrawford

    shell command not working

    Hi, In my PHP script, I want to call a shell function I have added to /bin. It's called 'aliascheck', and simply checks if a given file is an OS X format alias. If I type this in the terminal: shell>aliascheck /path/to/the/file the Terminal prints this: /path/to/the/file ->...
  12. georgeocrawford

    Can I resolve an alias in Mac OS X?

    Hi, Running OS X 10.3. I've written a php script, including a few shell commands, which searches a directory recursively, and record the paths of each file and directory it comes across in a MySQL database. This enables me to generate a web-based 'directory browser', with each folder...
  13. georgeocrawford

    Can I resolve an alias in Mac OS X?

    Hi, Running OS X 10.3. I've written a php script, including a few shell commands, which searches a directory recursively, and record the paths of each file and directory it comes across in a MySQL database. This enables me to generate a web-based 'directory browser', with each folder...
  14. georgeocrawford

    connect remotely to MySQL

    Hi, I use my G4 to administer a website which is served from an old G3 on the other side of the world. At present, I use the copy of phpMyAdmin on the server to work with the MySQL databases there. I would like change this system and use my local copy of phpMyAdmin, connecting remotely to the...
  15. georgeocrawford

    Insert directory map into database

    Hi, My problem is this. On my computer (which can be accessed from my webserver - both machines are running OS X Server), I have a directory, 'Files', with a large number of subdirectories. I would like to recursively scan through the directory, recording the name and path of each file...
  16. georgeocrawford

    Insert directory map into database

    Hi, My problem is this. On my computer (which can be accessed from my webserver - both machines are running OS X Server), I have a directory, 'Files', with a large number of subdirectories. I would like to recursively scan through the directory, recording the name and path of each file...
  17. georgeocrawford

    Insert directory map into database

    Hi, My problem is this. On my computer (which can be accessed from my webserver - both machines are running OS X Server), I have a directory, 'Files', with a large number of subdirectories. I would like to recursively scan through the directory, recording the name and path of each file...
  18. georgeocrawford

    mail() function not working at all

    Hi, I'm setting up php on a friends computer. He's running OS X 10.2.6 Server. We've got php set up, and it seems to do everything except the mail function. <?php $email = mail(&quot;me@hotmail.com&quot;, &quot;hello&quot;, &quot;hello&quot;); echo ($email ? &quot;yes&quot; ...
  19. georgeocrawford

    Find all files in directory and sub-directories

    Hello, I going round in loops here! How can I write a script to find *all* the files within a directory, i.e. all the files contained in all the subdirectories of a specified directory? I've tried looking at other scripts, creating multidimensional arrays, etc but I find myself in impossible...
  20. georgeocrawford

    I'm stuck on a syntax problem!

    Hi, I'm using a flash animation to trigger a function called change_style on my page. The function loads a new style sheet and causes the page to change visually. I'm stuck on the best way to approach the syntax for this. I want to cater for as many browsers as possible. I have learnt a bit...

Part and Inventory Search

Back
Top