Suppose user enter some text into a form. The text has different line and spaces in between. But when he submit the form, my $HTTP_POST_VARS['textEntry'] scrambled all the text into one line.
How can I make the text not scrambled/combine together into one single line?
I put code:
error_reporting(E_ALL^E_NOTICE);
$str .= "abc";
echo $str;
-- does not trigger warning message, but:
error_reporting(E_ALL^E_NOTICE);
set_error_handler("myOwnHandler");
-- trigger warning message, how come?
My question is that I turn off the warning report but how come it still pass...
Well, I need to design my own error handler function. Whenever error occur, I hope this function not only can keep the error log, but also direct user to another page.
I tried to put header() in this function, but in some cases, it popup the message saying the header already been sent...
Can anyone teach me how to hide my HTTP_GET_VARS in the url address, without using the frameset method?
I tried to use header() to call self page, but it just could not work... why???
Thanks.
Does anyone know how to generate a page with smarty and the page has an expiry date?
How can we check whether this function has taken effect?
source:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Many thanks.
Is there any PHP script that can help me to generate a fix length cipher text and decrypt it as well?
By the way, my server does not support any DES, AES, mcrypt...etc that provided by PHP... :-(
How can I call sub-query in MYSQL? For example:
SELECT * FROM pr_groups WHERE pr_groups.group_id=(SELECT groups_id FROM pr_items)
Besides, does mySQL allow creation of query file like MS-Access, so that I can call the query file from another query statement. For example:
SELECT * FROM...
ServerName localhost
What should I do with the Lmhosts.sam and hosts.sam file?
The content of hosts.sam
=========================
# Copyright (c) 1998 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98
#
# This file contains the mappings of IP...
When I access http://127.0.0.1, I can see the Apache test page. But, when I access http://localhost, the test page does not appear and wait until timeout.
Can anyone tell me how to fix it?
Instead of using Javascript I just place my SUBMIT (any button) button on the left most of other buttons. It will be click whenever user press ENTER key.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.