What is the best approach to write testunit in framework such as wordpress ?
i'm starting a new project. And what to know how to write a good testunits in existing framework such as wordpress ? is it possible to use phpunits or selenium RC ? ...
i'm starting a new project. And what to know how to write a good testunits in existing framework such as wordpress ? is it possible to use phpunits or selenium RC ? ...
Hi there we're working on simple integration of PHP basad application with Sharepoint Document Management system. The idea is to be able to: I. create a subfolder in Sharepoint DWS from PHP - we have this point working. II. list documents of a particular subfolder of DWS (and have a direct links to these doc on sharepoint) We have de...
I cannot seem to be able to figure out why I receive: Fatal error: Can't use function return value in write context in [path]/admincp/global.php(226) : eval()'d code on line 12 when I try to use fopen/fsockopen, and such functions to retrieve remote data. My code is: http://pastebin.com/crLB429N I have tried using fopen/fread, and fso...
I'm trying to set up a PHP SoapClient to connect to a wsdl... CURL & WGET from the server work fine. If I try to use soapclient I receive the error messages below. $wsdl = 'http://pav3.cdyne.com/PavService.svc?wsdl'; try { $client = new SoapClient($wsdl, array('trace' => true, 'exceptions' => true)); } catch (SoapFault $f) { ...
How do I order records in a PHP query to MySQL by a field that contains TIME() timestamps in descending order? ...
Hi. Currently im having this for displaying my statusmessages: <?php while($showSe = mysql_fetch_array($stringUSS)) { ?> <strong style="font-size: 12px;"><?php get_day_name($showSe["date"]); get_time($showSe["date"]); ?> </strong><br> <span style="font-size: 20px; text-align: center; margin: 10px;"><?php echo $showSe["status"]...
This might be tough to read, but essential is does this over and over again (Repeats 14 times): Select session id Count session Update session 16 SELECT Session.id, Session.data, Session.expires FROM cake_sessions AS Session WHERE id = '80f5f4f43334a7bc1446d06d143e6330' LIMIT 1 1 1 1 17 SELECT COUNT(*) AS count FROM cake_...
i notice that in cygwin we can install apache2. can we make a wamp with cgywin ? ( php mysql and apache ) better with phpmyadmin ? or we cant do that ? if we can, please give me a tutorial to learn on. Thanks Adam Ramadhan ...
I am using the following code to fetch all mails since 1 day less - $yesterday = date("Y-m-d", strtotime ("-1 days")); $searchQuery = 'SINCE "'.$yesterday.'"'; if($this->open($folder)) { $imap_search = imap_search($this->_imap, $searchQuery); } This works fine on my dev windows machine but when i put it on the test production ser...
Hi all, I am hoping there exists a: " php stand-alone compiler that works with the Zend GData library and PHP 5.2x." For using with the following php GCAL sync software for a software called todolist. Any suggestions? ...
Hi all , can somebody point me to a good regular expression resource (for php if it matters). I am looking now for a book here amazon but don't know which one is better. It would be great to find something simple to understand and a fast and interesting process of learning. ...
I am scraping sites, and I am doing this one at a time, and then trying to get the results to display AS I get them. I am trying to render one TR at a time, but instead, it does every single one, and then renders ALL the TRs. Here is the call to javascript: <body onload="getOffers(companies , {$scraped}, {$isbn13});"> Here is the JS/...
How can I write this code in one php operator? $menu = theme('nice_menu', 1, 10, 'down'); print $menu['content']; Something like this: print theme('nice_menu', 1, 10, 'down')['content']; ...
Hi, i've made a page with a calculator for customer, they can use it without being logged in, there is a save button in that page, what i'm trying to do is: if a customer click save and it is not logged in, will be redirect to the register form, and if the user successfully register, i need to save the data he wrote in the calculator to ...
I need to pass a set of values in a form such as name, lastname, age, etc. to a PHP file in a different subdomain. For example, form.html is located at http://subdomain1.website.com/form.html, when I press the submit button it passes the data in the form to http://subdomain2.website.com/doform.php and inserts it into the database. How ...
The question is in the title. ...
Hi, I have made a site which can pull and upload videos from and to YouTube, http://www.tole-rants.com/ This site was made with the combination of Python, Google App Engine and YouTube API. It is hosted at Google App Engine. I did not code the main structure of this application bcos I don't speak Python so I was made with a Python prog...
Hi- I am somewhat new to both Wordpress and PHP, and I wanted to get advice on the best way to tackle my problem as I have had little luck doing it successfully so far. There are two jobs I want to handle: First of all, I want to have a conditional include on my home page that does the following; Find a custom post type home_content ...
What's the best practice for placement of functions that are used across multiple MVC layers? I've recently had to write some statistics functions that are used both in the View and the Model. If I put them in a helper, I'm stuck loading helpers in the model layer, which is annoying, seems incorrect, and breaks completely when those fun...
I have a textarea inside a form. Before the form is submitted, the textarea is validated and checked so it is not empty, not over 2000 characters, not contain forbidden characters etc... I am working on the last part of the validation, which would need the textarea to be compared to an array of "bad words". This to help me maintain an...