Re: [PHP] Screen Shots

2006-10-22 Thread Mukul Sabharwal
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

Re: [PHP] session - cookie issues

2006-10-20 Thread Mukul Sabharwal
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

Re: [PHP] files being downloaded when a 404 occurs

2003-08-14 Thread Mukul Sabharwal
.. 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

Re: [PHP] Regex help appreciated

2003-08-14 Thread Mukul Sabharwal
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]>

php-general@lists.php.net

2003-08-14 Thread Mukul Sabharwal
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

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Mukul Sabharwal
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:

php-general@lists.php.net

2003-08-14 Thread Mukul Sabharwal
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

[PHP] Document root

2003-08-14 Thread Mukul Sabharwal
$_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

Re: [PHP] How to Authenitcate using PHP (RH9, PHP 4.3.2, MySQL 4)

2003-08-14 Thread Mukul Sabharwal
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

Re: [PHP] Strange problem in class creation

2003-08-12 Thread Mukul Sabharwal
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

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Mukul Sabharwal
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

Re: [PHP] file maniputation??

2001-10-03 Thread Mukul Sabharwal
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

Re: [PHP] file reading and textarea problem

2001-10-03 Thread Mukul Sabharwal
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 * _

Re: [PHP] querying a berkley db3 database with a php script..

2001-10-03 Thread Mukul Sabharwal
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

Re: [PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Mukul Sabharwal
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

Re: [PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Mukul Sabharwal
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

Re: [PHP] Restrict where PHP is Usable?

2001-10-02 Thread Mukul Sabharwal
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

Re: [PHP] bulk e-mails

2001-10-02 Thread Mukul Sabharwal
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

Re: [PHP] Mirroring Website

2001-10-02 Thread Mukul Sabharwal
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

Re: [PHP] sessions in php4

2001-10-01 Thread Mukul Sabharwal
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

Re: [PHP] Newbie But Urgent

2001-10-01 Thread Mukul Sabharwal
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

Re: [PHP] mysql query for current id-1

2001-10-01 Thread Mukul Sabharwal
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"; = *

Re: [PHP] socket_get_status()

2001-10-01 Thread Mukul Sabharwal
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

Re: [PHP] socket_get_status()

2001-10-01 Thread Mukul Sabharwal
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

RE: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal
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. >

Re: [PHP] "FileSize" --> fread($fd, 7000)

2001-08-16 Thread Mukul Sabharwal
> $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

Re: [PHP] Try to get PHP to read the content from MS Word

2001-08-16 Thread Mukul Sabharwal
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

Re: [PHP] "FileSize" --> fread($fd, 7000)

2001-08-16 Thread Mukul Sabharwal
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

Re: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal
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

Re: [PHP] stripping white space?

2001-07-09 Thread Mukul Sabharwal
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.

RE: [PHP] Sharing session data with Perl

2001-07-09 Thread Mukul Sabharwal
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

Re: [PHP] Store PHP Code in MySQL?

2001-06-20 Thread Mukul Sabharwal
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

Re: [PHP] hmm sockets (again)

2001-05-01 Thread Mukul Sabharwal
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

Re: [PHP] @ at the begining

2001-04-08 Thread Mukul Sabharwal
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 ___

Re: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread Mukul Sabharwal
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 >

Re: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread Mukul Sabharwal
--- 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

Re: [PHP] C and PHP

2001-03-31 Thread Mukul Sabharwal
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

Re: [PHP] Running a script without flowing

2001-03-30 Thread Mukul Sabharwal
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

Re: [PHP] writing to a file

2001-03-25 Thread Mukul Sabharwal
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

[PHP] PHP.Net India

2001-03-13 Thread Mukul Sabharwal
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

Re: [PHP] Two Way Encryption

2001-03-13 Thread Mukul Sabharwal
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

Re: [PHP] exec timing out, want to leave process running in bg

2001-03-07 Thread Mukul Sabharwal
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

Re: [PHP] file access(mpeg) only for authenticated people

2001-03-07 Thread Mukul Sabharwal
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

Re: [PHP] exec timing out, want to leave process running in bg

2001-03-06 Thread Mukul Sabharwal
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

Re: [PHP] background processing / forking

2001-03-06 Thread Mukul Sabharwal
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

Re: [PHP] Background processing / forking

2001-03-06 Thread Mukul Sabharwal
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

Re: [PHP] encrypt and decrypt in standard PHP

2001-02-23 Thread Mukul Sabharwal
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,

Re: [PHP] How to get new row on top?

2001-02-17 Thread Mukul Sabharwal
".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

Re: [PHP] How to get new row on top?

2001-02-17 Thread Mukul Sabharwal
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]

Re: [PHP] Count columns in array

2001-02-15 Thread Mukul Sabharwal
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

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Mukul Sabharwal
$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

Re: [PHP] Searching HTML file for tags

2001-02-08 Thread Mukul Sabharwal
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

[PHP] Repition Reduction ?

2001-01-23 Thread Mukul Sabharwal
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 __

[PHP] RC4 Encryption / Decryption Class

2001-01-23 Thread Mukul Sabharwal
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

[PHP] RC4 Encryption / Decryption Class

2001-01-23 Thread Mukul Sabharwal
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

[PHP] archiving php lists ?

2001-01-17 Thread Mukul Sabharwal
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

Re: [PHP] problem using flock()

2001-01-13 Thread Mukul Sabharwal
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