Hi,
I have installed Selenium IDE on Firefox and manage to record and play various web navigation sequences. What I need is to do it all automated through PHP, i.e. run a PHP script which gets the html source of the final page (i.e. at end of navigation sequence).
Within Selenium there is an option to export to PHP, so I get something li...
I have a file downloaded by a cron that is in zip64 format.
How can I unzip it using php or via a php cmd()?
...
Hi all, I'm using this piece of code I found (http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage) to display the first image uploaded to a post on the homepage next to the excerpts of posts. I'm doing this outside the main loop on the homepage, and have been having problems. When I do rewind_posts() to get the same loop r...
Hi.
I have a form, and there are 5 fields. The first field is an autocomplete field. I'd like to have the other 4 fields populated based on the autocomplete field selection. The docs in github ajax.autocompleter page reference setting an id and using a js function to call the id value, but this doesn't seem efficient if using multiple f...
Hello,
I am trying to send an email, via php's mail function to user's every 15 days to remind them of a particular item (no worries, nothing spam related). I unfortunately do not have access to cron, so I think I would need some sort of client side solution (is this correct?).
A link to get me started or a general outline of what I n...
Is there a limit to the number of requests I can make with the API? I
see there are limits to uploading and the total number of videos (2000) you can have, but is there a
limit to requests I can make to, for example, the search query
methods?
http://code.google.com/apis/youtube/2.0/reference.html#Searching_for_videos
...
I'm building a "did you mean" funcionality on an internal search engine, using aspell and php (php-pspell).
I have a catalog of products and I want the names of those products to be also words in the dictionary so the "did you mean" can suggest'em.
The problem is that when I try to create a custom dictionary with PHP Pspell functions, ...
I have the following code to display posts in Wordpress
<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
How can I add a span class around the count so I can style it?
The above code produces this:
October (9)
November (22)
December (3)
I need to assign a span class to the count, and not entire output.
...
re.findall(r'(\b[a-zA-Z][a-zA-Z0-9-]*)(?=\.com\b)', DATA)
how would this line be in PHP?
...
It is possible to run the urlencode function without converting # or % ?
...
I want that whenver a user inserts "www." in a comment textarea, the address from "www." until the first space will be a replaced with a link to that address:
"I love www.google.com"
turns into
"I love <a href="www.google.com">www.google.com</a>"
Can you please tell me how to do this? (newbie)
(sorry for posting the earlier question ...
Hi,
I am writing a function which is called into a page, but I am not sure how to call information form database into the function in order to use them. Basically I am doing some calculation in the function where I need information form database to do them.
Is there anyone who can give a clue on how ot do this? Many thanks F
From a co...
I tried to use WordPress, and it would never work. I have apache and mysql running, the accounts and database are all set up, there are no typos. So I tried to make a simple connection:
<?php
$conn = mysql_connect('localhost', 'USER', 'PASSWORD');
if(!$conn) {
echo 'Error: ' . mysql_errno() . ' - ' . mysql_error();
}...
I'm running a script that makes some changes to the contents of a file then resets its modification time to what it was before. Intermittently, I'll find the following errors in my log:
touch() [function.touch]: Utime
failed: Operation not permitted
This on the line immediately after a file_put_contents() call appears to have c...
$comment = 'billie jean is not my lover she is just a girl';
$words = array('jean','lover','jean');
$lin = some_function_name($comment,$words);
($lin=3)
I tried substr_count() but it doesn't work on array. Is there a builtin function to do this?
Thanks!!
...
Hi guys.
Just as usual i was looking around best practices with PHP, and prepared statements seems the kind of stuff i should now how do with my eyes closed. So i started playing around with some examples i've found.
I've got this error when running the script:
Fatal error: Call to a member function
bindParam() on a non-object in...
Could anybody recommend a up-to-date class (or payment system) for handling paypal recurring payments with PHP?
Thank you!
UPDATE: I ended up using the PaypalNVP class by Peter Reisinger. Unfortunately, that was a very long time ago and I can't seem to locate it online (the readme and class files had no URL - just the name). If you c...
I have recently finished phase 1 of my Facebook game:
Rails Across Europe
It works fine on my dev system, but other people report errors and timeouts when they try to run it. Does anyone know how I would go about debugging these issues if they don't occur on my system?
Thanks.
...
Where can I learn more about building social networks with PHP?
Preferably, I would like a book on the subject.
...
The Problem: Object models built using an ORM often need to perform multiple queries to perform a single action. For example a "get" action may pull information from multiple tables, particularly when you have a nested object structure. On complicated requests these queries can add up and your database will start blocking long before it...