You may also want to look at wget as a way of invoking
your PHP script if command line support is not available.
Henry
"I.A. Gray" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi.
>
> I am wanting to use a PHP script to check on an hourly/daily basis on a
few
> things- ie links o
Hi All,
I am trying to check if a website is up (reachable) and I have used the
standard code below:
Unfortunately this works for most sites but Microsoft doesn't work most of
the time even thought the site is definiately up! (Occassionally it does say
it is reachable but only occassionaly and th
Hi
I am using deskpro. see http://www.deskpro.com
It's written in PHP, but it is not cheap. From my brief experience I would
have to say however that it certainly seems to be worth it.
Such a sophisticated ticketing system would take a very significant amount
of time to build from scratch.
HTH
Thankyou all,
There's a lot of info here but I guess that I can summaries it as follows:
1) Do not redirect if the page is visited as the result of a POST
2) Keep text after header("Location: ...) to an absolute minimum. Namely ...
3) Use absolute URLs not relative ones.
4) If you abide by 1,2&3
Hi
The problem is that the header requires that no output
be generated by your script before it is invoked.
It makes this clear in the error message when it indicates
that on line 6 you produced output!
Try this instead (although the code seems a little confused).
http://www.index.php";);
}
Hi
You can use both $_GET and $_POST at the same time.
As an example imagine that you had a script that generated a HTML form for
collecting data. And image that that script generated different forms on the
basis of a parameter passed in the URL (i.e. a $_GET value).
Of the top of my head like t
Hi All,
I want to randomly select a desitniation page and use cookies to ensure that
refreshes and return visits on the same machine always return to that
desination (assuming the cookie is intact).
Imagine that we have an array of URL's
$url=array(1=>"dest1.html", "dest2.html", "dest3.html"); /
Absolutely brilliant, also I'm using the /s modifier to process newlines as
well.
Great
Thanks to everybody for their help.
"Jome" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Henry Grech-Cini" <[EMAIL PROTECTED]> skrev i meddelan
I came accross this link
http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html
">
http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html
Do we all agree or should I keep trying?
Henry
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
t;Mike Ford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 24 February 2004 12:40, Henry Grech-Cini wrote:
>
> > Hi All,
> >
> > function extractFieldsets($subject)
> > {
> >$regexp="/]*)>[^(<\/fieldset>)]*/i";
>
&g
dbye]
as we can see the second fieldset is included in that which is between the
fieldset tags!
:-(
Thanks everyone for you help including Mike (with the post out of chain).
Henry
"Sven" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Henry G
Hi All,
I don't actually think regexp is fault. But if anyone could explain this or
give me some example code that will extract the attributes and data between
a "fieldset" tag pair I would be appreciated.
Henry
"Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in mess
Hi All,
function extractFieldsets($subject)
{
$regexp="/]*)>[^(<\/fieldset>)]*/i";
$replacement;
$matches=array();
preg_match_all($regexp, $subject, $matches);
return ($matches);
}
$result=extractFieldsets('testcontent of
helloblahgoodbye');
echo "";
foreach($result as $key=>$str
Hi All,
I want to get a list of files in my own sub-directory from where my .php
file is.
If I use dir(".") then I can list the file in the current directory BUT
If I use dir("./subdirectory") or dir("subdirectory") I get the following
error:
Warning: SAFE MODE Restriction in effect. The script
Found a solution
if (preg_match("/Form:[ ]*(.+)[ ]*<(.+)>/", "Form:Henry <[EMAIL PROTECTED]>",
$info))
{
print_r($info);
}
else
print "Pattern not found";
but I'm refining it so that it doesn't need the last bit, any more pointers
appreciat
I tried
if(preg_match("/^From:(.*)$/", $headers[$line], $info))
{
echo "[";
print_r($info);
echo "]";
echo "",HtmlSpecialChars($headers[$line]),"";
}
But all I get is
[Array ( [0] => From: [1] => ) ]
From: Hen
Hi All,
This has to be easy to do using preg_match!
Can no one spare a minute of their time?
Henry
"Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
>
> I know that you will probably tell me to RTFM but I have (several ti
Hi All,
I know that you will probably tell me to RTFM but I have (several times) and
I cannot quite understand it!
So failing that I turn to you for help.
I know that this is very trivial but please humour me.
I have a line containing "From: Henry< henry @ .com >"
(please ignore any spa
Hi,
Please let me know if you find one thats any good?
Henry
"Dan Sabo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> What I'm looking for is either an open source or commercial solution which
> is supported by either commercial or OS add on modules. I've looked at OS
>
Hi All,
I need to process the inbox. Any pointers, I don't use Perl and would like
to use PHP. Also I do not have PHP compiled for a comand line so I'll
probably use a crontab and unix text based web browser to invoke the PHP
page to process the inbox.
TIA Any help much appreciated.
Henry
--
th these two lines:
>
> $variable = "the variables value";
> session_register('variable');
>
> This is because 'register_globals' is enabled in the php.ini file.
>
> Kirk
>
> > -Original Message-
> > From: Henry Grech-Cini [mailto:[EMAIL P
Did you send this post at 17:17 and did it arrive at 17:22?
"Niels Andersen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When I post something here, it first appears several hours later. How can
it
> be so?
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi All,
I've written some javascript that serializes javascript variables so that
they can be sent to PHP and unserialized there. Is this silly thing to have
done? i.e. is it already done or superfluous for some reason? Or, if it is
not, where would I put the code to share it with others. Thing is
Hi All,
I'm having a problem with session variables under PHP 4.0.6 on a secure
server. I ran phpinfo and have attached the resulting page after the main
body of this message.
My test code looks like this
Filename: index.php
Page Start --
click here to go to the next page
Page En
Hi All,
Is this possible?
I really don't want to go back to perl5 to setup an autoresponder system!
Henry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm confused!
Did you want to make a new post for this comment or a reply to another post.
Or does it in some way relate to my question. On my newsgroup browser it
appears as if this post is in the wrong place! In answer to my post on
"Newlines in fputs"
Thanks for responding anyway.
Henry
"Sc
type carriage returns of
newlines! However it does contains the data thank goodness.
What is the fix?
Henry Grech-Cini
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27 matches
Mail list logo