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;
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.
An
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 a href=\$path\;
Thanks in advance,
Mukta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
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
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 name=author option value=\\select the
name of t
he author/option\;
$query=select name from author order by
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 input type=\text\ name=\title\;
$title=addslashes($title);
But the string that gets added has a lot of
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
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:
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:
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
I have written followong code in hello.html:
HTML
HEAD
/HEAD
BODY
FORM ACTION=hello.php METHOD=POST
Benter your name:/B
INPUT TYPE=TEXTAREA NAME=textbox
INPUT TYPE=SUBMIT
/FORM
/BODY
/HTML
and following in hello.php:
HTML
HEAD
/HEAD
BODY
?php
printf(BRhello %s!,$textbox);
?
/BODY
/HTML
This
11 matches
Mail list logo