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
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.
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
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
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
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
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: http://www.php.net/u
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
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
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.
11 matches
Mail list logo