Hi friends,
I have a question, I hope someone can help me.
I have to develop an application or a tool bar to do the following:
Whenever I receive a email from anyone, it should open any and all hyperlinks within the email in new browser tabs automatically, without any clicking required.
Is there any way I can do this? Anyone have an i...
For example,to strip out key/value pairs from html like below:
<tr>
<td id="td3" class="td3" bgcolor="#FFFFFF" colspan="4">■ Related Information </td>
</tr>
<tr>
<td id="td5" class="td5" width="10%">job title:</td>
<td id="td5" class="td5" width="90%" colspan="3">Sales Representitive</t...
I have a column called views in my table A. I want to increment the views column like so:
UPDATE A set views = views + 1 WHERE ID = blabla LIMIT 1;
This seems like the way to do it, at least to me.
Or so I thought.
Seems like when I (from PHP) do:
$views = get_viewcount($id);
$views++:
save_viewcount($id, $views); //here we just u...
The title should be clear.
...
I am using a unix time stamp as the base of my starting date for use in a date ranged query. The start date is not the problem, for the purpose of this example i will use the following time stamp: 1228089600 (01 December 2008 00:00:00).
For use in my query I needed to easily figure out the last day of any given month to the last second ...
I am A MCA 2009 Pass out and I like programming in C#.Net and also know PHP/MySQL, Java. I am confused which programming language should I choose (C#, PHP, Java) will have great future. I love all the three languages and also interested in learning new languages. But want to concentrate on any one language. Can you suggest me?
...
Hey guys
I'm trying to build an XML feed from a database with a ginormous table, almost 4k records. I want to use output buffering to get it to spit out the XML but the script still keeps on timing out.
ob_start();
$what = 'j.*, (select description from tb_job_type as jt WHERE jt.jobtype_id = j.job_type_id) as job_type,';
$what .= '(s...
I don't know any PHP so another developer helped me out with this code. I am trying to return the names of all the files in a folder on my server. These are then passed to my iPhone app which uses the data. However, I have 160 files in the folder and the JSON string only returns 85. Is there something wrong with this code:
<?php
$path ...
Hello!
Problem:
I have dynamic pages in PHP where the content is shown according to the given id. The id is always submitted via a GET parameter: page.php?id=X This causes a problem: Site visitors can enumerate the ids and simply walk through all the different content pages. This shouldn't be possible, of course.
How could this be sol...
PHP having function to get values of a form using
'$_POST' for 'method=post'
'$_GET' for 'method=get'
'$_REQUEST' for either/both. But how to handle changing value in current form which is not lead to form POST or GET , simply handling onchange functionality.
...
I have launched an EC2 linux instance (a rightscale CentOS v 5.2 i386 image) and want have followed a tutorial (http://www.ardentsoft.com/blog/2009/3/4/lamp-on-ec2-part-6-configuring-apache.html) for configuring PHP and Apache. Now I need to know how to get my PHP files from my dedicated server up to the cloud. I usually use dreamweaver ...
Hi, ive been giving the task at work of setting up an awards voting system, I dont know too much about php and mysql. But i know more about this than anyone else here, and my boss in on holiday. But I've been reusing the code, that had previously been left on our system and adapting it for this year.
Basically the voting system works fi...
<?php
$start = microtime(true);
$end = microtime(true);
echo $end - $start;
?>
Why does this code produce results like:
1.1920928955078E-5,
5.9604644775391E-6,
6.9141387939453E-6
What does the E-5, E-6 mean ?
And why the heck is the difference so big ? From 1,1 sec to 6,9 sec ?
Thanks!
...
I'm trying to parse a XML file, but when loading it simpleXML prints the following warning:
Warning: simplexml_load_file() [function.simplexml-load-file]: gpr_545.xml:55: parser error : Entity 'Oslash' not defined in import.php on line 35
This is that line:
<forenames>BØIE</forenames><x> </x>
As it is a warning, I might ignor...
Hi all,
I have been asked to upload a Zen Cart site to my servers and have done so fine.
I am getting a problem now with the fact that the client has uploaded his custom template into the includes/templates folder and selected it in the admin - but it still wont load it. instead it just loads the template_default style.
I am been thro...
may i know what permission do i need to add, to allow test.php to able to write file into macos filesystem
PHP Error: <br />
<b>Warning</b>: file_put_contents(20090915203127.jpg) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in <b>/Library/WebServer/Documents/testphp/tes...
This is a technical design question more then a syntax question.
I have a large page with 9 forms corresponding to different tables. I've wrestled with the design and I there's no way out I have to send all the forms via ajax to the server for processing. There are lots of interrelations. I can't combine the forms into one large one eit...
Hi
I'm having issues with trying to use Zend_Form_SubForm and sessions. My controller is in essance acting a wizard showing different subforms depending on the stage of the wizard. Using the example I am planning on storing the forms in a session namespace.
My controller looks like this.
include 'mylib/Form/addTaskWizardForm.php';
...
Hello!
I would like to build a simulation engine which can simulate a soccer (association football) match. It would be cool great if you could help me. What is important to me is to decide which actions happen. The event listeners for each action can be implemented later easily. The function should only simulate the game results and com...
DatePeriod is a PHP class for handling recurring dates. It has a very limited number of methods. So when I want to do basic array functions with the recurring dates, I have to copy it to an array with iterator_to_array. Strangely, copying it seems to clobber it. Any ideas why?
$p=new DatePeriod(date_create('2008-01-01'),
...