//This function generates the link tag
function myplugin_generatestylesheet(){
//Form the URL to the css file stored in our plugin directory
$pluginURL = get_bloginfo('home').'/wp-content/plugins/myplugin/mycss.css';
//Write it to the browser
echo '<link href="'.$pluginURL.'" type="text/css" rel="stylesheet" />';
}
//Now we...
after updating my web site, the content does not appear but the comments appear.
I disabled all the plugins but still no content appear. how can I see and solve the problem of My WordPress?
http://www.dugunarabasi.com/araclarimiz/1937-cadillac-la-salle-limousine/
...
I'm using PHP 5.3 and SimpleTest, but more general answers are welcome. Each plug-in will be a class which extends an abstract class... how do I test that this interface works properly? Do I have to create several plug-ins and test them? Or is there a more satisfying way?
As an example, imagine writing something to represent money. User...
Below is the Code
<?
include('config.php');
// table name
$tbl_name=temp_members_db;
// Random confirmation code
$confirm_code=md5(uniqid(rand()));
// values sent from form
$name=$_POST['name'];
$email=$_POST['email'];
$country=$_POST['country'];
// Insert data into database
$sql="INSERT INTO $tbl_name(confirm_code, name, email...
I have a form with a lot of textareas.
<textarea cols="30" rows="6" id="q1"></textarea>
<textarea cols="30" rows="6" id="q2"></textarea>
<textarea cols="30" rows="6" id="q3"></textarea>
...
<textarea cols="30" rows="6" id="q54"></textarea>
Don't ask why we need 54 questions.
I want to print them out but don't want to do it manually.
...
Possible Duplicate:
Insert image in xls sheet throgh php code.
I have to insert a logo(image) on the row[0],column[0].I am using "Spreadsheet_Excel_Writer" for that.i tried its insertBitmap() method, program working fine but it doesn't show the bitmap image on xls sheet,instead blank row.
What could be reason? Can you please...
Hi there,
I'm trying to get a users ID from a string such as:
http://www.abcxyz.com/123456789/
To appear as 123456789 essentially stripping the info up to the first / and also removing the end /. I did have a look around on the net but there seems to be so many solutions but nothing answering both start and end.
Thanks :)
Update 1
...
Hello,
I have a web application and I want to make it run offline as well. In this application I just have a form and I am using PHP for submitting it. I am using a manifest.php file like the one described in http://building-iphone-apps.labs.oreilly.com/ch06.html .
The problem is that I need somehow to add the parameters from the form ...
I'm trying to do crop animated gif on VDS with this configuration:
~800MHz and 256 RAM
And it's not working. It just eats memory and processor and after a ~minute returns no responce.
http://i192.photobucket.com/albums/z228/Somebi/no-responce.jpg
http://imm.io/1OID
On local machine i'v created a virtual machine with 256 RAM.
Everyth...
I'm developing a niche social networking site that is going multilingual. That means our current URL structure will soon need to start using translated words for slugs like the following:
www.example.com/home becomes www.example.com/inicio
www.example.com/profile becomes www.example.com/perfil
www.example.com/help becomes www.example....
Hi,
I wanted to convert an array to lowercase and was wondering the most efficient method. I came up with two options, one using array_walk and one using foreach and wanted to compare them. Is this the best way to compare the two? Is there an even more efficient method that I have overlooked?
<?
$a = array_fill(0, 200000, genRandomS...
Hi,
Please could someone help with the following:
Using PHP I want to be able to post the details entered into a form to a csv file. This is quite straight forward on its own, however one of the fields in the form needs to upload a file, so the csv file needs to contain a link to where the file is saved.
Thanks
...
Hi all,
First; On my development server (localhost; default XAMPP on OSX) everything works fine, though when I deploy the exact same code (and data) to the staging server (managed Apache2 on Redhat) it breaks.
I'm caching some data using Zend_Cache using the File backend and auto-serialization.
Special characters used in the original d...
I wanted to know how OPT_SERVER_FAILURE_LIMIT constant (which I think is equivalent of MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT on libmemcached) works, so created a small code snippet like this:
#!/path/to/php533/bin/php
<?php
function debugging_set($memcached, $key, $value) {
$code = '$memcached->set($key, $value)';
var_dump(eval('r...
There is a cleanup button in svn-workbench
Using it + update we can usually fix some svn bugs (for example "... is not a working directory")
I cant find this function in netbeans:
context menu -> subversion
and in the
team -> subversion
where is it?
upd:
I have not in the context menu "Cleanup Working Copy" item (netbeans 6.8 under u...
wo, is there a way to create subdomains only through a php file ?
like create a function call createsubdomain($username) or something?
that would really be helpful in the sense that as soon as a user registers himself on a website, he gets to access hisname.thewebsite.com to access his full profile
thanks for replues
equatorlounge.wo...
I have a domain say http://www.testexample.com. When I login to http://www.testexample.com and come back to http://testexample.com in browser; the logged in user information is not displayed.
I know that the both of the above are treated differently and hence it is not retaining the session for http://www.testexample.com while accessing ...
Here is my code. You have to kindly look does it suffer from 'same origin policy' in this shape. The domain for HTML is (http://127.0.0.1/jqload.html) & php file (http://127.0.0.1/conn_sql.php). This is json format : [{"options":"smart_exp"},{"options":"user_int"},{"options":"blahblah"}]
I actually want to append json data that I rece...
I started studying web services between bank and a client and I run into a wall when it came to signing a SOAP. What I need should look something like this
<soapenv:Envelope xmlns:cor="http://bxd.fi/CorporateFileService" xmlns:mod="http://model.bxd.fi" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<w...
Okay, so now I am confronted with a new problem, and I just don't know what to do next.
I have a table where the contents of it is dynamically added from a database on page load, and each item in the table is a link. The link looks like this:
$ct->data[$key][3]='<a href="allthread.php?sessid='.SID.'&product='.$ct->data[$key][0].' '.$ct...