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...
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...
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...
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...
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...
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...
Hi,
I'm piping the results of an ls -l into this awk command:
awk '{print $9"\tF\t"$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 -...
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...
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 ->...
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...
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...
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...
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...
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...
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...
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("me@hotmail.com", "hello", "hello");
echo ($email ? "yes" ...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.