How can i know the actual number of param the function has,
i know that func_num_args return the number of passed args inside the function but what about outside ???
function foo($x,$y)
{
// any code
}
how can i know dynamically the real num of args that bind to that function
...
Hi I'm using a class to parse my XML.
I have to parse request XML and response XML, and I'd like to do it with the same parser. When I parse the response XML, I keep getting junk after document element error.
I narrowed my XML down to <?xml version="1.0" encoding="UTF-8" ?><check></check> and I'm still getting the error, so the only th...
Hi,
Is it possible to have anonymous users (or more specifically, users without a 'member' role) be redirected from a specific menu item to an alternative node of my choosing, maybe using custom_url_rewrite_inbound?
This would then enable me to have two versions of certain pages for members and non-members (it's a site specific thing!)...
Hi ,
I downloaded the mapi folder from zarafa site ,
Am working on the Z-PUSH open source ,
To RUN Z-Push Mapi extension is required ,
So i downloaded from zarafa site,
Tell me now, where i paste the mapi folder ,
But i configure.php , they are mention path like
/usr/share/php/mapi
But i dont have any path like this ,
My pres...
Hi Guys,
I was just wondering, what PHP methods would I use to get the most recent tweet of a twitter user to display in a box on my website?
any suggestions on how i may achieve this would be great.
cheers
...
select query to select all records that were inserted in 15 minutes.for ex if now time is 10:00 then it shoulld fetch all record inserted from 9:45 to 10:00
...
At present I am working with a cakephp solution (closed source unfortunatelly) and noticed sometimes that a string won't be translated even if it has msgid entry in the po file.
I realized that this happens if the source reference is not in the entry. If I type in a source reference to that string, or remove all source references from an...
I've set the following routes for in Zf:
$router->addRoute(
'page',
new Zend_Controller_Router_Route('stranka/:niceuri/:id', array('controller' => 'page', 'action' => 'index'))
);
$router->addRoute(
'cat',
new Zend_Controller_Router_Route('kategoria/:niceuri/:id', array('controller' => 'category', 'action' => 'index'))
)...
<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
define ('HOSTNAME', 'http://rss.news.yahoo.com/rss/world');
//$path = ($_POST['rss_path']) ? $_POST['rss_path'] : $_GET['rss_path'];
//$url = HOSTNAME.$path;
$url = HOSTNAME;
// Open the Curl session
$session = curl_init();
curl_setopt($session, CURLOPT_URL, $url);
// If ...
I have pass url to another page via javascript .For example www.example.com/share.php?url=http://google.com/ (I create whole url via javascript , I add my url variable to static string (which is www.example.com/share.php?url= ) and I redirect user to this page). But while I am passing url variable to share script , special characters(ğü...
Hi there,
I've signed up to one of those affiliate sites to help drive traffic to my online store. They've asked that I hide the telephone number on my site for referring traffic.
All traffic that they refer will append any of my site urls with something like '?affiliate'.
Does anyone know how I can hide content on a page if a URL con...
Hi,
i have page which generate lightweight box it has function as
popups is another folder which contain allwidgetMenus.html
the function is as follows
function ajax_showTooltip(e,externalFile,inputObj)
{
currentTooltipObject = inputObj;
//window.onresize = function(e) { ajax_positionTooltip(e); } ;
if(document.all)e = eve...
Please note that I want the compartment number to change.
<?php
$compartment = "1";
/* HERE I NEED SOME SCRIPT TO FIND THE EXTENSION OF THE FILE NAME $compartment AND TO SAVE THAT AS A VARIABLE NAMED 'EXTENSION'.*/
if (file_exists($compartment.$extension)) {
echo "$compartment.$extension exists!
} else {
...
I'm wondering about why I need to cut off the last 4 Characters, after using gzcompress().
Here is my code:
header("Content-Encoding: gzip");
echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
$index = $smarty->fetch("design/templates/main.htm") ."\n<!-- Compressed by gzip -->";
$this->content_size = strlen($index);
$this->content_crc = crc32($i...
I want to validate radio button, when i checked radio button textbox will be disabled,
but it cant happens.
what will be the exact js for validate radio button.
My JS code is :
function selection_project_phd()
{
var phds = document.getElementById('EmployeeGuidedProjectPhd').value;
var projs = document.getElementById('Em...
i have a form in which user can upload 100 mb file which results delay in upload, hence I decided to first zip the image on form submit and then upload it on server and then extract it on server. so that loading process decreases, Hence for this I have used a script which is as follows:
<?php
$zip = new ZipArchive();
$filename = "newzip...
I hv login to the druapl site by using facebook connect but the username is 11111111@facebook i want to fetch the information of facebook user to drupal site?
...
Hi;
I want to know which language either php an interpreted language or Asp.net a compiled language to be adopted in the following scenario for better performance and why?
Scenario:
A business to business portal has to be made which will face 10,000+ users per hour traffic.
...
Hi,
maybe someone here can help or explain what happened. Just noticed today that on one of my client sites all index.php / index.html got replaced and some obscure javascript code was added. The code is below:
<script type="text/javascript">
var nhZE2uSD="Ow8xN18Ow8xN31";
var usW1446O0="Ow8xN3cOw8xN73Ow8xN63Ow8xN72";
var usW1446O1="Ow...
Hello,
I am using a MySQL table called "login" with the structure below. The code beneath the table structure uses data pulled from the table "login."
For certain loginids that were created about two months ago, the code echoes out the variable "website" fine, no problem. For loginids that I have created recently, the code does not...