[PHP] How to create user in mySQL ?

2002-12-04 Thread Manisha
I want to create mySQL user thr phpMyAdmin. I inserted one record in 
mysql.user table and one in mysql.db table,

testing with following program


	$conn = @mysql_connect ("localhost:/usr/home/nets/mysql/mysql-demo.sock", 
"manisha", "pass");
	echo("before conn  a");
	if ($conn){
		mysql_select_db ("demo");
		echo("conn got it");
	}
?>

but not getting the connection - if try with old user and password - can 
get connected

what's wrong ?

regards
Manisha



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



[PHP] Facing some problem with mySQL Installation

2002-07-24 Thread Manisha

I know I should not ask this question - but as I am not getting prompt 
reply from mysql mailing list posting it here too - Just in case anybody 
knows about it


I am trying to install the mySQL on our remote server thr putty (SSH). 
Following are the set of commands given by me,

I have downloaded mysql-3.23 for BSDi.

1)put into /usr/home/mysql-src directory and given following 2 commands 
going into
shell>cd  /usr/home/mysql-src
shell>gunzip mysql-.tar.gz
shell>tar xvf mysql-.tar

This is creating the directory mysql-
2)Config -

shell>cd  /usr/home/mysql-src/mysql-
shell>./configure -basedir=/usr/home/mysql -with-low-memory

This command is giving me problem - saying - at the end
shell>Starting mysqld daemon with database from 
/usr/home/mysql-src/mysql-/data
rm /tmp/mysql.sock - Operation not permitted
mysqld end


Can anybody help me in this matter - What is the meaning of it ?

Thanks in advance and regards
Manisha


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




[PHP] PHP-MySQL connection problem

2002-07-28 Thread Manisha

Hi,

My server is running on shared server which has support for PHP 4.1.2. I 
installed mySQL for our shared server. I also installed phpMyAdmin. Both 
are running properly. But I am facing following problems

1) If there is any error in the script - It is not getting displayed - 
screen is becoming blank, so it is becoming very difficult for me to make 
out any mistake.

2) I am trying to send email - but not getting any email. This is the script



I am getting print statement but not the mail. Any extra settings are 
required ?

Thanks in advance
Manisha




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




RE: [PHP] PHP-MySQL connection problem

2002-07-29 Thread Manisha

Hi,
I tried to display phpinfo and I am getting following values

display_errors On   On
display_startup_errors On   On

error_append_string  no value   no value
error_logno value   no value
error_prepend_string no valueno value
error_reporting  1 1

(Still there is no display of error)

sendmail_from[EMAIL PROTECTED]   [EMAIL PROTECTED]
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i
short_open_tagOn  On
SMTP   localhost localhost

I changed the script as follows, now it is giving error that - can not even 
queue - btw where the queue is stored ? and where can I see the sendmail log ?



I tried giving mail directly from sendmail going to /usr/sbin - I am not 
sure how to give commands in unix but I tried following block,

---

shell>cd /usr/sbin
shell>sendmail manisha
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Test from new aurica
kl;efkvg;lkf

rkfkrjek

sdjkfjsd

^D - to terminate it

message given  - Failed to send message to any users





Now how shall I proceed ?

Thanks and regards
Manisha






[PHP] Want to exclude first 10 records from table

2002-10-15 Thread Manisha

I am having forum table. First 10 records are treated as Current postings 
and rest are treated as Archive.

I know how to take first 10

select * from forum order by postdate desc LIMIT 10

But I do not know how to take postings excluding above 10. I do not want to 
make use of loop rather I want to do this in one single query as I need to 
pass this to some further include files.

Thanks in advance
Manisha


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




RE: [PHP] Want to exclude first 10 records from table

2002-10-16 Thread Manisha

Thanks to all who responded to my qry,
  yes it worked well as per my requirements

regards
Manisha


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




[PHP] Email not getting

2002-06-12 Thread Manisha

I am trying to send mail from Linux Redhat server through PHP. It is not 
giving me any error but I am not getting any mail too.

Following is the code





-

Even I checked the email files at /var/spool/mqueue - There are 2 files, 
one with message and one with lots of other info. But then why I am not 
getting the emails ? Why they are remaining in the queue ? Is there any 
setting required in php.ini ?


Thanks and regards
Manisha


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




Re: [PHP] Email not getting

2002-06-12 Thread Manisha

Hi,


How to get the php.ini file ? I tried to run phpinfo program and where I 
got following

Configuration File (php.ini) Path/usr/local/lib

I tried to open that file, it has only 2 lines as follows:

magic_quotes_gpc = On
error_reporting = 5


Any addition is required ?

Thanks
Manisha



At 10:13 PM 6/12/02 -0500, you wrote:
Yes what are your settings in php.ini, generally the default settings are
sufficient?
 > I am trying to send mail from Linux Redhat server through PHP. It is not
 > giving me any error but I am not getting any mail too.
 >
 > Following is the code
 >
 > 
 >
 >  $mailBody = "This is one line \ n This is a second line \n\n this is a
 > third line";
 >
 > $boolMail = mail ("[EMAIL PROTECTED]", "Test mail subj from local linux
 > server - PHP", $mailBody);
 > print ("Email has been send ");
 > ?>
 >
 > -
 >
 > Even I checked the email files at /var/spool/mqueue - There are 2 files,
 > one with message and one with lots of other info. But then why I am not
 > getting the emails ? Why they are remaining in the queue ? Is there any
 > setting required in php.ini ?
 >
 >
 > Thanks and regards
 > Manisha
 >
 >
 > --
 > PHP General Mailing List (http://www.php.net/)
 > To unsubscribe, visit: http://www.php.net/unsub.php
 >

-Pushkar S. Pradhan



Re: [PHP] Re: Email not getting

2002-06-12 Thread Manisha

I gave the command at root, I got some details

--


Q-ID Size - Q-Time- Sender/Recipient

67Thu Jun 13 11.22 nobody
 (host map: look up (aurica.com): deferred)
 [EMAIL PROTECTED]


-

What's the problem exactly? As I do not know much about Linux (Totally on 
windows), I am unable to figure out too.

Manisha



At 01:51 AM 6/13/02 -0300, you wrote:
>Hello,
>
>On 06/13/2002 12:07 AM, Manisha wrote:
>>I am trying to send mail from Linux Redhat server through PHP. It is not 
>>giving me any error but I am not getting any mail too.
>>Following is the code
>>
>>>$mailBody = "This is one line \ n This is a second line \n\n this is a 
>>third line";
>>$boolMail = mail ("[EMAIL PROTECTED]", "Test mail subj from local linux 
>>server - PHP", $mailBody);
>>print ("Email has been send ");
>>?>
>>-
>>Even I checked the email files at /var/spool/mqueue - There are 2 files, 
>>one with message and one with lots of other info. But then why I am not 
>>getting the emails ? Why they are remaining in the queue ? Is there any 
>>setting required in php.ini ?
>
>Just use the mailq command in the shell to see why the messages are stuck.
>
>
>
>--
>
>Regards,
>Manuel Lemos
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP] Re: Email not getting

2002-06-12 Thread Manisha

If it is aurica.com then it is wrong as this is the name of Live server. 
But currently I am working on local linux server. (To access the server I 
use http://Linux-Server/index.php)

Any way, following is the out put of the command


***Can't find server address for 'aurica.com': Host name lookup failure.

Server: Linux-Server
Address: 0.0.0.0

***Linux-Server Can't give TYPE=MX : No response from server

-------

Manisha

At 02:06 AM 6/13/02 -0300, Manuel Lemos wrote:
>Hello,
>
>On 06/13/2002 01:59 AM, Manisha wrote:
>>I gave the command at root, I got some details
>>--
> 
>>
>>
>>Q-ID Size - Q-Time- Sender/Recipient
>>67Thu Jun 13 11.22 nobody
>> (host map: look up (aurica.com): deferred)
>> [EMAIL PROTECTED]
>>
>>-
> 
>>
>>What's the problem exactly? As I do not know much about Linux (Totally on 
>>windows), I am unable to figure out too.
>
>It looks like the your machine DNS does not seem to be properly configured.
>
>Type in the shell this command and tell me what it shows:
>
>nslookup TYPE=MX aurica.com
>
>--
>
>Regards,
>Manuel Lemos
>
>
>--
>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] Require some help about the date comparison

2002-07-16 Thread Manisha

I am writing one program -

I want to display some text on web. This text should appear for limited 
period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the 
text should disappear from screen.

I tried to look for date comparison / string conversion to date etc, I got 
lot info but could not figure out which would be best for above (rather how 
can I do it).

Anybody can share some expert comments please ?

Thanking in advance,
Manisha


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




RE: [PHP] Require some help about the date comparison

2002-07-17 Thread Manisha

Thanks to all who responded me. Actually I got confused after seeing so 
many commands but finally got it correct from u guys.

Thanks once again.

Manisha


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




[PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Manisha

Hi all,

I am just entering into PHP world. First what I did is, I signed for PHP 
mailing list.

I want to buy a good PHP book for my initial start and may be later on as a 
reference. I know there are lot in the market. Can anybody suggest a good 
book among them ?

manisha


-- 
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] Want a Good Book for Ref on PHP

2001-04-15 Thread Manisha

Whether these books cover PHP 4 also ?

manisha

At 10:54 PM 4/15/01 -0400, Kath wrote:
>Professional PHP Programming:
>http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref=
>sc_b_13/002-2263539-0333643
>
>PHP Fast & Easy Web Development:
>http://www.amazon.com/exec/obidos/ASIN/076153055X/qid=987388364/sr=1-9/ref=s
>c_b_10/002-2263539-0333643
>
>I started with these books and STILL refer to them today.
>
>- Kath
>
>- Original Message -
>From: "Manisha" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, April 15, 2001 10:46 PM
>Subject: [PHP] Want a Good Book for Ref on PHP
>
>
> > Hi all,
> >
> > I am just entering into PHP world. First what I did is, I signed for PHP
> > mailing list.
> >
> > I want to buy a good PHP book for my initial start and may be later on as
>a
> > reference. I know there are lot in the market. Can anybody suggest a good
> > book among them ?
> >
> > manisha
> >
> >
> > --
> > 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] cgi vs. module

2001-04-16 Thread Manisha

I do not know much about the PHP, but somewhere I remember reading following :

' If there is no specific reason to use PHP as CGI and web server which you 
are using is supporting PHP as module then go for  'Module' . This gives 
better performance'

manisha




-- 
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] Dynamic built web pages administration

2001-04-17 Thread Manisha

Hi,

I am also working on a project similar like this. I am creating a News 
Module which will allow user to create their own pages and post it on web 
with images chosen. Edit option also will be given to edit the content.

I thought of following options. Please note that I am not always sticking 
to database option.

1. Display templates (may be according to Theme / Layout) to select and 
display the form to fill up the content (database option can be 
implemented). For non IT user this will be the simplest form and some sort 
of customization  is also possible by giving options like to choose color, 
bold, style etc.

2.Give option something similar to  Yahoo's Geocities. (please go to 
http://geocities.yahoo.com - you may need to register). They have developed 
something like PageBuilder, which is nothing but the applet I believe. 
Where complete customize page can be created and loaded on the web. 
Database option will be tedious.

3. OR as you said user can have his own page but then he has to mark it for 
' edit content' purpose. If the user is using Dreamweaver then you do not 
worry, it has a option like ' Create template' option and user can mark the 
area as 'Editable'.


I am also interested in exploring more about it specially option 2, How to 
do it and whether it will be very complicated ?

If you know any good portal which has something like Yahoo! Page Builder, 
please let me know.

manisha





At 11:44 AM 4/17/01 -0400, Romulo Roberto Pereira wrote:
>dear Plutark,
>
>Thank you for your input.
>
>But, let's say that I have the following:
>
>
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>
>
>
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>
>
>My user don't know html. At all... So how do I do to create an edit admin
>that let him only modify the text?
>
>I did something like this:
>
>
>
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>
>
>
>
>
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some
>text
>  some text some text some text some text some text some text some text some
>text
>
>
>
>It works fine, because I identify the edit areas by the comment tags.
>The problem with this is that if I put an option like Add New Page to the
>admin system, the user would have to surround the tags with the comments, I
>mean, he would have to edit the HTML.
>
>Pretty toff thing!!!
>
>Jesus!!
>
>Thank you,
>
>Rom
>
>-Original Message-
>From: Plutarck [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 17, 2001 10:25 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] Dynamic built web pages administration
>
>
>If you are storing the content in a database, your job is a ton easier.
>
>Just add an edit link on the page you want people to be able to edit. It
>will link over to an edit page with the value of the current page sent in
>the URL via get.
>
>Get the content from the database pointed to by the url, and stick it in a
>variable.
>
>On the edit page have a text area. Set the "value" to the content the person
>can edit.
>
>When someone clicks submit, just take the content they submit and stuff it
>into the database using UPDATE.
>
>Of course you will need to do safety features like stripslashes() or the
>special character functions before storing the data, just to be safe. You
>will also want to have the option only available for registered users, and
>you probably want to limit it to users you know won't be malicious.
>
>There are many little tricks like using a little piece of javascript to
>execute a file on the hard drive that shouldn't be executed, malicious
>ActiveX controls, java applets, etc, that you don't wa

[PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha

Hi all,

I am having my own personal computer running on windows 95. I have C / D / 
E / F / G drives with FAT 32 file system with lot of information on it. I 
can format one drive out of these.

Can I install Linux on it  ? (i.e. format F:\ and load Linux). Later on I 
want to load Apache also on it.

Is it feasible ? Any information about this on web ? If I format one drive 
and load Linux whether other drive info will get affected ?

manisha




-- 
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] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha

I have Pentium II Processor with 64 MB RAM. The drive which I am thinking 
of converting into Lihnux (F:) has 2.92 GB hard disk space. Current file 
system is FAT 32. I am thinking of loading Red Hat Linux (may be latest 
version) and Appache web server by formating that drive.

I know I can have appache on Windows, but as my client's environment is 
different and as I have urge to learn Linux I want to install Linux on my 
m/c itself.

Whether above mentioned hardware is ok to install Linux ?

manisha




At 08:58 PM 4/24/01 -0500, Wade DeWerff wrote:
>its much more than that however, I have Linux, 98, win2k and NT server on my
>box..which has 2 physical hard drives and  5-6 partitions. However I
>strongly suggest you read up on this subject of multi-boot. You have to take
>into consideration that most operating systems require up to the first 4-8
>mg of the hard drive and the boot files for NT OS's require to be on the
>first physical hard drive at the first 2mg. Keep in mind also that LILO, the
>Linux booting file cannot exist on same partition with any NT OS's. It
>appears you only have 95 at this time so it wont be quite as complicated at
>this time. You will have to get a boot manager that will handle partitioning
>different partition types-NTFS, FAT16, FAT32, LINUX. One that will partition
>these without messing up the others that you have already.
>
>
>
>-Original Message-
>From: Jack Dempsey <[EMAIL PROTECTED]>
>To: Manisha <[EMAIL PROTECTED]>
>Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Tuesday, April 24, 2001 8:43 PM
>Subject: Re: [PHP] Can I install Lihnux on My Windows 95 machine ?
>
>
> >Yes, that's the idea behind having multiple drives ( or partitions ).
> >If you format F and load Linux on it, then that won't affect any other
> >partition...
> >
> >-jack
> >
> >Manisha wrote:
> >>
> >> Hi all,
> >>
> >> I am having my own personal computer running on windows 95. I have C / D
>/
> >> E / F / G drives with FAT 32 file system with lot of information on it. I
> >> can format one drive out of these.
> >>
> >> Can I install Linux on it  ? (i.e. format F:\ and load Linux). Later on I
> >> want to load Apache also on it.
> >>
> >> Is it feasible ? Any information about this on web ? If I format one
>drive
> >> and load Linux whether other drive info will get affected ?
> >>
> >> manisha
> >>
> >> --
> >> 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] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha

Thanks a lot to all of you for your info.

Now I will try to do it.

manisha


-- 
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] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha

Is it ?

Current my Hard disk space for drive F:\  is 2.92 GB which is just fine for 
the time being. Do you mean to say that I can increase from 2.9 GB to let 
us say 4GB by taking it from some other drive may be D:\ ?

Can you explain some more ?



At 12:54 PM 4/25/01 +0900, Yasuo Ohgaki wrote:
>You also can change partition size without deleting contents.



At 12:54 PM 4/25/01 +0900, Yasuo Ohgaki wrote:
>Although, this is nothing to do with PHP.
>
>You have several options to use Win and Linux
>  - Multi-boot with separate partitions
>  - Multi-boot with umsdos (You can install Linux in windows partition 
> with this)
>  - Virtual machine - use VMWare for example. You can use windows and Linux at
>the same time. Slow though.
>(VMWare works really well with my W2K box. I don't use it 
> often, but
>it's really useful sometimes)
>
>You also can change partition size without deleting contents.
>
>Linux Documentation Project web site has a lot of documents.
>http://www.linuxdoc.org/
>
>For further questions, ask in Linux related news or mailing list.
>
>Regards,
>--
>Yasuo Ohgaki
>
>
>"Manisha" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have Pentium II Processor with 64 MB RAM. The drive which I am thinking
> > of converting into Lihnux (F:) has 2.92 GB hard disk space. Current file
> > system is FAT 32. I am thinking of loading Red Hat Linux (may be latest
> > version) and Appache web server by formating that drive.
> >
> > I know I can have appache on Windows, but as my client's environment is
> > different and as I have urge to learn Linux I want to install Linux on my
> > m/c itself.
> >
> > Whether above mentioned hardware is ok to install Linux ?
> >
> > manisha
> >
> >
> >
> >
> > At 08:58 PM 4/24/01 -0500, Wade DeWerff wrote:
> > >its much more than that however, I have Linux, 98, win2k and NT server 
> on my
> > >box..which has 2 physical hard drives and  5-6 partitions. However I
> > >strongly suggest you read up on this subject of multi-boot. You have 
> to take
> > >into consideration that most operating systems require up to the first 4-8
> > >mg of the hard drive and the boot files for NT OS's require to be on the
> > >first physical hard drive at the first 2mg. Keep in mind also that 
> LILO, the
> > >Linux booting file cannot exist on same partition with any NT OS's. It
> > >appears you only have 95 at this time so it wont be quite as 
> complicated at
> > >this time. You will have to get a boot manager that will handle 
> partitioning
> > >different partition types-NTFS, FAT16, FAT32, LINUX. One that will 
> partition
> > >these without messing up the others that you have already.
> > >
> > >
> > >
> > >-Original Message-
> > >From: Jack Dempsey <[EMAIL PROTECTED]>
> > >To: Manisha <[EMAIL PROTECTED]>
> > >Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > >Date: Tuesday, April 24, 2001 8:43 PM
> > >Subject: Re: [PHP] Can I install Lihnux on My Windows 95 machine ?
> > >
> > >
> > > >Yes, that's the idea behind having multiple drives ( or partitions ).
> > > >If you format F and load Linux on it, then that won't affect any other
> > > >partition...
> > > >
> > > >-jack
> > > >
> > > >Manisha wrote:
> > > >>
> > > >> Hi all,
> > > >>
> > > >> I am having my own personal computer running on windows 95. I have 
> C / D
> > >/
> > > >> E / F / G drives with FAT 32 file system with lot of information 
> on it. I
> > > >> can format one drive out of these.
> > > >>
> > > >> Can I install Linux on it  ? (i.e. format F:\ and load Linux). 
> Later on I
> > > >> want to load Apache also on it.
> > > >>
> > > >> Is it feasible ? Any information about this on web ? If I format one
> > >drive
> > > >> and load Linux whether other drive info will get affected ?
> > > >>
> > > >> manisha
> > > >>
> > > >> --
> > > >> 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] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha

Hi all,

Again I am here asking the same question as I got confused because of my 
colleague's comment.

I asked my colleague (who is in charge of all network administrator - 
setups - hardware configurations  etc etc etc)). I asked the same question 
that I am having 4 drives, I want one drive to be converted into Linux.

He is saying that if I want to format one drive (F:) out of total 4 drives 
and install Linux, then I need to do lot of configurations.

According to him I need to change BIOS set up of windows so that it will 
understand 2 boot sections. Currently my window system is recognising only 
one boot system and some predefined partitions.

So if I want to remove one partition and change to Linux, I need to 
repartition i.e. format again.

That means lot of info which is on other drivers will be wiped off.?

Is there any remedy for this ? I want my all other drives running properly 
whenever I am in Windows and I should be able to use Linux commands when I 
am in Linux system.

Can any body comment ?

manisha


-- 
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: check if an url is valid

2001-04-27 Thread Manisha

Any body know how to un-subscribe temporarily. As I am going out station 
for 2 weeks. I want to stop all my PHP user group mails. (other wise there 
will be big junk) But later again I want to restart.

If I un-subscribe now whether I will be able to subscribe again ?


manisha


-- 
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] Whether through PHP/MySQL can I talk to Flash Generator's Flash ?

2001-05-07 Thread Manisha

Hi all,


I am trying using PHP with Flash Generator.

The designer has given me a Flash file created using Macromedia's Flash 
Generator 2.

The platform is BSDi / Lang - PHP / Database - MySQL.

I want to change the content INSIDE the Flash file dynamically (not the 
flash itself). From books I know Flash Generator allows to do so, but if 
any body can give me some clear cut idea about following, (as book info in 
not sufficient)

1. What are the components required on Server ?
2. Any client components are required except player ?
3. Which database driver shall I use ?
4. With PHP how to do it ?
5. If any body can send me a sample script
6. Any other source to get more info (book / site / mailing list etc)


I do not know how to see 'Archive' of this mailing list. Can any body give 
me the URL ?


Regards,
manisha


-- 
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] Require SAMPLE Script for Macromedia Generator2 Flash using PHP ?

2001-05-09 Thread Manisha

Hi,

This is a question regarding Macromedia Generator 2 using PHP 4.

I have created a PNG and using a URL method to call .php file.

In documentation they are saying ' You can call any file but content that 
returns must be in a text file and in proper format'

What do you mean by that ?

Is this I create a file through PHP with (number, value) format ?

but what do you mean by ' Return of File'

Can anybody give me SAMPLE SCRIPT in PHP ?


manisha


-- 
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: WELCOME to php-general@lists.php.net

2002-05-12 Thread Manisha

I am having a form, I want to write the form values into csv file.

I just want to know whether it is necessary (compulsory) to have file lock 
before writing to file?

There is only my program which is writing in the file - no other program. 
But many users can connect to web at a time - So is it necessary to have 
file lock ?

thanks in advance
manisha


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




Re: [PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Manisha

At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote:
>
> > I just want to know whether it is necessary (compulsory) to have file lock
> > before writing to file?
> >
>
>It is definitely a good idea if you don't want corruption. You may find a
>database is easier in the long run.


Do you mean to say that even if it is not compulsory - it is advisable to 
do so ?




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




Re: [PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Manisha

Thanks Miguel,

Manisha




At 10:38 PM 5/12/02 -0500, Miguel Cruz wrote:
>On Mon, 13 May 2002, Manisha wrote:
> > At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote:
> >>> I just want to know whether it is necessary (compulsory) to have file 
> lock
> >>> before writing to file?
> >>
> >> It is definitely a good idea if you don't want corruption. You may find
> >> a database is easier in the long run.
> >
> > Do you mean to say that even if it is not compulsory - it is advisable to
> > do so ?
>
>Yes, because otherwise you may have processes overwriting each others'
>data.
>
>miguel
>
>
>--
>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] Searching for XML mailing list

2002-05-12 Thread Manisha

I am searching for good XML related mailing lists / sites etc. Please give 
me some info about this.


manisha


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




[PHP] Problem with the double quotes

2002-05-13 Thread Manisha

I want to display the content of  a file containing  double quotes.

It is giving me error. I experimented with one small string variable. If I 
add 'Slash' manually, then it is ok. But addslashes function is not working


$str1 = addslashes("this is the " " msg ");

This gives me error. But

$str1 = addslashes("this is the \" \" msg "); This is ok.

Manually adding slah to big file quiet impossible. Is there any good 
solution for this ?  How to convert double quotes of file into \" ?

Thanks in advance

Manisha


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




RE: [PHP] Problem with the double quotes

2002-05-13 Thread Manisha

The file is HTML file. Actually I am sending email with message as this 
HTML file's content. I changed the header of email to accommodate HTML.

Reading the file in array and putting array values as a message - whether 
still double quotes will not give problem ?


manisha

At 11:51 AM 5/14/02 +1000, Martin Towell wrote:
>You shouldn't need to addslashes() if you read from a file, only for string
>literals, like in your test.
>
>Are the file(s) you're reading in, just text files? If so, try doing your
>code with the file read commands and you should see you don't need to
>addslashes()
>
>-Original Message-
>From: Manisha [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 14, 2002 11:47 AM
>To: php-general
>Subject: [PHP] Problem with the double quotes
>
>
>I want to display the content of  a file containing  double quotes.
>
>It is giving me error. I experimented with one small string variable. If I
>add 'Slash' manually, then it is ok. But addslashes function is not working
>
>
>$str1 = addslashes("this is the " " msg ");
>
>This gives me error. But
>
>$str1 = addslashes("this is the \" \" msg "); This is ok.
>
>Manually adding slah to big file quiet impossible. Is there any good
>solution for this ?  How to convert double quotes of file into \" ?
>
>Thanks in advance
>
>Manisha
>
>
>--
>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




RE: [PHP] Problem with the double quotes

2002-05-14 Thread Manisha

Thanks to all who gave me reply.

manisha


At 02:40 AM 5/14/02 -0500, Miguel Cruz wrote:
>On Tue, 14 May 2002, Manisha wrote:
> > The file is HTML file. Actually I am sending email with message as this
> > HTML file's content. I changed the header of email to accommodate HTML.
> >
> > Reading the file in array and putting array values as a message - whether
> > still double quotes will not give problem ?
>
>It is no problem to have double quotes in a string.
>
>The only problem is getting the double quotes in there. If they come from
>a string literal - that is, a string that you have typed into your PHP
>code - then you may have to escape them.
>
>If the quotes come from a file or from a database or from user input or
>whatever, then you don't have to do anything; they appear in the string
>like any other character.
>
>miguel
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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




[PHP] Any execute time limit ?

2002-05-22 Thread Manisha

Hi,

I am writing an Email blast program. (100 emails at a time). I believe it 
will take quiet some time. Whether there is any time limit set internally 
for executing script ?

Last time ASP had given some problem - used to come out saying Execution 
time exceeds -  I want  know what about PHP ?

Thanks in advance.
Manisha


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




[PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Manisha

Hi,

I have one file with following format

No. | Name | Email | status
1 | Manisha | [EMAIL PROTECTED] | Pending
2 | Neha | [EMAIL PROTECTED] | Reject
3 | Aish | [EMAIL PROTECTED] | Pending

...

I want to update status change against that line. e.g For sr no 1 - I want 
to change the status from Pending to Accepted. I read about the fseek / 
fwrite command, but did not came across the delete the line from file. I 
believe fseek command will write a line starting from pointer but will not 
overwrite.

I am using PHP3 and no database is available (That's the main problem). And 
many times  I need to seek the record (line) , change it and store back.

I may be asking some silly questions as I am very very new to PHP. Please 
bear with me.

Thanks in advance

Manisha




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




Re: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Manisha

It is not possible to get the database as client is not ready for that 
(Can't help it - you know).

I am thinking - I will take the data in an array first - change it and 
flush back to file again. Is there any command to flush back the whole 
array in to file (each array element will become one line) or do I need to 
write one by one line ?


manisha

At 04:59 AM 5/23/02 +0300, you wrote:
>Get a database working! That's definitely worth investing some time in - 
>apart from the obvious speed avdantages, you'd learn a lot.
>
>About your question, AFAIK you can only do it by reading from one file and 
>writing to a temp file, then moving the temp over the original - pretty 
>clumsy, if you ask me... ;-)
>
>Bogdan
>
>Manisha wrote:
>
>>Hi,
>>
>>I have one file with following format
>>
>>No. | Name | Email | status
>>1 | Manisha | [EMAIL PROTECTED] | Pending
>>2 | Neha | [EMAIL PROTECTED] | Reject
>>3 | Aish | [EMAIL PROTECTED] | Pending
>>
>>...
>>
>>I want to update status change against that line. e.g For sr no 1 - I 
>>want to change the status from Pending to Accepted. I read about the 
>>fseek / fwrite command, but did not came across the delete the line from 
>>file. I believe fseek command will write a line starting from pointer but 
>>will not overwrite.
>>
>>I am using PHP3 and no database is available (That's the main problem). 
>>And many times  I need to seek the record (line) , change it and store back.
>>
>>I may be asking some silly questions as I am very very new to PHP. Please 
>>bear with me.
>>
>>Thanks in advance
>>
>>Manisha
>>
>>
>>
>
>


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




Re: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Manisha

Thanks to all to give me good start. I will try out now.

Manisha


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




[PHP] Help ! For Loop not working

2002-05-23 Thread Manisha

$fcontents is an array with 3 elements.
But this for loop is not executing even once

$ii=count($fcontents);
echo("$ii");
for ($i = 0; $i < ii; $i++) {
print $i;
}

$ii has value = 3, But I am not getting the value of $i. What is wrong with 
such a simple loop ? Please help

Manisha


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




Re: [PHP] Help ! For Loop not working

2002-05-23 Thread Manisha

Sorry, got it, I am not doing $ii

Sorry again
Manisha

At 10:33 AM 5/24/02 +0800, Manisha wrote:
>$fcontents is an array with 3 elements.
>But this for loop is not executing even once
>
>$ii=count($fcontents);
>echo("$ii");
>for ($i = 0; $i < ii; $i++) {
> print $i;
>}
>
>$ii has value = 3, But I am not getting the value of $i. What is wrong 
>with such a simple loop ? Please help
>
>Manisha
>
>
>--
>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] How to implode with carraige return ?

2002-05-23 Thread Manisha

I have 3 elements in an array

$arr[1] = " 1 | Manisha ";
$arr[2] = " 2 | Milind ";
$arr[3] = " 3 | Aish ";

I want to implode it to string first and later on want to write in to txt 
file.

I tried to implode  this chr(13) as a separator. I tried with $arr[1] = "1 
| Manisha \n\r" as an array element.

But I do not see new line, instead I see small square box.

Server environment - Unix - PHP4
I see file after ftp to my computer (Win 98)

Thanks in advance
Manisha



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




RE: [PHP] How to implode with carraige return ?

2002-05-23 Thread Manisha

Yes, you were write - when I used chr(10).chr(13) - it worked.

But still little bit confused. When you are saying unix uses \n, that means 
if I am reading the file from unix server - it would have looked ok, but 
the same file won't look good if I open in Windows ?

I always gets confuse here.

Thanks,
Manisha

At 01:46 PM 5/24/02 +1000, Martin Towell wrote:
>unix uses just \n  ( chr(13) )
>windows uses \r\n  ( chr(10).chr(13) )
>
>try changing \n\r to \r\n
>
>HTH
>Martin
>
>
>-Original Message-
>From: Manisha [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 24, 2002 1:35 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] How to implode with carraige return ?
>
>
>I have 3 elements in an array
>
>$arr[1] = " 1 | Manisha ";
>$arr[2] = " 2 | Milind ";
>$arr[3] = " 3 | Aish ";
>
>I want to implode it to string first and later on want to write in to txt
>file.
>
>I tried to implode  this chr(13) as a separator. I tried with $arr[1] = "1
>| Manisha \n\r" as an array element.
>
>But I do not see new line, instead I see small square box.
>
>Server environment - Unix - PHP4
>I see file after ftp to my computer (Win 98)
>
>Thanks in advance
>Manisha
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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




RE: [PHP] How to implode with carraige return ?

2002-05-23 Thread Manisha

Thanks Miguel

Manisha


At 12:02 AM 5/24/02 -0500, Miguel Cruz wrote:
>On Fri, 24 May 2002, Manisha wrote:
> > Yes, you were write - when I used chr(10).chr(13) - it worked.
> >
> > But still little bit confused. When you are saying unix uses \n, that 
> means
> > if I am reading the file from unix server - it would have looked ok, but
> > the same file won't look good if I open in Windows ?
>
>It depends on how you transfer the file. If you use ASCII-mode FTP, a
>text/* MIME content type, or some other text-aware method, then the \n
>will automatically be changed to \r\n when you transfer the file.
>
>If you use a binary or other literal transfer, then you'll have to convert
>the line breaks yourself (or view the file using a tool that's smart
>enough not to care, such as most programmer's editors).
>
>miguel


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




[PHP] PHP Mail problem

2002-05-23 Thread Manisha

Hi,

I am doing email blast program. I wanted to blast 100 emails. For testing 
purpose (I wanted to test how much time it takes), I blasted all 100 to my 
account (That too twice)

I received almost 100 over mails, but later on received - quota over - error.

Now the problem is I can not get a single mail.  I tried to test out with 
sending out just one email, I also tried using other account, but now not 
getting anything.

What can be the problem and what shall I do now ? Is it that I have hang up 
email server ?

Thanks in advance,
Manisha


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




[PHP] File lock - warning ?

2002-05-24 Thread Manisha

I open a file in append mode, I locked it and write the data.
But when I try to unlock or close it then I get warning

Warning: Unable to find file identifier 12 in www/htdocs/testfclose.php3 on 
line 9

Warning: Unable to find file identifier 12 in  www/htdocs/testfclose.php3 
on line 10
close ok

I am using PHP3 - code

echo "start";
$fpLog = fopen 
("/usr/home/aurica/aurica.com/cannesEmail/emailblastSendLog.txt","a");

if (flock ($fpLog, 2) ) {
 $strFileLog = "Manisha Test";
 $fpLog = fwrite("$fpLog",$strFileLog);
}
$tmp = flock ($fpLog, 3);
fclose ($fpLog);
echo "close ok ";
----

What's wrong ?

Thanks in advance,
Manisha


[PHP] Session problem

2002-05-24 Thread Manisha

I am facing so many problems - first file lock and now for session - I 
still could not understand how to get the session value in another page. I 
am very new to PHP. I tried many many ways to get it

Actually I want to store ID in a session and want to get back this ID in 
rest pages. Can you give me one by one step to do it.


First page -

session_name("EmailSess");
session_start();
$ID = "1";
session_register("ID");


-

How to get back this ID in another pages ?

Please help, I am stuck

Manisha



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




[PHP] File not getting created

2002-05-28 Thread Manisha

I am opening file in append mode but file is not getting created at all. I 
am not getting error too. I think it is due to write permission. How to 
check it and how to set it ?

Environment - Linux / PHP4

Thanks in advance
Manisha


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




[PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha

I am using file to read / write data. When I give file path I can give it 
in 2 ways.

- As a  Virtual path
- Real physical complete path.

Which way is better and in which situation ? I just want to open up 
discussion so that I will come to know the pros and cons for both the methods.


Thanks in advance and regards
Manisha






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




RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha

e.g my directory structure is like below


/usr/manisha/www/invitation - where all php files are situated

/usr/manisha/incFiles - where all files are situated - from where I want to 
read

There are also some files

/usr/manisha/www/invitation/msgFiles - From this directory also I am 
reading some files

So you mean to say for the first one read thr direct path for second one 
virtual path ?
What is reason behind it ? Is it that for first one it is not possible to 
provide the virtual path (../../incFiles )?






At 11:54 AM 5/30/02 +1000, you wrote:
>IMO: use relative paths if the two files will be in the same place relative
>to each other, otherwise use absolute
>
>-Original Message-
>From: Manisha [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 30, 2002 11:51 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] File Path - Which way is better ?
>
>
>I am using file to read / write data. When I give file path I can give it
>in 2 ways.
>
>- As a  Virtual path
>- Real physical complete path.
>
>Which way is better and in which situation ? I just want to open up
>discussion so that I will come to know the pros and cons for both the
>methods.
>
>
>Thanks in advance and regards
>Manisha
>
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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




RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha

Thanks to all who responded.

I have concluded that -  if directory structure is fixed then we shall use 
relative path, so that we can copy the code as it is to different server 
without changing anything.

But if we are not sure about the path on server - from where the files are 
going to be fetched for reading - then better use actual path. We can even 
keep the path in some include file and just change that path so only one 
file gets changed.

Manisha




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




[PHP] Write permission problem

2002-05-29 Thread Manisha



This is piece of my code, It is executing without any error but file is not 
getting created. I tried the read mode, it is ok. That means the directory 
does not have write permission. But then how to set it ?

My server is Red Hat Linux and I am using PHP4. Can I set it thr PHP or do 
I need to do settings at Linux server ?



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




[PHP] File Appended can not be viewed properly in Windows

2002-06-04 Thread Manisha

Some tricky things are happening :

Our local network environment : server - Win2K, my computer Win 98 and 
Linux Red Hat.

I have map network drive to Linux and working on File Append / Write programs.

I am creating the  file in append / write mode. It is getting appended / 
created properly. But I can not view further changes in the file once I 
opened it on my system. But changes are appearing on Linux. I am wondering 
how come I see the changes on Linux and not on Windows once I open to see 
it (even if I close it). It is not possible for me to go to Linux server 
and see the changes in file every time.  Can anybody help ?

Manisha



  


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




[PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Manisha

I am inserting into the table values with single Quote.

If I give the command through text file -  Insert into test values 
('manisha\' test') - then this is ok, but when i try to insert the manisha 
' test value through http:///sqladmin using GUI then MySql is 
giving error.

Any help regarding this ?

Any body knows how to stop and start the MySql service ?


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




Re: [PHP] Urgent - MySQL is not inserting the single quotes

2002-03-07 Thread Manisha

thanks, you are right, gpc_magic_quotes of php.ini  was off.



At 11:08 PM 3/7/02 -0500, Analysis & Solutions wrote:
>Hi Manisha:
>
> > If I give the command through text file -  Insert into test values
> > ('manisha\' test') - then this is ok, but when i try to insert the
> > manisha ' test value through http:///sqladmin using GUI then
> > MySql is giving error.
>
>What's the error?  That would certainly help us help you.  It might even
>help you help yourself.
>
>I'm guessing that your php.ini file has gpc_magic_quotes on.  If so,
>don't manually escape the data you're submitting, since PHP does it
>automatically.
>
>
> > Any body knows how to stop and start the MySql service ?
>
>Depends.  Do you have control over the server?  If so...
>net stop mysqld
>may do the trick for you.
>
>Later,
>
>--Dan
>
>--
> PHP scripts that make your job easier
>   http://www.analysisandsolutions.com/code/
>  SQL Solution  |  Layout Solution  |  Form Solution
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>
>--
>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] Image Uploading not taking place

2002-04-10 Thread Manisha

Image file uploading is not taking place.

This is the html code :



Send this file: 






This is the php file - uploadtest.php




When I run the html and submit it - I get messages "Inside if " and at the 
end "file upload over" But when I check the directory /img - there is 
nothing inside. i.e. no file is getting uploaded.

What is missing ?

thanks in advance,

manisha


Re: [PHP] Image Uploading not taking place

2002-04-10 Thread Manisha

yes, I have copied example from there itself, it is the max size which I 
forgot to copy in email but which is actually in a program.

My html do contain max size tag. Still it is not working.

html code 





Send this file: 



-

Following php file also have tried (with HTTP_POST)

Php code-


---


STILL NOT GETTING LOADED. ANYTHING ELSE ?





At 04:01 PM 4/11/02 +1000, you wrote:
>At 1:52 PM +0800 11/4/02, Manisha wrote:
>
> >Image file uploading is not taking place.
>
>A 5 second glance at the manual page for file uploads would have shown
>you what you're doing wrong *and* given you a cut-and-paste example of
>how to do it right.
>
>http://www.php.net/manual/en/features.file-upload.php
>
>  ...R.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP] Image Uploading not taking place

2002-04-11 Thread Manisha

At 05:52 PM 4/11/02 +1000, Richard Archer wrote:
>At 2:28 PM +0800 11/4/02, Manisha wrote:
>
> >
>
>That's a mighty small limit on file size. Especially if it's an
>image being uploaded. Are you sure the file you're testing with
>is smaller than 1000 bytes?
>
>Also, be aware that this field is advisory only. Many browsers
>ignore it.
>


yes it is within limit


> >if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
> > copy($HTTP_POST_FILES['userfile']['tmp_name'], "/img");
>
>Check to see whether that "copy" function completed successfully.


how ? I put one echo statement after copy which is displaying but never 
uploading the file.

>I'd be surprised if you really want to move the file to /img.
>And if you're on a Unix system the web server certainly won't
>have write access to the / directory.


i tried with complete path starting from root (/usr/web/html/img) and 
also with virtual (/img/).

Is there any extra param setting ? any access rights ?


> >STILL NOT GETTING LOADED. ANYTHING ELSE ?
>
>Please don't shout.

Am I ? I do not think so. It is just an EMPHASIS.

>  ...R.
>
>--
>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] Want to remove some special from text

2001-11-08 Thread Manisha

I want to remove all html related tags, such as 
... etc

But want to keep the rest data as it is. Just want to remove those tags. 
Any idea how to do it ?

manisha


[PHP] Want To Know about Databse Connection

2001-06-19 Thread Manisha

Hi,

We are developing web application. The client wants it to get connected to 
their central database server in USA. Web server is in Singapore.

Web server configuration  - Situated in Singapore, unix / php / mysql - 
this database is only for some special cases where application does not 
require  central database.

Main central database server - Situated in USA, HP UX / sybase

On web site we will be providing product listing and order form. After the 
order is confirmed and payment is made, client wants to update some fields 
on central database.

Can anybody give me the details, how to do it? If I am using php, how to 
connect to remote server's database? What are the components require on 
both servers? How will be the network configuration? Any information 
source? etc etc...

Thanks in advance
manisha





Re: [PHP] Pie Charts & Bar Charts & Line Charts...

2001-06-19 Thread Manisha

Use Macromedia's Generator 2.0 along with flash 5.0. This gives ability to 
connect to database - php with flash object.

manisha



At 08:45 AM 6/12/01 -0700, Karl J. Stubsjoen wrote:
>Hey Guys,
>
>Anyone have any good starting points for delivering charts on the web?
>
>Thanks a bunch.
>
>
>Karl J. Stubsjoen
>www.iexcelinlife.com
>[EMAIL PROTECTED]
>Phone:  602.447




[PHP] How to connect to remote database server through PHP?

2001-06-21 Thread Manisha

Hi,

We are developing web application. The client wants it to get connected to 
their central database server in USA. Web server is in Singapore.

Web server configuration  - Situated in Singapore, unix / php / mysql - 
this database is only for some special cases where application does not 
require  central database.

Main central database server - Situated in USA, HP UX / sybase

On web site we will be providing product listing and order form. After the 
order is confirmed and payment is made, client wants to update some fields 
on central database.

Can anybody give me the details, how to do it? If I am using php, how to 
connect to remote server's database? What are the components require on 
both servers? How will be the network configuration? Any information 
source? Any mailing list for network connections ?


Thanks in advance
manisha



-- 
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] Wanted Some help about Applet

2001-07-08 Thread Manisha

Anybody knows good mailing list specially for Java Applets ?

thanks
manisha


-- 
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] Require very urgent Help about Security (pki, digital signature) along with PHP

2001-07-09 Thread Manisha

Hi,

I want to develop one payment site, where people will pay their tax. The 
payment is made through the payment gateway. But database entries are on 
local machine. From these database entries I am generating reports which 
need to encrypt and send it through mail or keep for download (which one is 
better?). The client will open / download it on his local machine and will 
decrypt it for reading.

These reports are very sensitive, so I want high end security (I am out of 
USA). I am thinking of using pki (public key infrastructure).

One key will be used to encrypt and another key to decrypt. Server will 
encrypt it and client will decrypt it. I hope there will be some companies 
who will be providing ready made software for that. Whether anybody can 
recommend about it? Also require more detail information about it.

  I also want to access the things using PHP / ASP / any web based 
language. How to encrypt the reports using PHP / ASP.

Please help me as this is very urgent.


regards,
manisha






-- 
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] How to generate Automatic Reports ?

2001-07-10 Thread Manisha

hi,

I want to generate some reports every night at 12.00 o'clock in the night. 
The reports should get generated automatically without administrator 
clicking the option. It should run some PHP file which will do the actual 
report generation stuff, but how to activate this file every nigh ?

platform is win2k / IIS / SQL / PHP

regards
manisha


-- 
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: Any idea how to do this?

2003-10-08 Thread Manisha Sathe
I am a newbie to php specially sessions part. I read a lot about it.

On my site user needs to login. The session will be created and some info
will be stored into it. Session will be ON for some predefined time (given
in ini file e.g 30 mins). The session will die after that time ( according
to what I understood).

 But what if I want system something like - till user closes his browser or
logout - he should remain 'Login', even after 30 mins. Is there any thing
like session_time_out event handler ? -- after time out  again take session
values and restore it ? If user closes his browser or presses 'Logout'
button then only session ends till then he remains 'LogOn'

Manisha



"Paul Van Schayck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> [EMAIL PROTECTED] (Ryan A) wrote in
> > So I have decided that I am going to try to make the same thing on our
> > site but offer it free to the public...only problem is...I dont know
> > where to start and was hopeing someone here can give me tips/urls or
> > links to boost me on my way...
>
> You know PHP? Take a look at the image functions:
> http://www.php.net/manual/en/ref.image.php
>
> You can do all sort of things with images.
>
> Polleke

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



[PHP] want to restart session after time out

2003-10-08 Thread Manisha Sathe
Hi,

I want to make use of sessions. Very new to this part. I read a lot about
it. Now know how to register / start etc.

I understand that session terminates after time out (specified in php.ini
file e.g 30 mins).  But I do not want session to be terminated like this. I
want to terminate session only if user closes the browser or clicks 'LogOut'
button. After 30 mins I still want to keep all session values as it is.

Is there any way out ?

Regards
Manisha

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



[PHP] Re: Any idea how to do this?

2003-10-08 Thread Manisha Sathe
sorry, wrong posting



"Manisha Sathe" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am a newbie to php specially sessions part. I read a lot about it.
>
> On my site user needs to login. The session will be created and some info
> will be stored into it. Session will be ON for some predefined time (given
> in ini file e.g 30 mins). The session will die after that time ( according
> to what I understood).
>
>  But what if I want system something like - till user closes his browser
or
> logout - he should remain 'Login', even after 30 mins. Is there any thing
> like session_time_out event handler ? -- after time out  again take
session
> values and restore it ? If user closes his browser or presses 'Logout'
> button then only session ends till then he remains 'LogOn'
>
> Manisha
>
>
>
> "Paul Van Schayck" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hello,
> >
> > [EMAIL PROTECTED] (Ryan A) wrote in
> > > So I have decided that I am going to try to make the same thing on our
> > > site but offer it free to the public...only problem is...I dont know
> > > where to start and was hopeing someone here can give me tips/urls or
> > > links to boost me on my way...
> >
> > You know PHP? Take a look at the image functions:
> > http://www.php.net/manual/en/ref.image.php
> >
> > You can do all sort of things with images.
> >
> > Polleke

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



Re: [PHP] want to restart session after time out

2003-10-08 Thread Manisha Sathe
thanks all,

If session has to time out  then in that case what shall i do in following
case ?

I have a login page, user logins and starts playing (it is a on line game
site), for each action (he tells something to do), i need to check whether
he is login (i.e session on), if yes, then take all session vars and act
accordingly. So do u mean to say that i need to ask for login again if i do
not find any session? Is it a normal practice to do ?

I always wonder what will happen if the user is half way - running some PHP
script at back which calls another script in turn and session ends in
between? May be this question will be very basic, but i always get confuse.

I know bit of ASP. I remember it is having something like 'On Session End'
event hadler. but  PHP does not have some thing like this ?

Regards,
Manisha



"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Comments inline
>
> On Wednesday 08 October 2003 10:23 pm, Chris Shiflett wrote:
> > --- Evan Nemerson <[EMAIL PROTECTED]> wrote:
> > > Well you can change the default from 30 mins to something larger,
> > > but that has security consequences...
> >
> > I am speaking to myself as much as anyone, but we should all try to
develop
> > the habit of explaining any such "consequences" that we mention. To do
> > otherwise doesn't really educate the many people who read these
responses,
> > whether now or in an archive. It only adds to the mystery of certain
topics
> > (such as security).
>
> Well, they _can_ always ask if they don't understand. I agree that it's
best
> to give as much information as possible, but that takes a LOT of time. If
we
> don't assume any prior knowledge, answering anything would be a huge pain.
>
> That being said, I agree that in this case I should have elaborated...
It's
> probably a reach for a lot of list readers.
>
> If you have long sessions, the likelyhood that someone will be able to
steal
> the session ID and imitate the user increases drastically. It's called
> session hijacking, and any google search (or archive search, probably)
will
> yield a wealth of information.
>
> >
> > > Sessions are kind of a hack over HTTP, which is pretty much a
> > > stateless protocol. There's Connection: keep-alive, but not every
> > > browser supports it, and I don't think there's a way to hook into it
> > > from PHP.
> >
> > Well, persistent connections aren't really intended to provide stateful
> > transactions (and they don't).
>
> They most certainly are not, but if they could _theoretically_ be used
that
> way. Practicality, however, forbids it. IMO it's a Bad Idea, but still
worth
> mentioning. Actually, now I'm thinking about writing a POC just to see if
it
> can be done, even in a laboratory setting.
>
> >
> > My favorite example to use is Google, because there are two resources
that
> > make up the front page: the HTML and the logo. With previous versions of
> > HTTP, unless a persistent connection was specifically requested, a
separate
> > TCP connection was established for each transaction. This meant two TCP
> > connections would be created and destroyed just to render Google.
Imagine
> > more elaborate sites, and you can see how this can really cause
performance
> > problems. By making persistent connections the default (HTTP/1.1), a
single
> > TCP connection can be established, and until all necessary resources are
> > received, the same connection is used. This makes much more sense. The
> > Connection header allows you to specify the desired behavior.
>
> Wow they finally have one image! IIRC, for a long time the logo was
several
> small images that looked like a single image. That way, the whitespace
around
> the letters didn't have to be included in the image. IMHO that was a cool
> solution. They still avoid superfluous line breaks, which makes me
happy...
>
> >
> > Oh, and every major browser I am aware of does support it, but hopefully
> > you can now see that it is not associated with sessions or even stateful
> > transactions.
>
> Okay well then here's another reason not to rely on keep-alive: Users
can't
> copy a URL and paste as an argument to wget -c (or any of the download
> managers). I'm sure there are many, many more reasons, but I sincerely
doubt
> I'd have to convice anyone not to use keep-alive for sessions.
>
> >
> > Hope that helps.
> >
> > Chris
> >
> > =
> > My Blog
> >  http://shiflett.org/
> > HTTP Developer's Handbook
> >  http://httphandbook.org/
> > RAMP Training Courses
> >  http://www.nyphp.org/ramp
>
> --
> Evan Nemerson
> [EMAIL PROTECTED]
>
> --
> "Who controls the past controls the future. Who controls the present
controls
> the past."
>
> -George Orwell

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



Re: [PHP] want to restart session after time out

2003-10-09 Thread Manisha Sathe
oh god, I was so confused, I was under impression that it is 30 mins in
total, but it is 30  mins inactive time,

>Keep in mind that this is 30 minutes of
> inactivity, not 30 minutes total. The user can be logged in for hours, so
> long as they are using the session.

Just this sentence and it solved all my problems, i was making round and
round only because of this wrong impression. It is a  stupid newbie
question, i hope u r used to it. btw, i did not find this in documentation.
Any docs please ?

Any way thanks a lot..lot..lot.

Regards
Manisha


"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wednesday 08 October 2003 11:23 pm, Manisha Sathe wrote:
> > thanks all,
> >
> > If session has to time out  then in that case what shall i do in
following
> > case ?
>
> Just have them log-in again.
>
> >
> > I have a login page, user logins and starts playing (it is a on line
game
> > site), for each action (he tells something to do), i need to check
whether
> > he is login (i.e session on), if yes, then take all session vars and act
> > accordingly. So do u mean to say that i need to ask for login again if i
do
> > not find any session? Is it a normal practice to do ?
>
> Yes. Users rarely complain about coming back to their computer an hour
later
> and having been logged out. Keep in mind that this is 30 minutes of
> inactivity, not 30 minutes total. The user can be logged in for hours, so
> long as they are using the session.
>
> >
> > I always wonder what will happen if the user is half way - running some
PHP
> > script at back which calls another script in turn and session ends in
> > between? May be this question will be very basic, but i always get
confuse.
>
> Sorry I don't see what you're asking... could you try to re-phrase it?
>
> >
> > I know bit of ASP. I remember it is having something like 'On Session
End'
> > event hadler. but  PHP does not have some thing like this ?
>
> I'm assuming that just lets you provide code to execute after the session
> ends. To the best of my knowledge, it doesn't. Then again, I don't think
it
> would be a good idea. Lots of extra overhead, and you shouldn't need a
> cleanup function if you write the code correctly. Data should be written
to
> the DB periodically throughout the session, not at the end. What exactly
> would you have this code do?
>
> >
> > Regards,
> > Manisha
> >
> >
> >
> > "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> > > Comments inline
> > >
> > > On Wednesday 08 October 2003 10:23 pm, Chris Shiflett wrote:
> > > > --- Evan Nemerson <[EMAIL PROTECTED]> wrote:
> > > > > Well you can change the default from 30 mins to something larger,
> > > > > but that has security consequences...
> > > >
> > > > I am speaking to myself as much as anyone, but we should all try to
> >
> > develop
> >
> > > > the habit of explaining any such "consequences" that we mention. To
do
> > > > otherwise doesn't really educate the many people who read these
> >
> > responses,
> >
> > > > whether now or in an archive. It only adds to the mystery of certain
> >
> > topics
> >
> > > > (such as security).
> > >
> > > Well, they _can_ always ask if they don't understand. I agree that
it's
> >
> > best
> >
> > > to give as much information as possible, but that takes a LOT of time.
If
> >
> > we
> >
> > > don't assume any prior knowledge, answering anything would be a huge
> > > pain.
> > >
> > > That being said, I agree that in this case I should have elaborated...
> >
> > It's
> >
> > > probably a reach for a lot of list readers.
> > >
> > > If you have long sessions, the likelyhood that someone will be able to
> >
> > steal
> >
> > > the session ID and imitate the user increases drastically. It's called
> > > session hijacking, and any google search (or archive search, probably)
> >
> > will
> >
> > > yield a wealth of information.
> > >
> > > > > Sessions are kind of a hack over HTTP, which is pretty much a
> > > > > stateless protocol. There's Connection: keep-alive, but not every
> > > > > browser supports it, and I don't think there's a way to hook into
it
> > > > > f

[PHP] Need secure login

2003-10-09 Thread Manisha Sathe
Hi,

I have a client. He does not want member login by just giving password and
login id. He says anybody can give this info to his friend and his friend
can access the site.

One way is to make use of cookie on his computer. So only from one computer
he can access the site. But the thing is that user needs to accept it, and i
believe I need to provide some method too in case they delete the cookie.

Is there any other solution for this ?  Is there any third party software
for this ?

Regards
Manisha

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



[PHP] Video Streaming

2003-10-09 Thread Manisha Sathe
Client's site will be on PHP/Linux. They want to add Videos on site. But
they say they want to make use of Video Straming. I am very new to this
part. I searched web, I found some third party softwares (one of this is
videolan which is open source). But not sure how to integrate this with PHP.

Is there any special newgroup for this ?

Regards
Manisha

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



Re: [PHP] Need secure login

2003-10-09 Thread Manisha Sathe
Thanks Justin, actually I was also thinking of the same, but just wanted to
confirm that it is really not a good idea.

Was also wondering if there is any third party solution ?.

Regards
Manisha


"Justin French" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This first rule is never trust the client-side.
> The second rule is never trust the client-side.
>
> This means that relying on...
> a) the user accepting the cookie
> b) the user always using the same computer
> c) the user not deleting the cookie
> ... is a BAD idea.
>
> Frankly, if you force me to use a single computer to access your site,
> I'll just leave and never return.  I have 3 desktops and a laptop, all
> of which I use at different times.  Telling me I can only use one of
> them to access your site is like telling me I have to be wearing green
> socks whilst visiting your site.  It should be about MY preference, not
> yours.
>
> Likewise, you can't tie a member to a mac address, or to an IP address.
>
> I don't really have a solution to your problem, and anything you DO
> implement will be a pain in the arse to users (otherwise Amazon et al
> would have already implemented it), but here's some thought starters\
> -- all of which are deterrents NOT solutions.
>
> 1.  Make sure that a user can't login from two different places at
> once, if the user does, generate an email report of the problem, so
> that you can keep an eye on users who might be abusing the system.
>
> 2.  Randomly ask the user an additional question on login (DOB, pet's
> name, shoe size, postcode, etc) and compare it to Q's asked earlier.
>
> 3.  Tell them repeatedly that sharing a userid/pass is against your
> acceptable terms, and that any members caught doing so will have their
> account closed without refund -- usually the idea of getting caught is
> a good enough deterrent.
>
> 4.  Perhaps implement a rolling password system -- if this thing needs
> to be bullet proof.  Each time they login, or once a month, or at
> random intervals, you could reset their password.  Again, this ins't a
> solution, but it's a deterrent, because the user would have to keep
> their friends "updated".
>
>
> Most of the above is guaranteed to frustrate users though.  Is your
> site worth enough to your users to frustrate them?  Is the content your
> protecting really that important?  I doubt it :)
>
>
> Justin
>
>
>
>
>
> On Friday, October 10, 2003, at 11:44  AM, Manisha Sathe wrote:
>
> > Hi,
> >
> > I have a client. He does not want member login by just giving password
> > and
> > login id. He says anybody can give this info to his friend and his
> > friend
> > can access the site.
> >
> > One way is to make use of cookie on his computer. So only from one
> > computer
> > he can access the site. But the thing is that user needs to accept it,
> > and i
> > believe I need to provide some method too in case they delete the
> > cookie.
> >
> > Is there any other solution for this ?  Is there any third party
> > software
> > for this ?
> >
> > Regards
> > Manisha
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > ---
> > [This E-mail scanned for viruses]
> >
> >

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



[PHP] Session problem

2003-10-26 Thread Manisha Sathe
I am trying to use session but it seems it does not work on win2k server,
the same runs on linux.

following is my first php
---

--
following is the second php



-

but it is always giving me following error msg

Notice: Undefined index: name in C:\Project Codes\www\testPHP\second.php on
line 6



The same thing works well on live Linux server. I checked php.ini options
such as session enable / register global etc - both r same. Please help  me.
Is it a problem with win2k server or did i miss out any thing in php.ini ?

Regards
Manisha

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



Re: [PHP] Session problem

2003-10-26 Thread Manisha Sathe
It works well on linux means it shows me o/p as 'Manisha' but on local
Win2kserver, it gives error.

I tried to make use of error_reporting(0); in second.php but then screen
becomes blank, it does not show me the output as "Manisha"

manisha



"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Your Linux server probably has error_reporting set to 0, which is usually
a
> good idea for production environments. To supress the error messages
without
> modifying your php.ini, do error_reporting(0). Take a look in your php.ini
> file- the error_reporting directive will have lots of comments around it
> explaining the concept thoroughly.
>
>
> On Sunday 26 October 2003 01:06 am, Manisha Sathe wrote:
> > I am trying to use session but it seems it does not work on win2k
server,
> > the same runs on linux.
> >
> > following is my first php
> > ---
> >  > session_start();
> > $_SESSION["name"]= "Manisha";
> > ?>
> > --
> > following is the second php
> >
> >  > session_start();
> > echo $_SESSION["name"];
> > ?>
> >
> > -
> >
> > but it is always giving me following error msg
> >
> > Notice: Undefined index: name in C:\Project Codes\www\testPHP\second.php
on
> > line 6
> >
> > 
> >
> > The same thing works well on live Linux server. I checked php.ini
options
> > such as session enable / register global etc - both r same. Please help
> > me. Is it a problem with win2k server or did i miss out any thing in
> > php.ini ?
> >
> > Regards
> > Manisha
>
> --
> Evan Nemerson
> [EMAIL PROTECTED]
>
> --
> "The people are the only sure reliance for preservation of our liberty."
>
> -Thomas Jefferson

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



Re: [PHP] Session problem

2003-10-26 Thread Manisha Sathe
Hi,

do u mean to say put this codes in php ?
I tried to put it in second.php following is the msg -
--
string(5) "EGPCS" bool(false)
Notice: Undefined variable: _SESSION in C:\Project
Codes\Vanderveer\www\testPHP\second.php on line 4
NULL
Warning: session_start(): Cannot send session cookie - headers already sent
by (output started at C:\Project Codes\Vanderveer\www\testPHP\second.php:2)
in C:\Project Codes\Vanderveer\www\testPHP\second.php on line 7

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at C:\Project
Codes\Vanderveer\www\testPHP\second.php:2) in C:\Project
Codes\Vanderveer\www\testPHP\second.php on line 7

Notice: Undefined index: name in C:\Project
Codes\Vanderveer\www\testPHP\second.php on line 10
-

I am not that expert in PHP, what all above means ? can u give me a hint
now, what is going wrong ?

regards
manisha

"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> var_dump(ini_get('variables_order'));
> var_dump(isset($_SESSION));
> var_dump($_SESSION);
>
> ?
>
>
> On Sunday 26 October 2003 01:43 am, Manisha Sathe wrote:
> > It works well on linux means it shows me o/p as 'Manisha' but on local
> > Win2kserver, it gives error.
> >
> > I tried to make use of error_reporting(0); in second.php but then screen
> > becomes blank, it does not show me the output as "Manisha"
> >
> > manisha
> >
> >
> >
> > "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> > > Your Linux server probably has error_reporting set to 0, which is
usually
> >
> > a
> >
> > > good idea for production environments. To supress the error messages
> >
> > without
> >
> > > modifying your php.ini, do error_reporting(0). Take a look in your
> > > php.ini file- the error_reporting directive will have lots of comments
> > > around it explaining the concept thoroughly.
> > >
> > > On Sunday 26 October 2003 01:06 am, Manisha Sathe wrote:
> > > > I am trying to use session but it seems it does not work on win2k
> >
> > server,
> >
> > > > the same runs on linux.
> > > >
> > > > following is my first php
> > > > ---
> > > >  > > > session_start();
> > > > $_SESSION["name"]= "Manisha";
> > > > ?>
> > > > --
> > > > following is the second php
> > > >
> > > >  > > > session_start();
> > > > echo $_SESSION["name"];
> > > > ?>
> > > >
> > > > -
> > > >
> > > > but it is always giving me following error msg
> > > >
> > > > Notice: Undefined index: name in C:\Project
> > > > Codes\www\testPHP\second.php
> >
> > on
> >
> > > > line 6
> > > >
> > > > 
> > > >
> > > > The same thing works well on live Linux server. I checked php.ini
> >
> > options
> >
> > > > such as session enable / register global etc - both r same. Please
help
> > > > me. Is it a problem with win2k server or did i miss out any thing in
> > > > php.ini ?
> > > >
> > > > Regards
> > > > Manisha
> > >
> > > --
> > > Evan Nemerson
> > > [EMAIL PROTECTED]
> > >
> > > --
> > > "The people are the only sure reliance for preservation of our
liberty."
> > >
> > > -Thomas Jefferson
>
> --
> Evan Nemerson
> [EMAIL PROTECTED]
>
> --
> "A popular government, without popular information, or the means of
acquiring
> it, is but a Prologue to a Farce or a Tragedy - or perhaps both. Knowledge
> will forever govern ignorance, and a people who mean to be their own
> Governors must arm themselves with the power which knowledge gives."
>
> -James Madison

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



[PHP] silly question about zend

2003-10-27 Thread Manisha Sathe
I wanted some sort of  IDE for PHP, so decided to use Zend (which i believe
quite popular).

I installed it on my redhat linux 8.0- both client and server components.
Instructions was smooth and gave me success msg, but now I do not know how
to open the IDE...

so stupid question.. but still want to know .. how to open Zend so that can
write PHP ?...

regards
manisha

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



Re: [PHP] Session problem

2003-10-27 Thread Manisha Sathe
ok, i am putting it the code in both files, now my first.php is as follows


//start the session - in all the pages
session_start();
var_dump(ini_get('variables_order'));
var_dump(isset($_SESSION));
var_dump($_SESSION);

//store it like that
$_SESSION["name"]= "Rinku";
-
The error msg is

string(5) "EGPCS" bool(true) array(0) { }

-
second.php is like this

--


the error msg is

string(5) "EGPCS" bool(true) array(0) { }
Notice: Undefined index: name in C:\Project
Codes\Vanderveer\www\testPHP\second.php on line 10

--

Please can u help me now in understanding it ?

manisha

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



[PHP] Want to install and link gd extension to PHP

2003-11-14 Thread Manisha Sathe
On Linux / PHP, for one third party software (moregroupware), I need gd PHP
extension. Initially I tried to uncomment the line in php.init as

extension=php_gd2.dll

but it did not work, i tried to find files for gd but only one file php_gd.h
exists, so i tried with that
extension=php_gd.h (I tried with php_gd.so too) But still nothing happened.
The ext dir is as follows

extension_dir=".\"

Finally from internet I downloaded gd package and installed on server, but I
do not know how to link to PHP.  phpinfo() command shows config with apx2
and mysql, gd does not appear there. How to install gd and how to link to
PHP ? can anybody help me please ?

Thanks in advance,

manisha

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



[PHP] Single Session for different websites

2003-11-17 Thread Manisha Sathe
I hv physically one single server, but with different websites on it

like www.aaa.com / www.bbb.com / www.ccc.com

Now the problem is about session. What I want is login page at www.aaa.com
only but session  is accessible from www.bbb.com and www.ccc.com

can it be possible, if yes how ? if no any other work around ?

Thanks in advance
manisha

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



Re: [PHP] Single Session for different websites

2003-11-17 Thread Manisha Sathe
thanks for your soln, I searched the web, and got some readymade soln files
too, I have one question regarding this,

if my php.ini is giving me 'session.save_handler' as 'files'  and as server
is a shared server so i may not be able to change it, so what can we do to
resolve this ?

manisha

"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Manisha Sathe wrote:
>
> > I hv physically one single server, but with different websites on it
> >
> > like www.aaa.com / www.bbb.com / www.ccc.com
> >
> > Now the problem is about session. What I want is login page at
www.aaa.com
> > only but session  is accessible from www.bbb.com and www.ccc.com
> >
> > can it be possible, if yes how ? if no any other work around ?
>
> You can store the session information in a database that can be read
> from all three websites.
>
> --
> Burhan Khalid
> phplist[at]meidomus[dot]com
> http://www.meidomus.com
> ---
> "Documentation is like sex: when it is good,
>   it is very, very good; and when it is bad,
>   it is better than nothing."

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



[PHP] Custom Session usind MySQL

2003-11-18 Thread Manisha Sathe
I want the session to be accessed from different websites, so i got the
answer in this forum only to make use of customised session with mysql.

I searched the web and came to know that 'session.save_handler' of php.ini
needs to be as 'user' but instead, on my server it is 'files'. As server is
a shared server so i may not be able to change it, what can i do to resolve
this ?

Thanks in advance
Manisha

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



Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread Manisha Sathe
yes, website is on same machine, but if there is to and fro from 2 websites,
then for both ways i need to pass it ? what will happen to session time
limit ? if i go website1 then go to another website2 then after 30 mins i
come back to website1 (session timeout 30mins) then what will happen ? Any
sample code would be appreciated.

if at all i decide to go for database then do i need  'session.save_handler'
as 'user' ?

manisha


> Manisha Sathe wrote:
>
> > I want the session to be accessed from different websites, so i got the
> > answer in this forum only to make use of customised session with mysql.
> >
> > I searched the web and came to know that 'session.save_handler' of
php.ini
> > needs to be as 'user' but instead, on my server it is 'files'. As server
is
> > a shared server so i may not be able to change it, what can i do to
resolve
> > this ?
>
> Are both websites on the same machine? If so, you can just use a common
> session.save_path and pass the session_id when changing servers.
>
> If the websites are on different machines, then you'll need to use a
> database for sessions and ensure the database is accessible by each site.
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals – www.phparch.com

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



[PHP] Re: Custom Session usind MySQL

2003-11-19 Thread Manisha Sathe
thanks all for your help, will try it out now

manisha

"Manisha Sathe" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I want the session to be accessed from different websites, so i got the
> answer in this forum only to make use of customised session with mysql.
>
> I searched the web and came to know that 'session.save_handler' of php.ini
> needs to be as 'user' but instead, on my server it is 'files'. As server
is
> a shared server so i may not be able to change it, what can i do to
resolve
> this ?
>
> Thanks in advance
> Manisha

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



[PHP] Where can i find error log

2003-11-20 Thread Manisha Sathe
On server display_error is off in php ini, so I do not get the error msgs,
is there anything like error log ? In this case how to find the errors?

regard,
manisha

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



[PHP] Date format question

2003-11-24 Thread Manisha Sathe
I have a date returned from MySQL in '-MM-DD' format, i want to show
this date in 'DD/MM/' format using PHP, date() function does the same if
i pass timestamp in int format, but how to convert  into int timestamp ?

e.g from '2003-11-25' to '20031125' ? and
Then I believe that i can use date ("d/m/Y", '20031125' ) to the things done
?

Thanks in advance,

regards,
manisha

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



Re: [PHP] Date format question

2003-11-25 Thread Manisha Sathe
Thanks to all, it help me a lot

manisha

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



[PHP] New line problem - but for Excel

2003-11-28 Thread Manisha Sathe
Just now discussion was going on for new line - the same worked for me (I
used string replace)

Live Server : Linux / MySQL / PHP

There is a field called 'Address' (textarea) -  mysql stores \n for carriage
return. Now from current disussion thread i know i can remove this with
something like  (may be something else also)

I want to export this to csv file. PHPMyAdmin 2.0 version has one option to
convert to csv with delimiter e.g ';' .

On my computer (Windows)

If I do not use string replace command then '\n'  goes as a new row. If i
replace it with  then it appears in the Excel that is also I do not
want.

Is there any better way so that '\n' does not come out as new row - but do
not want to make use of  as this will appear, please suggest,

regards
manisha

When i open it in Excel now that \n becoms a new row which i do not want

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



Re: [PHP] New line problem - but for Excel

2003-11-28 Thread Manisha Sathe
Actually I do not have phpscript for this. I am using readymade function
from PHPMyAdmin 2.1.0. They are having option to export to csv file with
delimeter ';' (It comes on screen first and then i copy to file manually.)

So my csv fil looks like

22;33;address line1
address line2

What excel does is it shows this as 2 different lines. But this all should
be in one line.

if  replace \n with  then

22;33;address line1address line2

Do u mean to say i need to write script only to produce proper '.csv' file ?


Regards,
Manisha






"David T-G" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

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



[PHP] how to escape '\'

2003-11-28 Thread Manisha Sathe
I have magic_quotes_gpc ON

'Here's is'  - this comes out after HTTP post  as

'Here\'s is'

But i want to get back the original string as it is - how to change ?

manisha

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



[PHP] Please please help - very very urgent

2003-12-01 Thread Manisha Sathe
I am developing one site. Initially it was working properly, but later
installed certificate so now instead of http:// now it has become https://

Now all weired things started happenning, it asks whether i want to download
the file ? if i open the file then it shows me all 'Source Codes' instead of
HTML output, but all plain html files are displayed ok, what is missing ?
do i need to change any php settings ?? please give me hints on that,

please please help me - it's very very urgent.

regards,
manisha

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



Re: [PHP] Please please help - very very urgent

2003-12-01 Thread Manisha Sathe
A big thanks to both of you, it got solved,

it was a config problem only and with the help of ISP we could resolve it,

Thanks once again

manisha

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



[PHP] Do not want Undefined variable message

2004-03-07 Thread Manisha Sathe
I have following code

testinclude.php
<%
echo "A $color $fruit"; // A
include 'vars.php';
echo "A $color $fruit"; // A green apple
%>

vars.php
<%
$color = "green";
$fruit = "Apple";
%>

But when i run the testinclude program I always get "Undefined variable
errro on very first line. I know it is because vars are not defined yet, but
i remember last time those warnings never used to come. What setting is
needed in php.ini file ?

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



[PHP] HTML/PHP page print

2004-03-18 Thread Manisha Sathe
Hello,

I want to print a document. The values are picked up from database and then
PHP displays it is on screen. But I want to print in some predefined format
(Customer has printed stationary) by using Browser's print button.

How can avoid other stuff on my web page ? Also when i print then title of
document / page no / url / date also get displayed. How can i avoid it ?

Thanks in advance

Regards
Manisha

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



[PHP] Suddenly some errors are coming

2004-04-03 Thread Manisha Sathe
I am having a login page which goes to login process file. I have a include
file which connects to database. Till now all was ok suddenly it started
showing following

---
Warning: main(): stream does not support seeking in
/home2/www/members/login-px.php on line 6


This line is nothing but where i included my file for database connection.
My client got very upset, i am also not understanding why suddenly this
popped out when for last 6 months nothing was wrong.

I did not change anything neither my client. I tested db connection
separately - it is ok. Then what can be the problem? The environment is
Apache / MySQL / Linux / PHP.

Thanks in advance,

regards
manisha

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



[PHP] Re: Suddenly some errors are coming

2004-04-03 Thread Manisha Sathe
1)ok, will check out with ISP.
2)Yes but  not for the page i am geting error - for few others. But
previously all was ok,  why suddenly this problem came out ?

what u did in yr case ? pls guide me so that i will try it out the same.

manisha

"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 1) Have your ISP upgraded PHP lately?
> 2) Are you including files from another server?
> Meaning, your on www.domain1.com including files from
> www.domain2.com?
>
> Ive encountered this problem earlier when 1) and 2) was the case.
>
> --
> --
> Kim Steinhaug
> --
> There are 10 types of people when it comes to binary numbers:
> those who understand them, and those who don't.
> --
> www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
> ------
>
>
>
> "Manisha Sathe" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I am having a login page which goes to login process file. I have a
> include
> > file which connects to database. Till now all was ok suddenly it started
> > showing following
> >
> > ---
> > Warning: main(): stream does not support seeking in
> > /home2/www/members/login-px.php on line 6
> > 
> >
> > This line is nothing but where i included my file for database
connection.
> > My client got very upset, i am also not understanding why suddenly this
> > popped out when for last 6 months nothing was wrong.
> >
> > I did not change anything neither my client. I tested db connection
> > separately - it is ok. Then what can be the problem? The environment is
> > Apache / MySQL / Linux / PHP.
> >
> > Thanks in advance,
> >
> > regards
> > manisha

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