I want to display custom categories with their sub-categories in a nested list.
This seems to works:
<?php wp_list_categories('hide_empty=0&depth=2&hierarchical=1&title_li='); ?>
but if I include some custom categories it doesn't:
<?php wp_list_categories('hide_empty=0&depth=2&hierarchical=1&title_li=&include=7,8,1,4'); ?>
...
I have a PHP based form. For many of our inputs, the user clicks an html which created a custom popup window with a "mini-form". When the user clicks on the submit button, the values from the "mini-form" are sent to the main form to hidden inputs using JavaScript. This can become complicated to do, especially with validation and other...
I was hoping to change one of the variables of a query, from inside the while loop, is it possible to do this? EG.
$query = mysql_query('SELECT column1, column2 FROM table1 WHERE column1 = "'.$variable.'";', $conn);
while ($data = mysql_fetch_assoc($query)) {
if($data['column2'] == 'original') {
$variable = 'altered';
}
...
I am developing a c# desktop application and using a webservies which is developed in a php application when i try to consume that application. I just add web REference of that web service and try to access throught the following code
WebReference.TestWSDL pdl = new testingApp.WebReference.TestWSDL();
string copy = pdl.verify("testing"...
how in lamp (LINUX ,APACHE ,MYSQL ,PHP) environment ,
can i show date and time in web page according to the user time zone ?
THANKS
...
I'm trying to change my rating system which only used one table before but now I'm changing it to use multiple tables and I really dont no how to
update or insert a new rating into the database and was wondering how to do this using my MySQL tables structure?
Also how do I do this by adapting the new code to my current PHP code which I...
Hi,
I have the following regular expression:
RegExp("http://www.amazon.com/([\\w-]+/)?(dp|gp/product)/(\\w+/)?(\\w{10})");
Written in javascript.
How can I get it to work with PHP's preg_match_all? What are the differences as far as regular expressions go?
...
I have a dataset with 100 000 datapoints which I have to plot on a graph. The resulting graph will be about 500px wide, so for every pixel there will be about 200 datapoints, which seems quite unnecessary.
I need to find a way to get rid of the excess datapoints without losing the shape of the graph to speed up the rendering. Currently ...
I'm pretty sure there's a way to use curl in php to make a proxy server so my question is more, will that use my bandwidth? if there is a way to have it not use my bandwidth how would that look?
...
I'm using Zend_View_Helper_HeadScript to display javascript function definitions in the head of my webpages, and I extended it to get the javascript code from file if desired. What I'd like to know is if there would be an easy way to search the headScript output (basically, a series of xhtml script elements) for a javascript function de...
Hello,
For some reason this does not work. I have copy/paste the code, but it goes to the html-echo.php rather than displaying the result in the htmlExampleTarget
What am I doing wrong here.
Thanks
Dave
edit: sorry guys - here is the url - http://jquery.malsup.com/form/#html
<script src="js/jquery-1.3.2.js" type="text/javascri...
alot of time in programming the value of variables are passed through url parameters,
in php;
if (isset($_GET['var'])) {$var = $_GET['var'];}
But if that does not execute, we will have an unset variable, in which may cause errors in the remaining of the code, i usually set the variable to '' or false;
else {$var = '';}
I was wo...
Hi,
I'm thinking about how to find from where any function was called. The problem is that I need to find where the PHP is calling mail() function. One way will be to use register_tick_function(), but I'll need to open each file and check what is on each line. The project is huge, it will take really long to parse each file in PHP. Any ...
I'm enhancing our video search page to highlight the search term(s) in the results. Because user can enter judas priest and a video has Judas Priest in it's text I have to use regular expressions to preserve the case of the original text.
My code works, but I have problems with special characters like š, č and ž, it seems that Preg_Repl...
As you know. You have to write open_basedir = '/var/home' etc
I want to write like this: open_basedir = '/var/home/*/'
Which i want is php should restrict every directory which is in home directory, for every different directories.
Short question: How can i write open_basedir like this: open_basedir = 'var/home/*/'?
Thank you very mu...
Hello,
I am trying to build a system the remebers the users interactions with website, for example my site allows the users to build there own navigation system, but I want the system to be able to remember the navigations system they choose with out the user having to sign up, I assume I need to user sessions/cookies for these, and fu...
Hi
I have a PHP app which takes a user-inputted $imageurl and does the following:
exec('convert "'.$url.'" -thumbnail 80x500 "images/out.jpg"');
Now obviously I have to take some precautions with this to stop users from executing arbitrary code. For example, if the user sets $url to";rm -rf *;" is no good at all.
So for starters I h...
Can someone explain to me the difference between =, ==, and ===? I think using one equal sign is to declare a variable while two equal signs is for a comparison condition and lastly three equal signs is for comparing values of declared variables.
...
Hi ,
I keep getting the following error
"Call to undefined function domxml_new_doc()"
Is this because I don't have DOM support on or could it be down to my version of PHP ?
Thanks
...
how to get page HTML at client side or through javascript in Asp.net Application. Means if I want to get the html of http://www.yahoo.com on client side through javascript or any other
...