[PHP] HELP: PHP COM with Distiller

2002-02-26 Thread Kumar


Hi All,

Installed Apache, PHP, Office and Adobe Distiller

on Win2000 Professional.


By using

$pdf = new COM(pdfdistiller.pdfdistiller.1);

$pdf-FileToPdf($psfile, , );

I am able to convert PS to PDF.


In the same fashion I want to convert DOC, XLS and PPT

to PDF format.

Is that possible, please explain in detail.

Thanks in advance,

Regards,

Kumar.

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




Re: [PHP] Re: PHP COM with Distiller

2002-02-26 Thread Kumar


Hi,

   Good to see u'r reply.

My problem is where can I get those methods

documentation.

Can anybody experts in Windows can help me out !!

Thanking You,

Kumar.


On Wed, 27 Feb 2002 J Wynia wrote :
Don't have sample code handy, but you'd create a new Word, Excel 
or
Powerpoint object (depending), and use the print methods of those 
objects to
send it to Distiller.

Kumar [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  Hi All,
 
  Installed Apache, PHP, Office and Adobe Distiller
 
  on Win2000 Professional.
 
 
  By using
 
  $pdf = new COM(pdfdistiller.pdfdistiller.1);
 
  $pdf-FileToPdf($psfile, , );
 
  I am able to convert PS to PDF.
 
 
  In the same fashion I want to convert DOC, XLS and PPT
 
  to PDF format.
 
  Is that possible, please explain in detail.
 
  Thanks in advance,
 
  Regards,
 
  Kumar.



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



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




[PHP] help:PDF

2002-02-27 Thread Kumar


Hi All,


 Slightly difficult question, and I am new to

Windows programming.


 Installed Apache, PHP, Office and Adobe Acrobat 5.0

on Win2000 Professional.


By using,

$pdf = new COM(pdfdistiller.pdfdistiller.1);

$pdf-FileToPdf($psfile, , );

I am able to convert PS to PDF.



In the same fashion I want to convert

DOC, XLS and PPT file format

to PDF format, using PHP COM methods.


Is that possible, please explain in detail.

Is there any other way of doing this, ie., converting

to pdf file using Acrobat with web interface.


Thanks in advance,

Regards,

Kumar.



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




[PHP] inserting datas through table

2003-02-04 Thread kumar
Dear Sir/Madam,
(B I have create table for reservation system in that table i need to save
(Ball the values
(Bbut it couldn`t save all the values it saves only the last value.
(B  Please help me!
(B   html
(B?php
(Bif($submit)
(B{
(B$db = mysql_connect("localhost", "kumar","");
(Bmysql_select_db("Golf",$db);
(B$sql = "INSERT INTO personalmst (setdate,name, uid, password, bumon,email)
(BVALUES ('$setdate','$name', '$uid', '$password','$bumon','$email')";
(B$result = mysql_query($sql);
(B if(!($_POST['password'] == $_POST['confirmpassword'])) //Does their
(Bpasswords match?
(B{
(B echo " Your password do not match!";
(B}
(B echo "Thank you! Information entered.\n";
(B}
(Belse
(B{
(B?
(Bform method="post" action="Master.php" 
(BSetdate:input type="text" name="setdate"br
(BFirst name:input type="Text" name="name"br
(BUserID:input type="Text" name="uid"br
(BPassword:input type="password" name="password"br
(B Confirm Password:input type="text" name="confirmpassword"br
(BDepartment:SELECT NAME="bumon"
(B?php $db = mysql_connect("localhost", "kumar")
(BOR DIE("Unable to connect to database");
(Bmysql_select_db("Golf",$db);
(B$result = mysql_query("SELECT bumon FROM personalmst",$db);
(B echo("option value=\"\"/option");
(Bwhile($myrow = mysql_fetch_array($result))
(B {
(Bprintf("option value=\"%s\"%s/option\n",
(B$myrow["bumon"],$myrow["bumon"]);
(B }
(B?/SELECTbr
(BE-mail:input type="Text" name="email"br
(Binput type="Submit"name="submit" value="Register"
(Binput type="reset" name="cancel" value="cancel"
(Binput type="button" name=update value=update
(Bonclick="window.location='http://192.168.1.22/test/Master1.php'"
(Btd align="right"a href="Bumon.php" align="right"MasterCheck/a
(B/td
(B/form
(B?
(B}
(B?
(B/HTML



[PHP] Fw: Dbase database - reg

2010-10-22 Thread kumar

22.10.2010

Dear sir

Please  help me the following code  and how to rectify the same .


?php
$filename='mas1.dbf';
$db = dbase_open($filename, 0);
?

Fatal error: Call to undefined function: dbase_open()

please  help me sir,

regards 

Kumar . L
SLST / ARNI / Tamilnadu / India


[PHP] How to read Byte Stream

2005-11-05 Thread kumar kumar
Hi

I am Software Engineer in hyderabad . if possible i
need some help in PHP.
 
we are developing one applet that will upload the
files/folders upto 2gb . the applet will send the file
in bytes stream via http . At server side the PHP has
to receive the file bytes stream and as to write the
file in server system . with the file path preserve .
 
 
i tried this code to get some idea
  
$request  =  new
Java(javax.ServletRequest,$req);
$request - getInputStream();
  
  $in =  $new
Java(javax.servlet.ServletInputStream,$in);
$byte[] =  new Java(java.lang.byte,$line);

$bytes = 0;
   
new Java(java.io.FileOutputStream, $fileOutS)
   
$fileOutS = new Java(
FileOutputStream($dir$file));
 while(0 ($bytes = in -read($line))){

 $fileOutS-write($line,0, $bytes);
 }
its not working . and the requirment is also not to
use java extension . i have to develop it with out
java extension .
your Help is appreciated Greatly
 
Thanking you
With Regards
Praveen

 






__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[PHP] Error in reading and writing bytes

2005-11-09 Thread kumar kumar
Hi
i am new to PHP .I am facing some problems .
Here is the code below

Here the applet will send the files thru http . files
from 30 bytes   to 2 GB.

?php

$logfile = C:/temp/log1.txt;
$log = fopen($logfile,a+);

fwrite($log, Executing PHP Script \r\n);

$save_path  = $_REQUEST['DATADIR'];
$filepath = $_REQUEST['FILEPATH'];
$filename = $_REQUEST['FILENAME'];

$fname = $save_path$filepath$filename;
$tdir =$save_path.$filepath;

mkMDir($tdir);

  function  mkMDir($dir,$dirmode=0777)
  {
if (!empty($dir)) {
if (!file_exists($dir)) {
   preg_match_all('/([^\/]*)\/?/i', $dir,$tmp);
   $default=;
  
  foreach ($tmp[0] as $key=$val) {
   $default=$default.$val;
  
   if(!file_exists($default))
   if (!mkdir($default,$dirmode)) {
   return -1;
   }
   }
   }else if (!is_dir($dir)){
   return -2;
 }
   }
   return 0;
   }


  $fp = fopen($fname,w);

  $getdata = fopen(php://input, r);

  fwrite($log, $fname Uploaded Successfully \r\n);


while (strlen($data = fread($getdata,8192))  0) {
fwrite($fp,$data);  
}

fclose($fp);
fclose($getdata);
fclose($log);
?

I tried this one its working for bigger files , but
its not working for small files less than 7 MB i am
unable to track the error or reason.and some times its
writing the less amount of bytes(60MB) then the
original one(90MB).

If possible please go thru this code and suggest me
the changes.

Thanking you
With Regards
Kumar



 






__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[PHP] Error in reading and writing bytes

2005-11-09 Thread kumar kumar
Hi
i am new to PHP .I am facing some problems .
Here is the code below

Here the applet will send the files thru http . files
from 30 bytes   to 2 GB.

?php

$logfile = C:/temp/log1.txt;
$log = fopen($logfile,a+);

fwrite($log, Executing PHP Script \r\n);

$save_path  = $_REQUEST['DATADIR'];
$filepath = $_REQUEST['FILEPATH'];
$filename = $_REQUEST['FILENAME'];

$fname = $save_path$filepath$filename;
$tdir =$save_path.$filepath;

mkMDir($tdir);

  function  mkMDir($dir,$dirmode=0777)
  {
if (!empty($dir)) {
if (!file_exists($dir)) {
   preg_match_all('/([^\/]*)\/?/i', $dir,$tmp);
   $default=;
  
  foreach ($tmp[0] as $key=$val) {
   $default=$default.$val;
  
   if(!file_exists($default))
   if (!mkdir($default,$dirmode)) {
   return -1;
   }
   }
   }else if (!is_dir($dir)){
   return -2;
 }
   }
   return 0;
   }


  $fp = fopen($fname,w);

  $getdata = fopen(php://input, r);

  fwrite($log, $fname Uploaded Successfully \r\n);


while (strlen($data = fread($getdata,8192))  0) {
fwrite($fp,$data);  
}

fclose($fp);
fclose($getdata);
fclose($log);
?

I tried this one its working for bigger files , but
its not working for small files less than 7 MB i am
unable to track the error or reason.and some times its
writing the less amount of bytes(60MB) then the
original one(90MB).

If possible please go thru this code and suggest me
the changes.

Thanking you
With Regards
Kumar



 





__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



[PHP] Query about gzinflate

2005-11-15 Thread kumar kumar
HI

How to uncompress  compressed data with php://input 

Which one of the following is correct 

1 .$unzip = gzinflate(php://input,r);
$getdata =  fopen($unzip.r);

2. gzcompress(php://input,r);

  $getdata =  fopen($unzip.r);
 
what the best solution help me

With regards
Praveen


 





__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



[PHP] Transfer-Encoding: chunked problem

2005-12-10 Thread kumar kumar
Hi

i am sending  encrypted data(AES-CBC) every large
files to the php pages as streams, in php i am
decrypting the data .

The code is working fine for the filesize less than
12MB each (if 30files each of 12 Mb total = 360 Mb)
its working file .

If i am trying to upload a file greater than 15 mb the
upload is hanging at 13.43Mb 

And after some time i am getting following msg
 
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

‚ìD0Ρ)›ÝT5 ‚ìD0Ρ)›ÝT5 and junk values


If any body have idea, what's the problem pls help me

WithRegards
Kumar




 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[PHP] LOBS with CURSOR_SHARING=FORCE gives core dumpf

2002-04-09 Thread Prince Kumar

I have the following php code. If I add the parameter CURSOR_SHARING=FORCE
in my init.ora and while executing the program I get the Segmentation
fault.

/usr/local/php4/bin/php -q curshare.php

Segmentation fault (core dumped)

Is there any work-around for this? Is this a bug? This seems to be happening
only when LOB with returning clause is present.

I tested a similar program from C program and is fine.

Note: currently I have set the parameter (CURSOR_SHARING=FORCE ) only in the
program/session level.

Thanks,
Prince.



$cat curshare.php
#!/usr/local/php4/bin/php -q
?
//program name curshare.php

$conn = OCILogon($dbuser, $dbpass, $dbname);

//This is added to affect only the current session.
$sql = alter session set cursor_sharing=force;
$stmt =  ociparse($conn,$sql);
OCIExecute($stmt,OCI_DEFAULT);

$lob = OCINewDescriptor($conn, OCI_D_LOB);

$sqlstmt = insert into blob_test ( packageid, packagebody )
values('12344321123efd', EMPTY_BLOB()) returning
packagebody into :packagebody;

$stmt = OCIParse($conn, $sqlstmt) ;

OCIBindByName($stmt, ':packagebody', $lob, -1, OCI_B_BLOB);
OCIExecute($stmt, OCI_DEFAULT);

OCICommit($conn);

OCIFreeDesc($lob);
OCIFreeStatement($stmt);
OCILogoff($conn);
?


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




Re: [PHP] rewriting a line in a text file

2002-09-12 Thread Kumar Lakshminarayanan

Try using an unique number as the first field of the line.
You can then use that number to select the line (entry) and update it.
Kumar

drparker wrote:

 hi - i have a text file that i am using as a database.  the format for
 each line is such (2 lines shown):

 Fashion|508|Text Text
 
Text.|http://qtbras.com/qtbrascat/images/508_big.jpg|http://qtbras.com/qtbrascat/images/508_thumb.jpg

 Fashion|510|Text Text
 
Text|http://qtbras.com/qtbrascat/images/510_big.jpg|http://qtbras.com/qtbrascat/images/510_thumb.jpg

 I'm putting each line into an array, then splitting each value by the
 pipe symbol to get individual values.  i need to know how to select a
 line in the text file and rewrite over it - for example if i wanted to
 replace:

 Fashion|510|Text Text
 
Text|http://qtbras.com/qtbrascat/images/510_big.jpg|http://qtbras.com/qtbrascat/images/510_thumb.jpg

 with:

 Allure|533|Text Text
 
Text|http://qtbras.com/qtbrascat/images/510_big.jpg|http://qtbras.com/qtbrascat/images/510_thumb.jpg

 or something like that, how do i select which line in the text file i
 want to replace and write over it?  i would prefer not to delete the
 line and then write a new one at the end, but if that's the only way,
 i'll do it.

 thanks

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



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




Re: [PHP] reuse database connections

2002-09-18 Thread Kumar Lakshminarayanan

You can use persistent connections from php to mysql server
using mysql_pconnect(host,user,passwd) then go on to use the returned link.
this will open a new connection only if one is not available.
kumar

Support @ Fourthrealm.com wrote:

 Another question about efficiency / using server resources:

 In another language I use, I can re-use an ODBC connection to make further
 queries/update/etc to the database to save the overhead of closing and
 reopening the connection to the db over and over.

 It works sometime like this (in the other language):
 iSQL DBNAME='xxx' LOGIN='xxx' SQL='some query'   # opens the connection
  ... display results...
 iSQLMORE SQL='some other query'  # reuses the connection
  display other results
 /iSQL   # closes the connection

 Is there an equivalent in PHP to this, using the mySQL set of tags?

 Peter

 - - - - - - - - - - - - - - - - - - - - -
 Fourth Realm Solutions
 [EMAIL PROTECTED]
 http://www.fourthrealm.com
 Tel: 519-739-1652
 - - - - - - - - - - - - - - - - - - - - -

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



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




[PHP] Job wanted

2001-09-25 Thread Karthick Kumar

Hi all,

 I am Karthick, from Ireland. I recently got laid off
and looking for a job, anywhere in Europe. The Job
market is so bad that I haven't got any solid
responses, so far. It has been more than 2 weeks that
I started looking for a job. But no luck, so far.

 I am hereby attaching my Resume' with this email, and
if you come across any jobs in PHP/MySQL, pls. let me
know.

 Thanks in adv.

Karthick
+353 87 7928230

My Resume:

Resume of T.V. KARTHICK KUMAR
# 3, Granby Row
Apartment 4
Dublin 1
Republic of Ireland
Phone # (353) 87 7928230 (Mobile)
E-mail: [EMAIL PROTECTED]
Homepage: http://www.karthicktv.com



Objective: To obtain a Challenging position in the
World Wide Web Development.

Qualification: B.A. English Literature (1993-96) in
Sourashtra College, Madurai

Additional Qualification: National Institute of
Information Technology (NIIT)
Honors Diploma in Systems Management 
GNIIT.

Professional Work Experience:
More than four years of work experience in various
capacities in the information technology and at
present working as a Web Developer in VoxPilot Ltd,
Dublin, Ireland.

Work Experience:

1.  From 17-02-97 to 31-11-97 - in Sri Chakra
Computers, Madurai
Designation: Programmer

2.  From 01-12-97 to 05-03-98 - in Webworld, Madurai
Designation: Programmer

3.  From 06-04-98 to 25-03-99 - in Pioneer Internet Pvt
Ltd, Madurai
Designation: Programmer

4.  From 31-03-99 to 20-03-2000 - in Aspire Systems,
Chennai, India
Designation: Programmer

5.  From 22-03-2000 to 22-11-2000 - in
SSI-BizNet.com, Chennai, India
Designation: Programmer

6.  From 29-11-2000 to Till date - in VoxPilot Ltd,
Dublin, Ireland
Designation: Application Developer

Area of Interest

Programming in PHP (Hypertext Preprocessor) with
MySQL, Oracle

Programming in ASP / CGI / Perl / Miva / Java

Technical Expertise

Operating Systems: Linux / Unix, Windows NT, Windows
95  98, MS-Dos 

Languages: ASP, Java, C++, C, Cobol

Others: Focus 4GL, Dbase III Plus, Professional Write,
Foxpro, VP-Planner, MS-Office 2000, Lotus 1-2-3,
Ms-Excel , Perforce (version control system), Oracle
8.0, APT (Application Productivity Tool)  DB-Library,
Forms 4.5, Reports 3.1, Javascript, Dhtml, Visual
Interdev

Database: Ms SQL, MySQL, PostgreSQL, Ms Access

Web design Pieces:

http://www.maduraionline.com
http://www.ramanathapuramonline.com
http://www.dindigulonline.com
http://www.dublin-indians.org

PROJECT DETAILS

TUTTiCOM Ltd

Name: Invites Section
Tool / Language: PHP 3.0
Tool Used: Javascript 
Platform: Redhat Linux
Duration: 03rd Dec 2000 – 30th August 2001

Description: This project is for the TUTTiCOM Ltd,
through which the customers can interact with their
members, friends, relatives and colleagues over the
web. It’s a part of the Web based contact management
software, which includes features like News, Address
book, Path Tracker etc. 

SSI BizNet.com

Name: Components in ASP
Language: ASP
Database: Ms Access, Ms SQL
Tool Used: Javascript
Platform: Windows NT
Duration: 25th March 2000 – 20th November 2000

Description: This project is of B2B Portals category.
There are some components in the B2B Portals through
which a specific Community people can make their
business over the Internet. Those components includes
features like Discussion Forum, Polling, Classifieds
etc.

SSI BizNet.com

Name: Components in PHP
Language: PHP 4.0
Database: mySQL
Tool Used: Javascript
Platform: Windows NT / Linux
Duration: 25th March 2000 – 20th November 2000

Description: This project is of B2B Portals category.
There are some components in the B2B Portals through
which a specific Community people can make their
business over the Internet. 

Aspire Systems

Name: Fourcorners
Client: Fourcorners Trading Co.
(http://www.fourcornersusa.com)
Platform: Linux (Redhat Distribution)
Duration: 2nd of January 2000 – 18th March 2000

Description: This project is for the Fourcorners
Trading company who are involved in manufacturing of
Duvet covers, Pillow Shams  Bed Skirts. There are
around 80 products on this shopping mall and the
products are listed by material type like Villa,
Valios, Linen, Cotton, Silk, Silk Route etc.
The features / customization includes:
Wholesale +  Retail interface, Gift Note Area, Color
of the Product, Quantity in Basket

Aspire Systems
Name: Virtual Notice Board
Client: Adapting Inc. Valencia, Spain
Tool Used: ASP, Javascript  Visual Interdev
Database: MS Access
Platform: Windows NT
Duration: 2nd October 1999 – 30th December 1999

Description:
·   A complete bulletin board interface consisting of
user level as well as Admin level interface
·   An effective and user friendly interface to manage
the message listings

Aspire Systems

Name: Boliviamall
Organisation: Aspire Systems, India
Client: Boliviamall (http://www.boliviamall.com)
Tool Used: Miva / Javascript
Platform: Linux (Redhat Distribution)
Duration

[PHP] PDF Generator

2001-11-01 Thread Krushna Kumar

Hi,

Can someone help me on how i could generate or create a pdf file an fill contents

Rgds
Krushna Kumar



[PHP] creating PDF file using PHP

2001-11-02 Thread Krushna Kumar

Hi,

Can someone help me on how i could generate or create a pdf file an fill contents, i 
heard i need a pdf library file installed, I am using windows98, PWS, how do i install 
the libraries.

Rgds
Krushna Kumar



[PHP] Re: Help required MySql + PHP

2001-12-06 Thread Kundan Kumar

Hi Karthik,
Most probably the PHP module that you are using with Apache is not compiled
with Mysql support. Can you post the information about php installation that
you have?

Put this in a file called say phpinfo.php:


?php
phpinfo();
?


When you view this page in your browser, you will see lot of useful
information. It will also show the configure options with which PHP was
compiled. In my case, it looks like this


Configure Command
 './configure' '--with-mysql' '--with-pgsql' '--with-apxs'
'--with-gd=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--enable-trans-sid' '--enable-exif'
'--with-xml' '--enable-wddx' '--with-curl=/usr/local'
'--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '--enable-ftp'



Check if you have --with-mysql in the configure options.

Please let us know if you have further problems...

Regards,
Kundan

On 12/6/01 2:08 PM, Karthikeyan [EMAIL PROTECTED] wrote:

 Dear Members,
 I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor
 system.
 Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect
 MySQL through PHP. It is giving an error 'call to unknown function
 mysql_connect in line in __' .
 Can any one provide a solution.
 Thanks in advance
 yours
 Karthikeyan
 
 
 -
 Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


-- 
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] SSL Authentication and Session Management

2001-07-14 Thread Vinay Kumar

Hello,

I want to use SSL for authenting and Session management purpose.
I have apache running SSL successfully. Now i want to use PHP for this
purpose.

How do i do that ???

Please explain in detail.

Thanks in advance

Vinay



-- 
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] problem running php

2001-07-25 Thread raj kumar

Hi,
Though i am running php on apache server on my win98 machine perfectly,
recently i install apache and php on my win2000 server, apache start very
well but php is not working,  as it seems, though  when i run phpinfo out of
my server with php.exe it runs but it dosen't show in browser whenever i go
through localhost\phpinfo.php. What's matter. I faced this problem on my
win98 maching too, but somehow it worked, and probable that too after
installing PWS and making script executable one.
I will thankful to you if u solve my problem with explanation.

Regards,
Raj k Bhatt


-- 
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] problem running php

2001-07-26 Thread raj kumar

Hi,
Though i am running php on apache server on my win98 machine perfectly,
recently i install apache and php on my win2000 server, apache start very
well but php is not working,  as it seems, though  when i run phpinfo out of
my server with php.exe it runs but it dosen't show in browser whenever i go
through localhost\phpinfo.php. What's matter. I faced this problem on my
win98 maching too, but somehow it worked, and probable that too after
installing PWS and making script executable one.
I will thankful to you if u solve my problem with explanation.

Regards,
Raj k Bhatt


-- 
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] Where does apache call call php

2001-04-09 Thread Shashi Kumar

Hi all,

I am stuck at figuring out a couple issues I am facing.

1. Does apache and PHP run as one process?
2. When does PHP initialize? I guess apache calls some specific PHP function 
and I am not sure where in Apache code PHP initialization is done.

Thanks a lot in advance.
Shashi
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
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] doubt - session file size

2006-07-19 Thread suresh kumar
Hi,
 I am having one doubt,i am using session variable for storing details.but 
i am afraid if there is around 1 users,wherether session will be able to 
store all the  datas of 1 users,as i know  abt session is that a temporary 
file will be created in /tmp directory with session id name,i dont know how 
much data that the session file will handle.
   
A.suresh


-
 Find out what India is talking about on Yahoo! Answers India.
 Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!

[PHP] mail() help

2006-09-11 Thread suresh kumar
Hi to all,
  i am having one doubt regarding php mail function.i am using php 
mail() function to send mail to the users.but when i send mail throught php its 
going to the users bulk folder but not to the  user inbox.i dont know the 
reason.
   
   Is there any setting that is requried in the php.ini file (or) the 
user have to change their setting in their mail (or) is there any option 
available to send mail to the user inbox.tnxs for reply
   
 A.suresh
   
  


-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

[PHP] mail() help

2006-09-12 Thread suresh kumar
Hi,
  I  am using php mail function to send mails to our customers.but when i 
send mail to them.it is getting received in customers bulk folder .i want mail 
to get received in customers inbox.i dont know the reason why its getting 
stored in bulk folder.
   
   i attached the code.below,any one help me

  $to='[EMAIL PROTECTED]';

$subject='Password from MyAdTV';

$headers  = 'MIME-Version: 1.0' . \r\n;

$headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;

$headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . \r\n;

$headers.= 'X-Mailer: PHP/' . phpversion(). \r\n;

$sendmessage = brHere is the information you requestedbrbrYour 
Logon name and Password details for MyADTV Accountbrbrb your LogonName is 
/b: suresh brbrb your Password is /b rajaysbrbrIf You Want To 
Login into Your MyADTV Account,a 
href=\Click'http://myadtv.com/login.php\;Click Here/abrbr;
  
   
 mail($to,$subject,$sendmessage,$headers);
  

Christopher Weldon [EMAIL PROTECTED] wrote:
  -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

suresh kumar wrote:
 Hi to all,
 i am having one doubt regarding php mail function.i am using php mail() 
 function to send mail to the users.but when i send mail throught php its 
 going to the users bulk folder but not to the user inbox.i dont know the 
 reason.
 
 Is there any setting that is requried in the php.ini file (or) the user have 
 to change their setting in their mail (or) is there any option available to 
 send mail to the user inbox.tnxs for reply
 
 A.suresh
 
 
 
 
 -
 Find out what India is talking about on - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
 NOW

There are several things you need to check for, and probably add to your
emails that you're sending.

Number one, add additional headers to make SPAM / Bulk filters realize
the message is not SPAM or should not be considered SPAM. IE:

$headers = From: Suresh Kumar \r\n.
X-Mailer: PHP 4.3.2\r\n.
X-Sender: $_SERVER['HTTP_HOST']\r\n.
X-Comment: If you can put a comment here, do it.\r\n;

mail($to, $subject, $body, $headers);

The above is considering you have already declared the $to, $subject,
and $body variables. Also, make sure your $subject is not
'undisclosed-recipients;' or something like that - it's a big no-no and
will definitely flag some SPAM filters. Put a valid e-mail address - but
you can still use the BCC-headers and everything should go just fine.
Alternatively, if your list is not too large, it looks better to run a
for / while loop to send each recipient a message directly (ie: not
using BCC) as that will cut down on the SPAM probability.

Second, if you are making MIME emails, make sure you are doing so
correctly. You can learn about creating multipart/alternative MIME
emails more at www.php.net/mail.

Finally, if none of the above works, it would be helpful for us to see
the headers of the received message from one of your recipients where
the message was put in the BULK folder.

- --
Christopher Weldon, ZCE
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBaG2Zxvk7JEXkbERAgZiAKCJVQfno2fAca13Sx7aXPWD2WMgUwCeOMBX
grbViYDnAXXy8l1i4liVHzE=
=ka5I
-END PGP SIGNATURE-

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




-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

[PHP] Mysql_free_result() doubt

2006-09-26 Thread suresh kumar
Hi to all,
   I am little bit confused to use the mysql_free_result($result) 
function.because i searched google - they told dont use this function to php 
4.X and also it says clearly When you are done with a result set, you must 
free the memory it uses by calling mysql_free_result().
   
 I mean something like when  to use or not to use it? I already 
know that only SELECT  queries that  retrieve rows require to free resources, 
but maybe when all data is retrieved the resources are free automatically or we 
need to call mysql_free_result() to free the memory. and also this function 
will free only one row  at a time or all the rows of the  result set .
   

 A.suresh



-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

[PHP] doubt regarding link

2006-02-25 Thread suresh kumar
i am having  back to home link ,by default its status is 0 in mail table  
database  .when any user click the  back to home link.i want to change status 
=1 in user table.is there any possible to call php function in javascript.i am 
using javascript onclick function.but javascript is not support to access DB.i 
am calling php function from javascript.but its not working.i am waiting for ur 
response.
   


-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] encrypt and decrypt in php

2006-03-07 Thread suresh kumar
I searched google,weberdev and php.net sites. i implemented the 2 encrypt and 
decrypt functions  mcrypt_encrypt(),mcrypt_decrypt() and mcrypt_ecb() 
functions.but it not working properly.i dont need more complicated encrypt and 
decrypt functionality.just i want to encrypt my user id when i pass from page1 
to page2 and i want to decrypt  it in page2.i am looking forward reply from u
   
 A.suresh


-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] session handling

2006-03-09 Thread suresh kumar
i am having one problem in session handling.
I am having 2 files,login page and hame page.
when user enterd user name and password in login page
.i used session to store the user id .in my second
home page.i retrieve the user id.now i want the user
id to be availble in my thrid page.plz help me.this is
my code.

login.php
session_start();
$ID=$userid;
session_register(ID);

homepage.php
session_start():
echo $ID   //this is working fine



thirdpage.php
  session_start();
  echo $ID //not working



i am looking reply from u

   



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] session register()

2006-03-11 Thread suresh kumar
i am facing two problems in my project.
   
  1) whether i can store variable as session variable inside javascript function
   
  2)Is there any function available to calculate idle time of user .
   
   i am waiting for reply from u


-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] string to integer conversion

2006-03-15 Thread suresh kumar
i am facing one problem in type casting.
$accno=2927;
$accno=$accno+1;
its o/p is 2928. but i want output to be 2928.i am
waiting response from u.



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] to check idle time of users

2006-03-15 Thread suresh kumar
in windows,if user idle for 1 minute,his desktop
screen is changed to screen saver.i like to implement
the same logic in my project if user is idle for 3
minutes its session will have to automatically 
destroy.i am waiting for or response.



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] session_cache_expire()

2006-03-16 Thread suresh kumar
I searched php.net/session and weberdev website and
implemented session_cache_limiter() and
session_cache_expire() function.but i am not getting
the output what i want.i spend whole day on
searching.any one give the solution for my problem


in windows,if user idle for 1 minute,his desktop
screen is changed to screen saver.i like to implement
the same logic in my project if user is idle for 3
minutes its session will have to automatically 
destroy.i am waiting for or response.



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] page expire error

2006-03-27 Thread suresh kumar
Hai,
i am facing one problem in my project.I am using 2
pages for search operation.

   In Search page 1:
i am having 3 fields say Company
name,state,country. when user enters search key in
their corresponding field and press submit button.
search result will be displayed in  another page
Search result page.when i click back button in
browser toolbar.it is displaying error message as

The page you requested was created using information
you submitted in a form. This page is no longer
available. As a security precaution, Internet Explorer
does not automatically resubmit your information for
you .

 I am storing the field name in session.



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] unicode

2006-04-14 Thread suresh kumar
Hi to all,
  we completed one module of our project in English language.but 
our client asked to do it in chinesse language also.I dont have any idea 
regarding this.whether we have to download any  chinesse fonts or is there any 
tutorials available for this purpose.or project is in PHP 4  with linux 
platform.i am waiting for ur reply
   

 A.suresh  


-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] unique array problem

2006-04-22 Thread suresh kumar
I am facing one project in my project .
   
  this is my  code:
   
  a=array(0=10,1=10,2=20,3=30,4=30,5=40);
  b=array();
  b=array_unique($a);
  print_r($b); 
  o/p  getting from above code is  b[0]=10,b[2]=20,b[3]=30,b[5]=40;
   
  but i want the o/p be b[0]=10,b[1]=20,b[2]=30,b[3]=40;
   
  i searched php.net .i am not able to fine any solution.i am breaking my head 
for last  5 hours.i am waiting reply from any one
   
   
   
   


-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] array problem

2006-04-22 Thread suresh kumar
 sorry.earlier i mistyped some values. 
   
  I am facing one project in my project .
   
  this is my  code:
   
  a=array(0=10,1=10,2=40,3=30,4=30,5=10);
  b=array();
  b=array_unique($a);
  print_r($b); 
  o/p  getting from above code is  b[0]=10,b[2]=40,b[3]=30,b[5]=10;
   
  but i want the o/p be b[0]=10,b[1]=40,b[2]=30,b[3]=10;
   
  i searched php.net .i am not able to fine any solution.i am breaking 
my head for last  5 hours.i am waiting reply from any one
   



-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] IPN error

2006-04-29 Thread suresh kumar
Hi,
   I am new to this IPN (instant payment
notification.I am working for past 6 hours.I am using
this IPN to store payment details in our database.

when user clicks the paypal button in my page.it
will take to paypal.com website.after user completes
the payments.It will send the payment details to my
page.where i can process and store in the database.

This is the Code for paypal button:
---
 form action=https://www.paypal.com/cgi-bin/webscr;
method=post
 input type=image
src=https://www.paypal.com/en_US/i/btn/x-click-but20.gif;
border=0 name=submit alt=Make payments with
PayPal - it's fast, free and secure! disabled
 img alt= border=0
src=https://www.paypal.com/en_US/i/scr/pixel.gif;
width=1 height=1
 input type=hidden name=notify_url
value=http://myadtv.com/Gauranga/confirmation_message.php;
 input type=hidden name=cmd
value=_xclick-subscriptions
 input type=hidden name=business
value=[EMAIL PROTECTED]
 input type=hidden name=item_name
value=Subscribe to Additional User Account Yearly
 input type=hidden name=item_number
value=2
 input type=hidden name=no_shipping
value=1
 input type=hidden name=no_note
value=1
 input type=hidden name=currency_code
value=USD
 input type=hidden name=bn
value=PP-SubscriptionsBF
 input type=hidden name=a1
value=0.00
 input type=hidden name=p1 value=3
 input type=hidden name=t1 value=D
 input type=hidden name=a3
value=59.95
 input type=hidden name=p3 value=1
 input type=hidden name=t3 value=Y
 input type=hidden name=src
value=1
 input type=hidden name=sra
value=1

 /form



my page code to  process paypal
--
?
 
// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-validate';

foreach ($_POST as $key = $value) {
  $value = urlencode(stripslashes($value));
$req .= $key=$value;
}

// post back to PayPal system to validate
$header = POST /cgi-bin/webscr HTTP/1.0\r\n;
$header .= Content-Type:
application/x-www-form-urlencoded\r\n;
$header .= Content-Length:  . strlen($req) .
\r\n\r\n;
$fp = fsockopen ('www.paypal.com', 80, $errno,
$errstr, 30);

// assign posted variables to local variables

$item_name = $_POST['item_name'];
$item_number=$_POST['item_number'];
$shipping_status = $_POST['no_shipping'];
$note_status = $_POST['no_note'];
$currency = $_POST['currency_code'];
$business_name = $_POST['bn'];
$payment_amount = $_POST['a3'];
$payment_duration_num = $_POST['p3'];
$payment_duration = $_POST['t3'];
$txn_id = $_POST['txn_id'];
//$receiver_email = $_POST['receiver_email'];
//$payer_email = $_POST['payer_email'];
$payment_status = $_POST['payment_status'];





if (!$fp)
{

 print $errstr ($errno)br /\n;
}
else
{
include('db.php');
$transactionidretrieveresult=mysql_query(select
* from BillingInfo where Transaction_ID='$txn_id');
 fputs ($fp, $header . $req);
   while (!feof($fp)) {
   $res = fgets ($fp, 1024);
 if (strcmp ($res, VERIFIED) == 0) {
if(($payment_status==Completed) and
(!mysql_num_rows($transactionidretrieveresult))):

   //storing in Database;
   

  endif;

  }
 elseif (strcmp ($res, INVALID) == 0)
  {
print Click The Link  To Go To MyADTV
Add New User Account Pagea
href=\adduseraccounts.php\Click Here/a;
  }
 
fclose ($fp);
}
?


 When i visit my page i am displaying this error


 Undefined index:item_name,Undefined
index:item_number,Undefined index:a1,Undefined
index:p1,Undefined index:t1,Undefined index:a3,and so
on.


I am waiting response from any one


,



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] file permission error

2006-05-22 Thread suresh kumar
Hi,
 I am facing one problem in my project.I am uploading an image .its get 
storing in DB.i am storing images in /tmp folder as file.while i am retrieving 
a image its displaying file permission error.fopen() could not open 
socket.file permission error.
 A.suresh


-
  Yahoo! India Answers Share what your know-how and wisdom
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now

[PHP] calling JS function from php

2006-05-25 Thread suresh kumar
I am facing one problem in my project.I am trying to call a javascript function 
from php.but it not executing.this is my code.
   
   function clientTime() {

var cNow = new Date();
var cHour = cNow.getHours();
   var cMin  = cNow.getMinutes();
   var hour= cHour + : + cMin;
   return hour;
   } //End function clientTime
  function clientDate() {
 var cDate  = new Date();
  var clientYear = cDate.getFullYear();
  var clientMonth = cDate.getMonth();
  var clientDay   = cDate.getDate();
  var year= clientYear + - + clientMonth + - + clientDay;
  return year;
} //End function clientDate
   
   
  ? print span style=padding-left:14.2cmfont size=2 face=Arial 
color=#55script type=\text/javascript\;
print clientTime();
print clientDate()/script/font/span; ?
   
 i need help from u.


-
  Yahoo! India Answers Share what your know-how and wisdom
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now

[PHP] User Login Problem

2006-06-20 Thread suresh kumar
Hi,
 I am facing one problem in my project.i want to restrict more than one 
user login in the same account .Is there any functions available to check r we 
can implement using session.

A.suresh


-
  Yahoo! India Answers: Share what you know. Learn something new Click here
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now

[PHP] login problem

2006-06-23 Thread suresh kumar
Hi,
 I am facing one problem.i previously mailed ,but there is no response,its 
running out of time.i want to implement that logic as soon as possible.This is 
my problem
   
 We are developing an online software for  displaying ads in 
big mall.I want to restrict only one user can login to his own account at that 
particular time.suppose users1 created a new user users2 for another 
user.If user1 login to the  users2 account  and at that same time i want to 
restrict user2  for log in to his account.i want at a time only one user can 
access his account.I am waiting reponse from u
   
   A.suresh


-
 Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here

[PHP] image upload problem

2006-06-29 Thread suresh kumar
Hi,
 This is the code i am using for image upload.
  if ($_FILES['ufile']['name'] != NULL)
 {

  $FlName= $_FILES['ufile']['name'];
  if(!is_uploaded_file($_FILES['ufile']['tmp_name'])){

 print Script type=\text/javascript\
alert(\Error! The expected file wasn't loaded\);
   
/script;

exit();
  }
  
  $uploadfile = $_FILES['ufile']['tmp_name'];
  $uploadname = $_FILES['ufile']['name'];
  $uploadtype = $_FILES['ufile']['type'];
  $tempfile = fopen($uploadfile, 'rb');
  
  $filedata = addslashes(fread($tempfile,filesize($uploadfile)));
 $UpdateAdQuery = update . $thisAdTableName. set
   LocalImageName=' . $PostLocalCopy . ',
ImageData=' . $filedata . ',
ImageName=' . time() . _.$uploadname .',
mimetype =' . $uploadtype . '
where ID= . $mID ;
  $ok = @mysql_query($UpdateAdQuery);
  }
   
  The Code is running properly.But I dont Know Where The uploaded image is 
Stored in the server.I checked /tmp directory,but image is  not there,is 
there any function where i can specify the location of the server where my 
image is to be stored i also tired move_uploaded_image() function .but its not 
working .I am waiting reply from any one


-
 Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here

[PHP] Re: about PHP

2005-09-19 Thread Srinivasan Kumar
sir,
 this is srinivasan i have to know about the php.i.e.
 how can i view the php pages in windows98 PWS?.could
 you reply in this regard.
 thanking you
 k.srinivasan


Gabor Hojtsy [EMAIL PROTECTED] wrote:Dear Srinivasan Kumar,

Since your problem has nothing to do with
webmastering of the php.net website, it does
not belong in here Please contact
php-general@lists.php.net (a mailing list)
with support questions or see http://php.net/support
for more support options.

Regards,
Gabor Hojtsy

Srinivasan Kumar wrote:
 sir,
 this is srinivasan i have to know about the php.i.e.
 how can i view the php pages in windows98 PWS?.could
 you reply in this regard.
 thanking you
 k.srinivasan
 
 
 
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 




-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

[PHP] Web calendar and online Dairy

2005-12-06 Thread Vikram Kumar
Hi!

I need a web calendar and online diary application.

Can some one develop those applications for me.

You may use open source applications, or already developed applications in
your previous projects, I need simplest calendar and online diary
applications.

And ofcourse, I will pay you.

thank you!

Vikram!


[PHP] PHP programmers from hyderabad

2005-12-17 Thread Vikram Kumar
hi!

We are looking for PHP programmers from hyderabd.

If you are an experienced PHP programmer, and have experience of developing
calendar or dairy , message board application, please send your CV to
[EMAIL PROTECTED]

All PHP programmers aare welcome to apply!.

Best regards,
Vikram.


[PHP] PHP programmers from hyderabad

2005-12-18 Thread Vikram Kumar
hi!

We are looking for PHP programmers from hyderabd.

If you are an experienced PHP programmer, and have experience of developing
calendar or dairy , message board application, please send your CV to
[EMAIL PROTECTED]

All PHP programmers are welcome to apply!.

Best regards,
Vikram.


[PHP] help plz

2006-01-15 Thread suresh kumar
hi,
   i am working as a web designer in PHP  Mysql.i
know the basics of PHP  Mysql,i want 2 become PHP
Expert,i am planning to buy one Book,but i dont know
which book 2 buy.plz give me info .
  A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

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



[PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread suresh kumar
Hi,
i dont know how 2 store images in gif/jpeg format
in Mysql Database.i also want 2 know PHP Code 2
store images in Mysql Database .reply me soon its very
urgent .
   A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

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



[PHP] how 2 open File Browser window in PHP

2006-01-16 Thread suresh kumar
hi,
 i dont know   exact  PHP code for how 2 open file browser window to uplad 
file or an image plz help me.its very urgent.
A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

[PHP] help me plz

2006-01-18 Thread suresh kumar
hi,
   i am using 2 combo box one for country  another
one for city.when i select country name from combo box
their corresponding city names has to be changed in
their corresponding combo box.i dont know how 2
implement this.pz give me some idea.its urgent.
  A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

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



[PHP] help me pllzzzzzz

2006-01-18 Thread suresh kumar
hi,
   i am having 2 combo box one for city  another one
for country,when i select particular country say 
india their corresponding cities will be displayed
in city combobox as delhi,bangalore.,when i
select  Australia thier cities like
perth,brisbanewill be displayed.plz help me
itz very urgent.
   A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

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



[PHP] doubt regarding while loop

2006-01-27 Thread suresh kumar
hi,
   for eg 
  
while(list(t1,t2,...)=mysql_fetch_row($result)):
endwhile;
 while i use $t1 ouside while loop ,its corresponding
value is not  displaying,how can i display the value
of $t1.

  A.suresh



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] query regarding forms

2006-01-28 Thread suresh kumar
hi,
i am having 3 files  Login.php,home.php and
home1.php when i entered username and passwd in my
first login page i want want i entered as username and
passwd in my third page ie home1.php.

A.suresh  



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] query regard forms in PHP

2006-01-29 Thread suresh kumar
 hai,
i am having 3 files,namely page1,page2  and page3,when i enter username 
and password in my first page i want 2  display  my username and password  in 
my third page through  second page.
  
 A.suresh
  


-
 Jiyo cricket on Yahoo! India cricket

[PHP] variables in PHP

2006-02-02 Thread suresh kumar
hi,
   In my project i assigned name of the text field as 
'loginform'.but i got error msg like 'Undefined
variable'
then i changed the name as 'hiddenfield' but same
error.any one having idea reply me.


  A.suresh



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] global variable declaration

2006-02-08 Thread suresh kumar
hai,
   this is my sample code:
i am having user table  with SponsorID as one field in 
mysql  database,this is my query;
  
  for($j=0;$j5;$j++):
   $result=mysql_query(select * from user where SponsorID='$id[$j]' );
  endfor;
  
  in  above code when i   print  mysql_num_rows($result) inside for loop 
its output is  5.when i  print outside the for loop its o/p is 0.I searched 
weberdev.com website  and declared  $result as global.but same output 0.i want 
$result  variable to be  available outsibe the forloop and  all other  part of 
my code.i am looking forward suggestions from ur side.
  
   A.suresh
  
  
 
  

-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[PHP] static variable declaration

2006-02-09 Thread suresh kumar
hello everybody,

 I am having one doubt in static
variable declaration,whether static variable works
only with in the function if that function is  called
more than one times.this is my code facind problem.

 STATIC $m=0;
 if($m==0):
 
 $m=$m+1;
print a
href=\tradesummary_pg2.php?m=$m\next/a; 
  

 elseif($m($k-1)):
   
 print a
href=\tradesummary_pg2.php?m=$m-1\previous/aa
href=\tradesummary_pg2.php?m=$m+1\next/a;

else:
 print a
href=\tradesummary_pg2.php?ID=$IDm=$m-1\previous/span/tdtd/td/tr;

endif;


  u have seen yahoo mail inbox with Next ,previous
links in bottom. i want to implement same
functionality locally.i did my coding and i am facing
a problem, that  when i click the next link $m value
incremented to 1 for first time and when i click next
for second time ,$m value is not incrementing,i
declared $m as STATIC .i am looking forward
suggestions from ur any one.



 A.suresh





__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] static variables

2006-02-09 Thread suresh kumar
hai everbody

i am facing a problem with static
variable. i declared $count=0 as Static variable,when
i click the link specified in anchor tag my page is
refreshed again and static variable lose its value and
assigned with 0.i want the logic code say  my stsic
variable will not lose scope when i click next,i am
looking forward reply from u.
   A.suresh



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] doubt in mail function

2006-02-13 Thread suresh kumar
hello everybody,
i am having one doubt in  sending mail
in php.in my company our mail server is in windows,but
my php code for mail function in linux,i set the code
as

if(@mail('[EMAIL PROTECTED]','hi suresh','this is
test','From:[EMAIL PROTECTED]')):

both from and to address are valid  but mail
is not receiving to [EMAIL PROTECTED],

  whether i have 2 configure any settings in php.ini,i
am looking for reply from any one.
  A.suresh 




__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] doubt in mail() in php

2006-02-13 Thread suresh kumar
this is my code

   if(@mail('[EMAIL PROTECTED]','subject','hai this is
the test','[EMAIL PROTECTED]')):
  print mail sent succesfully;
   else:
print mail can send;
endif;
  i dont know whether there is any problem
with my coding or server problem.both from and two
addresses are valid one.

   A.suresh






__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



[PHP] LDAP problems

2003-06-12 Thread Praveen Kumar

Dear Walker,
After connecting to the LDAP using ldap_connect('localhost'); you should
use ldap_bind like the code given below.

?php
$conn = ldap_connect(localhost) or die(Could not connect to server.
Error is  . ldap_error($conn)); 
// bind to the LDAP server 
$r = ldap_bind($conn, $root_dn, $root_pw) or die(Could not bind to
server. Error is  . ldap_error($conn));

$dn = dc=softprosys,dc=com;
$filter = cn=.$dname.*;
$sr=ldap_search($conn,$dn,$filter,$justthese);  

?

Hope this should help.
Regards
Praveen

---SOFTPRO DISCLAIMER--

Information contained in this E-MAIL and any attachments are
confidential being  proprietary to SOFTPRO SYSTEMS  is 'privileged'
and 'confidential'.

If you are not an intended or authorised recipient of this E-MAIL or
have received it in error, You are notified that any use, copyiny or
dissemination  of the information contained in this E-MAIL in any
manner whatsoever is strictly prohibited. Please delete it immediately
and notify the sender by E-MAIL.

In such a case reading, reproducing, printing or further dissemination
of this E-MAIL is strictly prohibited and may be unlawful.

SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment
hereto is free from computer viruses or other defects. 

The opinions expressed in this E-MAIL and any ATTACHEMENTS may be
those of the author and are not necessarily those of SOFTPRO SYSTEMS.


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



[PHP] Auto escalation

2003-03-31 Thread Praveen Kumar
Dear All,
 I'm new to the list. I'm intended to use the auto escalation
functionality in my current project which is related to helpdesk. Can
you please give me some suggestions about how to develop this. I'm using
PHP, MySQL
-- 
Thanks  Regards
Praveen
SoftPro Systems Ltd,
Plot #12, Software Units Layout
Madhapur, Hyderabad
Ph: 91-40-23111806

---SOFTPRO DISCLAIMER--

Information contained in this E-MAIL and any attachments are
confidential being  proprietary to SOFTPRO SYSTEMS  is 'privileged'
and 'confidential'.

If you are not an intended or authorised recipient of this E-MAIL or
have received it in error, You are notified that any use, copyiny or
dissemination  of the information contained in this E-MAIL in any
manner whatsoever is strictly prohibited. Please delete it immediately
and notify the sender by E-MAIL.

In such a case reading, reproducing, printing or further dissemination
of this E-MAIL is strictly prohibited and may be unlawful.

SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment
hereto is free from computer viruses or other defects. 

The opinions expressed in this E-MAIL and any ATTACHEMENTS may be
those of the author and are not necessarily those of SOFTPRO SYSTEMS.


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



[PHP] PHP not reporting errors, but hangs!!

2002-10-12 Thread Siva Kumar

I am running Apache/PHP with Postgresql. For the past one day, whenever there 
is an error in the php script, instead of reporting the error, the page takes 
forever to load. Normal html pages load properly.

Can someone points me to the right direction on how to fix this.

Best regards

Siva


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




[PHP] magic_quotes_gpc setting question.

2003-12-25 Thread Rajesh Kumar
Hello,

Here I've got a few related questions, which are not stated explicitly 
in the manual.

1. The manual says that the magic_quotes_gpc setting cannot be set at
   runtime. Is it not possible to set this setting in an ini file, and
   parse it with the parse_ini_file() function? Also, if this was
   possible, what will PHP do to the modified variables? Run the
   stripslashes() functions on all of them?
2. On a related line, are we allowed to use ini values in our ini file
   that contradict the defined ini values in php.ini? Won't this confuse
   the parser?
3. What would I do if I didn't have access to my own custom ini file,
   but could somehow get the file either by using fopen(), file() or
   file_get_contents()? Can I parse a string (or array) like an ini
   file?
4. Does parse_ini_file() allow us to specify absolute filenames of the
   form scheme://... from another server, if our allow_url_fopen
   is TRUE?
Thank You.

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


[PHP] looking for a way to manually free memory in the middle of a script

2004-02-02 Thread kumar mcmillan
Hi.
I'm running PHP 4.3.4 with bundled GD 2.0.1.5
Here is the problem:
I'm running a PHP shell script to fix about a thousand image files that 
were uploaded to a server without much error checking.
I'm skipping all the obvious problems like wrong file types and 
insanely large jpeg files but after that, each file is getting 
processed with GD, using imagecreatefromjpg().  I'm still running the 
script in test mode at the moment so I'm not doing any processing, just 
watching for errors.  I am calling imagedestroy() after each loop but 
... around about the 150th image, imagecreatefromjpg() stops the script 
with the error Allowed memory size of 33554432 bytes exhausted (tried 
to allocate 9144 bytes).  After making minor adjustments, it will 
process more or less images so it doesn't seem to be getting stuck on a 
particular file (the file it stops on now is a 32KB jpeg).

My question is: is there any other function or method to relieve PHP of 
some memory?  Could it be that imagedestroy() is not freeing all memory 
properly?  a memory leak?  I would rather not have to do only a few 
images at a time since there should be no problems crunching through 
them all at once.  Any suggestions for general memory optimization?

thanks, Kumar

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


Re: [PHP] Re: looking for a way to manually free memory in the middle of a script

2004-02-02 Thread kumar mcmillan
On Feb 2, 2004, at 7:15 PM, Justin Patrin wrote:

Kumar McMillan wrote:

If this does happen to be a GD or PHP memory leak, I would suggest 
writing a driver script which calls a sub-script which does the 
processing. Have the driver keep track of all of the files and hand 
one (or some number) to the processor, which processes them. Use 
system() to call the processor.
ahhh... works so much smoother.  did a little switch with getopt() and 
used the same file as the subscript too.
after doing this though I can see the memory explosion happening on the 
same image files so I take it there is something up with those files 
and not a memory leak in imagecreatefromjpg() when called repeatedly.  
Either way, calling a separate process allowed me to isolate the 
problem files and get on with the show.

thanks, Kumar

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



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


[PHP] Safe mode effect

2004-04-22 Thread Ravi kumar


HI,

goole.com found so many details about safe mode too much to understand.

My hosting provider set php safe mode = enable . so iam unable to use so

many scripts .

can any one give good free image gallery software which will work under

safe mode = enable .

is it true that with apache 2.x version , we can get ride of php safe mode ?

- thanks for your time



-- 
Knowledge is power share it - http://ravikumar.info

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



[PHP] Re. [PHP] mysql networking ?

2004-11-08 Thread Manoj Kumar
Hi its a php mailing list ? Okey .

-- Manoj Kr. Sheoran 


Aalee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Hi guys,
 I have a small home network working with just 4 computers (PC's on WinXP
 Pro) connected through a switch just using the local ip's 192.168.0.1 and so
 on. And the netwok is working fine. I have installed MySQL on one computer
 and setup a database and installed MySQL on the other PCs aswell. But am
 having problem getting into the server computer where the databases are
 setup. Does any one of you know of any good tutorials out there how to setup
 a small network using MySQL using windows XP. I have come across some tutes,
 but most of them are on using Linux. Or any advice would be helpful.
 
 Thanks on advance
 aalee
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] LINUX: Problem with php installation

2004-11-10 Thread abhilash kumar
I installed latest version of PHP from the source on a
AMD ATHELON64 system with REDHAT 9.0 installed with
apache server 2. There were no error upon running
configure or make or make install I have checked
the instalation procedures many times now but I get a
blank screen on the mozilla browser.

Upon viewing the source it shows the source of a blank
html page. The server works well with html pages. Only
the problem is with any php page. I have made the
mentioned additions to be done in the httpd.conf file
namely LoadModule and AddType.

The error log file is showing Segmentation fault.



___ 
Moving house? Beach bar in Thailand? New Wardrobe? Win 10k with Yahoo! Mail to 
make your dream a reality. 
Get Yahoo! Mail http://uk.mail.yahoo.com

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



[PHP] ERP - CRM implemented in PHP

2004-11-19 Thread Manoj Kumar
Hi   folks,  
  Would you please suggest me the name of ERP - CRM software solely
implemented in PHP . 
 
-- Manoj Kr. Sheoran 


[PHP] Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

2004-11-20 Thread Manoj Kumar
Hi folks , 
 
 What is the case of following warning ...
 Warning: Unknown list entry type in request shutdown (0) in Unknown on
line 0   
 
 
-- Manoj Kr. Sheoran 
  www.daffodildb.com BLOCKED::http://www.daffodildb.com 
 
 
 


[PHP] ANN: MySQLDiff 0.1, program to output diffs between MySQL tables

2004-11-20 Thread Rajesh Kumar
Hello PHP Community,
MySQLDiff is a PHP5 command-line utility that prints SQL statements to
sync two MySQL databases or tables.
This program works just like the original MySQLDiff
(http://www.mysqldiff.org/), but is much faster and is useful for
quickly comparing two databases.
The source code may be obtained from a public Subversion repository, and
tested as shown:
  $ svn co http://www.svnhosting.org:8000/svn/mysqldiff/trunk mysqldiff
  $ cd mysqldiff
  $ sudo make install
.. installs to /usr/local/bin/mysqldiff
  $ mysqldiff db1 db2
  $ mysqldiff --paranoid db1.tbl db2.tbl
	
MySQLdiff is still alpha and requires heavy testing and
improvements. All required PEAR packages are packaged with MySQLDiff. 
Copyrights may have been violated with regards to PEAR::Text_Diff. If 
so, I'm prepared to take necessary action.

Please contact me (off-list) if you're interested in becoming a 
developer. Please send patches against the HEAD revision by executing 
`svn up  svn diff'

Bug reports, feature suggestions and help requests welcome.
--
Rajesh Kumar
MySQLDiff Maintainer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Mysql Connect Help

2004-11-21 Thread Manoj Kumar
 

 You should enable php_mysql module in your php.ini file.

-- Manoj Kr. Sheoran  

-Original Message-
From: Nathan Mealey [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 10:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Mysql Connect Help

A seemingly simple problem, still confounding me.

The following line of code:
mysql_connect('database','user','password'); [with values of course]

Generates the following error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/phptest.php on line 3

My PHP info page says that PHP (4.3) was compiled with MySQL, and
extensions_dir is correct (although the extensions_dir itself is empty, but
I don't know if this matters).  So PHP itself is working.

I installed MySQL 4.1 from RPM (client and server RPMs) on Redhat 8.0 this
morning.

Thanks for any help,
Nathan
--
Nathan Mealey
Director of Operations
Cycle-Smart, Inc.
P.O. Box 1482
Northampton, MA
01061-1482
[EMAIL PROTECTED]
(413) 587-3133
(413) 210-7984 Mobile
(512) 681-7043 Fax

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

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



[PHP] Any one have idea about plankton/

2004-12-03 Thread Pravin-Kumar
hey! 
There a framework for php known as plankton..
http://sourceforge.net/projects/plankton/
is there any have idea..how to configure..because i haev tried but not 
working.. and also tell me is it usefull or not?

--
pravin

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



[PHP] Re: [PHP-DB] what is wrong with my code.. please help

2004-12-26 Thread S Kumar


Dear group, 
 I am trying to query my db and print the results. 

 when i execute my script, i am not getting any
result
 except a blank page. can any one please help me what
 is going wrong with my script. 
 
 Script:
 
 $conn = pg_connect(user = $user dbname = $dbname
 host
 = $host password = $pass);
 if (!$conn)
 {
 echo('could not establish connection with
 database br');
 exit;
 }
 $sql = select * from experiment;
 $sth = pg_exec($connect,$sql)
 if (! $sth){
 die(Can't execute query.pg_errormessage());
 }
 
 for($i = 0,$j = pg_numrows($sth);$i  $j;$i++){
 $ar = pg_fetch_row($sth,$i);
 foreach($ar as $col){
 print $col ;
 }
 print \n;
 }
 
 ?
 
 thank you in advance

 kumar




__ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com

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



[PHP] How to process a query form with CHECKBOX Please help

2004-12-27 Thread S Kumar
Dear group, 
 I am a novice programmer started doing php to process
a query form of my patients.  

I have a database and one table in it deals with my
patient information.  Depending on their condition I
divided their age groups into 3 categories. In my
database a table patient_data has a column age_group
and a patient can be any one of young, middle or old
category.   
Now the possibility is that a user can selecct 1 or 2
or all three options.

In the query form, I gave the option for a user as a
check box. The piece of html code is as below:

DIVAge group/DIV
DIVYounginput type=checkbox name=
value=/DIV
DIVMiddleinput type=checkbox name=
value=/DIV
DIVOldinput type=checkbox name= value=/DIV

Problem:
I want to capture the user options and create an SQL
statement:

Select age_group from patient_data where age_group =
young and old ; 


I am truly stuck here. Can any one please help me out
to pass this situation. 

Thank you in advance.

Kumar. 




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



RE: [PHP] From Poland

2005-01-09 Thread Manoj Kumar
What the mean to spend time  of a group for this type of off topics. 


--mksheoran


-Original Message-
From: Ewa Rubach Wardawy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 08, 2005 11:59 PM
To: php-general@lists.php.net
Subject: [PHP] From Poland 

Dear Greg! 

This is Jarek.Wardawy. It's not a joke I promisse! This is my real name.
Some time ago I found your name in internet I wrote an e-mail to you. No
answer. Maybe this time.

I' m from Poland, living in a city Ostrow Wielkopolski. I'm working as a
journalist, and that's the reason why I spend so much time in internet. 

I'm oopen minded person, 40 years old. I'll be happy o write you more about
me and my family. At least, we have the family name. I'm interested of your
background, probably it comes from Poland. Is interesting for you? If so,
write me back, also for [EMAIL PROTECTED]  Just put the name wardawy in
google, and you'll see, that it's not a stupid joke. 

 

Best regards

Jarek Wardawy 

From Poland 

 

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



[PHP] How to include a datbase extention module in php source ??

2004-09-04 Thread Manoj Kumar
hi everybody, 

 Could anybody tell me How to include a datbase extention module in php 
source , so that will be available with php source. What is procedure to include it on 
php source ..It's very urget , plz suggest me..

Reagards, 
Manoj Kr. Sheoran 
www.daffodildb.xom

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

[PHP] No support for DBX module ?

2004-09-04 Thread Manoj Kumar
hi developers, 

 Could anybody tell me How to include a datbase extention module in hp
source , so that will be available with php source. What is procedure to include
it on php source ..It's very urget , plz suggest me..

Reagards, 
Manoj Kr. Sheoran 
www.daffodildb.com

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

[PHP] No support for DBX module ?

2004-09-04 Thread Manoj Kumar
hi developers, 

 Could anybody tell me How to include a datbase extention module in hp
source , so that will be available with php source. What is procedure to include
it on php source ..It's very urget , plz suggest me..

Reagards, 
Manoj Kr. Sheoran 
www.daffodildb.com

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

[PHP] No support for DBX module ?

2004-09-04 Thread Manoj Kumar
hi developers, 

 Could anybody tell me How to include a datbase extention module in hp
source , so that will be available with php source. What is procedure to include
it on php source ..It's very urget , plz suggest me..

Reagards, 
Manoj Kr. Sheoran 
www.daffodildb.com

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

[PHP] Would you help me ?

2004-09-04 Thread Manoj Kumar
hi developers, 

 Could anybody tell me How to include a datbase extention module in hp
source , so that will be available with php source. What is procedure to include
it on php source ..It's very urget , plz suggest me..

Reagards, 
Manoj Kr. Sheoran 
www.daffodildb.com

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

[PHP] Support issue ...

2004-09-04 Thread Manoj Kumar
hi dear developers, 
 
   We developed a module in (php_home/ext/) with name daffodildb , This module 
will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what 
is procedure to include a new module in php source(php cvs ) , so it will available 
free to developers with php source. Can anybody suggest me. 

Reagards, 
Manoj Kr. Sheoran 
Software Engg. 
SCO-42 ,3rd Floor
OJC, Civil Lines 
Gurgoan (HARYANA)
INDIA
mailto: [EMAIL PROTECTED]
www.daffodildb.com

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

[PHP] New module Entry issue ..

2004-09-04 Thread Manoj Kumar
hi dear developers, 
 
   We developed a module in (php_home/ext/) with name daffodildb , This module 
will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what 
is procedure to include a new module in php source(php cvs ) , so it will available 
free to developers with php source. Can anybody suggest me. 

Reagards, 
Manoj Kr. Sheoran 
Software Engg. 
SCO-42 ,3rd Floor
OJC, Civil Lines 
Gurgoan (HARYANA)
INDIA
mailto: [EMAIL PROTECTED]
www.daffodildb.com

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

[PHP] Hi friends Plz give suggestion ..

2004-09-04 Thread Manoj Kumar
hi dear developers, 
 
   We developed a module in (php_home/ext/) with name daffodildb , This module 
will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what 
is procedure to include a new module in php source(php cvs ) , so it will available 
free to developers with php source. Can anybody suggest me. 

Reagards, 
Manoj Kr. Sheoran 
Software Engg. 
SCO-42 ,3rd Floor
OJC, Civil Lines 
Gurgoan (HARYANA)
INDIA
mailto: [EMAIL PROTECTED]
www.daffodildb.com

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

[PHP] Goosebump ? ? New feature / implementaion in PHP

2004-09-04 Thread Manoj Kumar
hi dear developers, 
 
   We developed a module in (php_home/ext/) with name daffodildb , This module 
will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what 
is procedure to include a new module in php source(php cvs ) , so it will available 
free to developers with php source. Can anybody suggest me. 

Reagards, 
Manoj Kr. Sheoran 
Software Engg. 
SCO-42 ,3rd Floor
OJC, Civil Lines 
Gurgoan (HARYANA)
INDIA
mailto: [EMAIL PROTECTED]
www.daffodildb.com

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

[PHP] Good news for each develper

2004-09-04 Thread Manoj Kumar
hi dear developers, 
 
   We developed a module in (php_home/ext/) with name daffodildb , This module 
will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what 
is procedure to include a new module in php source(php cvs ) , so it will available 
free to developers with php source. Can anybody suggest me. 

Reagards, 
Manoj Kr. Sheoran 
Software Engg. 
SCO-42 ,3rd Floor
OJC, Civil Lines 
Gurgoan (HARYANA)
INDIA
mailto: [EMAIL PROTECTED]
www.daffodildb.com

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

[PHP] Completing dream of connect with Java RDBMS with php

2004-09-04 Thread Manoj Kumar
hi dear developers, 
 
   We developed a module in (php_home/ext/) with name daffodildb , This module 
will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what 
is procedure to include a new module in php source(php cvs ) , so it will available 
free to developers with php source. Can anybody suggest me. 

Reagards, 
Manoj Kr. Sheoran 
Software Engg. 
SCO-42 ,3rd Floor
OJC, Civil Lines 
Gurgoan (HARYANA)
INDIA
mailto: [EMAIL PROTECTED]
www.daffodildb.com

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

[PHP] unicode help

2007-05-08 Thread suresh kumar

Hi,
   
  Right now my application supports 'English' Language version,i like to 
integrate 'chinnese' language in my  application.My Application is running from 
 PHP and mysql.I don't have any idea regarding this unicode 
implementation.whether we can implement using javascript or PHP.I am looking 
forward some help from you
   

A.suresh

   
-
 Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? 
Here's a solution! 

[PHP] Application support both chinese and english lang

2007-05-13 Thread suresh kumar
Hi,
   
  I am developing one application using PHP and MySQL.Right now my 
application supports English language.i like to integrate chinese language in 
my application.i like to implement similar to this website.
   
  http://www.dynasign.net.cn/dynasign/login.do
   
  'Language' combo box contain 'English' and 'chinese',when user select 
'English'.i like to display the page details  in english and when he select 
'chinese' i like to display page details in 'chinese'.
   
i set the META HTTP-EQUIV=Content-type CONTENT=text/html; 
charset=UTF-8 .but chinese font is not displaying.i think we need to do some 
PHP programatic unicode conversion.I dont know how to proceed .
   
 I am looking for some help from you guys.
   
A.suresh
   
   

   
-
 Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? 
Here's a solution! 

[PHP] php can do this

2007-05-13 Thread suresh kumar
Hi,
 I want to know whether its possible to implement this functionality in PHP 
and MySQL.. I will allow web users to download one .bat file from my 
Application.
   
 This .bat contains something like this  'c:\\program files\Internet 
Explorer\iexplore.exe' http://x.com/download.php;
   
 download.php file will contain images for downloading.
   
 when he execute this .bat file from his local machine.  I need to download 
some image files from the server to his local hard drive.i want to download 
automatically to this hard drive.
  
   (I don't want 'save as' dialog box where user can select the location to 
download.)
  
   In PHP code(server).Is there any way where i can tell the images to get 
download automatically to the local user desktop.
  
   I searched google.but i can't able to find any solution
   
 i am looking for some help from you guys.
   
A.suresh

  
-
 Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? 
Here's a solution! 

Re: [PHP] best function to use ~ file_get_contents or ?

2009-09-16 Thread Gaurav Kumar
There is no best function as such. Everything depends upon your requirement.

You can also use fopen() to get the contents of the remote file and do some
error handling that if you get any content then display image else a message
etc..

Gaurav Kumar
(Team Lead- open source)
oswebstudio.com



On Wed, Sep 16, 2009 at 4:06 AM, CRM c...@globalissa.com wrote:

 Hi All,
 Not sure of the best approach, need your feedback. I have 4 images on a
 website. These are used in navigation. When I load a reference webpage on
 my
 local machine the local page calls 4 images from an external website, each
 image will be on a different domain.

 What I want to see is if the navigation images/buttons can be
 loaded/displayed
 in my browser. If they can, then I will display the images on my local
 page.
 If the images cannot be loaded, then this indicates some connection issue
 and
 the result will be some text like 'Site Offline'. So just by glancing at my
 local machine reference page I can tell if one or more of the different
 sites
 is or is not available.

 So what is the best function to use?

 if ( @file_get_contents( DOMAIN_PATH .
 images/navigation/nav_globalissa.png )):

 or ???

 Please also cc i...@globalissa.com

 Thanks for any helpful suggestions.

 Sincerely,

 Rob
 Global I.S. S.A.
 Software Powers the Net
 Email: crm at globalissa dot com

 * * * The Forge of Globalissa ~ PHP Foobar Machine * * *
 http://globalissa.com/forge/


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




[PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
Hi All,

I am creating a social networking website. I want that every user should
have there own profile page with a static URL like-

http://www.abcnetwork/user/username

Where username will be dynamic userid or something else.

This is something very similar to www.youtube.com/user/kumargauravmail (this
is my profile page).

So what should be the best practice to create such DYNAMIC URL's OR what
kind of methodology youtube is following?

Thanks in Advance.

Gaurav Kumar
OSWebstudio.com


Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
A Big Thanks to all of you.

Question I was Asked by Andrea- mod_reqrite or .htaccess is the answer, but
I wonder why you choose /user/username rather than just /username a la
twitter.

I will be using many other aspects of my users something like
/projects/username/; /gallery/username/.

OK Ashley, Tommy and Ralph-

100% correct that mod_rewrite will be used.

I am a bit sticky that my URL will be-
http://www.abcnetwork/user/*Ashley*http://www.abcnetwork/user/username.

So will I get $_GET[user] with value as *Ashley* or *Tommy* in my
script?

http://www.abcnetwork/userProfile.php?user=usernameSo what exactly will be
the .htaccess rule for above?


Thanks,

Gaurav Kumar
OSWebstudio.Com



On Mon, Sep 21, 2009 at 1:26 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:

 On Mon, 2009-09-21 at 13:24 +0530, Gaurav Kumar wrote:
  Hi All,
 
  I am creating a social networking website. I want that every user should
  have there own profile page with a static URL like-
 
  http://www.abcnetwork/user/username
 
  Where username will be dynamic userid or something else.
 
  This is something very similar to www.youtube.com/user/kumargauravmail(this
  is my profile page).
 
  So what should be the best practice to create such DYNAMIC URL's OR what
  kind of methodology youtube is following?
 
  Thanks in Advance.
 
  Gaurav Kumar
  OSWebstudio.com

 If you're working on an Apache server, your best bet is to look at
 mod_rewrite. You can write a simple rule to match against these sorts of
 URL formats, so that to your visitors it appears as if the actual path
 exists, but internally it can get translated to something like
 http://www.abcnetwork.com/profile.php?id=username

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk






Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
I totally agree with this architecture.

You are correct, I am just in the starting phase of the project and in fact
still need to define the architecture in detail.

Now the question I asked in my last reply is still to be answered?

Gaurav Kumar
OSWebstudio.Com

On Mon, Sep 21, 2009 at 3:06 PM, Andrea Giammarchi an_...@hotmail.comwrote:



 
  Question I was Asked by Andrea- mod_reqrite or .htaccess is the answer,
 but
  I wonder why you choose /user/username rather than just /username a la
  twitter.
 
  I will be using many other aspects of my users something like
  /projects/username/; /gallery/username/.

 well, it does not matter if this service is user based.

 /username/ #as user home page
 /username/projects/ #as user projects
 /username/gallery/ #as user gallery
 /username/etc ...

 it's just a silly point but from user home page you isntantly know if user
 exists and you instantly know subsections

 In your way you assume that there is a gallery for that user while he could
 have created only projects, without galleries.
 So one search failed, while to go in the user page I need to digit /user/
 before, not a big deal but we are in tinyurl and bit.ly era

 Google Code put simply a /p/ as prefix plus the project name plus
 subsection

 /p/myprojname/
 /p/myprojname/wiki

 since you are starting now, maybe you could consider this semantic
 alternative, if it suits your requirements.

 Regards
   Thanks,
   Ash
   http://www.ashleysheridan.co.uk
  
  
  
  

 --
 check out the rest of the Windows Live™. More than mail–Windows Live™ goes
 way beyond your inbox. More than 
 messageshttp://www.microsoft.com/windows/windowslive/



Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
Thanks Ashley and all the folks out there...

On Mon, Sep 21, 2009 at 3:25 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:

 On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote:
  I totally agree with this architecture.
 
  You are correct, I am just in the starting phase of the project and in
  fact still need to define the architecture in detail.
 
  Now the question I asked in my last reply is still to be answered?
 
  Gaurav Kumar
  OSWebstudio.Com
 
  On Mon, Sep 21, 2009 at 3:06 PM, Andrea Giammarchi
  an_...@hotmail.com wrote:
 
 
  
   Question I was Asked by Andrea- mod_reqrite or .htaccess is
  the answer, but
   I wonder why you choose /user/username rather than
  just /username a la
   twitter.
  
   I will be using many other aspects of my users something
  like
   /projects/username/; /gallery/username/.
 
 
  well, it does not matter if this service is user based.
 
  /username/ #as user home page
  /username/projects/ #as user projects
  /username/gallery/ #as user gallery
  /username/etc ...
 
  it's just a silly point but from user home page you isntantly
  know if user exists and you instantly know subsections
 
  In your way you assume that there is a gallery for that user
  while he could have created only projects, without galleries.
  So one search failed, while to go in the user page I need to
  digit /user/ before, not a big deal but we are in tinyurl and
  bit.ly era
 
  Google Code put simply a /p/ as prefix plus the project name
  plus subsection
 
  /p/myprojname/
  /p/myprojname/wiki
 
  since you are starting now, maybe you could consider this
  semantic alternative, if it suits your requirements.
 
  Regards
 
Thanks,
Ash
http://www.ashleysheridan.co.uk
   
   
   
   
 
 
 
  __
  check out the rest of the Windows Live™. More than mail–
  Windows Live™ goes way beyond your inbox. More than messages
 
 For help with the mod_rewrite, a Google search never goes amiss, first
 result I found for 'mod_rewrite example' is
 http://www.workingwith.me.uk/articles/scripting/mod_rewrite . I looked
 at it quickly and it does cover what you need.

 As for what you get as $_GET parameters, that's entirely up to you, and
 as you will see from the above link, it's fairly simple to mess about
 with.


 Thanks,
 Ash
 http://www.ashleysheridan.co.uk






Re: [PHP] Apache Rewrite Issues

2009-10-08 Thread Gaurav Kumar
Hey Russell,

After Going through all the threads in this post, it is correct to say, GET
Rid of the space. Use -  hyphen  for SEO friendly URL's. Its completely
OK.

Other thing which is very handy is urlencode and urldecode functions. When
you are sending a query string use urlencode function. This will preserve
the query string variable as Test Story and not as just Test; even if
there are spaces in the variable.

Gaurav Kumar
Tech Lead Open Source Solutions

On Wed, Oct 7, 2009 at 4:22 PM, Russell Seymour 
russell.seym...@turtlesystems.co.uk wrote:

 Morning,

 I am trying to make my URLs more search engine friendly and I have come up
 against a problem.

 I want the following URL:

mysite.example.com/articles/Test Story

 to be proxied to

mysite.example.com/index.php?m=articlest=Test%20Story

 I have the following rule in my Apache conf

RewriteRule ^/articles/(.*) index.php?m=articlest=$1 [P,L]

 Now if I run with this configuration, PHP strips the query string back at
 the space, so my query string ends up looking like

[QUERY_STRING] =  m=articlest=Test

 even though the log file for the rewrite shows that the full query is being
 passed.

 But if I change the RewriteRule to be a Rewrite instead of a Proxy I get

[QUERY_STRING] =  m=articlest=Test%20Story

 So something is happening when the system is proxying the request.
 Adding %20 into the URL does not fix the problem when proxy is enabled
 either.

 I have search around on the Internet, and people talk about using urlencode
 etc, this is fine when
 PHP is creating the URL but not when Apache is doing the rewrite.

 I apologise if people feel this is on the wrong list, but as far as I can
 tell from the rewrite logs the data is coming all
 the way through to PHP which is truncating it.  This is purely my
 observation.

 Apache version: 2.2.11
 PHP Version:5.3.0

 Any help is gratefully recieved.

 Thanks, Russell





Re: [PHP] avoid Denial of Service

2009-10-08 Thread Gaurav Kumar
Not sure what exactly you are looking for.

Anyways, some common practice are request for API key, username / password
tokens before providing access to a service.

Thanks,

Gaurav Kumar


On Thu, Oct 8, 2009 at 7:06 PM, Gerardo Benitez gerardobeni...@gmail.comwrote:

 Hi everybody!


 I want to get some tips about how avoid a attack of Denial of service.  May
 be somebody can about your experience with Php o some configuration of
 apache, o other software that help in these case.


 Thanks in advance.


 --
 Gerardo Benitez



RE: [PHP] Native support to MS SQL Server

2009-10-08 Thread Rakesh Kumar
Yes correct it will work on old version 

-Original Message-
From: Raymond Irving [mailto:xwis...@yahoo.com] 
Sent: Friday, October 09, 2009 9:56 AM
To: php-general@lists.php.net
Subject: [PHP] Native support to MS SQL Server

Hello,

Will we ever see drivers for MS SQL Server in PHP5?

I know MS is working on drivers for PHP 5.3 but it's not clear if they will
ever produce a PDO driver for PHP. PDO is the way to go.

The other thing is that MS latest version of the sqlsrv driver requires SQL
Native Client 2008 and is not compatible with previous versions of the
client. This means that client will have to either install or upgrade their
version SQL Client. It would be great if the driver did not require an
addition software package to be installed.

The lack of MSSQL support has cause developers to search the web (sometimes
in vain) looking for driver support. This often times resulted in an
alternative programming languages been chosen for the project.



---
Print this mail only if absolutely necessary. Save Paper. Save Trees.  

This e-mail message may contain confidential, proprietary or legally 
privileged information. It 
should not be used by anyone who is not the original intended recipient. If you 
have erroneously 
received this message, please delete it immediately and notify the sender. The 
recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,  
(collectively ICICI 
Group), are unable to exercise control or ensure or guarantee the integrity 
of/over the contents
of the information contained in e-mail transmissions and further acknowledges 
that any views 
expressed in this message are those of the individual sender and no binding 
nature of the message
shall be implied or assumed unless the sender does so expressly with due 
authority of ICICI Group.
Before opening any attachments please check them for viruses and defects. 

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



Re: [PHP] Correct handling _POST[] and implode. PHP5

2009-10-09 Thread Gaurav Kumar
Its Simple...

Its very obvious that $_POST[color] is not an array.

do something like this and you wil get the values.

$arr_color = $_POST[colors];

//iterate over the array
foreach($arr_color as $val)
{
$str_color .= ,   . $val;
}

You are done.

Gaurav Kumar
Teach Lead Open Source Technologies



On Fri, Oct 9, 2009 at 11:14 AM, bearsfoot adam.p.reyno...@gmail.comwrote:


 Hi all,

 I have a form that has has an array of information.  Mulitple checkboxes
 can
 be selected.

 Choose the colors:
 input type=checkbox name=Colors[] value=green checked=checked /
 Green
 input type=checkbox name=Colors[] value=yellow / Yellow
 input type=checkbox name=Colors[] value=red / Red
 input type=checkbox name=Colors[] value=gray / Gray

 When processing the form..

 echo $_POST['Colors'] . 'br /'; // outputs 'Array'

 if ( isset($_POST['Colors']) ) {
 $_POST['Colors'] = implode(', ', $_POST['Colors']); //Converts an array
 into a single string
 }

   echo Colors you chose: {$_POST['Colors']}br /;

 I get the following error when using the implode function.

 Warning: implode() [function.implode]: Bad arguments

 What I doing wrong ?

 Thanks in advance.



 --
 View this message in context:
 http://www.nabble.com/Correct-handling-_POST---and-implode.-PHP5-tp25815789p25815789.html
 Sent from the PHP - General mailing list archive at Nabble.com.


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




  1   2   3   >