tive content security or convince your visitors to give you
permission to spy on them.
So, as I said previously, no.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Mukul Sabharwal
http://mjsabby.com
--
PHP General Mailin
to something of my own, as I hear that IE does
not like PHPSESSID (correct?).
Any ideas?
--
http://www.web-buddha.co.uk
--
Mukul Sabharwal
http://mjsabby.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.. and the
> browser says can't download!!!
>
> And now when I add a .php file to my AddType... it
> happens for the .php file
> too... so since i've moved my website.. and had .php
> files... i can't use
> the .php extension otherwise 404's don't get log
input_string)) {
execute_this_Regex();
}
It should be faster this way, and an even more
efficient solution can be using Perl Regex.
HTH
Mukul Sabharwal
http://www.dehvome.org
- Original Message -
From: "David Pratt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
You cannot pass NULL, where a 'reference' was
exptected, it is not legal. Just as any other
constant.
NULL is a constant.
function myfunc(&$p) { ... }
$v = NULL; // passing NULL
myfunc($x);
Mukul Sabharwal
http://www.devhome.org
- Original Message -
From: "M
from second_class ? If so :
foo = &$oref;
}
};
$base = new base_class;
$second = new second_class($base);
$second->foo->some = 100;
// here it is, base_class' some is accessible
?>
HTH
Mukul Sabharwal
> From: "Fabio Rotondo" <[EMAIL PROTECTED]>
> To:
Sorry the $x should be $v, if it caused any confusion.
Mukul Sabharwal
http://www.devhome.org
=
Mukul Sabharwal ([EMAIL PROTECTED])
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--
PHP
$_SERVER[REQUEST_URI] , $_SERVER[SCRIPT_NAME]
They give abs. web server paths ...
like /php/scripts/file.php
HTH
Mukul Sabharwal
http://www.devhome.org
- Original Message -
From: "Mukta Telang" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: T
ce... I imagine plenty of
authentication
> schemes have been put in place but which one might
be the best?
> Opinions?
>
> Thanks,
> Matt
>
>
=
Mukul Sabharwal ([EMAIL PROTECTED])
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use w
ses, I'm
presuming you wanted that for some reason (??)
On almost all times your data will be still pointing
to your base class (second_class).
So i'm afraid your method is not reliable, dangerous
none the less.
The reliable and correct way of doing it is after your
constructor has finish
http://www.paphe.com/php/tutorials/230101.php
an encryption class
=
*
Know more about me:
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick an
Hi,
It looks most certainly like a file permission error,
however if you have concurrent users maybe it's over
riding the file contents, and screwing up something
somewhere.
So use flock(), a tutorial :
http://www.paphe.com/php/tutorials/111000.php
=
*
Know
Hi,
fopen let's you read the whole file. Try this
tutorials on files for a more hands on approach :
http://www.paphe.com/php/tutorials/111000.php
=
*
Know more about me:
http://www.geocities.com/mimodit
*
_
Hi Sovan,
try this link :
http://p2p.wrox.com/archive/pro_php/2001-05/46.asp
=
*
Know more about me:
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
Listen to your Yahoo! Ma
Oops,
socket_setopt($listener, SOL_SOCKET, SO_REUSEADDR, 1);
=
*
Know more about me:
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from
Hi,
A bind error means that the port is being used by
another application, incase that's incorrect you can
assure yourself by doing this :
socket_setopt(listener, SOL_SOCKET, SO_REUSEADDR, 1);
This function is undocumented (yet) and would require
you to download the latest version from CVS.
Ho
Hi,
Take a look at the ScriptAlias directive of the Apache
webserver. I'm not sure how other webservers limit
execution, but apache does it using that directive.
http://httpd.apache.org/docs/
http://httpd.apache.org/docs/misc/security_tips.html
http://httpd.apache.org/docs/vhosts/mass.html
Hope
Hi,
Well to reach the customers, each and every, you would
have to send it to each and everybody, very simple.
Ofcourse, it's not the most nice job the server can
do, but your emails say 20K each, and 10,000 users,
isn't a very rough job.
You could essentially loop through the user record and
s
Hi,
Try rsync, it's pretty much what you want.
http://rsync.samba.org
=
*
Know more about me:
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
Listen to your Yahoo! Mail mes
Hi,
Well probably because you've got that automatic
PHPSESSID thing carryover in your php.ini which
through your situation indicates that it doesn't work
in a header() so either you'll put cookies on, or use PHPSESSID.
=
*
Know more about me:
http://www.geocit
Hi,
Well take a look at a library I've implemented in PHP
:
http://www.paphe.com/php/scripts/authlib.html
P.S - PHP is way faster, and ofcourse much more
elegant than ASP, however it's a matter of personal preference.
=
*
Know more about me:
http://www.geoci
Hi,
The reason probably is that you're limiting from the
2nd row, instead of the first, 0 is the row starting
point (I think).
So :
$sql="select id,agent,host, DATE_FORMAT(time_in, '%M
%d, %Y, %l:%i') AS
unixdate from logged_in WHERE userid='$current_user'
ORDER BY id DESC LIMIT 0, 1";
=
*
Hi,
Well I'm not totally sure, why socket_get_status would
not give you the correct value, other than a bug, as
the manual does indicate the socket functions are
experimental.
There are altenative ways to get the number of bytes
in the buffer, like using ioctl with FIONREAD,
ofcourse that is a C
Hi,
Well I'm not totally sure, why socket_get_status would
not give you the correct value, other than a bug, as
the manual does indicate the socket functions are
experimental.
There are altenative ways to get the number of bytes
in the buffer, like using ioctl with FIONREAD,
ofcourse that is a C
before, so
> it could be a bug? Or is there something special
> with the quotes to do? I remember an earlier
> website I built that had problems too, but they
> were solved when I replaced single quotes by
> doubles. Back then, the error-page didn't
> appear also.
>
> $fd = fopen("http://localhost/script.php";, "r");
> $aux = fread($fd, 70);
> fclose($fd);
>
> Can I now the size of "$fd"? Well, I need to ready
> all $fd.
> thanks.
>
> Augusto
> - Original Message -
> From: Mukul Sabha
Hi,
MS Word encodes it's contents, so you'll need to use
the COM interface to access MS Word Files.
A tutorial is available @ http://www.xeru.com on COM
with PHP4.
--- Jack <[EMAIL PROTECTED]> wrote:
> Dear all
> I'm trying to get PHP to read the content which
> created by MS Word.But when
> ph
Hi,
fread($fd, filesize("somefile.txt"));
--- Augusto Cesar Castoldi
<[EMAIL PROTECTED]> wrote:
> Hi.
>
> instead use "7000" in "fread($fd, 7000)", i'd like
> to use the size of the
> file opened. How can I know the size of the fopen?
>
> thanks.
>
> Augusto
>
>
> --
> PHP General Mailing
Hi,
Well the PHP script is timing out after it executes a
no. of (or all the mail() commands). So what you got
todo is either set the PHP's timeout limit to 0 or
infinite.
set_time_limit(0);
Or you could invoke another program in the background
disconnect PHP (terminal) from it, and voila. But
Hi,
I take that you simply want to remove ALL whitespaces
from a data block (variable).
you could simply use str_replace(" ", "", $var);
--- Kurt Lieber <[EMAIL PROTECTED]> wrote:
> Is there a way using PHP to easily strip white space
> out of an html page as
> it's being sent to the client.
Hi,
It's not really very trivial. But since I don't PHP
sessions that much I might be incorrect, however if
you're not wanting to use WDDX, you'll probably have
to dawn some light on the raw sessions.
Shifting control across processes is fairly simple, in
the UNIX environment, and executing anot
Hi,
That'll work :-)
http://www.php.net/manual/en/html/function.eval.html
read that for more information.
=
*
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
Get persona
Hi,
I might have missed a follow up or your original
message, but have you tried socket_set_blocking() ?
--- Joseph Blythe <[EMAIL PROTECTED]>
wrote: > Hey all,
>
> Just looked through the changelog for 4.0.5 and was
> suprised to see that
> the socket functions had not been fixed,
> (set_nonb
Hey,
@ simply means to suppress warnings, or errors!
@functioncall(); would simply not display an error or
warning, incase it caused one or more.
=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr
___
oops, a 404, well
try http://www.devhome.net/resume.txt in txt
and http://www.devhome.net/resume.doc in word!
:)
--- Mukul Sabharwal <[EMAIL PROTECTED]> wrote:
>
> --- Michael Kimsal <[EMAIL PROTECTED]> wrote:
> > To follow up just a bit more, here are skills I
>
--- Michael Kimsal <[EMAIL PROTECTED]> wrote:
> To follow up just a bit more, here are skills I
> would require of someone
> before hiring them:
>
> * Practical SQL knowledge, with hands-on experience
> of at least 6 months
> (with projects/URLs to show for it) with either
> MySQL, Postgres, MSS
you can use shared memory functions to ineract between
C and PHP.
--- Ft Karras <[EMAIL PROTECTED]> wrote:
> Somebody knows if it is possible to link C and PHP?
>
> I have a C library and need to 'include' with PHP
> code, as it does PERL,
> is it possible?
>
> Thanks
>
> --
> PHP General M
hey,
exec("foo > /some/file 2>&1 &");
or register_shut_down("whatever");
incase it's a C program that does the math, you could
make it a daemon like thing: and do that math in the
main :-)
#include
#include
#include
#include
#include
#include
#inclu
heyo,
http://devhome.net/php/tutorials/230101.html
will be nice
--- adam <[EMAIL PROTECTED]> wrote: > how do i write to
the beginning of a file instead of
> the end?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional co
Hi,
Well this is the second time I've made such an
announcement. I was wondering if some individuals or
groups would be interested in mirroring PHP.net for
indian programmers, so that downloads are faster ?
If not a complete mirror, atleast manuals, and
binaries, and tars.
thanks,
www.devhome.n
Hey,
http://www.devhome.net/php/tutorials/230101.html
that's RC4 implementation in PHP. you don't need
mcrypt.
--- Joe Njeru <[EMAIL PROTECTED]> wrote: >
Hi All,
>
> I'm looking for a two way encryption function that I
> can use to encrypt a
> cookie value. I have had experience with MD5 but i
Oh yeah, we don't wanna get HUPed!
--- Christian Reiniger <[EMAIL PROTECTED]> wrote: > On
Wednesday 07 March 2001 06:37, you wrote:
> > Hi,
> >
> > Well there are many ways to run a process in the
> > background, my favorite way is detaching the
> process
> > or the program or process from within
Hey,
Well sure there is:
$fp = fopen($filename, 'r') or die('damn');
$read = fread($fp, filesize($filename)) or
die('damn');
$filestr = basename($filename);
header("Content-Disposition: attachment;
filename=$filestr");
header("Content-Type: application/octet-stream");
echo $read;
exit;
Neat A
Hi,
Well there are many ways to run a process in the
background, my favorite way is detaching the process
or the program or process from within, so if it's a c
program pretty easy, but incase you dont have the
source, then you can use this:
exec("mp3123 -y -Z --all 1>/dev/null/ 2>&1 &");
well t
Disclaimer:
The following post contains C code for *nix!
Viewer discretion recommended!
Hi,
I'm back, I couldn't resist you mentioning C, so as
you did, big fault, the code that follows is probably
much better than exec, as an stderr terminal will
still be attached, but anyway:
exec("your
Hi Natasha,
Well the probably easiest shitty way to do it is:
exec("theprogram 1> /some/file 2>&1 &");
would exec()ute theprogram and will put it's output in
/some/file and stderr's output also in the /some/file,
and & at last signifies the backgroundness of the
program.
however as you mention
Hi,
You can also use an RC4Encryption / Decryption class
made in PHP.
http://www.devhome.net/php/tutorials/230101.html
it's pretty easy to use.
--- Richard Lynch <[EMAIL PROTECTED]> wrote: > You
could use popen() to execute http://gnupg.org or
> PGP...
>
> It would be easier to recompile PHP,
".comment",
> "a");
> fwrite ($fp, $message);
> fclose ($fp);
> }
> @readfile(basename(($PHP_SELF . ".comment")));
> -
> And here is a html form placed.
> -
> When I submit the form I can se the result on the
> top of the same
I'm not quite sure what that code has to do with
anything, but anyway,
incase you're using files,
you can open the file with the 'a' flag, using fseek
goto 0byteth, and append from there.
$fp = fopen('file', 'a');
fseek($fp, 0);
fwrite... or whatever here.
--- Jan Grafström <[EMAIL PROTECTED]
Hi,
Well it depends, on which elements /2nd/ dimension you
wanna see!
here's some code:
$myarr[0][0] = "sdkjsjks";
$myarr[1][0] = "dsjkdkjsd";
$myarr[1][1] = "hsjdsh";
$myarr[1][2] = "dsjkdsjkdkjsdkjs";
echo sizeof($myarr); // would print 2, element 0 and
1.
echo sizeof($myarr[0]); would print
$remainder = 10 % 5;
--- Randall Perry <[EMAIL PROTECTED]> wrote: > Couldn't
find one in the manual under arithmetic
> functions.
>
>
> --
> Randy Perry
> sysTame
>
> Mac Consulting/Sales
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTE
Hi,
You've forgot to put fread() :
';
$data = fread($file, filesize('closings.html'));
if
(eregi('StratfordClosed',
$data))
echo 'Stratford closed';
else
echo 'Stratfor open';
?>
--- Tyler Longren <[EMAIL PROTECTED]> wrote: >
Hello everybody,
>
> Here's my code:
>
> $file = fopen("clos
Hi,
I'm making a small quiz script, and wanted to know how
I could minimize repition of questions to a single
user.
And also how to randomize all the questions ?
thanks.
=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr
__
Hi,
I've made a small class that adds RC4 encryption
functionality to those versions of PHP which don't
have mycrypt either installed or the specific version
for RC4 is not installed.
It's a class that simply requires you to pass some
parameters, like key, and the plaintext, and an
optional decr
Hi,
I've attempted to add RC4 encryption / decryption
facility in PHP. It's been tested on PHP4.
It handles all the XORing and conversions while
encrypting and decrypting also all urlencoding and
decoding. It's been pretty fast also.
I've written a tutorial on it, whatever it is :
http://www.de
hi,
how do sites like http://marc.theaimsgroup.com, make
mailing list indexes, like even phpbuilder and zend's
site which archive the list.
How do they index all the message ?
thanks.
=
To Find Out More About Me : http://mukul.tsx.org/
__
Do
Hi,
Well the problem might be while obtaining the lock.
fopen() with let's say 'a' will open the file, and put
the cursor to the very last byte. The time period
between opening the file and getting the lock is
probably where you're clobbered.
At let's say time X, a file is opened and the writing
57 matches
Mail list logo