Hi!
How can i count the number of words between two words?
$txt = "tükörfúrógép banana orange lime, tükörfúrógép cherry árvíztűrő orange lyon
cat lime mac tükörfúrógép cat orange lime cat árvíztűrő
tükörfúrógép banana orange lime
orange lime cat árvíztűrő";
The two words: 'árvíztűrő' and 'tükörfúrógép'
I need this retur...
Hi there,
I developed a system that consists of software and hardware interaction. Basically its a transaction system where the transaction details are encrypted on a PCI device then returned back to my web based system where it is stored in a DB then displayed using javascript/extjs in the browser. How I do this now is the following:
...
Hi All,
I'm using Keith Jquery Countdown 1.5.8 for doing the countdown and the ticking time is working perfectly for every user. i have 2 forms in a single php file (let's say multiform.php) but the form submits nothing when the countdown reaches zero.
Here is my jquery code :
<script type="text/javascript">
$(function () {
$('#d...
Hi,
I am using Jquery Uploadify for images upload with PHP, here i want to upload multiple images in different folders i.e first image will upload into 'folder1' ,2nd image upload into 'folder2' and all these uploads should be done by single instance of uploadify. Is it possible or not??
...
I am migrating my PHP code to Google App Engine - Java.
Since I couldn't find an equivalent function of crypt in Java,
I can do without it if I find an equivalent function in actionscript.
Edit 1: Here is my php code for encrypting passwords :
$password = "test123";
$pwd = crypt($password,$password);
echo $pwd;
Output is (On Windows...
i am using php to create "web archive website". the web site will be integrated with "heritrix" and "httrack". given are my ideas:
1) to start-up heritrix from php page
option #1: add a link / button into php web page. by click the link / button, it will prompt a terminal from heritrix. then user requires to enter some commands to sta...
I'm running PHP on my IIS 7 Server and I would like to get something similar to the ASP.NET app_offline.htm functionality.
Just putting app_offline into the directory did not work. Maybe there is a good rewrite rule that would just forward all requests to app_offline? My first try resulted into a redirect loop, so not sure what I did w...
Can someone tell me why I am getting
undefined method print_hash() error?
I have the following class
class EmailManager{
private $replytoArray;
private $receiverArray;
private $fromArray;
function __construct(){
$replytoArray = array();
$receiverArray = array();
$fromArray = array();
}
function addReceiver($k){
if(!i...
Hi,
so i'm creating a login_url using php framework and getLoginUrl().
if my facebook app is setted as an FBML page, something like this works fine
echo '<fb:redirect url="'.$login_url.'" />';
but i need my facebook application configured as an IFRAME page, so it will not be rendered as FBML.
whats the best way to redirect my user ...
i am learning how to send an email.i have installed appserver and in files
php.ini-dist and php.ini-recommended i did the following changes
SMTP=localhost
[email protected]
i replaced localhost with mail.ptcl.net which is my dsl provider
and replaced [email protected] with my email address [email protected]
i get the follo...
Hello,
I am using a login system that malfunctions when a fresh browser session is opened. It appears to happen across all browsers. Here's what happens:
I open a new browser session.
I enter a user name and password, and I am logged in just fine.
I navigate to another page (any page), and I am no longer logged in (this is bad - not...
I have a week calendar that holds events, and want that users can't add events for the past days. So I'm tring to use a function like that:
if( strtotime($this->day) < time() ){ // date format is YYYY-MM-DD
// date is past
}else{
// date is not past
}
It seems to works fine, except that it consider today date as a past day. What a...
Can any one Explain the difference mysql_errno and mysql_error ?
Thanks in advance
...
Hi friends,
I have to modify the uploaded .doc or .docx file in php. I googled but i only found how to read that but not as it is.
I want the word file as it is and put text at the bottom of that MS Word file.
How is this possible anyone know please reply.
Thanks,
...
hi every one ,i am integrating soundcloud api but getting problem of two times login which i does not want.only login on my site
my code is (index.php)
<?php
require_once 'oauth.php';
require_once 'soundcloud.php';
session_start();
if (isset($_GET['logout'])) {
session_destroy();
}
$consumer_key = 'iwixmwcVHP2W79sRb65hw';//consumer...
Hi,
I am using Jquery Uploadify for images upload with PHP, here i have multiple instances of uploadify and and each instance is uploading images in different folders.
I want to second instance of uplaodify will start uploading images only after first instance of uploadify uploaded selected image.
$('#listing_image').uploadifySetti...
For some reason my search script will only display the first set of results for the first page but when I click on the pagination link to the next page the results that are generated from the search script will not be displayed how can I correct this problem?
Here is my PHP & MySQL pagination code.
$x = '';
$construct = '';
if(isset($...
I am developing a chat application.
At present its just a simple chat.
But i need a chat with chat rooms, database storage,admin can see all the chats.Any ideas...pls suggest me
...
Quick question.
I'm new to php and got confused with when to use the unset function. Should I unset everything I set or only when I want to guarantee it gets unset now?
Cheers,
Diogo
...
Hello,
We're running rather big website (~400K page views daily) and using Smarty as templates engine. HTML coder changes templates every day and every template change (almost every) causes website crash because of PHP Fatal error: Call to undefined function _smarty_tplfunc_f0cb5c08ca1726d224308f2f6bd56b4f_0() in ... PS: Yes, we're usi...