Paypal IPN - How to set custom item description?
How do I set my own item description? ...
How do I set my own item description? ...
What is the best version conrtol application? I'll setup it to my Windows 7. I have installed WAMP. So it could be eider Windows 7 application or PHP application. And my purpose is to manage / version-control PHP files only. Thanks in advance!!! ...
when i use acunetix on my page i get a: Blind SQL/XPath injection header: GET /file.php?id=2'+and+31337-31337=0+--+&page=2 response: no files found (sometimes it shows results) here is my php code: $id = (int) htmlentities($_GET['id']); $fileid = mysql_real_escape_string($id); the query: SELECT * FROM `files` WHERE `id` = '".$file...
Can someone tell me if either of these two methods has an advantage over the other and why? $mydir = ABSPATH.'/wp-content/themes/mytheme/images'; $mydir = dirname(__FILE__).'/images'; They can both be used to obtain and absolute path to the images directory of "mytheme" regardless of structure of whether wordpress is installed on the ...
I'd like to run unit test for a functions library file... that is, I don't have a class, it's just a file with helper functions in it... for example, I've created a php project at ~/www/test and a file ~/www/test/lib/format.php <?php function toUpper( $text ) { return strtoupper( $text ); } function toLower( $text ) { return st...
I'm looking for CMS built in symfony framework. Any examples? ...
Awhile ago I came across a script that basically fetched a list of countries/states from a web resource if it wasn't located in a database, and this script would then populate the database with those contents and from then on, rely on them from then on. Since I'm working on a localization class of my own, I'll be using the same locale d...
I've this sample code: class A { public function A_A() { /* ... */ } public function A_B() { /* ... */ } } class B extends A { public function B_A() { /* ... */ } public function B_B() { /* ... */ } public function B_C() { return get_class_methods($this); } } $a = new A(); $b = new B(); Doing this: echo '<pre>'; print_r...
Aparently, PHP doesn't recognize the State of Utah because I can't find the timezone for that area. Can someone please tell me what to use?" My server is in Salt Lake City. ...
I wanted to implement Comet in PHP and came across this page: http://www.zeitoun.net/articles/comet_and_php/start The second method explained in the article works fine for me. In the backend php file, the loop seems to be infinite: // infinite loop until the data file is not modified $lastmodif = isset($_GET['timestamp']) ? $_GET...
Hi all, I need your some help... How to create parallel output from many pages in one pages, see examples: I store all data in plain text e.g. old-book-version.txt 1:1 dadidedodu.... 1:2 cacecocuci.... 2:1 papopupepi.... 2:2 lalilolule.... 2:3 and more...... mid-book-version.txt 1:1 dedadodedu.... 1:2 cacicecuca.... 2:1 popapepupi......
I have a simple commenting system here... http://affbuzz.com/comments/7299a55137def55917a5dc6c4fe0f261af8a4217 ...and people can submit hyperlinks inside the plain text field. When I display these records back from the database and into the web page, what RegExp in PHP can I use to convert these links into HTML-type anchor links? Bonu...
I have a KMZ file stored in MySQL as a blob. KMZ file uses PKZIP compression. How can I unzip the file using PHP? ...
This is a contrived example: function test() { global $a; $a=2; } test(); //here $a will report undefined variable echo $a; I meet this problem now by somehow,but I can't reproduce it in an easy way! EDIT I mean operations like include or alike by when ...
I am thinking of building a review website and i was thinking about using php. What language would be good for a website like ratemyprofessor? would ruby be better? ...
I have several older applications that throw a lot of "xyz is undefined" and "undefined offset" messages when running on the E_NOTICE error level, because the existence of variables is not explicitly checked using isset() and consorts. I am considering working through them to make them E_NOTICE compatible, as notices about missing varia...
I am making a dynamic image that parses off of an rss feed. When I do the parsing normally, it displays exactly as I want it to, but when I put it in the image, there are boxes and html characters like ' aren't actually apostrophes. Here's a link to my image as of right now (with boxes): http://img.got-skills.net/advlog/advlogmaker.php...
How to implement the function ? So it'll output an array containing 2009-12-25 2009-12-26 2009-12-27 2009-12-28 2009-12-29 2009-12-30? ...
Hi, I want to append an element into an associative array at the end. for example my array is $test=Array ( [chemical] => asdasd [chemical_hazards] => ggggg ) and my result should be $test=Array ( [chemical] => asdasd [chemical_hazards] => ggggg [solution] => good) Could you guys tell me how to implement this. thanks ...
this is linux server command /usr/bind/ffmpeg -i and so on..... i have installed ffmpeg in wamp server on localhost it is showing its extension in phpinfo() than what should be the command either just ffmpeg -i or anypath/ffmpeg -i ...