[PHP] Multidimensional Array manipluation...

2003-01-02 Thread Dhaval Desai
Hello ppl,

I was trying to do something with an array...I guess you could see what I 
mean from the code below:


$test[0] = "hey";
$test[1] = "hi";
$test[2] = "hello";

Now I want to hold various values in $test[0]["hey"] = "1" and 
$test[1]["hi"] = "2" and $test[2]["hello"] = "3"
and then I want to use the function let's say in_array("hey", $test) and if 
it's found in the array I want to update the value in that array from 1 to 
1+1 or anything...

All of the above would be done dynamically from database, the above is just 
to get the Logic..I hope it's possible...I am keeping my fingers crossed...

Thank You
Best Regards,
Dhaval


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: [PHP] Multidimensional Array manipluation...

2003-01-02 Thread Dhaval Desai
Hi,

Thanx for the reply, well but what about the second part or my mail..

I want to use in_array("value", $array);
and if found, I want to update the value of that variable...


$test["0"]["hey"] = 1;
$test["1"]["hi"] = 2;
$test["2"]["hello"] = 3;


I want to update $test["0"]["hey"] and set it as 1+1;
I think it's possible using splice()m I don't know exactly how to use it 
with Multi Dimensional arrays

Also is there any idea on how can we count() the values in a multi 
dimensional arrays...


Thanx




From: Chris Shiflett <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Dhaval Desai <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: [PHP] Multidimensional Array manipluation...
Date: Thu, 2 Jan 2003 09:04:27 -0800 (PST)

--- Dhaval Desai <[EMAIL PROTECTED]> wrote:
> $test[0] = "hey";
> $test[1] = "hi";
> $test[2] = "hello";
>
> Now I want to hold various values in $test[0]["hey"] =
> "1" and $test[1]["hi"] = "2" and $test[2]["hello"] = "3"

Try this instead:

$test["0"]["hey"] = 1;
$test["1"]["hi"] = 2;
$test["2"]["hello"] = 3;

Also, remember that you can often learn these types of
things with trial and error by using the print_r()
function:

print_r($test);

Chris



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Re: [PHP] Multidimensional Array manipluation...

2003-01-02 Thread Dhaval Desai
Hi,

Well, I will be having something like this:

$se5f2254321s65s32s65[] will hold various valus like jan_1,jan-2,jan_3,jan_4 
etc and then jan_1 will hold 1, jan_2=2,, jan_3=1 etc etc...

Depending on certain conditions, I want to increment the values of certain 
values in the array...like...
for($i=0; $i<=count($se5f2254321s65s32s65); $i++)
  {
  $se5f2254321s65s32s65[$i]["jan_1"] = 1
  }
I want to increment it with 1 and so on for the various other values


Thanx

Best Regards,
Dhaval





From: Chris Shiflett <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Dhaval Desai <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Multidimensional Array manipluation...
Date: Thu, 2 Jan 2003 09:30:43 -0800 (PST)

> >$test["0"]["hey"] = 1;
> >$test["1"]["hi"] = 2;
> >$test["2"]["hello"] = 3;
>
> I want to update $test["0"]["hey"] and set it as 1+1;

If you just want to increment the value:

$test["0"]["hey"]++;

> Also is there any idea on how can we count() the values
> in a multi dimensional arrays...

The function array_count_values() might give you what you
want. What are you wanting to count exactly?

A good reference for you online is:

http://www.php.net/manual/en/ref.array.php

Chris



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



[PHP] Date Comparison

2003-01-11 Thread Dhaval Desai
Hello ppl,


Well, I want to compate date is php, could anybody tell me which is the best 
way to do so? I have tried various ways but nothing seems consistent.
I tried for example:
if("2003-1-15" > "2003-1-11")
{
echo "true";

}
which doesn't work in some cases...

Thank you!


Best Regards,
Dhaval




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



[PHP] Php's future with Asp .NET?

2003-01-15 Thread Dhaval Desai
Hello ppl,

I was just wondering what is php's future with something like Asp .Net 
coming up...I have read many articles by Php guys who think Asp.Net is the 
future. If that's the true case...is it really worth sticking to Php at all?

Thanx!
-Dhaval





_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



[PHP] referer keywords

2003-01-21 Thread Dhaval Desai
Hello ppl,

I want to find out what keywords are people exactly using to get to my 
website and from where are they coming(Which search engine?)...I want to 
make a custom script, I don't want to use my web server logs or anything... 
Is it possible..??

- Dhaval




_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



[PHP] Date formating

2003-02-15 Thread Dhaval Desai
Hi,

I have a string in this format:
2003-02-15 13:19:02

I want to display it in a more readable format like Staurday, 11 Februardy, 
2003, 13:19:02. How can I achieve that. I tried date() function but could 
not get what I wanted.

-Dhaval





_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



[PHP] Checkbox related...

2003-02-16 Thread Dhaval Desai
Hi everybody,

I have a form with 5 checkboxes. I want to make sure that a user checks 
atleast 2 boxes before he can proceed. How can that be made possible.

Thank you

-Dhaval





_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: [PHP] Checkbox related...

2003-02-16 Thread Dhaval Desai
How do we do it using the first option i.e javascript to count how many 
boxes are checked...could you give some example...

Thanx

-Dhaval






From: "David McInnis" <[EMAIL PROTECTED]>
To: "'Dhaval Desai'" <[EMAIL PROTECTED]>
Subject: RE: [PHP] Checkbox related...
Date: Sun, 16 Feb 2003 10:59:17 -0800

You can use javascript to count the number of items checked or you can
check the size of your array once the form has been submitted to the
server.

David

-----Original Message-
From: Dhaval Desai [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 10:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Checkbox related...

Hi everybody,

I have a form with 5 checkboxes. I want to make sure that a user checks
atleast 2 boxes before he can proceed. How can that be made possible.

Thank you

-Dhaval





_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



[PHP] Mysql Date problem...weird..

2003-02-28 Thread Dhaval Desai
Hello,

Please read the below query and the information that I have mentioned. This 
is really weird...



select  date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-

%m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN

'2003-02-01' AND '2003-02-10')



When it goes to database the values will be substituted as follows for 1 
row:

select  date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d')

as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND

'2003-02-10')

which should return 1 row since, the query will return
dept_date1 = '2003-02-05' which falls between the dates '2003-02-01' AND
'2003-02-10'

but I am getting 0 result.

SO then I tried,

select  date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d')

as dept_date1 from mytable where ('dept_date1' >= '2003-02-01')

IT WORKED!!!

then I tried,

select  date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d')

as dept_date1 from mytable where ('dept_date1' <= '2003-02-10')

IT gave 0 result

then I tried,

select  date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d')

as dept_date1 from mytable where ('dept_date1' >='2003-02-01' AND

'dept_date1' <= '2003-02-10')

IT gave 0 result



What could be the problem, could anybody help me please...

-Dhaval

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


[PHP] Mysql Date got prob!

2003-02-28 Thread Dhaval Desai
Hello,

As related to my earlier question

select  date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-
%m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN
'2003-02-01' AND '2003-02-10')
The above query is valid but returns 0 because 'dept_date1' is treated as a 
string. I want dept_date1 to be treated as  date so that it can be compared.

I hope it is possible...

Thank you!

-Dhaval

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


[PHP] RE: Mysql Date got prob!

2003-03-01 Thread Dhaval Desai
Hi,

Thanx for yor reply. Well It worked for me with the same query when I used 
"HAVING" instead of "where". This is what I got from Mysql Database. However 
the solution that you have showed is reall good as well.

Thanx
-Dhaval





From: "Uttam" <[EMAIL PROTECTED]>
To: "'Dhaval Desai'" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: RE: Mysql Date got prob!
Date: Sat, 1 Mar 2003 13:45:53 +0530
try:

select
date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-%m-%d') as
dept_date1
from mytable
where
(date_add(arrivaldate1, INTERVAL nights1 DAY) BETWEEN '2003-02-01' AND
'2003-02-10')
regds,
-Original Message-
From: Dhaval Desai [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 15:48
To: [EMAIL PROTECTED]
Subject: Mysql Date got prob!
Hello,

As related to my earlier question

select  date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-
%m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN
'2003-02-01' AND '2003-02-10')
The above query is valid but returns 0 because 'dept_date1' is treated
as a
string. I want dept_date1 to be treated as  date so that it can be
compared.
I hope it is possible...

Thank you!

-Dhaval

_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


[PHP] Php +Xml?

2003-03-07 Thread Dhaval Desai
Hello people,

I want to start using Xml with php. How do I install xml on Apache with Php? 
I am running redhat 7.2,Apache 1.3.12 and php latest version.

How do I install xml? I am totally new to Xmland want to start 
somewhere...

-Dhaval





_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


[PHP] Automatic Colspan from database data

2002-11-09 Thread Dhaval Desai




Hi everybody!


Well this is how it goes...

For the month of January there are 31 days...
so there are 2 rows in this table on the top row there are 31 columns 
showing 31 days...and in the row below this one we will have to 
generatecolspan based on the below information pulled from the 
database...

211


in the above case we will have to get a colspan as follows:

 2 
 1 
 9 
colspan="4"> 2 



This is all I want to doI know it is difficult...but still waiting for 
some genius!


Thank You!
Dhaval


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Dhaval Desai
Hi!

Well I have 12 table for 2 years which makes it 24 tables named as:
jan_2002, feb_2002 ...etc dec_2002
jan_2003, feb_2003 ...etc dec_2003

Each table has fields according to the number of days in the month plus 1 
field as a unique key.

Each registration will create 1 entry in 24 tables each and it can only be 
modified as 1 entry per registrant per table.
the fields in each table will take values ranging rom 1-20.

Well that's all about how my tables are in the database.


Thank You for your time

Dhaval Desai









From: Marco Tabini <[EMAIL PROTECTED]>
To: Dhaval Desai <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Automatic Colspan from database data
Date: 09 Nov 2002 13:34:20 -0500

How is your database organized? you might be able to pull this
information from the query by using an appropriate group-by clause.


Marco
--

php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com

On Sat, 2002-11-09 at 11:57, Dhaval Desai wrote:
>
>
>
>
> Hi everybody!
>
>
> Well this is how it goes...
>
> For the month of January there are 31 days...
> so there are 2 rows in this table on the top row there are 31 columns
> showing 31 days...and in the row below this one we will have to
> generatecolspan based on the below information pulled from the
> database...
>
> 211
>
>
> in the above case we will have to get a colspan as follows:
> 
>   2 
>   1 
>   9 
>  colspan="4"> 2 
> 
>
>
> This is all I want to doI know it is difficult...but still waiting 
for
> some genius!
>
>
> Thank You!
> Dhaval
>
>
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Dhaval Desai
Hi!


Well let's make it simple.. We can see that the following values:

211
are stored in just one row in 31 different columns.

Bsaed on this if we were to make a table with colspans how would it go..?


Thank you

Dhaval










From: Marco Tabini <[EMAIL PROTECTED]>
To: Dhaval Desai <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Automatic Colspan from database data
Date: 09 Nov 2002 15:10:39 -0500

Ouch...


well, assuming you have two columns: day_id and value, here's a possible
solution:

$rs = mysql_query ('select day_id, value from my_table order by
day_id');
$a = mysql_fetch_assoc ($rs);

do
{
	$i = 1;
	$control = $a['value'];

	while (($a = mysql_fetch_assoc ($rs)) && $a['value'] == $control)
		$i++;

	echo '' . $control . '';
} while ($a);

This is a bit rough and can probably be optimized quite a bit, plus I
can't test it, so I'm not sure that it will work the first time.
Hopefully, it gives you an idea of how it could be done.

If I could make a suggestion without knowing how your system works, I
think you should revisit your database design a little.

Hope this helps,


Marco

--

php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com

On Sat, 2002-11-09 at 14:32, Dhaval Desai wrote:
> Hi!
>
> Well I have 12 table for 2 years which makes it 24 tables named as:
> jan_2002, feb_2002 ...etc dec_2002
> jan_2003, feb_2003 ...etc dec_2003
>
> Each table has fields according to the number of days in the month plus 
1
> field as a unique key.
>
> Each registration will create 1 entry in 24 tables each and it can only 
be
> modified as 1 entry per registrant per table.
> the fields in each table will take values ranging rom 1-20.
>
> Well that's all about how my tables are in the database.
>
>
> Thank You for your time
>
> Dhaval Desai
>
>
>
>
>
>
>
>
>
> >From: Marco Tabini <[EMAIL PROTECTED]>
> >To: Dhaval Desai <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: [PHP] Automatic Colspan from database data
> >Date: 09 Nov 2002 13:34:20 -0500
> >
> >How is your database organized? you might be able to pull this
> >information from the query by using an appropriate group-by clause.
> >
> >
> >Marco
> >--
> >
> >php|architect - The magazine for PHP Professionals
> >The first monthly worldwide magazine dedicated to PHP programmers
> >Check us out on the web at http://www.phparch.com
> >
> >On Sat, 2002-11-09 at 11:57, Dhaval Desai wrote:
> > >
> > >
> > >
> > >
> > > Hi everybody!
> > >
> > >
> > > Well this is how it goes...
> > >
> > > For the month of January there are 31 days...
> > > so there are 2 rows in this table on the top row there are 31 
columns
> > > showing 31 days...and in the row below this one we will have to
> > > generatecolspan based on the below information pulled from the
> > > database...
> > >
> > > 211
> > >
> > >
> > > in the above case we will have to get a colspan as follows:
> > > 
> > >   2 
> > >   1 
> > >   9 
> > >  colspan="4"> 2 
> > > 
> > >
> > >
> > > This is all I want to doI know it is difficult...but still 
waiting
> >for
> > > some genius!
> > >
> > >
> > > Thank You!
> > > Dhaval
> > >
> > >
> > > _
> > > Add photos to your messages with MSN 8. Get 2 months FREE*.
> > > http://join.msn.com/?page=features/featuredemail
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
>
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> 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


_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



[PHP] Strange ....Date problem

2002-11-10 Thread Dhaval Desai
Hi!

If you try this in php:

2002-01-6 > 2002-01-10
returns true

2002-01-6 > 2002-01-9
returns false

Jut a leading 0 in the date makes it false...this is really strange..

Any comments?





_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



[PHP] Installing php with gd what a pain!

2003-09-08 Thread Dhaval Desai
Hello Guys,

I am trying to install php 4.3.2 with gd support. I have already installed 
zlib and jpeg-6b. My configure line options are as below:

./configure --with-gd --with-jpeg-dir=/usr/lib
it doesn't work.
I tried
./configure --with-gd --with-jpeg-dir=/usr/local/bin
it still doesn't work even tough all the cjpeg and djpeg files are there...


it says libjpeg not found for both

Could anybody tell me what could be wrong?

-Dhaval

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


[PHP] Months...Problem..

2001-01-12 Thread Dhaval Desai

Hiee!


I am having a problem with months...count in a mysql
database..

See what I want is 

1st column  will have the current date..
2nd column will add 7 to the current date and store
it.


This will be for all the 12 months..
So I want the things to happen automatically..I mean
one script which will check the months and
automatically show output in html page where one
columns as :
Date when entry was made.


Second Column
Date when it expires = [Date when entry was made + 7]

I really got confused..with this one..Coz When I get
current date for the month of January as 30, the
expire date becomes... 37.
LOL [not logical,,perhaps bad programming on my part];



Help me out please..


Thanx!
Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] SMs

2001-01-13 Thread Dhaval Desai

HI!

I am trying to build a SMS(Short message service)
mesaging system..can anybody tell me what are the
requirements for this...

Thanx a lot!
Dhaval Desai


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] MSQL and php creating problem with date..

2001-01-14 Thread Dhaval Desai

Hiee Guys I am trying to do the following: but I get
an error saying:


*
You have an error in your SQL syntax near
'dayofmonth(date_add('', INTERVAL 7 DAY)))' at line 2
*









Can anybody help me out please....


Thanx!
Dhaval Desai






__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] is 1 a Variable...Discoverd it just now...

2001-01-16 Thread Dhaval Desai


HI!


When I run the foillowing code:


" method="post">


 --
 1
 2
 3
 4
 5
 
  
 

"  ."";
}
}
else
{
echo "";
}
?>

I get error on saying echo $i on the next page...



Parse error: parse error, expecting `T_VARIABLE' or `'$'' in 
C:\HTTPD\HTDOCS\preston\sms\send.php




WHy is it so..?
Is there any other way of doing the above...

Please let me know..

 

 

Thanx a lot!

Dhaval Desai


 



-
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.


[PHP] Integers are not Variables..???

2001-01-16 Thread Dhaval Desai


Hi Guys!!

Below is my code:(which works but See the ourput on this pageplease...

http://dhaval.isamillionaire.com/loop.php

" method="post">


  --
  1
  2
  3
  4
  5
  
   
  

 "  ."";
 }
}
 else
 {
echo "";
 }
 
echo " ";
 ?>

I want to accomplish the above..any idea how is it possible..?

 

 

Thanx everybody..

Dhaval Desai

 

 

 

 



-
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.


[PHP] Ms SQL Error with php3.0

2001-01-17 Thread Dhaval Desai

HI!

I am switching from MYSQL to MsSql.

While I tried making a conection like donw below...I
get the following error:





Fatal error: Call to unsupported or undefined function
mssql_connect() in C:\HTTPD\HTDOCS\mssql.php3 on line
3

I have uncommented the ; in the php3.ini file.

I am using Windows 98 and Omnichttpd 2.0 Server.

Please help me out.

Thanx a liot!
Dhaval Desai







__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] HTTP_REFERER doesn't work with redirects...?

2001-02-21 Thread Dhaval Desai

Hi!


I just want to get the URL of the page that is
redirecting to the other page.
For example..

I  have two files 
login.php
something.php


Something.php has a line saying:




So When I open Something.php it automatically takes me
to login.php. On the login.php page I have the
following lines




It doesn't seem to work. I think the problem is
because I don't click and go to something.php. I am
getting redirected to the file./ SO is there nay other
way I can get the URL of the file Which is
redirecting.


Thanx a lot

Cheers!~
Dhaval Desai

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




[PHP] Cookie stored but cannot trigger the function...

2001-02-22 Thread Dhaval Desai

Hi!


Check ou this website:

THe problem is that when u Click on anyof the links on
the left..
Currently only the Equity link..It will check for a
cookie in your browser, if cookie is found then It''ll
show u the content but if not found it'll redirect to
lohin.php page.

Before redirecting it will also store a cookie in the
browser named camefrom.


SO then On the login.php page a user enters username
and pasword and Submits.. if user is found then It has
to get the Cookie value like this:

$goto = $HTTP_COOKIE_VARS['camefrom'];

header ("Location: $goto");


but the problem is that it goes back to login.php
instead of equity.php


Si there any possible reason for this..?


Thanx! 

Cheers!~
Dhaval Desai

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




[PHP] Upload --Permission denied simple error...

2001-02-23 Thread Dhaval Desai

hi!


I have fws simple lines:




Warning: Unable to create 'C:\': Permission denied in
c:\phpdev2\www\upload\action.php on line 3



and I get this error..I tried coyping to D:\ too but
the same error..



Can u tell me what could be the problem possibly..

Thank you
Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Change dir mode to writable for uploading..

2001-02-24 Thread Dhaval Desai

Hi!

I have problem uploading the file to a  directory...
It says permission denied. THe problem is taht ther
directory is on the web.
I connect using WS_ftp.
THe directory is set to:

drwxr-xr-x

How do I make it writable..?


I am using form to upload the files there..


Is there any way I can make the directory writable..?

Thank You!

Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Move a file from dir to another or delete file..?

2001-02-27 Thread Dhaval Desai

Hi!


Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.


Is there any way I can move a file from one directory
to another and also is tehre any way I can delete a
particluar file in a directory..




Thank You!
Cheers!~
Dhaval Desai




__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Move a file from dir to another or delete file..?

2001-02-27 Thread Dhaval Desai

Hi!


Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.


Is there any way I can move a file from one directory
to another and also is tehre any way I can delete a
particluar file in a directory..




Thank You!
Cheers!~
Dhaval Desai




__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] ++$i and $i++ whatz the difference?

2001-02-27 Thread Dhaval Desai

Hi!

I have a simple question. Please see the code below:

";

}
?>

Now, See this code:

";

}
?>

I get the same out put from both the Scrits. What's
the difference then anywayz?


Thank You!
Dhaval Desai














__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] found a bug with File Uploads..

2001-02-28 Thread Dhaval Desai

Hi!

I think I just found a bug in php.

I try to upload a file of size 37.0 K and you know
what happens.,,

The browser takes its own time..and the stupid thing
doesnot upload the file.

If I upload a file of size 2k then it uploads..


I have specified the file size in the form as :




In Php.ini file I have found 8M is the maximum size..


I am running php 4.0.3pl1 wioth Apache on Windows 98.
I also have a server on Cqhost.com

I have seen the same happen there,.too...


Is this a bug or a problem..??


Please Reply

Cheers!~
Dhaval Desai







__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] File upload not for Netscape?

2001-03-02 Thread Dhaval Desai

Hi!

File upload doesn't seem to work from Netscape.
It works with Internet Explorer.

In netscape it says Network Error Occured..

Why's that..?

Thanl You!
Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] File Upload doesn't work with Netscape Serious problem!

2001-03-04 Thread Dhaval Desai

Hi!


File upload doesn't work with Netscape Navigato. I
have Netscape COmmunicator 4.5. I try to upload files
and I get Network Error.


If it is working for any of you guys please give me
the URL so that I can test it out and check my
problem..

Help me out.


Thank You!
Cheers!~
Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Not Allowing REload or REfresh with this script?

2001-03-06 Thread Dhaval Desai

Hi!


Well I need help with something. I have a form which
has a ction to a file called actio.php
Now When I hit the submit button. It goes to the file
and it performs a certain action as seen below:

action.php: is as follows:




My main intentyion is to unset the variable so that
When the page is REFRESHED or RELOADED. It should
execute the else code block.


I am trying to implement it on one of my websites
where users can not refresh a particular a page.


Thank You
Dhaval Desai




__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Cookies creating Unwanted Problem....

2001-03-10 Thread Dhaval Desai

Hi!


This website is authenticated using cookies.
I don't understand why..? Id works from some computers
and doesn't work from some computers...


The Operating System is Same. The Browser is also the
same one INTERNET EXPLORER 5.0.


Is there any reason why this is happening.

Checck out this website URL for details.

http://www.uaegraduate.com/jobseekers_login.php
Username: testing
Password: testing

I have used cookies to autheticate on this one.


Thank You
Dhaval Desai





__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




[PHP] Have you ever seen this?

2001-03-12 Thread Dhaval Desai

Hi!

I know this is in no way related to Php but I am
writing this mail coz I didn't know where to ask this
question and I am sure there are a lot of Web
Developers and Programmers who can help me out.

Well There are some versions of some sites in two
languages and both of them work equally well even If
your system doesn't have fonts.
It uses some kindaa server font management I gues..

Has anyone of you all out there worked on some site
like that or have any idea on how it works.

I can give you the URL:

http://www.arabia.com





__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




[PHP] I need the command line...

2001-03-13 Thread Dhaval Desai

Hi!

CAn anybody give me the command line of Mysql for
doing the following.

I want to have three columns

id
firstname
age

the id field mu auto_inrement..meaning it should
automatically goas 1.2.3.4.5.6 as someone inserts
values into firstname and age.



Thank You
Dhaval Desai


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




[PHP] php or Mysql for DATE?

2001-03-14 Thread Dhaval Desai

I want to have a posting column wherein people can
post their messages and when a new message is posted
the Curent date has to be added in the mysql database.

Do u think I should use Php to generate the date or
should I have mysql to generate the date.

I am also going to allow people to search for messages
as per date. For example 

Search for messasges in the last week and stuff..


Please advice me..


THank You
Dhaval Deasi


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




[PHP] Newsletter kindaa thing

2001-03-20 Thread Dhaval Desai

Hi@

I have a database in whih I have a lot of emails. What
I want to do is basically a small newsletter kindaa
thing which is to be mailed to all the emails which I
am goingto pick from the database.

If I use

while($r=mysql_fetch_array($result)
{
$email = $r['email'];
}
and then use the mail() function to email. It will
just go to one person . I want it to go to all the ppl
in the list. 



Thank YOu
Dhaval Desai

Thank yOu

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Credit Card Class...how do u access?

2001-04-20 Thread Dhaval Desai

Hi!

I have the following class for checking a credit card
type.Can anybody tell me how do I access this class. I
mean how should I check a credit card type using this
class..?

Thank you
DHaval Desai


$valid, 'type' => $type); 
} 
} 

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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




[PHP] Credit Card easy script ..how 2 get results?

2001-04-20 Thread Dhaval Desai

Hi!

Well the Class that I had sent earlier was really
complicated. SO I just found an easier script. Can
anybody tell me how this should work. If it returns 1,
0, -1 what should I do?. I am a begineer so please
bear with me.

THank You


=0;  $i-=2){  
$dbl[$j]  =  $dig[$i]  *  2;  
$j++;  
} 
$dblsz  =  sizeof($dbl);  
$validate  =0;  
for  ($i=0;$i<$dblsz;$i++){  
$add  =  toCharArray($dbl[$i]);  
for  ($j=0;$j=0;  $i-=2){  
$validate  +=  $dig[$i];   
}  
if  (substr($validate,  -1,  1)  ==  '0') 
return  1;  
else  return  0;  
}  



?>

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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




[PHP] Mysql unique statement help...

2002-04-02 Thread Dhaval Desai



Hello,

Well I have a field in Mysql Database called threadid.
I have unique threadid's stored in this field. But the
problem is that I have like 10 entries for each
threadid. When I do a select statement for Mysql I
want only unique threadid's to be read.

How do I do that because I didn't find any function as
unique() under Mysql.

Could anybody help me out please.


Thank You
Best Regards,
Dhaval Desai


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




[PHP] English/Arabic Mysql problem...

2002-04-03 Thread Dhaval Desai

Hello people,

I am making a bilingual website English/Arabic. I am facing some problem 
with this. The problem is that I am not able to insert arabic lanaguage 
characters ionto Mysql databse. It gets junk characters...when I try to 
display it...

Thank You

Best Regards,
Dhaval Desai



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




[PHP] Frames creating problems...

2001-12-10 Thread dhaval desai

Hello Guys,

Well I have a website with frames. The problem here is
that I have a serach box in the top frame and I want
the results to be displayed in the other frame.

I have seen this on lot of websites but now I am
wondering how to do it when I am facing this problem..

Any help would be greately appreciated.

Thanx to all

Best Regards,
Dhaval Desai



__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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




[PHP] Emails from database...

2001-04-04 Thread Dhaval Desai

Hi!


This is my code for sending email to all the emails in
my database:

$connect = mysql_connecT();
$query = "select email from table";
$execute = mysql_db_query("database", $query);

while($r=mysql_fetch_array($execute))
{
$email .= $r('email')

mail("$email", "My Subject", "Line 1\nLine 2\nLine
3");
}



Will this send email to all the emails in the
database?
Is there any otehr wya of doing it?


Thank You

Dhaval Desai


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Dhaval Desai

Hi!

Well, I want to send an email to about 300 people. The
problem is that if I use  this method people can see
all the email address of the people whoever it is sent
to.


\n";
$headers .= "Content-Type: text/html;
charset=iso-8859-1\n"; 

$subject = "hey";
$to = "$add";
$mailmessage = "hey this is the message";

$mailsomeone = mail($to, $subject, $mailmessage,
$headers);

if($mailsomeone)
{
echo "Success";
}

?>


If I use the above method, all the email  address will
apear in the to: like this:-
To:[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] 

and goes on for 300 entries.


Is there any way I can stop this from happening yet
the mails reaching their destination.


Thank You

Cheers!~
Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] bcc, cc limit on recepients?

2001-04-07 Thread Dhaval Desai

Hi!


Is there any limit on the number of recepients that a
bcc or a cc field email can be sent to?

I have a loop which extracts arounf 400 emails from
the database and then sends it as email to all the 400
recepients but the script fails and I get a mysql
error.

SO is there any limit on the number of recepients?


Thank you
Dhaval Desai

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[PHP] hotmail, yahoo..why can't me?

2001-07-04 Thread Dhaval Desai

Hi!

I wanna do something like in ur mailboxes. if u check
ur hotemail or yahoo a/c u can find checkboxes on the
left side of each message. U can check the boxes and
delete the messages..

I want to delete certain rows that come out of a
database. So if I have 20 records coming out of the
databases i want a checkbox on the left of each
message so that I can delete some of them if i want.


Is there a way.. i don't seem to get the logic to do
this..

Please help me out...


Thank You
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




[PHP] Credit Card script that really works...

2001-07-12 Thread Dhaval Desai

Hi!


Well I jsut downloaded the credit card script from
this website:

http://tobiac.supereva.it/checkcard.zip


I just have one problem with the script. When the
checkcard.php page loads for the first time I get this
message always invalid length INVALID, is there any
way I can stop this message when it loads for the
first time...


I really appreciate any help from anyone...


Thank You
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




[PHP] Code works in reverse order...

2001-07-18 Thread Dhaval Desai

Hello everybody


The below code is going crazy..and doing the reverse
thing... 
when the value of $check!="" for example still it
shows thankyou.html page. But if I reverse the code
meaning if($check!="") then insert into database..it
doesn't do that  it does the reverse thing. Is
something wrong with the code?

Thank You 
Dhaval Desai





__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




[PHP] Page Expired...!!!

2001-07-19 Thread Dhaval Desai

Hi!

Well I have a form page. WHen people submit the
information, they and they go to the other page where
form action is specified, they should not be able to
come back to the form page. They should get a message
saying the Page expired. The concept is used on
http://www.mtnsms.com

Please tell me how is this possible.


Thank You
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




[PHP] session_encode doesn't work....

2001-09-03 Thread Dhaval Desai

Hi!

I want to encode a variable data this way...

session_start();
session_register("dhaval");
$dhaval = "trythisout";
session_encode($dhaval);


when I check out the c:\tmp\ directory and  check out
the session data I can still read the same as
dhaval=trythisout and it's not encoded...is it coz the
session_encode isn';t working or that I am wrong
somewhere..?


Thanx


Dhaval Desai






__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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




[PHP] Expire page...

2001-09-10 Thread Dhaval Desai

Hi!


Well I would like to expire a page after you move away
from that page and the user should not be able to hit
the browser's back button and see the contents. I t
should show that the page has expired..

In ASp it is very easy to do that but in Php I am
looking all over and still can't find it.


Can anybody help me please...


Thank You


Regards,
Dhaval

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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




[PHP] Php-Gtk.....does it work ever?

2001-09-25 Thread Dhaval Desai

Hi!

I downloaded the Php-Gtk files for Windows 32 Binary
and I am trying to make it work on Windows 98. I
already have phpdev2 with Apahce, Mysql and Php
installed

phpdev2 is in C:\phpdev2

1. Now I downloaded php-gtk and I copied the files
from php4 folder to php directory.
2. Then I copied the files from Winnt directory to
C:\WINDOWS\SYSTEM32
3. I didn't copy php.ini file anywhere because...
C:\phpdev2\php\ already had a php.ini file.
4. Copied the sameples to the same folder as that of
Php C:\phpdev2\php\samples.


Now When I try to run the a sample file.eg.
C:\phpdev2\php\php_win.exe -q
C:\phpdev2\php\samples\hello.php


It doesn't do anything...it just comas back to the
command line in Dos Prompt

Is the thing installed properly..? How can we check it
and if it is installed why isn't the thing showing any
results...



Please reply to me...coz I am just making a beginning
with Php-Gtk



Thank You


Greetings!~
Dhaval

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com

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




[PHP] Html email with Flash content embedded

2001-10-05 Thread Dhaval Desai

Hi!

I am trying to embed a file into my html email that I
want to send my friend on Yahoo. I have uploaded the
flash file (.swf) on my server. If I try to embed the
file as html and send...as an email...nothin can be
seen...

Is it because... yahoo filtersI am using Php to
send it

Thanx

Regards,
Dhaval Desai

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

-- 
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] Javascript doesn't work with PHP????

2001-01-29 Thread Dhaval Desai

Hi!


I am facing a very big Proble,m with this javascript
below:
I have gotten a form validation script. Please copy
the script save as .php and try it out..It doesn't
server the purpose...Can anybody point me to right
direction:



***


Dubaiteenz.com>Ecards>


function verifyall()
{
missinginfo = "";
if(document.contact.toname.value =="")
{
missinginfo += "\n -  Recepeint's Name";
}

if(document.contact.fromname.value =="")
{
missinginfo += "\n -  Sender's Name";
}

if ((document.contact.toemail =="") ||
(document.contact.toemail.value.indexOf('@') == -1)||
(document.contact.toemail.value.indexOf('.') == -1)) 
{
missinginfo += "\n - Recepient's  Email
Address";
}

if ((document.contact.fromemail =="") ||
(document.contact.fromemail.value.indexOf('@') ==
-1)|| (document.contact.fromemail.value.indexOf('.')
== -1)) 
{
missinginfo += "\n - Sender's  Email
Address";
}


if(document.contact.message.value =="")
{
missinginfo += "\n -  Message";
}

if (missinginfo != "") 
{

missinginfo ="===\n" +
" www.DubaiTeenz.com \n" + 
"===\n" +  " \n" +
"You failed to correctly fill in your :-\n" +
missinginfo +
"\n"
+
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}

else return true;
}





Personalise this card Now!!!





To
Recepient


">



Message comes
here...


 


-
Sender




  ">
">







Fill out the form below, then click the
Continue button to Preview:



 
 Recepient's name
Recepients Email



 To:





 
 
 








 
Your name
Your Email


 From:
    
    



 
 
 


You may
enter a personal message below:





 
 
 





 
 
 












***


Thanx a lot!

Cheers!~
Dhaval Desai

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

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




[PHP] % operator

2001-02-03 Thread Dhaval Desai

Hi!

what is the use of %
Is it called modulo..what is it's use in PHP.?


Thanx!
Dhaval Desai

__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] PHP File Uplaod Path

2001-02-07 Thread Dhaval Desai

Hi!

I need help with uploading files with php.
What is the default directory where the files are
uploaded..?
I want to specify a particular directory where the
files have to come after they are uploaded.

Is it possible to specify a path in the script where
the files will automatically be copied after uploading
to the temporary directory.

Please help me out ...

Thank You
Dhaval Desai




__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




[PHP] File Upload stuck in the midst

2001-02-13 Thread Dhaval Desai

Hi!

I am facing some problems while uploading files..
I just copied the code from php.net from the section
"Handling File Uploads".

My index.php pages has the following code:



File Uploads





Send this file: 










ACtion.php has the following code:




I always get the error: message..

[Possible file upload attack: filename 'none'.]


Can anybody tell me what could be the possible reason
for this.


Thanx a lot!
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] Upload moves the file doesn't copy it..

2001-02-14 Thread Dhaval Desai

Hi!


I have finally learned to upload file using php.
But the problem is that When I upload a file, it
disappears from it's place and moves to the location I
have told it to go to. It's more like a cut & paste
rather then copy and paste...

My code is as follows:



Index.html:
**


Untitled Document





   




  
   
   
   





***



Below is upload.php:

***

**





Thank You!
Dhaval Desai





__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] realpath() problem....

2001-02-14 Thread Dhaval Desai

Hi!


I need some help in using the function

$try = realpath("./filename");

I get a blank page when I try to echo. $try

Thanx!
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] Where is my directory on server..?

2001-02-16 Thread Dhaval Desai

Hi!


I need some help with this one. See When I upload a
file to a server to my directory..I connect to the
server using Wsftp_pro.
Now I want to find out exactly what is the path to my
directory on the server...


Actually I will be uploading files to the server using
php from the web browser...


Is there a php function to find out the path to my
directory..or is there any other way..?



Thanx a lot!
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] Writing Regular Expressions...

2001-02-17 Thread Dhaval Desai

Hi!


Can somebody enlighten me with regular expressions...
like [^\-*] something like that. To me it appears as a
code language..

Can Anybody tell me what do the various characteers
do?
is there any good article on anywebsites..? besides.
phpwizard .com I have checked that allready...



Thanx !
Cheers!~
Dhaval Desa

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] REgular expression....difficult is it?

2001-02-18 Thread Dhaval Desai

Hi!


I am not able to understand this REgular expression.

/Wil?/

would match "Winnie", "Wimpy" "Wilson" and "William",
though not "Wendy" or "Wolf".

Howz taht..?


Can anybody explain me please.

Thank You!
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] Variable stores incomplete values...

2001-02-18 Thread Dhaval Desai

Hi!


I need help with this one. See I store a lot of data
into one variable like this:

$variable = This is the data.This is the data.This is
the data.This is the dataThis is the dataThis is the
dataThis is the dataThis is the dataThis is the
dataThis is the dataThis is the data
This is the dataThis is the dataThis is the data


This is the; da;taThi's is the dataThis is the
dataThis is the data

This is the dataThis is the dataThis is the dataThis
is the data


I mean to say taht it is kidof formatted with REturn
character, space characters, ', ; and a lot many
characters...




Now my question is that. If I store the variable in
MYSQL dataabse under a particular filed TYPe varchar
or TEXT.

It doesn't bring up the same kind of format like it
was when it was stored..

Is there any way I can get the same output like I
stored it.?


Thank YOu!
Dhaval Desai

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] Link back to where u came from..?

2001-02-20 Thread Dhaval Desai

Hi!

See what I am trying to implement is:

1.I have a website.
2.When ppl come to the website..they see the homepage.
3.When they click on any link, if they have logged in
earlier..and a cookie is stored.in their browser..they
will be allowed in.
4. If not they will be told that click here to go the
login page.
5. When they have logged in., I want the page to
automatically go to the link they came from.


Is it possible..Please give me some ideas..


Thank You
Dhaval Desai

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




[PHP] Re: Linking back to where you came from..

2001-02-20 Thread Dhaval Desai

Hi!

Thanx for replying to my mail.

Well See I have for example two pages.
login.php
inside.php

So when a person clicks on inside.php it checks for
the cookie meaning inside.php has a cookie checking
code  in it. If cookie uis not found it will take him
to the login.php page and on successful login he will
again be taken to the page he came from which in this
case is inside.php.


Can u guide me with some more details please.

Thank You!
Dhaval Desai


--- Bilal Abdul Kader <[EMAIL PROTECTED]> wrote:
> Hi
> Try to use the link to the actual page as a
> parameter to the Authentication script
> For example your authentication script is 
> login.php 
> and I click directly to page.php
> 
> Then in the page.php put 
> if (authenticad)
>   go on 
> else 
> header("Location:login.php?usr=$PHP_SELF");
> 
> in the login.php
> add
> if (authentication complete)
>   go to url
> 
> Good Luck
> - Original Message - 
> From: "Dhaval Desai" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Wednesday, February 21, 2001 7:10 AM
> Subject: [PHP] Link back to where u came from..?
> 
> 
> | Hi!
> | 
> | See what I am trying to implement is:
> | 
> | 1.I have a website.
> | 2.When ppl come to the website..they see the
> homepage.
> | 3.When they click on any link, if they have logged
> in
> | earlier..and a cookie is stored.in their
> browser..they
> | will be allowed in.
> | 4. If not they will be told that click here to go
> the
> | login page.
> | 5. When they have logged in., I want the page to
> | automatically go to the link they came from.
> | 
> | 
> | Is it possible..Please give me some ideas..
> | 
> | 
> | Thank You
> | Dhaval Desai


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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