[PHP] dynamic drop down

2002-04-23 Thread Kunal Jhunjhunwala

Hey,
I am trying to make a drop down list such that, when some one selects an
option, it refreshs and displays the option on the same page. There are a
couple of things already in the URL [ the query string ], which need to
remain there. How would I do this easily?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




Re: [PHP] Re: PHP editor for windows

2002-04-22 Thread Kunal Jhunjhunwala

I have been using html-kit @ http://www.chami.com/html-kit/
works great.. and the only stable inbuilt FTP proggy i have seen to date..
does anyone have alternatives to this? :)
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: dengach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 9:16 PM
Subject: [PHP] Re: PHP editor for windows


 Have you tried Maguma Studio Light for PHP With Help version 1.0.0
released
 2002-04-05  formerly PHPide, get it from http://www.maguma.com . The
version
 with help comes with php and mysql help.

 .Ben [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Other than notepad, interdev, ultraedit, etc (which i currently use for
  editing), does anyone know of a good editor for PHP for Windows, ideally
  with syntax colouring, etc?
 
  Cheers,
 
   .ben
 





 --
 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] zend encoder and shell

2002-04-16 Thread Kunal Jhunjhunwala

Hey,
Is it possible to run zend encoded scripts from the shell prompt?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] connection speed?

2002-03-10 Thread Kunal Jhunjhunwala

Hey,
How can I detect the users connection speed? I dont want to ask them.. :)
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] ips and mysql table.

2002-03-03 Thread Kunal Jhunjhunwala

Hey,
I came across this interesting problem somebody was having. I couldnt find a
solution. Hope one of you can :

I have a mysql table which stores the IP Address of my site visitors. When I
try to sort these Ip address in the ascending or descending order the order
is completely out of order. I am currently storing the IP addresses under a
varchar column. An int column would not store the values after the second
.

Any suggestions?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] licensing, protection

2002-02-21 Thread Kunal Jhunjhunwala

Hey,
Any suggestions on how to write a licensing system or something similar to
protect against illegal distribution of your programs? Zend is a way, but is
very expensive.
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] zend encoder

2002-02-20 Thread Kunal Jhunjhunwala

hey,
Any ideas on how one can encode multiple files on a windows machine??
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




Re: [PHP] modular programming

2002-02-16 Thread Kunal Jhunjhunwala

Hey,
The entire concept of OOP was based on the data and not the processing :)

But, no one has yet addressed the core of my question. How can I make any
application plugable? I am trying to create a standard which will work with
every other language. A simple example of what I am attempting to do is :
I have a guestbook A. I have features in it
a. allow public viewing of records
b. dont allow publiv viewing of records

Now, this is very simply, I could just store the on/off value and then
validate agianst that. But when it comes to bigger applications, and more
complex situations, where you have to make choices like, allowing the data
to be written to a dbase or no, wether it should get processed or no. How
does one handle such situations?

Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: DL Neil [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; Steven Walker
[EMAIL PROTECTED]
Cc: php-list [EMAIL PROTECTED]
Sent: Saturday, February 16, 2002 4:10 PM
Subject: Re: [PHP] modular programming


 Dear Steven and Kunal,
 Agreed with what you had to say.

  In my experience, 'modular coding' is entirely a process of evolution.
  It's impossible to sit down and design software on paper. Every piece of
  code I write is under constant evaluation. Each time a weakness is
  exposed, I rethink my strategy. Often there is no 'perfect' solution,
  since each presents a different set of compromises. Devoting yourself to
  endlessly rewriting and structuring your code will, in the long term,
  yield better code than anyone can advise in a book or paper.

 This para gives an impression that modular programming is an iterative
process (maybe not Steven's intention).
 An iterative approach would certainly enable you to improve the quality of
your code - at some expense to
 rethink/re-implement, and such improvements may well occur through changes
to the modularisation/interfaces
 between modules. Modular programming as a philosophy though, starts at the
program design stage, not at version
 two!

 'Modular programming' as a concept is quite old (in computer/doggie
years). Then there was the whole
 confusion/absortption/improvement of philosoophies into 'structured
programming' - which some will argue is the
 same and others maintain a difference (I... - who cares!?). The real
'excitement' was stirred up by a paper
 (which became very famous) called 'GOTO statement considered harmful' and
a massive debate erupted as to whether
 one could write programs without using GOTOs - is there a GOTO command in
PHP? The guru at the time was
 Jackson, and if you plug Jackson structured programming into Google
(or your favorite SE) you will be
 inundated with 'stuff'.

 He wrote a fairly thin and most readable book on the subject, but I doubt
it is still in print (check Amazon
 etc). In those days it was also known as JSP. Unfortunately that acronym
has been also taken for something else
 more recently. The design process, and if you want them, the pretty
diagrams, have been refined and 'improved'
 over the years, so there's plenty of material about. Most likely it is
built into every 'introduction to
 programming' text (that is, programming as a process, not learning a
specific language!)

 These days of course, much of the philosophy of splitting up a monolithic
program into a series of smaller,
 inter-communicating modules has been absorbed into the object-oriented
approach (and various other 'bits'
 grafted on to make it bigger, brighter, and better - as they have become
implemented (and made practical to use)
 in various programming languages/systems). Unfortunately PHP is designed
to output HTML and that is a very
 procedural process, so PHP has limited OO facilities. Reading up about
classes and encapsulation will pretty
 much take you through modular/structured design theory and if you use
other 'modern' (programming) languages
 then that might be a good move for you (us 'old dogs' can handle the
concepts, but seem to have fundamental
 difficulties with the mechanics of the 'new tricks').

 Which brings us back to Steven's third point - that such things can be
overdone. Structure (of whichever flavor)
 is designed to make the coding/debugging/come back and extend/'improve' it
later, processes of development more
 efficient. This is quite separate from execution efficiency. However there
is no way one can improve one, and
 neglect the other - nor should vice-versa be allowed to become an excuse
for slapdash coding practices!

 Some people associate the word 'module' with (in PHP) 'function'. So they
think of modular programming as a code
 that is divided up into a series of subroutines, ie functions/calls. This
is overly simplistic. Each WHILE loop
 (for example) is also a 'module'. It has a particular purpose, contains a
set/module of functionality, and has

[PHP] zipping files on the fly

2002-02-16 Thread Kunal Jhunjhunwala

Hey,
I am trying to zip an entire directory and its contents on the fly. Any tips
or codes snippets for doing something like this? The one at zend doesnt seem
to be working for me :(
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




Re: [PHP] modular programming

2002-02-16 Thread Kunal Jhunjhunwala

Hey DN,
The Guestbook was an example of what im trying to do. I am NOT coding a
guest book...
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: DL Neil [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; php-list
[EMAIL PROTECTED]
Sent: Saturday, February 16, 2002 6:17 PM
Subject: Re: [PHP] modular programming


 Hey Kunal,

  The entire concept of OOP was based on the data and not the processing
:)

 No, this seems too much of a simplification. In the 'good old days' we
used to design a program by using a
 flowchart. Such is an entirely procedural/code-based approach. Each of the
philosophies that followed/developed
 from there, suggested that we should pay (more) attention to the data (and
its structure/characteristics).
 However none is exclusively based on the data and not the processing.
You need to consider both and not one at
 the expense of the other... This point was emphasised by an earlier
correspondent!

  But, no one has yet addressed the core of my question.

 What do you mean? Here is the original question:
 -
 does anyone know of any good papers on modular programing? I have been
able
 to make my code modular, but I am not satisfied with it. I am trying to
make
 my program work the plug in way.. where i can just add more modules on
the
 fly... any tips? :)
 -
 Which bits were addressable by someone else, and which parts are very much
restricted by knowledge only in your
 head? The add more modules on the fly was such a mixture of
terminology/buzz-words as to sound
 Superman-futuristic!? (include files possibly?)

 Two suggestions:
 - do the reading and sort out your approach, then roll forward into the
specific application/review its
 design/modularity etc
 - address a specific situation (as below) by describing your objectives
for it, the necessary parameters, what
 you have done so far, etc
 Don't muddle the entire process of LEARNING about a philosophy/approach,
with 'fixing' a specific piece of code.

 How can I make any
  application plugable? I am trying to create a standard which will work
with
  every other language. A simple example of what I am attempting to do is
:
  I have a guestbook A. I have features in it
  a. allow public viewing of records
  b. dont allow publiv viewing of records
 
  Now, this is very simply, I could just store the on/off value and then
  validate agianst that. But when it comes to bigger applications, and
more
  complex situations, where you have to make choices like, allowing the
data
  to be written to a dbase or no, wether it should get processed or no.
How
  does one handle such situations?

 What's wrong with your 'guestbook' solution? If you're not satisfied,
start a new conversational thread (ie with
 a more descriptive title) because there are many experienced 'guest
bookers' on the list, who will be more than
 capable/happy to share ideas/experience.

 The philosophies behind modular programming, structured programming, and
object-oriented programming all unite
 in the realisation that bigger applications and more complex
situations can be rendered to be collections of
 smaller and less complex 'units' that can be individually programmed (and
tested) as 'simple solutions', and
 then combined together to provide size, complexity, and power. (and so
we're back to doing a bit of reading up
 on/absorbing the subject!)

 Regards,
 =dn



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

2002-02-15 Thread Kunal Jhunjhunwala

hey,
does anyone know of any good papers on modular programing? I have been able
to make my code modular, but I am not satisfied with it. I am trying to make
my program work the plug in way.. where i can just add more modules on the
fly... any tips? :)
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




Re: [PHP] modular programming

2002-02-15 Thread Kunal Jhunjhunwala

Hi,
I agree with everything you have said, it will come with evolution of the
program. But there are times, when evolution may require re-coding over
10,000lines of code. Not a very good place to be in then :)

So, if I started right, i would end and evolve right.. know what i mean?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: Steven Walker [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Cc: php-list [EMAIL PROTECTED]
Sent: Saturday, February 16, 2002 11:11 AM
Subject: Re: [PHP] modular programming


 Dear Kunal,

 I don't know of any papers... I'd be interested in what you find.

 In my experience, 'modular coding' is entirely a process of evolution.
 It's impossible to sit down and design software on paper. Every piece of
 code I write is under constant evaluation. Each time a weakness is
 exposed, I rethink my strategy. Often there is no 'perfect' solution,
 since each presents a different set of compromises. Devoting yourself to
 endlessly rewriting and structuring your code will, in the long term,
 yield better code than anyone can advise in a book or paper.

 Over modulation of code has drawbacks too. Sometimes the simple solution
 is the one to use, even if it means rewriting the same thing every once
 in a while. When people start creating classes and polymorphic
 interfaces to their code needlessly, performance is compromised.

 Perhaps what you are looking for is also a reference for good
 programming practice. For C++, I really liked the books by Scott Meyers:
 'Effective C++', first and second edition. Here he sets out some
 fundamental 'guidelines' for coding. You may like to check it out, even
 thought it doesn't apply to PHP directly.

 Of what it's worth, that's my two cents :) I'd be interested in what
 others think on this matter.

 Steven J. Walker
 Walker Effects
 www.walkereffects.com
 [EMAIL PROTECTED]

 On Friday, February 15, 2002, at 08:24  PM, Kunal Jhunjhunwala wrote:

  hey,
  does anyone know of any good papers on modular programing? I have been
  able
  to make my code modular, but I am not satisfied with it. I am trying to
  make
  my program work the plug in way.. where i can just add more modules
  on the
  fly... any tips? :)
  Regards,
  Kunal Jhunjhunwala
 
  Minds think with ideas, not information. No amount of data, bandwidth,
  or
  processing power can substitute for inspired thought. - Clifford Stoll
 
 
  --
  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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] subject line in mail()

2002-02-10 Thread Kunal Jhunjhunwala

Hey,
I'm trying to force a subject line on the reply email of a recieved email...
the recieved email is sent using the mail() function in php... can this be
done? I know i can do it using html by doing :
mailto:[EMAIL PROTECTED]?subject=subect comes here

but not everyone allows html email... can i do something similar using the
mail() function?

Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




Re: [PHP] subject line in mail()

2002-02-10 Thread Kunal Jhunjhunwala

yea... this sends out the email just fine... but if a user replies to the
email sent out via this method, the sbuject line changes... i want to keep
it static :)
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: TV Karthick Kumar [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Sent: Sunday, February 10, 2002 4:10 PM
Subject: Re: [PHP] subject line in mail()


 Did you use mail(to,subject,message,from) ??...

 Hth,
 Karthick


 - Original Message -
 From: Kunal Jhunjhunwala [EMAIL PROTECTED]
 To: php-list [EMAIL PROTECTED]
 Sent: Sunday, February 10, 2002 11:31 AM
 Subject: [PHP] subject line in mail()


  Hey,
  I'm trying to force a subject line on the reply email of a recieved
 email...
  the recieved email is sent using the mail() function in php... can this
be
  done? I know i can do it using html by doing :
  mailto:[EMAIL PROTECTED]?subject=subect comes here
 
  but not everyone allows html email... can i do something similar using
the
  mail() function?
 
  Regards,
  Kunal Jhunjhunwala
 
  Minds think with ideas, not information. No amount of data, bandwidth,
or
  processing power can substitute for inspired thought. - Clifford Stoll
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php


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






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




Re: [PHP] subject line in mail()

2002-02-10 Thread Kunal Jhunjhunwala

hi,
hidden value where?? :)
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: TV Karthick Kumar [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Sent: Sunday, February 10, 2002 4:47 PM
Subject: Re: [PHP] subject line in mail()


 yeah, that's right, you don't even want to have 'Re: subject' in your
reply
 message ?. mm... if you can pass the subject (value) as a hidden variable
 then you can have it static and move around with it... So far, I have
 thought only this way

 Is it going to help you ?. If it does, you are a happy man.

 Hth,
 Karthick


  yea... this sends out the email just fine... but if a user replies to
the
  email sent out via this method, the sbuject line changes... i want to
keep
  it static :)
  Regards,
  Kunal Jhunjhunwala
 
  Minds think with ideas, not information. No amount of data, bandwidth,
or
  processing power can substitute for inspired thought. - Clifford Stoll
  - Original Message -
  From: TV Karthick Kumar [EMAIL PROTECTED]
  To: Kunal Jhunjhunwala [EMAIL PROTECTED]
  Sent: Sunday, February 10, 2002 4:10 PM
  Subject: Re: [PHP] subject line in mail()
 
 
   Did you use mail(to,subject,message,from) ??...
  
   Hth,
   Karthick
  
  
   - Original Message -
   From: Kunal Jhunjhunwala [EMAIL PROTECTED]
   To: php-list [EMAIL PROTECTED]
   Sent: Sunday, February 10, 2002 11:31 AM
   Subject: [PHP] subject line in mail()
  
  
Hey,
I'm trying to force a subject line on the reply email of a recieved
   email...
the recieved email is sent using the mail() function in php... can
 this
  be
done? I know i can do it using html by doing :
mailto:[EMAIL PROTECTED]?subject=subect comes here
   
but not everyone allows html email... can i do something similar
using
  the
mail() function?
   
Regards,
Kunal Jhunjhunwala
   
Minds think with ideas, not information. No amount of data,
 bandwidth,
  or
processing power can substitute for inspired thought. - Clifford
 Stoll
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
  
  
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com
  
  
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php


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






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




[PHP] mime emails

2002-02-08 Thread Kunal Jhunjhunwala

hey..
does anyone know of any good classes / functions for handling mime emails? i
am writing a mail checker, and was wondering if there are any pre-written
mime email handling classes out there...
thanks!
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] templates

2002-02-08 Thread Kunal Jhunjhunwala

hey,
which is the best template library out there? does anyone have any
benchmarks? smarty? phplib? any others?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




Re: [PHP] templates

2002-02-08 Thread Kunal Jhunjhunwala

Hey,
Well, I got phplib working.. but i yet think something is missing :) and
have heard a lot of buzz abt smarty... but havent seen any benchmarks...
from the article at devshed.. fast templates should have stayed with perl ;)

anyone else got any suggestions?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Saturday, February 09, 2002 1:22 AM
Subject: Re: [PHP] templates


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Kunal Jhunjhunwala declared
  hey,
  which is the best template library out there? does anyone have any
  benchmarks? smarty? phplib? any others?

 Hehe, still messing with templates kunal?
 There's a good article on PHPLib vs Fastemplate on either devshed or
 phpbuilder but from what I've read PHPLib is the way forward.
 - --

 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE8ZCyEHpvrrTa6L5oRAl4IAJ9HWbjF8fh4nwOV3AAlz2WSNwEbzwCcC6fz
 3fuFP1328LE9SO2Iabj3jZk=
 =NU8H
 -END PGP SIGNATURE-

 --
 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] dynamic form fields

2002-02-07 Thread Kunal Jhunjhunwala

hey.. anyone got any suggestions on how to have a form build dynamically?
where a user can define his fields and store the form data in mysql?
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] prev next links

2002-02-04 Thread Kunal Jhunjhunwala

Hey,
Does anyone know of a well written example of this? I have seen so many
examples, but the over head just seems to be too much... does anyone have a
smooth and well written routine?
Regards,
Kunal Jhunjhunwala


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




[PHP] add on's to php

2002-01-31 Thread Kunal Jhunjhunwala

Hey,
I was wondering, if it would be possible to work on a add on the fly
approach for php modules like zlib, imap, gd etc. There are a lot of people
who dont compile these in there installation by default, which makes it very
difficult to work on programs which utilize these modules. Coz there are a
lot of ppl who are fussy abt recompiling php all the time.

Do any of you guys face these problems? or is it just me?
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] add on's to php

2002-01-31 Thread Kunal Jhunjhunwala

hey,
this is perfect... thanks
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Mark Roedel [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; php-list
[EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 9:32 PM
Subject: RE: [PHP] add on's to php


 -Original Message-
 From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 9:22 AM
 To: php-list
 Subject: [PHP] add on's to php


 I was wondering, if it would be possible to work on a add on
 the fly approach for php modules like zlib, imap, gd etc.
 There are a lot of people who dont compile these in there
 installation by default, which makes it very difficult to work
 on programs which utilize these modules.  Coz there are a lot
 of ppl who are fussy abt recompiling php all the time.

Y'mean something like the php.ini extension directive, or the dl()
function?

See

http://www.php.net/manual/en/configuration.php#ini.sect.extension
and
http://www.php.net/manual/en/function.dl.php

for more info on those.  Note, though, that this functionality won't be
enabled on every server, often for security reasons.

I'm not sure how much of an issue it really needs to be, though.  Are
you running into people who are surprised that your programs won't work
on their server?  (Could this mean that you need to take a look at how
clearly the requirements are communicated?)


---
Mark Roedel   | A modern US Navy cruiser now requires
Systems Programmer|  26 tons of manuals.  This is enough
LeTourneau University |  to affect the vessel's performance.
Longview, Texas  USA  |-- New Scientist magazine






-- 
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] zend encoded files dont work

2002-01-31 Thread Kunal Jhunjhunwala

Hey guys,
Zend encoded files on a linux machine dont seem to work on a windows
machine. Any ideas why? I have tried uploading the files in binary and ascii
mode.. .and the optimizer is also loaded successfullly... the encoded files
work on linux.. but not windows... any ideas why? is there any one else
havin the same problem??
Regards,
Kunal Jhunjhunwala


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

2002-01-29 Thread Kunal Jhunjhunwala

hey..
does anyone know of any good resources for using sockets? which will also
explain using sockets to connect to various protocols? like ftp, httpd,
mysql etc? Also, somewhere one can read on writing a connection deamon...
Thanks!
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: sockets

2002-01-29 Thread Kunal Jhunjhunwala

Hey Mike,
I am looking for PHP sockets.. hence the php mailing list :P I hvent found
any decent resource on it.. orielly article is good for complete beginers..
but i was looking for something more detailed... any books anyone can
recommend would do too.. but i would prefer source to study :)
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Mike Frazer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 4:08 AM
Subject: [PHP] Re: sockets


 Are you referring to PHP sockets or C sockets?  PHP sockets are an
 implementation of C sockets (which is why most of the actiones needed are
 the same in PHP but are somewhat simplified).

 If you mean PHP sockets, you can try taking a look at WhoisPro, a
 Whois/NICNAME script I wrote to understand how to implement sockets in
PHP.
 If you mean C sockets, well, I'm currently learning them myself.  Let me
 know which you need and I can try to get you some resources for them.

 Mike Frazer




 Kunal Jhunjhunwala [EMAIL PROTECTED] wrote in message
 03dd01c1a8f9$eb909a10$0301a8c0@CONFUSED">news:03dd01c1a8f9$eb909a10$0301a8c0@CONFUSED...
  hey..
  does anyone know of any good resources for using sockets? which will
also
  explain using sockets to connect to various protocols? like ftp, httpd,
  mysql etc? Also, somewhere one can read on writing a connection
deamon...
  Thanks!
  Regards,
  Kunal Jhunjhunwala
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib

2002-01-27 Thread Kunal Jhunjhunwala

hey...
i was wondering, is there any way to check wether the replacing of a
variable failed or no? example :
{one}

$t-set_var(one, 1);

I want to know wether one was replaced by 1.. or wether the term one
exists at all in the template.. any ideas on how to find this out?

Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib

2002-01-27 Thread Kunal Jhunjhunwala

Well, when giving the flexibility to the user to change the look of a
program, it is impossible to track wether the user leaves your program copy
right code in the template... so, if the {copyright} variable doesnt exist,
just display the copy right info.. if {copyright} exists, replace it...
simple...

Regards,
Kunal Jhunjhunwala
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 3:57 AM
Subject: Re: [PHP] phplib


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Kunal Jhunjhunwala blurted
  hey...
  i was wondering, is there any way to check wether the replacing of a
  variable failed or no? example :
  {one}
 
  $t-set_var(one, 1);
 
  I want to know wether one was replaced by 1.. or wether the term one
  exists at all in the template.. any ideas on how to find this out?

 No. Not AFAIK
 What are the circumstances Kunal?

 - --

 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE8VH7vHpvrrTa6L5oRAttnAJ0cE6ispcu22bd+mnnuN8PEljOx+QCfUKvE
 69/xTQAg2jM28XU2rglVFtQ=
 =EUJK
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib

2002-01-26 Thread Kunal Jhunjhunwala

hey... im tryint to lay some conditions for the html output... example :
if ($check  == 1) {
some html
}
else {
some other html
}

The problem here is, I want the html in both cases to be customisable by the
user... so I would have to make it a part of the template file... and if i
do that, even if the conditions fail, the html will show up..any ideas on a
fix for this?

Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib

2002-01-26 Thread Kunal Jhunjhunwala

Hi Nick,
I found the solution. Thanks for your reply though. Basically, what I wanted
to do was simple :
the admin of my program can decided wether they want a feature on or off.
Now, depending on that, a lil section of the html would change. Using
phplib, I have seperated all my html from the php. The problem comes up,
when the html changes dependin on wether the feature is on or off. How does
one alter the html content in the template file? one cant...

The solution I found is, add a open comment tag above and and close comment
tag under the dynamic html code... commenting it out depending on wether the
feature is on or off...simple eh? :)

Regards,
Kunal Jhunjhunwala
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Saturday, January 26, 2002 9:20 PM
Subject: Re: [PHP] phplib


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Kunal Jhunjhunwala blurted
  hey... im tryint to lay some conditions for the html output... example :
  if ($check  == 1) {
  some html
  }
  else {
  some other html
  }
 
  The problem here is, I want the html in both cases to be customisable by
the
  user... so I would have to make it a part of the template file... and if
i
  do that, even if the conditions fail, the html will show up..any ideas
on a
  fix for this?

 I'm not 100% certain I understand your Q. but how about this:
 I take it from the subject you are using a PHPLib template so if you
 were to have a teplate var called {htmlOutput} you could do this,

 if($check=1) {
 $htmlOutput=EOF
 your html here
 EOF;
 } elseif($check=2) {
 $htmlOutput=EOF
 your altenate html here
 EOF;
 } else {
 $htmlOutput=EOF
 your default html here
 EOF;
 }

 and then in your template code.

 $t-set_var(htmlOutput, $htmlOutput);

 Hope that's what you mean
 - --

 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE8UtA5HpvrrTa6L5oRAr/TAJ0RBC3OzWQashl7fFc0e9wcrow6LgCdFjY1
 xjqg6qEwLRKI+R4g0NWYRoM=
 =haum
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] eval()

2002-01-20 Thread Kunal Jhunjhunwala

Hey
Does anybody know if its wise to use eval() ? I know Vbulletin uses it.. but
there is something about it I just cant digest.. it seems to be a very
powerfull function which can be very easily exploited... anyone else have
any thoughts?
Regards,
Kunal


-- 
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] Re: eval()

2002-01-20 Thread Kunal Jhunjhunwala

Hey,
I tend to agree with you. But what is the most effiecent way of using php
code in template files then? I am not going to move my templates to a
dbase.. thats for sure.
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Michael Waples [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Cc: php-list [EMAIL PROTECTED]
Sent: Sunday, January 20, 2002 5:51 PM
Subject: Re: eval()


 Kunal Jhunjhunwala wrote:
 
  Hey
  Does anybody know if its wise to use eval() ? I know Vbulletin uses it..
but
  there is something about it I just cant digest.. it seems to be a very
  powerfull function which can be very easily exploited... anyone else
have
  any thoughts?
  Regards,
  Kunal

  Loading your templates into a database, pulling them out on every page
 load and running eval() to run the code isn't the most efficient way to
 do it.
 Then running eval() inside a loop on that code isn't efficient either.

 I think eval() is used this way by some people because they don't know
 how to write files using php propely. So instead they just put it in a
 database. You also completely miss out on getting the benefits of one of
 the different php caching products.
 For me a database is for storing data - not php code.
 Vbulletin as an example of complete overuse of eval().




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: eval()

2002-01-20 Thread Kunal Jhunjhunwala

 I don't see how you can avoid putting php code in templates because you
 need to put $var in there some way so you can print out the variable. So
 if it's in a database it needs some eval() done on it.

You could html comment lines?? I tried this.. but it would only consider the
first and the last match of the ereg.. not the in-between ones :(

 I really can't see the point in querying a database to pull out template
 data. Templates usually don't change very often at all and querying a
 database to pull out unchanged template data is waste of cpu and memory
 resources.

Agreed.

Regards,
Kunal Jhunjhunwala
- Original Message -
From: Michael Waples [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 20, 2002 6:39 PM
Subject: [PHP] Re: eval()


 Kunal Jhunjhunwala wrote:
 
  Hey,
  I tend to agree with you. But what is the most effiecent way of using
php
  code in template files then? I am not going to move my templates to a
  dbase.. thats for sure.
  Regards,
  Kunal Jhunjhunwala

 well for looping through the results of a sql query where you'd want to
 print out some html -
 to do that you could -
 a include a file inside a loop
 b run eval on some code from a database
 c run a function

 I find c to be the most efficient
 eg

 function thread($sql_arra0
 {
 echo 'name - '. $sql_array['name'] .';
 }

 then inside of loop

 thread($sql_array);

 works a lot quicker than the other two methods.

 I don't see how you can avoid putting php code in templates because you
 need to put $var in there some way so you can print out the variable. So
 if it's in a database it needs some eval() done on it.
 I really can't see the point in querying a database to pull out template
 data. Templates usually don't change very often at all and querying a
 database to pull out unchanged template data is waste of cpu and memory
 resources.



 
   Kunal Jhunjhunwala wrote:
   
Hey
Does anybody know if its wise to use eval() ? I know Vbulletin uses
it..
  but
there is something about it I just cant digest.. it seems to be a
very
powerfull function which can be very easily exploited... anyone else
  have
any thoughts?
Regards,
Kunal
  
Loading your templates into a database, pulling them out on every
page
   load and running eval() to run the code isn't the most efficient way
to
   do it.
   Then running eval() inside a loop on that code isn't efficient either.
  
   I think eval() is used this way by some people because they don't know
   how to write files using php propely. So instead they just put it in a
   database. You also completely miss out on getting the benefits of one
of
   the different php caching products.
   For me a database is for storing data - not php code.
   Vbulletin as an example of complete overuse of eval().
  
  

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] name and value tags in a form

2002-01-12 Thread Kunal Jhunjhunwala

Hi,
Here is an example form field:

Forgot Password Subject: INPUT TYPE=TEXT NAME=fname SIZE=10
VALUE=kunal

Now, I want my php script or get the field name, that is fname, and whatever
the user entered, in this case kunal. I can easiuly get kunal by echoing
$fname. But, how do i get what $fname is called :) I dunno how to explain. I
want the field to get the field name automatically.

Regards,
Kunal Jhunjhunwala
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 3:15 PM
Subject: Re: [PHP] name and value tags in a form


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * On 12-01-02 at 10:18
 * Kunal Jhunjhunwala said

  Hey,
  Is there any way one can get the name tags for a form?? other then
  explicitly defining the tags in an array or any such thing. I just want
to
  be able to get the name tags and there values dynamically...
  Regards,
  Kunal Jhunjhunwala
 - --

 Can you give an example of what you want, your message is a little hard
 to visualize :)


 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org

 iD8DBQE8QAW1HpvrrTa6L5oRAiNnAJoCE97Luc/3gLREt+cSVge7SDRdOQCfU8bS
 3QZ+uPRtiTp1ZPRwj2ovnrA=
 =3PVM
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] name and value tags in a form

2002-01-12 Thread Kunal Jhunjhunwala

Hey,
Did the trick. Thanks!
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 3:30 PM
Subject: Re: [PHP] name and value tags in a form


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * On 12-01-02 at 10:54
 * Kunal Jhunjhunwala said

  Hi,
  Here is an example form field:
 
  Forgot Password Subject: INPUT TYPE=TEXT NAME=fname SIZE=10
  VALUE=kunal
 
  Now, I want my php script or get the field name, that is fname, and
whatever
  the user entered, in this case kunal. I can easiuly get kunal by echoing
  $fname. But, how do i get what $fname is called :) I dunno how to
explain. I
  want the field to get the field name automatically.

 You probably want to have a look at the $HTTP_POST_VARS (I think that's
 it) array. See the manual under variables.

 HTH
 - --

 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org

 iD8DBQE8QAk1HpvrrTa6L5oRAqfdAJ95ZALl/nmXRfNMo+pJxEsfElTPZACfSCa6
 1j+W0FkdxLMYpwdeCGKkH0w=
 =CXzK
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] name and value tags in a form

2002-01-11 Thread Kunal Jhunjhunwala

Hey,
Is there any way one can get the name tags for a form?? other then
explicitly defining the tags in an array or any such thing. I just want to
be able to get the name tags and there values dynamically...
Regards,
Kunal Jhunjhunwala


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

2002-01-10 Thread Kunal Jhunjhunwala

This is my code :
ereg(!--start--(.*)!--stop--, $lineofhtml, $output);

The problem is that, with !--start--(.*)!--stop-- it matches everthing
from the first !--start-- to the last !--stop--... hence it appears its
all in one array... what I need to do is tell it to stop at the first
!--stop-- and I can't figure out how to do that... any ideas?

Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ereg

2002-01-10 Thread Kunal Jhunjhunwala

Nopes, dint work
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Jimmy [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Cc: php-list [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:30 AM
Subject: Re: [PHP] ereg


 Hi Kunal,

  ereg(!--start--(.*)!--stop--, $lineofhtml, $output);

 ereg(!--start--([^!--stop--]*)!--stop--, $lineofhtml, $output);

 --
 Jimmy
 
 It's not what you have in your life that counts, but who you have in your
life





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ereg

2002-01-10 Thread Kunal Jhunjhunwala

RE: [PHP] eregWarning: REG_ERANGE on line 83

83: ereg(!--start--(.*?)!--stop--, $lineofhtml, $output); 
Regards,
Kunal Jhunjhunwala
  - Original Message - 
  From: Martin Towell 
  To: 'Kunal Jhunjhunwala' ; Jimmy 
  Cc: php-list 
  Sent: Friday, January 11, 2002 9:36 AM
  Subject: RE: [PHP] ereg


  what about ? 
  ereg(!--start--(.*?)!--stop--, $lineofhtml, $output); 

  -Original Message- 
  From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, January 11, 2002 3:05 PM 
  To: Jimmy 
  Cc: php-list 
  Subject: Re: [PHP] ereg 



  Nopes, dint work 
  Regards, 
  Kunal Jhunjhunwala 
  - Original Message - 
  From: Jimmy [EMAIL PROTECTED] 
  To: Kunal Jhunjhunwala [EMAIL PROTECTED] 
  Cc: php-list [EMAIL PROTECTED] 
  Sent: Friday, January 11, 2002 9:30 AM 
  Subject: Re: [PHP] ereg 



   Hi Kunal, 
   
ereg(!--start--(.*)!--stop--, $lineofhtml, $output); 
   
   ereg(!--start--([^!--stop--]*)!--stop--, $lineofhtml, $output); 
   
   -- 
   Jimmy 
    
   It's not what you have in your life that counts, but who you have in your 
  life 
   
   
   



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

2002-01-09 Thread Kunal Jhunjhunwala

Hey guys,
Has anyone used this before?? If so, is it a pain in the a$$? I read the
documentation.. and sounds like you would need to re-code your
authentication system, sessions blah blah to work with it? or am i going
waay of target here??

All i wanna do is, customize my html... i dont wanna recode my sessions code
etc... :)
Regards,
Kunal Jhunjhunwala


-- 
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] win2k..grrr

2002-01-04 Thread Kunal Jhunjhunwala

Hey,
Does anyone know WHY form scripts, that submit to themselves, dont work on
windows boxes?? Example :
I have a script called mail.php. The first part of the script displays the
form whos action states, mail.php. When the form is submitted, the second
part of the script mails the form details out.. this works fine on linux..
but on windows, only part one is displayed again and again... when i
seperate the 2 components, it works fine.
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: win2k..grrr

2002-01-04 Thread Kunal Jhunjhunwala

nopes.. dint do the trick.. anything else??
Regards,
Kunal Jhunjhunwala
- Original Message -
From: George Nicolae [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 04, 2002 11:52 PM
Subject: [PHP] Re: win2k..grrr


 i tell you why. because on instalation you use php.ini-optimized. file.
copy
 in your win2k director the php.ini-dist as php.ini. After that the script
 will work. I don't know what is set in optimized ini file and your script
 not work.

 --


 Best regards,
 George Nicolae
 IT Manager
 ___
 X-Playin - Professional Web Design
 www.x-playin.f2s.com



 Kunal Jhunjhunwala [EMAIL PROTECTED] wrote in message
 015501c19547$82434d70$0301a8c0@CONFUSED">news:015501c19547$82434d70$0301a8c0@CONFUSED...
  Hey,
  Does anyone know WHY form scripts, that submit to themselves, dont work
on
  windows boxes?? Example :
  I have a script called mail.php. The first part of the script displays
the
  form whos action states, mail.php. When the form is submitted, the
second
  part of the script mails the form details out.. this works fine on
linux..
  but on windows, only part one is displayed again and again... when i
  seperate the 2 components, it works fine.
  Regards,
  Kunal Jhunjhunwala
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] pdflib

2001-12-29 Thread Kunal Jhunjhunwala

Hey,
Has anyone successfully installed it with php 4.0.6 ? I have tried
everything from re-compiling php to compiling pdflib from scratch.. but im
totally lost.. any help would be great..

the pdflib site dint help much either.. :(
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] pdflib

2001-12-29 Thread Kunal Jhunjhunwala

I am using red hat 7.2...
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Brian Clark [EMAIL PROTECTED]
To: PHP is not a drug. [EMAIL PROTECTED]
Sent: Sunday, December 30, 2001 7:00 AM
Subject: Re: [PHP] pdflib


 * Kunal Jhunjhunwala ([EMAIL PROTECTED]) [Dec 29. 2001 17:17]:

  Has anyone successfully installed it with php 4.0.6 ? I have tried
  everything from re-compiling php to compiling pdflib from scratch.. but
im
  totally lost.. any help would be great..

 What OS/distribution? A few months ago I installed 4.0.6 and pdflib on a
 SuSE server and it went just fine.

 http://www.pdflib.com/pdflib/download/index.html

 wget newest tarball.

 $ cd pdflib-x.x.x
 $ ./configure \
 --with-jpeg-dir=/usr/local \
 --with-png-dir=/usr/local \
 --with-tiff-dir=/usr/local \
 --with-zlib-dir=/usr
 $ make
 $ make test
 $ make install

 And in the PHP configure:

 --with-pdflib=/usr/local

 --
 Brian Clark | Avoiding the general public since 1805!
 Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
 Therein lies the major problem facing the world.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php coders in bombay?

2001-12-27 Thread Kunal Jhunjhunwala

hey,
just wondering if there are any other hardcore php fanatics in the city of
bombay, india? :) if there are, give me a shout :)
Regards,
Kunal Jhunjhunwala


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

2001-12-13 Thread Kunal Jhunjhunwala

Hi,
Ive been trying to figure out ways to intergrate two applications to use a
common user information database... example: intergrating phpnuke to work
with vbulletin.. so the use doesnt have to re-gister to use each service...
any suggestions on how to go about doing this? I have the dbase structure of
both the appz, and can alter the code for one of the apps.. not the both...
so its a kinda one sided thing..
what would be the best approach for something like this?
Regards,
Kunal Jhunjhunwala


-- 
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] application design.

2001-12-07 Thread Kunal Jhunjhunwala

Hey,
Does anyone have any tips or papers on how to design a successfull
aplication in PHP? How to seperate each layer of information. I've read all
the documents @ phpbuilder, but was wondering how everyone else out there
went about making there appz.
Regards,
Kunal Jhunjhunwala


-- 
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] application design.

2001-12-07 Thread Kunal Jhunjhunwala

Hey,
Does anyone have any tips or papers on how to design a successfull
aplication in PHP? How to seperate each layer of information. I've read all
the documents @ phpbuilder, but was wondering how everyone else out there
went about making there appz.
Regards,
Kunal Jhunjhunwala


-- 
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] php without the php.ini

2001-11-30 Thread Kunal Jhunjhunwala

Hi,
How can PHP work without the php.ini file? I have tried to find the php.ini
file on a RAQ3, to no success. Looking at the php info and then looking at
the system directories doesnt yield anything.
The same goes with a server running the Plesk control panel.

Any ideas on how this is done?
Regards,
Kunal Jhunjhunwala


-- 
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] pipe email to php?

2001-11-24 Thread Kunal Jhunjhunwala

Hey,
Ive looked.. and tried... nothing seems to work.. any ideas on how to pipe
email to a php script? Ive already setup the valias.. the big question is,
how to process the info when the email comes in..
kunal


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

2001-11-19 Thread Kunal Jhunjhunwala

hey guys..

does anyone have any ideas on how to export information from a mysql
database to microsoft word, excel, access, note pad or any other such
application?


Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] exporting

2001-11-19 Thread Kunal Jhunjhunwala

I need something that will do a direct transfer to word or excel or the
others.. not something via a cvs method..
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Joshua Hoover [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 3:39 AM
Subject: Re: [PHP] exporting


 You can use something like this from MySQL:

 SELECT * INTO OUTFILE 'data.txt'
 FIELDS TERMINATED BY ','
 FROM ...;

 This will give you a comma delimited file that you can then import into
 Excel, Access, etc.

 You can find more out on this at:
 http://www.mysql.com/doc/L/O/LOAD_DATA.html

 Hope that helps.

 Joshua Hoover

  hey guys..
 
  does anyone have any ideas on how to export information from a mysql
  database to microsoft word, excel, access, note pad or any other such
  application?
 
 
  Regards,
  Kunal Jhunjhunwala





-- 
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] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala

Hi,
Has anyone done this to date?? I was thinking of compiling my programs for
better perfomance, and of course, protect the source code. Anyone have any
ideas on this issue?
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala

I know about zend, but are there any other alternatives to it?? And isnt
really compiling code. Plus it costs a bundle.
Regards,
Kunal Jhunjhunwala

Two brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb , The third
big war will begin when the big city is burning -
- Nostradamus 1654

- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 15, 2001 12:54 PM
Subject: RE: [PHP] Compiling php like C


 zend encoder (www.zend.com) and there's also an opensource project...can't
 recall the name or link, but you can find it if you search the
archives

 jack

 -Original Message-
 From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 15, 2001 3:04 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Compiling php like C


 Hi,
 Has anyone done this to date?? I was thinking of compiling my programs for
 better perfomance, and of course, protect the source code. Anyone have any
 ideas on this issue?
 Regards,
 Kunal Jhunjhunwala


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala

Hey found it :)
http://212.67.208.211/
Regards,
Kunal Jhunjhunwala

Two brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb , The third
big war will begin when the big city is burning -
- Nostradamus 1654

- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 15, 2001 1:04 PM
Subject: RE: [PHP] Compiling php like C


 yeah, i definitely agree with you, i can't/won't use it, as good as it
 is
 there was that one open source project that someone mentioned here, and i
 believe the developer said his results were about as good as zend...try
the
 archives...

 jack

 -Original Message-
 From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 15, 2001 3:27 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Compiling php like C


 I know about zend, but are there any other alternatives to it?? And isnt
 really compiling code. Plus it costs a bundle.
 Regards,
 Kunal Jhunjhunwala

 Two brothers torn apart by Chaos, while the fortress
 endures, the great leader will succumb , The third
 big war will begin when the big city is burning -
 - Nostradamus 1654

 - Original Message -
 From: Jack Dempsey [EMAIL PROTECTED]
 To: Kunal Jhunjhunwala [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Saturday, September 15, 2001 12:54 PM
 Subject: RE: [PHP] Compiling php like C


  zend encoder (www.zend.com) and there's also an opensource
project...can't
  recall the name or link, but you can find it if you search the
 archives
 
  jack
 
  -Original Message-
  From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, September 15, 2001 3:04 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Compiling php like C
 
 
  Hi,
  Has anyone done this to date?? I was thinking of compiling my programs
for
  better perfomance, and of course, protect the source code. Anyone have
any
  ideas on this issue?
  Regards,
  Kunal Jhunjhunwala
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala

http://212.67.208.211/ This wont compile my code.. i need something that
will compile my code and let me distribute the compiled code.
Regards,
Kunal Jhunjhunwala

- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 15, 2001 1:04 PM
Subject: RE: [PHP] Compiling php like C


 yeah, i definitely agree with you, i can't/won't use it, as good as it
 is
 there was that one open source project that someone mentioned here, and i
 believe the developer said his results were about as good as zend...try
the
 archives...

 jack

 -Original Message-
 From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 15, 2001 3:27 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Compiling php like C


 I know about zend, but are there any other alternatives to it?? And isnt
 really compiling code. Plus it costs a bundle.
 Regards,
 Kunal Jhunjhunwala

 Two brothers torn apart by Chaos, while the fortress
 endures, the great leader will succumb , The third
 big war will begin when the big city is burning -
 - Nostradamus 1654

 - Original Message -
 From: Jack Dempsey [EMAIL PROTECTED]
 To: Kunal Jhunjhunwala [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Saturday, September 15, 2001 12:54 PM
 Subject: RE: [PHP] Compiling php like C


  zend encoder (www.zend.com) and there's also an opensource
project...can't
  recall the name or link, but you can find it if you search the
 archives
 
  jack
 
  -Original Message-
  From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, September 15, 2001 3:04 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Compiling php like C
 
 
  Hi,
  Has anyone done this to date?? I was thinking of compiling my programs
for
  better perfomance, and of course, protect the source code. Anyone have
any
  ideas on this issue?
  Regards,
  Kunal Jhunjhunwala
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala

Allright guys.. im sorry abt the signiture..
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Seb Frost [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]
Sent: Saturday, September 15, 2001 9:54 PM
Subject: RE: [PHP] Compiling php like C


 I think you'll find Nostradamus died in 1566, and someone wrote that
passage
 as part of their coursework on the subject a few years back

 - seb

 -Original Message-
 From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
 Sent: 15 September 2001 08:43
 To: Jack Dempsey
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Compiling php like C


 Hey found it :)
 http://212.67.208.211/
 Regards,
 Kunal Jhunjhunwala

 Two brothers torn apart by Chaos, while the fortress
 endures, the great leader will succumb , The third
 big war will begin when the big city is burning -
 - Nostradamus 1654

 - Original Message -
 From: Jack Dempsey [EMAIL PROTECTED]
 To: Kunal Jhunjhunwala [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Saturday, September 15, 2001 1:04 PM
 Subject: RE: [PHP] Compiling php like C


  yeah, i definitely agree with you, i can't/won't use it, as good as it
  is
  there was that one open source project that someone mentioned here, and
i
  believe the developer said his results were about as good as zend...try
 the
  archives...
 
  jack
 
  -Original Message-
  From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, September 15, 2001 3:27 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] Compiling php like C
 
 
  I know about zend, but are there any other alternatives to it?? And isnt
  really compiling code. Plus it costs a bundle.
  Regards,
  Kunal Jhunjhunwala
 
  Two brothers torn apart by Chaos, while the fortress
  endures, the great leader will succumb , The third
  big war will begin when the big city is burning -
  - Nostradamus 1654
 
  - Original Message -
  From: Jack Dempsey [EMAIL PROTECTED]
  To: Kunal Jhunjhunwala [EMAIL PROTECTED];
 [EMAIL PROTECTED]
  Sent: Saturday, September 15, 2001 12:54 PM
  Subject: RE: [PHP] Compiling php like C
 
 
   zend encoder (www.zend.com) and there's also an opensource
 project...can't
   recall the name or link, but you can find it if you search the
  archives
  
   jack
  
   -Original Message-
   From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, September 15, 2001 3:04 AM
   To: [EMAIL PROTECTED]
   Subject: [PHP] Compiling php like C
  
  
   Hi,
   Has anyone done this to date?? I was thinking of compiling my programs
 for
   better perfomance, and of course, protect the source code. Anyone have
 any
   ideas on this issue?
   Regards,
   Kunal Jhunjhunwala
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 


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


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001





-- 
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] Terms used in search engine.

2001-09-13 Thread Kunal Jhunjhunwala

Hey,
I am trying to track the terms the user typed in the search engine to find
and come to my site. How can one do this? I tried some of the Header calls,
but had no success.
Regards,
Kunal Jhunjhunwala

Two brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb , The third
big war will begin when the big city is burning -
- Nostradamus 1654



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

2001-09-05 Thread Kunal Jhunjhunwala

Hey,
This is the second time I am asking about this. I havent been able to solve
the problem. I am trying to get all the information between the a /a
tags. How can i do this? I couldnt figure the regex out :(
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] I dont see whats wrong!

2001-09-03 Thread Kunal Jhunjhunwala

There is a dot at the end which is wrong :
$message = $alias. \r\n.$name. \r\n. $email. \r\n. $site. \r\n.
$cam. \r\n. $quote.;

^

see this??
it should be like this :
$message = $alias. \r\n.$name. \r\n. $email. \r\n. $site. \r\n.
$cam. \r\n. $quote;
Regards,
Kunal Jhunjhunwala
- Original Message -
From: Kyle Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 04, 2001 3:20 AM
Subject: [PHP] I dont see whats wrong!


i get this error message
Parse error: parse error in
/web/sites/197/lk6/www.stupeedstudios.f2s.com/sendcam.php on line 53

for

$message = $alias. \r\n.$name. \r\n. $email. \r\n. $site. \r\n.
$cam. \r\n. $quote.;

i honestly dont see whats wrong!

-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





-- 
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] Getting links from html page

2001-08-31 Thread Kunal Jhunjhunwala

Is there a way one can get all the information in the a/a tags from a
html page? I was able to get the link per se, but not the link information
or name. :( Can anyone help me out here?
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Apache virtual hosts php

2001-08-15 Thread Kunal Jhunjhunwala

755 :)
Kunal
- Original Message -
From: Jay Paulson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 9:26 PM
Subject: [PHP] Apache virtual hosts  php


 anyone know the permissions that need to be set on sub-directories of
apache
 when you are using virtual hosts?  The reason I ask is I keep getting a
403
 forbidden you do not have permission to access / on this server and i'd
 really like to check to see if my install of PHP is working correctly.

 Thanks...


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Kunal Jhunjhunwala

Hi,
There are basically two ways of doing this. 

Use lynx : lynx --dump http_address_to_file

or

Compile php as a cgi binary.

You should select them based on your need.

Kunal

- Original Message - 
From: Hugh Bothwell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 9:30 PM
Subject: Re: [PHP] Execute a PHP script from unix (crontab)


  From: Augusto Cesar Castoldi [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 16, 2001 1:04 AM
  Subject: [PHP] Execute a PHP script from unix (crontab)
   How can I execute a php script from the unix?
   like perl it's (perl file), but in unix we don't have
   a executable of php, it's a module ,right?
 
 Same idea as Perl, start with a shebang line to tell
 it where to find the interpreter:
 
 #!/usr/local/bin/php
 ?php
 // your script here...
 ?
 
   I should compile the script first?
 
 Nope, no need...
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Apache virtual hosts php

2001-08-15 Thread Kunal Jhunjhunwala

Which dir have you chmoded to 755? Is it the public dir or the main user
dir? you have to chmod the main user dir.
Kunal
- Original Message -
From: Jay Paulson [EMAIL PROTECTED]
To: Kunal Jhunjhunwala [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 9:55 PM
Subject: Re: [PHP] Apache virtual hosts  php


 cool.. now i have the permissions set correctly (which is a great thing!
 thanks).. but i still get the 403 error... hmm.. you think it has to do
with
 the fact that i'm having to type in the ip address of the server? the dns
 hasn't been set up yet to point to the server so i'm having to use the ip
 address to reach it.. but it seems to me that the default virtual host
 should at least show up when i put in the ip address right?

 thanks...

 - Original Message -
 From: Kunal Jhunjhunwala [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 15, 2001 10:59 AM
 Subject: Re: [PHP] Apache virtual hosts  php


  755 :)
  Kunal
  - Original Message -
  From: Jay Paulson [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, August 15, 2001 9:26 PM
  Subject: [PHP] Apache virtual hosts  php
 
 
   anyone know the permissions that need to be set on sub-directories of
  apache
   when you are using virtual hosts?  The reason I ask is I keep getting
a
  403
   forbidden you do not have permission to access / on this server and
 i'd
   really like to check to see if my install of PHP is working correctly.
  
   Thanks...
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Question about PHP and images

2001-08-15 Thread Kunal Jhunjhunwala

How did you solve it?
Kunal
- Original Message - 
From: Schrotty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 11:18 PM
Subject: [PHP] Re: Question about PHP and images


 My problem is solved!!!
 
 Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I wanted to call a PHP-Skript through a img-Tag and PHP sends a image
 back.
  How can I do that?
 
  Schrotty.*
 
  I'm German, so please be patient with my English.
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] auto-input data into form boxes

2001-08-15 Thread Kunal Jhunjhunwala

Hi,
Try this,

?php
include(datafile.php);
print form action=test2.php method=get;
print centerinput type=text name=alpha value=$alpha
size=5/centerbr;
print centerinput type=text name=numb valus =$numb
size=5/centerbr;
print centerinput type=submit value=Do_It!/center;
print /form;
?

Kunal
- Original Message -
From: Hugh Danaher [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:53 AM
Subject: [PHP] auto-input data into form boxes



I need professional help!

I need to make a form that will display old data in the form boxes, wait for
user input (if they want to change something), and then go on to another
page.  This is what I have now, and it doesn't work:

datafile.php
?php
$alpha=Alpha;
$numb=46;
?

inputpg.php
?php
include(datafile.php);
print form action=test2.php method=get;
print centerinput type=text name=.$alpha. size=5/centerbr;
print centerinput type=text name=.$numb. size=5/centerbr;
print centerinput type=submit value=Do_It!/center;
print /form;
?

test2.php
html
body
?php
print This is alpha.$alpha;
print brthis is numb.$numb;
?
/body
/html



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] record each page

2001-08-15 Thread Kunal Jhunjhunwala

Why not use the mysql limit function?
Kunal
- Original Message -
From: Andrew Austin [EMAIL PROTECTED]
To: Php Lists (E-mail) [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:24 AM
Subject: [PHP] record each page


If i select a group of records from a mysql db is there a way to place each
record on a separate page. Could I put them in an array which is connected
to a session object?

Andrew

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]