I have several components who's screen position depends on the resolution of the monitor on which the browser lives.
loginBox.x = (flash.system.Capabilities.screenResolutionX - loginBox.width) / 2;
loginBox.y = (flash.system.Capabilities.screenResolutionY - loginBox.height) / 2;
The problem I'm encountering is that the flash.system.C...
I had my form processes working perfectly but after renaming the form action to
<form action="https://www.example.com/validate.php" method="post">
for working with an SSL certificate it stopped working. Seems as though the SESSION variables are no longer being passed properly...
Is there something I should know about https an...
I'm assuming that for every page request, the webserver (eg. Apache) creates a new instance of a script in memory. Can these instances communicate with each other while running? and pass data too?
...
Hi All,
The subject is probably not as clear as it could be, but I was struggling to think of a better way to easily describe it.
I am implementing a badword filter on some articles that we pick up from an XML feed. At the moment I have the badwords in an array and simply check the text like so;
str_replace($badwords, '', $text, $coun...
So I am using FCKeditor and the problem I am having is that when the user writes the document sometimes info is copied from Word, other times it is written directly in the editor and other times it could be done both ways. What this leaves me with in the DB is a lot of tags that are open and never closed. This is throwing my layout off...
Hello
lets say I have two arrays
<?PHP
$arr1 = array("a","b","c");
$arr2 = array("1","2","3");
function multiply_arrays($arr1,$arr2){
//what is the best way to do that in terms of speed and memory
return $arr3;
}
?>
what is the best way to multiply them?
the result should ...
Hello,
The code below works great. It allows a user to send a recommendation for my site to a list of friends via email.
For each person that gets the email below, I would like to get an email with that person's email, and the name of the person that sent them the message. If my email address was [email protected], what code could I u...
Hehe, don't laugh at me, just trying to set up Sphinx on my local WAMP, I haven't done this before so I'm probably doing something silly.
This is my sphinx.conf file:
source code
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass =
sql_db = ****
sql_port = 3306
sql_query = SELECT id, language_id, c...
Is there a functional String Difference Highlighting class/function out there for PHP?
This has been asked before http://stackoverflow.com/questions/321294/highlight-the-difference-between-two-strings-in-php but the answers given suggest PEAR's Text_Diff.
I tried using Text_Diff and found it was giving me a bunch of STRICT NOTICES and...
I have an 'dictionary' array such as this:
$arr['a']=5;
$arr['b']=9;
$arr['as']=56;
$arr['gbsdfg']=89;
And I need a method that, given a list of the array keys, I can retrieve the corresponding array values. In other words, I am looking for a built-in function for the following methods:
function GetArrayValues($arrDictionary,...
I'm going to be starting a new project soon, and was having some thoughts. These are the requirements:
it's going to be built in PHP
it will need to be able to support plugin modules/components. These can be thought of as mini applications.
users will be able to log in, and depending on a number of things, they will have access to diff...
Hello there,
I've got a requirement for parsing PHP files in C#. We essentially require some of the devs in another country to upload PHP files and once uploaded we need to check the php files and get a list of all the methods and classes/functions etc.
I thought of using a regex but I can't workout if a function belongs to a class etc...
If the PHP Engine is already in the middle of executing a script on the server what would happen to other simultaneous browser requests to the same script?
Will the requests be queued?
Will they be ignored?
Will each request have its own script
instance?
Any other possibility?
...
I have this character showing up occasionally and I can't seem to find it in the ascii table. I'd like to run a filter on the data before it's sent to the database but I have to know what it is first. Maybe someone can clue me in. I am using a wysiwyg editor and this is where it's coming from. The character appears very sporadicly but se...
I have written a script for Letitbit.net. With help of cURL I can get to the page where after 60 secs is to appear the link to the file I want to download. That page uses frames... If I get to the page via a browser, the sourse code looks just like this:
<frameset rows="125,70,*" frameborder="no" border="0" framespacing="0">
<frame src=...
What's the best way in cakephp to extend the html->link function so that I can
tell it to output a secure(https) link?
Right now, I've added my own secure_link function to app_helpers that's basically a
copy of the link function but adding a https to the beginning.
But it seems like there should be a better way of overriding the html...
Hi all,
Here is my doubt in brief. I am having a drop down box with some values like Artist, Song, Album, Composer, Writer. My problem is When i click on the Artist i need to display the list of artists in ASC order and When i click the same i need to display it in DESC order.
How is this possible to do ?
Thanks in Advance
Fer...
I want to count with 0. I means if
$x = 002
$y = 999
Now I want to count it by keep the 00.
for ( $i = $x ; $i <= $y; $i++ )
{
echo $i;
}
but it echo - 002, 3, 4, 5
I want it to count by keep the 00. as like 005, 006, 007, 008, 009, 010, 011, 012.
Please help me. I need it. Thanks
...
I've tried "m" modifier,but not working:
$reg = '/...
/m';
preg_match($reg,...,$match);
EDIT
Or maybe I need a modifier that can ignore white space like ENTER,TAB and so on.
Because when I remove the white space in my regex it works.
EDIT AGAIN:
I need a modifier so that regular expression
"/aaaa b/",
"/aaaa
b/"
are t...
I've created an e-commerce site that uses paypal to accept payment. I am in the testing phase so I have password protected the entire site using htaccess. The trouble is that I am using IPN to verify PayPal payments and therefor my IPN script needs to be publicly accessible so that PayPal can communicate with it.
Is there a way to pas...