Re: [PHP] Screen Shots

2006-10-22 Thread Mukul Sabharwal
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 Mailing List (http

Re: [PHP] session - cookie issues

2006-10-20 Thread Mukul Sabharwal
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] How to Authenitcate using PHP (RH9, PHP 4.3.2, MySQL 4)

2003-08-14 Thread Mukul Sabharwal
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 web site design software http://sitebuilder.yahoo.com -- PHP General Mailing

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Mukul Sabharwal
= 100; // here it is, base_class' some is accessible ? HTH Mukul Sabharwal From: Fabio Rotondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 2:38 AM Subject: [PHP] Strange problem in class creation Hi all, I have encountered a tricky problem with PHP 4.3.1

Re: [PHP] prob. with function parameter with

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: Tuesday, August 12, 2003 11:27 AM Subject

Re: [PHP] prob. with function parameter with

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: Mirek Novak [EMAIL PROTECTED

Re: [PHP] Regex help appreciated

2003-08-14 Thread Mukul Sabharwal
in $datex[2] Now if you want to know which one to execute, just do a if(eregi('inline caps=false', $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

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

2003-08-14 Thread Mukul Sabharwal
.. and had .php files... i can't use the .php extension otherwise 404's don't get logged and taken care of! Help appreciated. thank you. Tony. = Mukul Sabharwal ([EMAIL PROTECTED]) __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: [PHP] Strange problem in class creation

2003-08-12 Thread Mukul Sabharwal
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 finished your class and made it ready (guaranteed), then you can do what you want to. = Mukul Sabharwal ([EMAIL PROTECTED

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

Re: [PHP] file maniputation??

2001-10-04 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] 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!

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] 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

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

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

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.

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

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

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

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] 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:

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:

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] 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 List

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 php

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

2001-08-16 Thread Mukul Sabharwal
= 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 Sabharwal [EMAIL PROTECTED] To: Augusto Cesar Castoldi [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 9:08 AM

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

2001-08-16 Thread Mukul Sabharwal
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. Vincent -Original Message- From: Mukul Sabharwal [mailto:[EMAIL PROTECTED

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

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. That is

Re: [PHP] Store PHP Code in MySQL?

2001-06-20 Thread Mukul Sabharwal
Hi, ? while($data = mysql_fetch_array($result)) { echo $data[text]; } eval($data['text']); ? That'll work :-) http://www.php.net/manual/en/html/function.eval.html read that for more information. = *

Re: [PHP] hmm sockets (again)

2001-05-02 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_nonblock

Re: [PHP] @ at the begining

2001-04-09 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
--- 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, MSSQL,

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 would require of someone before

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 Mailing List

Re: [PHP] Running a script without flowing

2001-03-30 Thread Mukul Sabharwal
de string.h #include signal.h #include unistd.h // copyright 2001, mukul sabharwal [[EMAIL PROTECTED]] void get_into_background(void) { pid_t pid; // all the familiar kitchenware! pid = fork(); if(pid != 0) exit(0); setsid(); // sets out process

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 commands,

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 its

[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,

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

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 21 "); 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 mentioned

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:

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
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 Grafstrm [EMAIL PROTECTED]

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

2001-02-17 Thread Mukul Sabharwal
se ($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 page with newest message at the bottom. I you know how to get latest message at the toprow I am greatfu

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 PROTECTED] For

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

Re: [PHP] Searching HTML file for tr tags

2001-02-08 Thread Mukul Sabharwal
Hi, You've forgot to put fread() : ? $file = fopen('closings.html', 'r'); if (!$file) echo 'Error opening file'; else echo 'got the filebr'; $data = fread($file, filesize('closings.html')); if (eregi('trtdStratford/tdtdClosed/td/tr', $data)) echo 'Stratford closed'; else echo 'Stratfor

[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

[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/ __

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