[PHP] session and mysql connection identifier

2004-07-20 Thread mukta telang
Hi, I want to use mysql persistent connection to connect to mysql and use the connection identifier or handle in subsequent pages/scripts. So in script1.php I have session_start(); session_register('conn'); HTTP_SESSION_VARS['conn']=mysql_pconnect(...); and in script2.php I have, echo $conn; and

[PHP] fopen successful..cant write to the file though permissions are ok..

2004-06-11 Thread mukta telang
Hi, I am facing a strange problem..When I try to create a file in /tmp directory (using php script) as follows: $filename"/tmp/newfile"); $filehandle=fopen($filename,"w"); fclose($filehandle); I get error something like fclose(): ~not a stream~. All routines like fwrite(), readdir() give errors.

[PHP] Document root

2003-08-14 Thread Mukta Telang
Hi! Is there any constant in php like $DOCUMENT_ROOT which holds path to the "Document root" of the server? I want to do something like this: $path=$DOCUMENT_ROOT."/files/one.php"; echo ""; Thanks in advance, Mukta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] fpdf

2003-07-30 Thread Mukta Telang
Hi, I want to display the results generated by the query and generate a pdf document (using fpdf) for the users to save. The user should be able to save it by clicking on a save button. I have a script called display.php which displays the result of the query..now I want user to be able to s

[PHP] Dynamically generate a drop down list

2003-07-28 Thread Mukta Telang
Hi, I want to dynamically generate a drop down list of "authors" by querying a database. What I am doing at present is: function init_auth_list($auth_list) { $auth_list=" select the name of t he author"; $query="select name from author order by name"; $result=pg_exec($GLOBA

[PHP] forms addslashes ?

2003-06-19 Thread Mukta Telang
Hi, I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo "; $title=addslashes($title); But the string that gets added has a lot of slashes! How should this be done? M

[PHP] string question

2003-06-11 Thread Mukta Telang
Hi, if a string is: $x="A.B. XYZ"; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not "A.B. XYZ" ! What should I do? Mukta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] determine action of a form dynamically?

2003-06-03 Thread Mukta Telang
Hi, I want action of a form to be PHP_SELF untill user presses "continue" button. If continue button is pressed than "next.php" should be the action of the form. how to do this? Thanks in advance, Mukta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] ftp and www

2003-01-06 Thread Mukta Telang
Hi, I am told to " merge ftp and www " ! I cant understand what it means.. May be it means that it should be possible to browse ftp directory from a browser? What is php's support for ftp? Mukta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] public_html and httpd.conf

2002-10-29 Thread Mukta Telang
Hi, All the (php) files that I create under public_html directory are visible to all users...is there anything like "private_html" where I could test my code and it will not be visible to all except me?! I am using php in solaris... mukta -- PHP General Mailing List (http://www.php

[PHP] Passing the variables ...

2002-10-28 Thread Mukta Telang
I have written followong code in hello.html: enter your name: and following in hello.php: hello %s!",$textbox); ?> This script works fine with php in redhat 7.2 system but does not work in solaris 7 ! I have done the php installation... apache version: 2.0.40 php version: 4.