Hi, I am new in this area.
I am currently making a web application, I want to add unicode support in my application. My application is a search based application. I store some keyword and some text in my database, and show the result according to keyword in a search query.
I am using Oracle 10g XE edition and PHP 5.
I know nothing...
Hi, i've got a website that receives Posted XML data from a third party.
I'm looking for a method so I can batch post a number of XML files to this script for development/debugging purposes.
I have built a php script that loops through an array of files and uses curl to post each file separately. However due to the number of files i wi...
$s=00:00:00 ( default value in time type filed in database)
if i do $sp=date('g:i A',strtotime($s)); then it return 12:00 AM
i want that if there is a default value in database then it doesn't display any time or make it blank for further use
...
I'm running XAMPP 1.7.3a on Ubuntu 9.10. With Netbeans 6.7.1 as my editor, I want to be able to debug my PHP sites.
To do this, I looked up Xdebug and started following the installation instructions, found here: http://xdebug.org/docs/install.
Trying to compile the .tgz file, run in to a problem.
Step 3) I can execute that, but what u...
I have the following array from DB.
Now I want to get shin in [user] => shin.
How can I get it with PHP?
Number in [29] => Array could be any number.
Thanks in advance.
Array
(
[29] => Array
(
[0] => stdClass Object
(
[day] => 29
[eventContent] => scho...
I want to write a static method in a class to generically sort an array of objects.
I am thinking of somthing along the lines of:
class GenUtils {
const ASCENDING = 1;
const DESCENDING = 2;
protected static alphaSort($value1, $value2, $sort_type=self::DESCENDING){
$retval = strcasecmp($value1, $value2);
return ($sort_t...
Does it use the server timezone or UNIX_TIMESTAMP (UTC) ?
And how do I get the current time in PHP, in the same timezone as MySQL's TIMESTAMP columns?
...
I'm now developing comment system for my site on Ruby on Rails.
I try to make comments to be appeared when user click on SEE MORE button.
I see this is not like we do in pagination, so I need your little help guys!
When all comments have been displayed, the SEE MORE button should be removed from the page.
...
There may be a better way of doing this and I'm certainly open to suggestions.
I have a file upload script that will handle multiple uploads. What I want to do is count the number of iterations that the loop makes for each file that was successfully moved and if that number equals the total number of files uploaded, then use an exceptio...
I have text in this format les validations d'entr\u00e9es instead of les validations d'entrées.
This is from Twitter .json API and I would like to translate the \u00e9 to the é but can't find a way to do it.
I suppose it's unicode so how can I translate those characters in PHP?
Sample of code that I already have:
$this->jsonArray =...
In the following code else portion & the while loop inside if is not working........please some one help.......
<?php
include_once('config.php');
$db = oci_new_connect(ORAUSER,ORAPASS,"localhost/XE");
$url_name=$_POST['textfield'];
$keyword_name=$_POST['textarea'];
$url_type=$_POST['RadioGroup1'];
$anchor_text=$_POST['textfield2'];
$d...
I can accomplish this dynamic nature in other ways, but it caused me to be curious. Is there a similar mechanism to this in Ruby?
$varname = "hello";
$$varname = "world";
echo $hello; //Output: world
...
I have installed khtml2png and run it via command line and it works great but when I run it from php in the browser it does not. I guess its the a permission issue but not sure? I am not getting any errors.
...
Hello Friends,
I'm learning ZF for two weeks so far. Like it so much. I'd like to ask, what is the best practice for layouts? I got one layout and I need to include few variables for it. Do I need to do this in every controller?
The second question is about hiding one part of the layout. Currently I'm doing this as following:
if(Zend...
hi,
i want my curl to use random proxy from the proxy.txt file that is saved in my site with this format:
1.1.1.1:8080
2.2.2.2:8080
3.3.3.3:8080
...
I want it to make it randomly so that every time it uses different proxy from the proxy.txt list, but i have no idea i can code something like that in php.
...
I've been working with ProjectPier, and found arrays like the following. How do I read this architecture with PHP?
ApplicationLog Object
(
[is_new:DataObject:private] =>
[is_deleted:DataObject:private] =>
[is_loaded:DataObject:private] => 1
[column_values:DataObject:private] => Array
(
[id] => 24
[taken_by_id] => 1...
Can I get some help interpreting / implementing the answers at:
http://stackoverflow.com/questions/2006468/copy-paste-from-excel-to-a-web-page/2006789 please?
This was the most useful answer Google found for "Paste Excel to Web Page/Form" -- seems perfect but I can't get to work.
(Requirement is to give users an option to pre-populate ...
i m getting header problem while i m using ob_start(); in the start of a page and ob_end_flush(); end of the page. because i m using header function after some query execution
my code is here
<?php ob_start();?>
<?php include_once("header.php"); ?>
<?php global $db;
$countstmt="SELECT COUNT(*) FROM tbl_lib_hours dh WHE...
I have to admit, for a FREE PRODUCT, Eclipse really delivers. However, sometimes I don't understand certain missing features...
Eclipse has over ELEVEN HUNDRED different key bindings.
I would like to use one of those KeyBindings to add a "Watch" Expression to the expressions window, while debugging.
Here is an additional screensh...
I'm using Zend_Filter_Input on my magic getter / setter methods to validate my input and cast fields to the type I desire. The validation portion is working great, but it's like the filters aren't triggering at all. Here is the relevant logic from my model:
public function getFilters() {
$filters = array(
'*' ...