how to use more than one xml file at run time in a single php?
i have to use more number of xml files at a single time . i have only one php page. then how to call all xml files in php. if you know the answer please tell me. thanks in advance. ...
i have to use more number of xml files at a single time . i have only one php page. then how to call all xml files in php. if you know the answer please tell me. thanks in advance. ...
Here is the simple php code <? abstract class A{ abstract public function a($x); } class B extends A{ public function a($x) { echo $x; } } $q = new B; $q->a(10); ?> which gives: PHP Fatal error: Cannot call abstract method A::a() but changing the name of the function to something else than "a" works. So what is really happening ...
Hi, I am try to send a mail from my php application.Mail send successfully but plain text email which contains html tags.is there any solution for it.Please help me.My message is as follows $message = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt...
Hey. I have an array like this (one dimension only): $arr = array('one', 'two', 'three', 'foo', 'bar', 'etc'); Now I need a for() loop that creates a new array from $arr, like that: $newArr = array('one', 'onetwo', 'onetwothree', 'onetwothreefoo', 'onetwothreefoobar', 'onetwothreefoobaretc'); Seems to be simple but I can't figur...
I would like to implement twitter search, but with the use of their API. I think most of you know the search which they have on their home page. Search gives such link: http://twitter.com/#search?q=ipod ubuntu I looked in API for a possible solution, but didn't find it. Also it would be nice if the response to the request could be in X...
Hi, I want to send emails using codeignitor email library.My controller is as follows; Class Users extends Controller { function users() { parent::Controller(); $this->load->library('email'); } function testmail() { $this->email->to('[email protected]'); $this->email->from('admin@gai...
Hi, I am using phpThumb to create thumbnails of PDFs uploaded to my site. This is working for some PDFs but others produce an error that states imagemagick and or ghostscript are unavailable. These should be available as phpThumb is using these for the working PDF thumbnails. One thing that I have noticed is that it tends to be PDFs ...
Hey, Other languages with automatic variable declaration - like Perl - have a strict mode. By activating this strict mode, variable declaration is required, and Perl throws an error as soon as you try to use an undeclared variable. Does PHP offer any similar feature? Thx ...
Hello, The code below is supposed to redirect the user to the index file if the user ($uid) has submitted an entry in the last hour. It's not working. Any idea why not? Thanks in advance, John $queryuidcount = "select loginid from submission where datesubmitted > (NOW() - INTERVAL 1 hours) AND loginid = '$uid'"; $uidresult = mysql...
what if I want to update data via prepared stmt each query loop, but why fails. the error msg is "All data must be fetched before a new statement prepare takes place " $link = mysqli_connect("localhost", "admin", "", "test"); if (!$link) { die('Connect Error: ' . mysqli_connect_error()); } //field_1 is PK if ($stmt = mysqli_prepa...
I want a post have the template of the parent category.. Is that possible? if yes, please guide me a bit. Or if any plugin is available, name it. ...
Hello! I am developing a website that will be communicating with a REST-protocol. The owner of the REST service wants a cookie to be sent along with the REST call, perhaps via header. How is this done in PHP, how can I send a cookie along with a REST-call? Thankful for all help! ...
hello, we have to mediawiki (like wikipedia) installation one is public and one is internal we do the normal work with the internal adding/changing/deleting text articales and pictures we want to sunc and update the external one on weekly bases, what is the best approach? note: we are using 2 windows servers (but willing to change to...
If you have i.e. an onlineshop and you want your visitors to be able to like (with fb-like-button) every product in your shop, how can you make this? i mean, the like button should be corresponding to each produkt, to say: the product A is liked by 20, the product B is liked by 45 and product C by 13. i only have found solutions, where...
how can i display diffrent timezones time in a page with php? like Eastern: 02:23 AM Central: 02:23 AM Asia/India: 02:23 AM Mountain: 02:23 AM Pacific: 02:23 AM ...
How to new article with blogger api by php with title, content and keyword? I would like coding simple thanks ...
Hi, Based on user's preferences I inject into my application a jason_encoded(translation array) which is later converted to javascript object and used by the application. Which, in your opinion, is the better way to do it? Solution 1: <head> <script type="text/javascript" src="lang.php"></script> </head> Solution 2 (code is execu...
Hai I have created a test account in global gateway virtual terminal. I got the sample code to implement it. But there is a field to give key file, $myorder["keyfile"] = "./YOURCERT.pem"; # Change this to the name and location of your certificate file I know there is an option to get the Cert file in virtual terminal account. Bu...
Hi, I've a database with collation of utf8 / utf8_bin. DB have arabic text with accent chars (kasar etc). I want to search text without accent chars. What i did is, i wrote 'like' query ... WHERE replace(field1,0x[CODE],'') like '%[arabic text]%' --- where [CODE] is the accent char. This is working fine when i write static utf arabic...
Hi, I'm just trying to restrict block visibility to nodes that have a certain taxonomy ID. I'm using this snippet...: <?php $term_id_to_trigger_show_block = 109; if ((arg(0) == 'node') && is_numeric(arg(1))) { $terms = taxonomy_node_get_terms(arg(1)); foreach($terms as $term) { if ($term->tid == $term_id_to_trigger_s...