[PHP-DEV] need help!

2002-08-01 Thread Sujata Ghosh

hi to all!

i want to do followings using php:

1) i have made a form in html. this form contain user 
details who want to download a pdf file. where 
javascript is handling data validation on submission 
of that user info.

2) after that a php file will open and it takes all 
user's information and send a mail to me along with 
those data and automaically start download that pdf 
file. user won't get any mail.

3) i want to put basic checking of email address also 
so that it will force someone to put correct email 
address.

can any one help me out! let me know, then i will 
submit that php coding also.

thanks in advance,
Sujata Ghosh.
Calcutta, india.



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




Re: [PHP-DEV] Need help with the build system

2002-05-23 Thread Hans Rakers


Thats it! Downgraded to autoconf-2.13 and works like a charm now.
Finally i can get to coding :)

Thanks,

Hans

At 21:14 23-5-2002 +0200, you wrote:
> 2.5x version proved to do not work well with the build
> system. Try 2.13 for a start.
>
> - Markus
>
>On Thu, May 23, 2002 at 07:39:02PM +0200, Hans Rakers wrote :
> >
> > Sorry for replying to my own message, but i realized i may have provided
> > too little info about my setup.
> >
> > Im using Slackware 8.0 with kernel 2.4.18
> > autoconf (GNU Autoconf) 2.50
> > automake (GNU automake) 1.4-p4
> > ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18)
> >
> > Thanks,
> >
> > Hans
> >
> > At 15:26 23-5-2002 +0200, you wrote:
> >
> > >Hello all,
> > >
> > >I'm trying to make a module for php-4.2.1 but i'm having difficulties 
> with
> > >the build system.
> > >
> > >I perform the following steps:
> > >
> > >1. extract a fresh source tree (php-4.2.1)
> > >2. go to ext/ and run ./ext_skel --extname=mymodule
> > >3. edit config.m4 and uncomment some lines to make this:
> > >
> > >PHP_ARG_ENABLE(memusage, whether to enable memusage support,
> > >dnl Make sure that the comment is aligned:
> > >[  --enable-memusage   Enable memusage support])
> > >
> > >if test "$PHP_MEMUSAGE" != "no"; then
> > >  PHP_EXTENSION(memusage, $ext_shared)
> > >fi
> > >
> > >4. go to the root of the source and run ./buildconf
> > >5. run ./configure --enable-mymodule
> > >6. run make, and then i get the error 'make: *** No targets specified and
> > >no makefile found.  Stop.'
> > >
> > >So it seems configure doesnt create a Makefile. I exactly followed the
> > >steps outlined in the manual and the output of ext_skel. Can anyone tell
> > >me whats going wrong here?
> > >
> > >Thanks in advance,
> > >
> > >Hans Rakers
> > >Parse BV, the Netherlands


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




Re: [PHP-DEV] Need help with the build system

2002-05-23 Thread Markus Fischer

2.5x version proved to do not work well with the build
system. Try 2.13 for a start.

- Markus

On Thu, May 23, 2002 at 07:39:02PM +0200, Hans Rakers wrote : 
> 
> Sorry for replying to my own message, but i realized i may have provided 
> too little info about my setup.
> 
> Im using Slackware 8.0 with kernel 2.4.18
> autoconf (GNU Autoconf) 2.50
> automake (GNU automake) 1.4-p4
> ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18)
> 
> Thanks,
> 
> Hans
> 
> At 15:26 23-5-2002 +0200, you wrote:
> 
> >Hello all,
> >
> >I'm trying to make a module for php-4.2.1 but i'm having difficulties with 
> >the build system.
> >
> >I perform the following steps:
> >
> >1. extract a fresh source tree (php-4.2.1)
> >2. go to ext/ and run ./ext_skel --extname=mymodule
> >3. edit config.m4 and uncomment some lines to make this:
> >
> >PHP_ARG_ENABLE(memusage, whether to enable memusage support,
> >dnl Make sure that the comment is aligned:
> >[  --enable-memusage   Enable memusage support])
> >
> >if test "$PHP_MEMUSAGE" != "no"; then
> >  PHP_EXTENSION(memusage, $ext_shared)
> >fi
> >
> >4. go to the root of the source and run ./buildconf
> >5. run ./configure --enable-mymodule
> >6. run make, and then i get the error 'make: *** No targets specified and 
> >no makefile found.  Stop.'
> >
> >So it seems configure doesnt create a Makefile. I exactly followed the 
> >steps outlined in the manual and the output of ext_skel. Can anyone tell 
> >me whats going wrong here?
> >
> >Thanks in advance,
> >
> >Hans Rakers
> >Parse BV, the Netherlands
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
-
"I mean "When in doubt, blame mcrypt" is more often right than wrong :)"
"Always right, never wrong :)"
- Two PHP developers who want to remain unnamed

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




Re: [PHP-DEV] Need help with the build system

2002-05-23 Thread Hans Rakers


Sorry for replying to my own message, but i realized i may have provided 
too little info about my setup.

Im using Slackware 8.0 with kernel 2.4.18
autoconf (GNU Autoconf) 2.50
automake (GNU automake) 1.4-p4
ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18)

Thanks,

Hans

At 15:26 23-5-2002 +0200, you wrote:

>Hello all,
>
>I'm trying to make a module for php-4.2.1 but i'm having difficulties with 
>the build system.
>
>I perform the following steps:
>
>1. extract a fresh source tree (php-4.2.1)
>2. go to ext/ and run ./ext_skel --extname=mymodule
>3. edit config.m4 and uncomment some lines to make this:
>
>PHP_ARG_ENABLE(memusage, whether to enable memusage support,
>dnl Make sure that the comment is aligned:
>[  --enable-memusage   Enable memusage support])
>
>if test "$PHP_MEMUSAGE" != "no"; then
>   PHP_EXTENSION(memusage, $ext_shared)
>fi
>
>4. go to the root of the source and run ./buildconf
>5. run ./configure --enable-mymodule
>6. run make, and then i get the error 'make: *** No targets specified and 
>no makefile found.  Stop.'
>
>So it seems configure doesnt create a Makefile. I exactly followed the 
>steps outlined in the manual and the output of ext_skel. Can anyone tell 
>me whats going wrong here?
>
>Thanks in advance,
>
>Hans Rakers
>Parse BV, the Netherlands


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




[PHP-DEV] Need help with the build system

2002-05-23 Thread Hans Rakers


Hello all,

I'm trying to make a module for php-4.2.1 but i'm having difficulties with 
the build system.

I perform the following steps:

1. extract a fresh source tree (php-4.2.1)
2. go to ext/ and run ./ext_skel --extname=mymodule
3. edit config.m4 and uncomment some lines to make this:

PHP_ARG_ENABLE(memusage, whether to enable memusage support,
dnl Make sure that the comment is aligned:
[  --enable-memusage   Enable memusage support])

if test "$PHP_MEMUSAGE" != "no"; then
   PHP_EXTENSION(memusage, $ext_shared)
fi

4. go to the root of the source and run ./buildconf
5. run ./configure --enable-mymodule
6. run make, and then i get the error 'make: *** No targets specified and 
no makefile found.  Stop.'

So it seems configure doesnt create a Makefile. I exactly followed the 
steps outlined in the manual and the output of ext_skel. Can anyone tell me 
whats going wrong here?

Thanks in advance,

Hans Rakers
Parse BV, the Netherlands


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




RE: [PHP-DEV] need help!

2002-03-10 Thread Dave Brotherstone

You're asking on the wrong list.  It's php-general you need to subscribe to.
This list is for development *OF* PHP, not IN PHP.


> -Original Message-
> From: its me [mailto:[EMAIL PROTECTED]]
> Sent: 10 March 2002 06:01
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] need help!
>
>
> i have in java script an array:
>
> var computerArray =  new Array("('Select sub-category','',true,true)",
> "('Hardware')",
> "('Monitors')",
> "('Printers')",
> "('Other')");
>
> but i want to create the items:
>
> "('Hardware')",
> "('Monitors')",
> "('Printers')",
> "('Other')
>
> dynamicaly from database
>
> and this array must stay in javascript i can't create it with
> only  php because its elements are a drop down menu which change
> with the change of another drop down menu..so it must remain in
> javascript...
>
> the whole script is:
>
> 
> <!--
>
> var computerArray =  new Array("('Select sub-category','',true,true)",
> "('Hardware')",
> "('Monitors')",
> "('Printers')",
> "('Other')");
> var carsArray =  new Array("('Select sub-category','',true,true)",
> "('Vans')",
> "('Sedan')",
> "('Spor')",
> "('Other')");
>
> function populateCategory(inForm,selected) {
> var selectedArray = eval(selected + "Array");
> while (selectedArray.length < inForm.subcategory.options.length) {
> inForm.subcategory.options[(inForm.subcategory.options.length -
> 1)] = null;
> }
> for (var i=0; i < selectedArray.length; i++) {
> eval("inForm.subcategory.options[i]=" + "new Option" + selectedArray[i]);
> }
> if (inForm.category.options[0].value == '') {
> inForm.category.options[0]= null;
> if ( navigator.appName == 'Netscape') {
> if (parseInt(navigator.appVersion) < 4) {
> window.history.go(0);
> }
> else {
> if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
> window.history.go(0);
> }
>  }
>   }
>}
> }
> // End -->
> 
> 
> 
>
> 
> 
>  onChange="populateCategory(document.globe,document.globe.category.
> options[document.globe.category.selectedIndex].value)">
> Select Category
> Cars
> Computer
> 
> 
> <
> 
> 
> 
>
> 
>
>
>
>
>
> Rehab M.Shouman
>
> 
> 
>
>
> -
> Express yourself with a super cool email address from BigMailBox.com.
> Hundreds of choices. It's free!
> http://www.bigmailbox.com
> -
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] need help!

2002-03-09 Thread its me

i have in java script an array:

var computerArray =  new Array("('Select sub-category','',true,true)",
"('Hardware')",
"('Monitors')",
"('Printers')",
"('Other')");

but i want to create the items:

"('Hardware')",
"('Monitors')",
"('Printers')",
"('Other')

dynamicaly from database

and this array must stay in javascript i can't create it with only  php because its 
elements are a drop down menu which change with the change of another drop down 
menu..so it must remain in javascript...

the whole script is:










Select Category
Cars
Computer


<










Rehab M.Shouman





-
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
-

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




Re: [PHP-DEV] NEED HELP: select box repeat

2001-09-17 Thread Markus Fischer

Argl.

Really, this isn't a support forum. Please ask on
[EMAIL PROTECTED] .

On Mon, Sep 17, 2001 at 11:11:28AM -0700, User Name wrote : 
[support question skipped]

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] NEED HELP: select box repeat

2001-09-17 Thread User Name

OK I am trying to write a script that will bring data out of a database into 
a select box. But what I need it to do is repeat 5 times or more depending 
on what it brings out. I can only get it to display one select box. Here is 
what I got so far:




Flavors Select









">








Please HELP

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Need Help!!

2001-05-22 Thread James Moore


> Yes.  There is nothing specific in there about compiling the 
> code under windows. Brian

Oh I must be dreaming then when I looked at
http://www.php.net/manual/en/install-windows.php#install.windows.build..
Supprising what you imagine isnt it?? :)

- James


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Need Help!!

2001-05-22 Thread Lars Torben Wilson

Brian Little writes:
> Yes.  There is nothing specific in there about compiling the code under
> windows.
> Brian

Is this not helpful, or are you specifically looking for something else?

 http://www.php.net/manual/en/install-windows.php#install.windows.build

Torben

> ""James Moore"" <[EMAIL PROTECTED]> wrote in message
> 01c0e2f6$4aacba80$010a@zeus">news:01c0e2f6$4aacba80$010a@zeus...
> >
> > > I want to try to fix the character truncation problem when
> > > using an mssql database, but I can't seem to figure out how
> > > to compile PHP under VC 6.  I have searched all over the site
> > > for some insight into what to do, but I am still having
> > > problems creating/finding TSRM.mak.  Any and all help would
> > > be apreciated.
> >
> > Have you tried reading the manual??
> >
> > - James
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 +1.604.709.0506


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Need Help!!

2001-05-22 Thread Brian Little

Yes.  There is nothing specific in there about compiling the code under
windows.
Brian

""James Moore"" <[EMAIL PROTECTED]> wrote in message
01c0e2f6$4aacba80$010a@zeus">news:01c0e2f6$4aacba80$010a@zeus...
>
> > I want to try to fix the character truncation problem when
> > using an mssql database, but I can't seem to figure out how
> > to compile PHP under VC 6.  I have searched all over the site
> > for some insight into what to do, but I am still having
> > problems creating/finding TSRM.mak.  Any and all help would
> > be apreciated.
>
> Have you tried reading the manual??
>
> - James
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Need Help!!

2001-05-22 Thread James Moore


> I want to try to fix the character truncation problem when 
> using an mssql database, but I can't seem to figure out how 
> to compile PHP under VC 6.  I have searched all over the site 
> for some insight into what to do, but I am still having 
> problems creating/finding TSRM.mak.  Any and all help would 
> be apreciated.

Have you tried reading the manual??

- James


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Need Help!!

2001-05-22 Thread Brian Little

I want to try to fix the character truncation problem when using an mssql
database, but I can't seem to figure out how to compile PHP under VC 6.  I
have searched all over the site for some insight into what to do, but I am
still having problems creating/finding TSRM.mak.  Any and all help would be
apreciated.

Brian

P.S.  The problem I refer to is that in the php_mssql.dll extension char and
varchar are treated as chars, this limits the length of the string to 256
characters.  But, the problem is that and nvarchar in MS SQL can be up to
4000 characters!  So, I want to try to fix the problem in the dll, but it
requires the php dll and so on.



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Need help in converting strings to doubles

2001-05-02 Thread Andi Gutmans

How did this reach me so late? :)

Andi

At 03:40 PM 5/30/2000 +0200, [EMAIL PROTECTED] wrote:
>On Mon, May 29, 2000 at 08:56:38PM +0300, Andi Gutmans wrote:
> > Guys,
> >
> > I wrote a conversion function which converts strings to double. I am
> > hoping to use it instead of strtod(). The main issue I have left (except
> > for supporting end_ptr which will take me a few minutes), is how to detect
> > overflow and underflows and thus, support the return of +/- HUGE_VAL and
> > the setting of errno to ERANGE like strtod() does.
> >
> > Does anyone here have an idea of how to write such support? The glibc
> > source looks quite horrible.
> >
> > Take a look at zend_operators.c:zend_string_to_double()
>
> as i said in my 1st mail, it looks too simple...
>
> have you had a look at the OpenBSD implemetation?
>
> >
> > Thanks,
> >
> > Andi
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>--
>
>Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
>Digital Collections Phone +49 40 235350 Fax +49 40 23535180
>Hammerbrookstr. 93  20097 Hamburg / Germany
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] NEED HELP

2001-03-13 Thread Madap anismit

i have to do fopen but it's terminating due to Read Error

the code is:
fopen($url, "r");

so i have to check is this code is terminate due to Read Error or not. If it 
is resulting Read Error then i Have to repeat it again till the url is 
successfully open.

PADAM TIMSINA
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] NEED HELP

2001-03-12 Thread Madona angles

pls tell me how to check

fopen("http://.", "r");
returns an read error message or not

PADAM TIMSINA
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]