Re: [PHP] Using session functions in PHP4.1.1

2002-02-03 Thread sagar N chand

i dont know how u r using the thing like PHP on the fucking Win. Moreover
WinMe is the worst of all the OS's. So, better migrate to other OS as soon
as possible.

/sagar

- Original Message -
From: "John Mpaliza" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 1:23 AM
Subject: [PHP] Using session functions in PHP4.1.1


Hi,

I'm using Win ME-Apache1.3.22-PHP4.1.1 and run this script:

I got this error: Php has caused an error in PHP4TS.DLL and will be closed.
If the problem continues try to reboot your system.
And in the Apache log file I got : "Premature end of script headers".
This happens when using functions: session_start and session_register
What can I do to resolve the problem.


John Mpaliza




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] cant connect to mysql

2001-08-28 Thread Sagar N Chand

Hi geeks,

I have a strage problem over here. I developed a site which runs fine at my home.
When i hosted it on to the remote server it is giving an error saying cant connect
to mysql. the error is like this
 
Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in 
/home/httpd/html/procbit/login.php on line 17

the line 17 in my code is as follows:
$db=mysql_connect("localhost","root","password");

please help me out of this problem.
Please reply me at [EMAIL PROTECTED] 

thank you all
sagar





[PHP] How to download files to the server

2001-09-21 Thread sagar N Chand

hi everyone,

I'm sorry that i'm not there on the list for a few days. Actually i'm
working for  a project in which i want to download some files to
the server(remote) if the user inputs the url of the file name.
hope u got me.

i want to make my server to do the downloads for me so that i can
later on download them to my idiot box.

hope i'll get some help

/sagar



[PHP] how to password protect files

2001-09-21 Thread sagar N Chand

i want to restrict the access of some files to a single user only whose names and pwds
are stored in mysql table and i'm authenticating them through my website. So what
i'm looking for is that the files should not be downloaded when their urls are typed in
the browsers.

/sagar




[PHP] mysql error on win2k

2001-09-21 Thread sagar N Chand

hi,

i have installed win2k and configured apache and php4.0.6 but
mysql is giving error 1016 or so.

why is this happening.

/sagar



[PHP] how to get the total disk space used in a directory

2001-09-23 Thread sagar N Chand

hi all,

is there any way to get the total disk space used under a directory
including its subdirectories and all the contents.

/sagar




[PHP] no of files in a folder....

2001-09-25 Thread sagar N Chand

hi all,

is there any way out to get the total no of files in a directory including its
subfolders ?

thanQ,,

/sagar




Fw: [PHP] Capturing several checkbox values

2001-09-25 Thread sagar N Chand


- Original Message - 
From: sagar N Chand 
To: John Day 
Sent: Tuesday, September 25, 2001 6:46 PM
Subject: Re: [PHP] Capturing several checkbox values


give each checkbox an individual name before you submit it.
In the next page put this code :

while(list($key,$value)=each($HTTP_POST_VARS)) {
echo ($key);  // if you want to print the name of the check box
echo($value); // if you want to print the values of the check box 
}

make sure that u use post method while submitting the form.

/sagar

  - Original Message - 
  From: John Day 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, September 25, 2001 3:00 PM
  Subject: [PHP] Capturing several checkbox values


  Hi,

  I have a page containing about 50 different checkboxes, the user can
  select as few or many as they like. When they submit the form I want the
  values/names of the checkboxes that they selected to be displayed on the
  next page, i.e. a thankyou page. Any help is much appreciated.

  JD

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



Re: [PHP] PHP Chat recommendations

2001-09-27 Thread sagar N Chand

try 'phpmychat' search in google. its the best chat in php available till now.

/sagar
  - Original Message - 
  From: Tom Beidler 
  To: Maxim Maletsky (PHPBeginner.com) ; php list 
  Sent: Wednesday, September 26, 2001 8:51 PM
  Subject: Re: [PHP] PHP Chat recommendations


  I did, that's why I'm asking for a recommendation. There are quite a few.

  > From: "Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]>
  > Organization: PHPBeginner.com
  > Date: Wed, 26 Sep 2001 17:18:15 +0200
  > To: "'Tom Beidler'" <[EMAIL PROTECTED]>, "'php list'"
  > <[EMAIL PROTECTED]>
  > Subject: RE: [PHP] PHP Chat recommendations
  > 
  > 
  > Try to browse hotscripts.com, it has a plenty of them for you to choose.
  > 
  > Maxim Maletsky
  > www.PHPBeginner.com
  > 
  > 
  > -Original Message-
  > From: Tom Beidler [mailto:[EMAIL PROTECTED]]
  > Sent: mercoledi 26 settembre 2001 17.06
  > To: php list
  > Subject: [PHP] PHP Chat recommendations
  > 
  > 
  > Does anyone have a recommendation on a PHP based Chat system. I'm
  > looking for an easy to install and reliable system.
  > 
  > Thanks,
  > Tom
  > 
  > 
  > -- 
  > 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]
  > 
  > 
  > 


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



Re: [PHP] updating a database (mysql)

2001-09-27 Thread sagar N Chand

try using the die function. it might help out.

or u can use the mysql_affected_rows functions. check out.
http://www.php.net/manual/en/function.mysql-affected-rows.php

/sagar

  - Original Message - 
  From: Joseph Bannon 
  To: PHP (E-mail) 
  Sent: Thursday, September 27, 2001 1:17 AM
  Subject: [PHP] updating a database (mysql)


  When I update my mysql database, is there a way with PHP to know what or if
  any records where updated?

  Joseph



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



Re: [PHP] Variable declaration

2001-09-27 Thread sagar N Chand

its really a big headache with compilers like c bugging all the way just for 
declarations.
its cl to have the freedom of using any variable at any place wherever v want in 
bet
ween the code. chao of PHP. 

/sagar

  - Original Message - 
  From: * R&zE: 
  To: Rasmus Lerdorf 
  Cc: [EMAIL PROTECTED] 
  Sent: Thursday, September 27, 2001 2:02 PM
  Subject: Re: [PHP] Variable declaration


  > That is the nature of a loosely typed scripting language.

  I know.


  > If you prefer a strongly typed compiled language, there are plenty
  > of those available.

  I know to. But those are not as powerful for building websites as
  PHP. I mean... don't get me wrong here, I think PHP is great (or
  even better). It's terrific actually. I just wish sometimes that the
  compiler wouldn't allow so many things. It might just be a bit more
  strict. Or at least a seperate option for being more strict. Eg
  something like E_EXPLICIT_DECLARE ;)

  -- 

  * R&zE:


  -- 
  -- Renze Munnik
  -- DataLink BV
  --
  -- E: [EMAIL PROTECTED]
  -- W: +31 23 5326162
  -- F: +31 23 5322144
  -- M: +31 6 21811143
  --
  -- Stationsplein 82
  -- 2011 LM  HAARLEM
  -- Netherlands
  --
  -- http://www.datalink.nl
  -- 

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



Re: [PHP] session not working

2001-09-27 Thread sagar N Chand

session must be registered before any code is sent to the browser. so the syntax 
should be



html code here


/sagar

  - Original Message - 
  From: Krushna Kumar R 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, September 27, 2001 5:43 PM
  Subject: [PHP] session not working


  Hi,

  I wrote a program where the session gets created, but on subsequent page the session 
does not work or i could not retrieve the value kindly help me, I have put the coding 
below

  The operating system I use is Win98 and Personal Web Server, PHP version used is 
4.0.6

  File 1 : where the session is registered or created

  
  
  
  ";
  print "Password var is - ". $password."";
  $uname=$username;
  $pwd=$password;
  print "Uname var is - ". $uname."";
  print "Pwd var is - ". $pwd."";

  echo session_is_registered("uname");
  echo session_name("uname");
   ?>
  click here to go to next page
  
  


  File 2 : Next page, the file where i check for the session variable's value

  ";
  echo "Session is - ".session_is_registered("uname")."";
  echo "session name is - ". session_name("uname")."";
  echo "the session is $uname"."";
  ?>
  click here go to last page

  Those are the coding i had used on the files i was trying to execute

  Regards
  Krushna Kumar




[PHP] php chat

2001-09-27 Thread sagar N Chand

i've seen many members seeking for a good php chat.
so my suggestion is use phpmychat. its the best php
chat i've ever come across. here is the site where u can
download your version. www.phpheaven.net
its also very easy to install and configure with good admin.

ejoy your chat server,

/sagar




[PHP] sock prob

2001-09-29 Thread sagar N Chand

hi,

the socket() function is not working on win2k. any help?

thanx,
/sagar



[PHP] sessions in php4

2001-10-01 Thread sagar N Chand

hi all,

i'm using a php4.0.6 with apache on win2k. when i register a session and immediately 
if i redirect to another
page the session seems not to be registered. eg.


when i go to the new page i c that the session has not been reigstered.

but in case if i dont redirect from php rather use a html redirection code like "click 
here to redirect" then
it worked. why ?

click here to redirect(this worked out )

any suggestions ?

/sagar




[PHP] only c if u r an indian...

2001-10-03 Thread sagar N Chand

hi,

any body out there from hyderabad. if u r a hyderabadi plese mail me.
v have got a lot of things to do.

thanks,
/sagar




Re: [PHP] Creating mailaccounts

2001-10-03 Thread sagar N Chand

work out with squrrelmail or basilix. If u want to set up won mail server then
you must have your head and fingers into linux.

/sagar

  - Original Message - 
  From: Bjornie 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, October 03, 2001 12:25 AM
  Subject: [PHP] Creating mailaccounts


  Hi everybody!

  I have a problem :/
  I just said yes to a project, which includes webmail. I know how to send
  mail and how to receive mail with imap, but can I in any way create a
  mailaccount on the server by using PHP? Or should I use any other language
  like Java/JSP or ASP (with a component)?`

  Hilfe! :)



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



Re: [PHP] A powerful editor!

2001-10-03 Thread sagar N Chand

coool man,
i've been using it since 2yrs.

/sagar

  - Original Message - 
  From: Dean Householder 
  To: Alex Shi ; [EMAIL PROTECTED] 
  Sent: Wednesday, October 03, 2001 2:27 AM
  Subject: Re: [PHP] A powerful editor!


  I used to use TextPad until I found EditPlus.  I'm also amazed by it's
  power.  It has more than I could even use including everything TextPad has
  and nicer colors for the different styles.  You can find it at
  http://www.editplus.com.

  Dean Householder
  Daylight Creations
  http://www.daylightcreations.com



  - Original Message -
  From: "Alex Shi" <[EMAIL PROTECTED]>
  To: <[EMAIL PROTECTED]>
  Sent: Monday, October 01, 2001 6:08 PM
  Subject: [PHP] A powerful editor!


  > Hello folks,
  >
  > Today, I found a very powerful editor, called TextPad. I said it is
  > 'powerful'
  > because it can recognize syntax of php, html, java, css and also many
  > many more great featuresmuch better that Windows Notepad. You can
  > download and try. You need to take a few minutes to explore it and
  maximize
  > its functionality for you.
  >
  > Here is the link:
  > http://www.textpad.com/
  >
  > Alex
  >
  >
  >
  >
  > --
  > 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]
  >
  >


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



[PHP] cant redeclare class......

2001-10-20 Thread Sagar N Chand

Hi all,

I'm using jm_sms class in mysql 
dowhile($myrow=mysql_fetch_array($result)) loop.
the class is running fine for the first time. But when it is called for the 
second time i'm
getting an error saying "cant redeclare the class". How to make this class 
work within
a loop.

i'm attaching the files if u want to look inside.

any help is highly appreciated.

thanks,

/sagar 



 Welcome to SMS reminder . . . . .  




addLogin( "[EMAIL PROTECTED]", "password2" );
// $jm_sms->addLogin( "[EMAIL PROTECTED]", "password3" );

include( "class.jm_sms.php" );
$jm_sms = new jm_sms( $email, $password, $debug );

// Add Proxy Server details if required
// $jm_sms->setProxyServer( "proxyserver" );
// $jm_sms->setProxyPort( 81 );
// $jm_sms->setProxyUser( "proxyusername" );
// $jm_sms->setProxyPass( "proxypassword" );
// $jm_sms->setProxy( TRUE );

$jm_sms->sendSMS( $number, $signature, $message );  


}

?>




http://www.mtnsms.com/.
Updates can be found at http://james.mcglinn.org/jm_sms/.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
(See http://www.gnu.org/copyleft/gpl.html)

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Changes:
0.7  21/09/01  Randomised login array for faster sending
  when over quota on first account.
  Speed optimisations in network code
   thanks to Mike Petrov ([EMAIL PROTECTED]).
0.6  06/06/01  Added check for incorrect login details.
0.5  31/05/01  Proxy support added
   thanks to Bas ([EMAIL PROTECTED]).
0.4  28/05/01  Provision for multiple mtnsms accounts.
   Bug fix for accounts defaulting to smsxtra.
0.3  27/04/01  New debug option outputs status data.
0.2  24/04/01  Re-attempts connection if server is busy.
0.1  23/04/01  Initial release.
*/
class jm_sms {

var $server;
var $cookies;
var $login;
var $curUrl;
var $debug = FALSE;
var $proxyServer;
var $proxyPort;
var $proxyUser;
var $proxyPass;
var $proxy = FALSE;

function getServer() { return $this->server; }
function setServer( $server ) { return $this->server = $server; }
function getCurUrl() { return $this->curUrl; }
function setCurUrl( $curUrl ) { return $this->curUrl = $curUrl; }
function getDebug() { return $this->debug; }
function setDebug( $debug ) { return $this->debug = $debug; }
function getProxyServer() { return $this->proxyServer; }
function setProxyServer( $proxyServer ) { return $this->proxyServer = 
$proxyServer; }
function getProxyPort() { return $this->proxyPort; }
function setProxyPort( $proxyPort ) { return $this->proxyPort = $proxyPort; }
function getProxyUser() { return $this->proxyUser; }
function setProxyUser( $proxyUser ) { return $this->proxyUser = $proxyUser; }
function getProxyPass() { return $this->proxyPass; }
function setProxyPass( $proxyPass ) { return $this->proxyPass = $proxyPass; }
function getProxy() { return $this->proxy; }
function setProxy( $proxy ) { return $this->proxy = $proxy; }

function jm_sms( $username, $password, $debug = FALSE ) {
if( $debug ) $this->setDebug( TRUE );
$this->login = array();
$this->cookies = array();
$this->addLogin( $username, $password );
$this->setServer( "www.mtnsms.com" );
$this->setCurUrl( "http://"; . $this->getServer() . "/" );
}

function addLogin( $username, $password ) {
$this->login[$username] = $password;
$this->shuffleLogins();
return 1;
}

function shuffleLogins() {
$arrayOrig = $this->login;
$arrayKeys = array();
$arrayNew = array();
while( list( $key, $value ) = each( $arrayOrig ) )
$arrayKeys[] = $key;
srand( (double) microtime() * 100 );
shuffle( $arrayKeys );
srand( (double) microtime() * 100 );
shuffle( $arrayKeys );
while( list( $key, $value ) = each( $arrayKeys ) )
$arrayNew[$value] = $arrayOrig[$value];
$this->