"Douglas Winslow" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Franco Breciano wrote:
>
> > a
>
>
> for($i=0;$i<13;$i++){echo chr(97+($i?3:0));}
LOL! Brilliant... :-)
--
Lasse
--
P
ray using
> a ',' as the seperator. Then I loop while there are elements in this new
> array and build the search query.
Actually strings are also arrays (at least in PHP4)...
Try this for example:
$s = 'dogs';
echo $s[strlen($s)-1];
HTH
--
Lasse
--
PHP General Mai
"scott [gts]" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> you could also use this:
>
> function is_alphanum($data) {
> return preg_match('/^\w+$/', $data);
> }
Watch out though... IIRC \w also includes un
s time out BTW? That should make it possible to check for
any temp files whose session isn't alive anymore and delete them. Since the
corresponding session is dead anyway the image can be safely deleted...
Or am I missing something?
--
Lasse
--
PHP General Mailing List (http://www.ph
Um... Can't you just set a cookie and see if you get it back on the next
page load?
--
Lasse
"Jeff Gannaway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
OK, I'm working on a site that absolutely must use a cookie contai
any tings... :-)
Definetely not a beginner's book though...
Also it has a chapter on "hacking the PHP core" contatining information you
probably won't find anywhere else...
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTE
ng routines... This way you'd have complete control over your
sessions...
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Put it outside webscope, that way it won't be possible to browse the db-file
directly...
--
Lasse
"Jon Yaggie" <[EMAIL PROTECTED]> wrote in message
030101c1095b$f235f1a0$0100a8c0@piiimonster">news:030101c1095b$f235f1a0$0100a8c0@piiimonster...
i am setting up a f
else
{
echo ("PrintFormat2");
}
--
Lasse
"Patterson Liddle" <[EMAIL PROTECTED]> wrote in message
00ac01c10967$52da3c40$ec0687d9@patlid">news:00ac01c10967$52da3c40$ec0687d9@patlid...
I wonder if someone would be kind enough
tatype and attributes?
Also, are there any other caveats I should know about? (e.g. PHP's handling
of integers)
Back in the good ol' 680x0 ASM days this was so easy! :-)
TIA
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
:$recipients";
and you should be fine
Are $recipients ;-seperated properly?
--
Lasse
"Marcus James Christian" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> Ok I've got a script going to a Bcc but
up to the user...)
With a good contains_open_tags() function you'll also be able to accept more
tags like TABLE and DIV (with some attribute filtering) since their (more or
less) unlikely to cause trouble as long as their properly closed...
--
Lasse
--
PHP General Mailing List (http://www.
...Or call it a riddle.. Whatever... :-)
What did the following code look like in it's original form?
function bitdef($prefix, $name, $bitnum)
{
define($prefix."B_".$name, $bitnum);
define($prefix."F_".$name, 1 << $bitnum);
}
--
Lasse
--
t+inside+polygon
#1 match is
http://www.dfanning.com/tips/point_in_polygon.html
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> which is a non-existent address.
DOH! Missed that one... :-)
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
"Elias" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How you mean *in it's original form* ?
>
> "Lasse" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I think he means swap...
--
Lasse
"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
000601c10e81$03aca260$22ebd73f@2pqjp01">news:000601c10e81$03aca260$22ebd73f@2pqjp01...
> What exactly are you trying to do? "Switch around" in what way?
>
> Jack
&
cks or something? Or du you just have an over-powered under-loaded
server?
I could use a bit of speed at my own site.. :-)
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
ound that out :-)
I checked out the manual and found a tip:
libexpat.a: $(OBJS)
ar -rc $@ $(OBJS)
ranlib $@
but i do not know what to do with it ?
How do I get the XML parser to work with PHP ???
Kind Regards Lasse Tarp
y fails :(
However if I make a metatag with a refresh (GET) to the same url then it
works just fine.
Am I missing something? Or?
Your input and help is appreciated - please answer to this email as well :-)
Thanks in advance
Regards
--
Lasse Laursen <[EMAIL PROTECTED]> - Systems De
Hi all,
We are "debugging" some web applications to try to determine where the
problems with long execution time is.
Is it possible to log the execution time of each script executed to a
logfile? The PHP processes are run as FastCGI under Zeus.
Regards
--
Lasse Laursen · VP, Hosting
Hi,
No - phpads is a bunch of PHP scripts. So if you have any problems with
spawned processes then it's your webserver acting up.
Regards
--
Lasse Laursen <[EMAIL PROTECTED]> - Systems Developer
NetGroup A/S, St. Kongensgade 40H, DK-1264 København K, Denmark
Phone: +45 3370 1526 - Fa
hang), but
that doesn't get my service restarted
I have edited my /etc/sudoers file so that the apache user can execute
/sbin/service. It works fine in console (with another username (can't
really su to apache))
Help me
Lasse Riis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On what user account are PHP uploads handled? I tested the upload script
from PHP docs and it worked fine only if I gave the world write access to
the destination directory (the one I moved the file with
move_uploaded_file() function).
How should this be done safely?
Lasse
--
PHP General
ot;x";) and therefor we
cannot use the xslt_process function? Of cause we can store the XML var. in
a temporary location and then read the file, but that's an extreamly ugly
approach! :) Any ideas?
I'm looking forward to your replies :)
Yours
--
Lasse Laursen <[EMAIL PROTE
No it isn't there either.
My configure, make and make install do not seem to create a 'php' binary.
Lasse
Scott wrote:
> i know it's silly to ask --
> but did you look for "php" in /usr/local/bin/
>
> > -Original Message-
>
I have received some code and am trying to run it. However, I get the
following error:
*Parse error*: parse error, unexpected '=', expecting ')'
It happens on this line when &$args=array() is reached:
function array_key_remove(&$args=array(), $keys=array(),$replacement=NULL)
I have php-4.2.2-1
Help again please.
Im trying to connect to MySQL server, using the PHP function:
mysql_connect('localhost', 'someuser', 'somePword');
I run it, and what I get is:
*Fatal error*: Call to undefined function: mysql_connect()
What do I have to do in order to make it work? Im using php-4.2.2-17.
Thank
(I sent this message earlier but I got a message saying that it was not
sent, if you did receive it, I appologize for sending it again)
Help again please.
Im trying to connect to MySQL server, using the PHP function:
mysql_connect('localhost', 'someuser', 'somePword');
I run it, and what I get i
vance.
Regards
--
Lasse Laursen · VP, Hosting Technology · NetGroup A/S
St. Kongensgade 40H · DK-1264 Copenhagen K, Denmark
Phone: +45 3370 1526 · Fax: +45 3313 0066
- Don't be fooled by cheap finnish imitations - BSD is the One True Code
--
PHP General Mailing List (http://www.ph
Hi Curt,
Thanks for your email - please find answers below:
Regards
--
Lasse Laursen · VP, Hosting Technology · NetGroup A/S
St. Kongensgade 40H · DK-1264 Copenhagen K, Denmark
Phone: +45 3370 1526 · Fax: +45 3313 0066
- Don't be fooled by cheap finnish imitations - BSD is the One True
The use of $this not working since im not calling it as an object, but to
the class directly.
Looking forward to someone poking me in the right direction :)
Lasse
x27; - not as expected.
I would expect that each $_SESSION would only hold its own data.
And I can see from the print_r(session_get_cookie_params()) that the
cookie has changed its path like it should according to my .htaccess
file.
Am I missing something obvious?
--
Kind Regards
Lasse Brandt
browser and going straight to /app1/ and then /app2/
I actually got the correct result.
So sorry to disturb you - have a nice day :)
--
Kind Regards
Lasse Brandt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
34 matches
Mail list logo