What exactly do you want to do ?
Thomas
What exactly do you want to do ?
Thomas
Registration?
ok forget it...
what is the difference between session and cookies?
which one is better to use?
Asking "what is the difference between sessions and cookies?" is like asking "what is the difference between beer and a pint glass?"
Just as beer is normally served in a glass, but can be served in other ways, session IDs are normally recorded in cookies, but can be recorded elsewhere if need be.
Basically, sessions are a shrink-wrapped approach to storing data that doesn't need to last longer than the current session. It uses cookies when it can. It inherently has the security advantage that no real data is stored on the client, only a session ID is stored in the cookie. (You can do this yourself with persistent cookies, but all you'd end up doing is replicating PHP's inbuilt mechanism, with added complications regarding cookie expiration.)
Details about how PHP uses cookies for session management can be found in the obvious place.
did yesterday's work of recompiling PHP-4.3.6 will create any problem for local apache server?
bcoz,it is not getting started..
In which way doesn't it start ? Is that the same web server as the one above where you recompiled the PHP module ?
Thomas
means when i opens some file on that local server it does not shows any page.
I started mysqld and apache but it shows no effect...
ya...on that same server(local web server) i recompiled PHP-4.3.6
but that folder was in another seperate folder ...(/home/sandhya/php-3.4.6/...)
from where i did the whole work.
then should it will affect?
Hmmm ... the only thing you did was to compile a module and to copy and activate just that module by hand. That shouldn't cause such problems.
Do you see just an empty page or do you see some code if you view the source of the page with your browser ? Did you check if the MySQL and apache threads are running at all ?
Thomas
Sorry Thomos,
bcoz of another reason there was problem..
thanks..
did u know perl?
kind of ... but if you have a bigger perl problem then posting to a perl forum might be the better way.
Thomas
it is ok if i includes in this way
<?
("mysql.so");
("domxml.so")
?>
bcoz, with dl("domxml.so") it shows the same error..
and if removes 'dl' then it shows no any warning or error..
Fatal error: Call to undefined function: domxml_open_file() ?
how to restart apache thru command line after editting php.ini?
There's a init script in the apache bin directory:
/usr/local/apach2/bin/apachectrl stop
and then
/usr/local/apach2/bin/apachectrl start
But you might need to login as root.
Thomas
[root@ns1 root]# /usr/local/apache2/bin/apachectl stop
httpd: module "/usr/src/build/228709-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.
Fatal error: Call to undefined function: domxml_open_file() ?
why this error is coming?
in php_info(),there is no DOM section.
Ok,
this error message contains "php-4.2.2". The phpinfo page you posted was php-4.3.6. So something has been mixed up (wrong PHP version).
Check the apache init script in /etc/init.d. How does it look like (post the script).
Thomas
" Press ? for keyboard shortcuts
" Sorted by name (.bak,~,.o,.h,.info,.swp,.obj at end of list)
"= /etc/rc.d/init.d/
../
rc.d/
aep1000
anacron
apmd
arpwatch
atd
autofs
bcm5820
canna
cpqarrayd
crond
cups
cxconfig
cxupdate
f-protd
functions
gpm
halt
httpd
httpd.orig
httpd.rpmorig
identd
ipchains
iptables
irqbalance
isdn
kdcrotate
keytable
killall
kudzu
lisa
loadmodules
lpd
microcode_ctl
mysqld
named
netdump
netdump-server
netfs
network
nfs
nfslock
nscd
ntpd
otrs
p
portmap
postfix
radvd
random
rawdevices
rhnsd
routed
safesquid
saslauthd
scan-mail
sendmail
sendmail.old
sendmail.rpmsave
single
smartd
smb
snmpd
snmptrapd
squid
sshd
syslog
tux
vncserver
vncserver.lock
vsftpd
webmin
winbind
xfs
xinetd
ypbind
yppasswdd
ypserv
ypxfrd
I recompiled PHP-4.3.6 , even if why
this is error is coming?
Fatal error: Call to undefined function: domxml_open_file()
does PHP-4.3.6 not support domxml_open_file() ?
Post the /etc/rc.d/init.d/httpd file.
Thomas
#!/bin/bash
#
#
. /etc/rc.d/init.d/functions
if [ -f /etc/sysconfig/httpd ]; then
. /etc/sysconfig/httpd
fi
INITLOG_ARGS=""
apachectl=/usr/local/apache2/bin/apachectl
httpd=${HTTPD-/usr/local/apache2/bin/httpd}
prog=httpd
RETV# check for 1.3 configuration
check13 () {
CONFFILE=/usr/local/apache2/conf/httpd.conf
GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
GONE="${GONE}AccessConfig|ResourceConfig)"
if grep -Eiq "[[:space:]]*($GONE)" $CONFFILE; then
echo
echo 1>&2 " Apache 1.3 configuration directives found"
echo 1>&2 " please read /usr/share/doc/httpd-2.0.40/migration.html"
failure "Apache 1.3 config directives test"
echo
exit 1
fi
}
start() {
echo -n $"Starting $prog: "
check13 || exit 1
daemon $httpd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc $httpd
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid
}
reload() {
echo -n $"Reloading $prog: "
check13 || exit 1
killproc $httpd -HUP
RETVAL=$?
echo
}# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $httpd
RETVAL=$?
;;
restart)
stop
start
;;
condrestart)
if [ -f /var/run/httpd.pid ] ; then
stop
start
fi
;;
reload)
reload
;;
graceful|help|configtest|fullstatus)
$apachectl $@
RET ;;
*)
echo $"Usage: $prog {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"
exit 1
esac
exit $RETVAL
VAL=$?
Ok,
now post /usr/local/apache2/conf/httpd.conf as attachment and execute
/usr/local/apache2/bin/httpd -V
and post the results.
Thomas