customer fund management system design in shopping websites
A newbie website programmer may thinks it easy to handle the customer’s fund. Consider a buyer buys a goods/service from a seller on your website. Most likely he will handle […]
A newbie website programmer may thinks it easy to handle the customer’s fund. Consider a buyer buys a goods/service from a seller on your website. Most likely he will handle […]
Some web pages need authentication to access. Only authorized users are allowed to read those pages. For example, wordpress back-end pages are prohibited from accessing by unauthorized visitors(you can refer […]
Since space is not allowed in a url, the following html is illegal in syntax: <a href=”http://myprogrammingnotes.com/test.php?p=var1 + var2″>click me</a> However, if you open that html in firefox, you will […]
For not once, I encounter this problem: curl_exec returns false but curl_getinfo returns a valid object. I even see the http_code=200 and header_size is a good number. Why curl_exec always […]
$dom = new DOMDocument(); $dom->load(“test.xml”); $text=$dom->getElementsByTagName(“Name”)->item(0)->nodeValue; The above code lines get the text between <Name></Name> Suppose the text between the tags is: <Name>http://myprogrammingnotes.com/index.php?p1=value1&p2=http%3A%2F%2Fgoogle.com</Name> what would $text be? Is $text “http://myprogrammingnotes.com/index.php?p1=value1&p2=http%3A%2F%2Fgoogle.com” […]
\b is kind of special, it is not a character, neither a class of characters. It represents a change from a word character(letters, numbers, underscore) to a non-word character(or end […]
First, note that the function name is getElementById, not getElementByID, or getElementsById. Second, this function is a member of DOMDocument, not DOMElement. If you get a DOMElement parent and try […]
If you have a typo in a php file that breaks the syntax, the php engine cannot execute the php code and exits. You will see a blank page. The […]
stripslashes is used to strip backslashes from a string, i.e., stripslashes(“\\e”)===”e” stripslashes(“\\n”)===”n” stripslashes(“\n”)===”\n” //there is no backslash in the string. stripcslashes almost does the same thing as stripslashes except it […]
SimpleXMLElement is used to represent an XML element. The typical usage is: $resp = simplexml_load_file($httpcall); $resp->somechild; Note that somechild is the tag name of a child of the XML […]