Hi,
I'm trying to work out how to schedule tasks in php. I would like to use at
but are having a few difficulties.
Does anyone have any suggestions on an alternate way to schedule a command
to run on the system via php.
Thanks a lot,
Todd.
--
PHP General Mailing List (http://www.php.net/)
T
>
> On a clients first visit to a site, the PHPSESSID gets written into the
> URL, but not on any additional requests.
>
> Has anyone had this problem? It wasn't happening before the upgrade.
>
> Running:
>
> Redhat 7.3
> PHP 4.2.2
> Apache 1.3.26
The same thing happens to me, however, sessions
Apologies if im not quite understanding this... but to me it reads you
want...
if ((X and Y) OR Y) .
which mathematically is simply
if (Y).
If this is what u actually mean, then all u need is if (blah($blah)) because
the value of the first predicate is going to have still depends on Y to b
> Fatal error: Cannot redeclare class dmsql in
It looks like you are after include_once
http://www.php.net/manual/en/function.include-once.php
Todd
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 2:48 PM
Subject: [PHP] Class proble
> What is the proper syntax for storing an array in a session?
>
> is it $_SESSION["BILLARRAY"]=$ARRAY?
Yep, providing youre using session_start() and session_register("_SESSION")
you can assign any type of data, just like a regular hash.
Todd.
- Original Message -
From: "Randy Johnson
Hi Charles,
Not sure exactly what you are after, but
function displayLinks ($pagecontents) {
$search = '//im';
$replace = '';
return (preg_replace ($search, $replace, $pagecontents));
}
For me, that takes all the links in $pagecontents and modifies the links for
a r
Hi,
you would be better off with preg_match, as its a little quicker apparently.
try:
preg_match("/^[:0-9a-f]*$/i",$string)
or change the * to a + to ensure $string is not null
the main problems you had:
- not ensuring that only those characters are found by using ^ and $
- not allowing multip
Hi
Im using file() to get the contents of a webpage. e.g
// get a web page into an array
$fcontents= file ($targeturl);
However I dont know how to mimic a different useragent. Using LWP::UA (in perl) i can
pretend to be iexplore6 running on win2k or anything i want.. Is there a way i can do
You can use
exec($command, $result);
which will throw any stdout output into $result
Im not sure if it works with stderr as well, you will have to try it :)
Todd.
- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: <>
Sent: Friday, August 30, 2002 7:06 PM
Subject: [PHP] hide syst
Hi all,
As I'm sure you are all aware (but this email is incase you are not), files with the
extension .scr are executable on all windows platforms.
Just now from someone on the list I have received two emails with .scr attachments. If
you receive an attachment from this list, please check th
Hi
> If people are daft enough to be using M$ software AND they're
> daft enough to
> execute unsolicited executables then they deserve whatever they get.
Yep I agree, although, I would prefer if people didnt then be email me again
with already hundreds of emails a day... I dont need this as wel
:)
thanks to anyone who thought about replying :)
Maybe this discovering might help someone else also, hence my post.
Later,
Todd.
> -Original Message-
> From: Todd Pasley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 30 August 2002 6:19 PM
> To: [EMAIL PROTECTED]
> Subject:
Hi
Instead of
> retrun false;
im sure you meant
return false;
The reason its working with confirm and the like is because of their return
code which is actually true.
Try changing it to return true, im pretty sure that will fix it.
Cheers,
Todd.
> -Original Message-
> From:
2399
>
> Try my open source PHP authentication system, Rampart by visiting
http://rampart.sourceforge.net/. Commercial support is available at,
http://www.vanceconsulting.net/support/.
>
> On Fri, 30 Aug 2002, Todd Pasley wrote:
>
> > > What is the proper syntax for sto
Use ; instead of |
e.g.
shell_exec("cd /change/to/dir; tar cvf /place/for/backup.tar files");
Todd.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 9:40 AM
> To: php-general
> Subject: [PHP] using shell_exec
>
>
>
> Can so
resources.
Todd.
> -Original Message-
> From: Todd Pasley [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 1:32 PM
> To: Richard Kurth; php-general
> Subject: RE: [PHP] using shell_exec
>
>
> Use ; instead of |
>
> e.g.
>
> shell_exec("cd
Hiya,
There are two reasons that I can pick up that you may be experiencing this
area:
1) You are not using PHP4 or later
2) you are using windoze and.
"Probably the nastiest gotcha is that there may also not be a carriage
return (\r) at the end of the line, only a form feed, AKA newline (\n
Hi,
Firstly, please resist the opportunity to flame
I'm looking for a PHP (among other things) Line Of Code counter. Has anyone
used any descent ones? I was thinking of writing one myself, but, if there
are others available, I might as well save the time.
There is much debate over the appro
You can get vi/vim for windows, without a doubt the best editor of all time
if you can be bothered learning the commands.
Todd.
> -Original Message-
> From: Bryan McLemore [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 21 September 2002 11:16 PM
> To: PHP GEN LIST
> Subject: [PHP] Editor
>
Sure you can, however,
1) u prob. want $_SESSION['name'] = $_POST['name'];
2) remember that if you are calling this within the scope of a function you
will have to use $GLOBALS to declare $name as a global before you utilise
session_register.
Todd.
> -Original Message-
> From: Randy Joh
I use
http://place.to.redirect.to>
Todd.
- Original Message -
From: "Sascha Braun" <[EMAIL PROTECTED]>
To: "PHP Mailingliste" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 9:42 AM
Subject: [PHP] Redirection
Hi,
I want to post a form and after parsing i want to redirect the
Hi
If what you mean is... you want to be able to write to a file on the
browsers computer, then please let us know if you find a way.
To my knowledge, there is not any intended way to do this... you wouldn't
want any old website to be able to manipulate your hard drive would you?
It might be po
Hi,
I asked a question similar to this earlier, but I thought it may have
required simplification/rewording. According to the doco,
imagecreatefromstring has the following declaration:
resource imagecreatefromstring ( string image)
Does anyone know how an image can be transformed into a string
What you seem to be looking for are the javascript functions, alert, confirm
and/or prompt. for a billion examples see...
http://www.google.com/search?num=20&hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&;
safe=off&q=confirm+alert+prompt&btnG=Google+Search
Todd.
> -Original Message-
> From: J
Try looking at the following paper, it looks very good.
http://conf.php.net/pres/slides/oci/paper.txt
HTH
Todd.
> -Original Message-
> From: Juan Antonio Ruiz Zwollo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 2 October 2002 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Connect t
> Jeez, this is simple. The browser is caching the image. There's no real
> way to fix that. There are some headers that may encourage the browser to
> not cache, but there is no sure way to control whether the users will have
> this setting overridden.
I use
srand((double)microt
Realistically, there is no difference. It is *slightly* quicker to parse,
but thats about it.
I think it was introduced to satisfy those that have used this type of
syntax in other languages, like C and Perl (which users elsif).
I usually use elseif as its a bit nicer looking (IMHO)
Todd.
-
27 matches
Mail list logo