php

strtotime only tracks 1 week in advance

Using the following if statement I am trying to check whether the day of the week is Friday if(($uur < 12) && ($min < 30) && ($datum == date('Y-m-d', strtotime('Friday')))) { $proceed = FALSE; $errorWoensdagVrijdag = "<div id='row_form_dropdown'>Error Message</div>"; } The dates are being inserted using a form. Everything is...

Update existing ticket in VTiger

Hi, I am a newbie to VTiger, I am using the 5.2.0 version to try, learn implementing Issue Tracking. Intro: A client sends an email to say [email protected], Mail Converter or Mail Scanner.. scans for the new email and if found creates a new ticket. If admin sees a new ticket which is being raised in Trouble Tickets, makes some chan...

converting tiff to gif in php

Hi ! I need to convert tiff file to gif . can some one give me php or python script to do that ? ...

CodeIgniter - force_download() problem

Fast to explain, but i cant get it to work: In this simple code, the function force_download simply doesn't make any output. $this->load->helper('download'); $data = file_get_contents("modulos/".$filename); // Read the file's contents force_download($filename, $data); echo $data."/".$filename; Here i just get a white screen, but the ...

Migrating from MySQL > PostgreSQL (PHP/Doctrine)

I have a system with 25 tables. I ran a utility to basically get all my data to a postgres table, but now I'm getting a lot of errors in the front end of my website after I switched the db driver. How can I go about completely migrating my current PHP/Doctrine MySQL system to work with Postgres? ...

Third Thursday of the month in php

Is there a way to find the day of the week in php with a particular date. I don't mean date('D', $timestamp); I mean if I was to supply a date like 2010-10-21 it would return "third thursday". ...

Can I access the index from within a foreach?

In PHP I can do this: $list = array("element1", "element2"); foreach ($list as $index => $value) { // do stuff } In C# i can write: var list = new List<string>(){ "element1", "element2" }; foreach (var value in list) { // do stuff () } But how can I access the index-value in the C# version? ...

Setting up Marker Clusterer markers with info windows

Hi guys. I'm having an issue with setting up the info windows for multiple markers in google map api. Basically, Im getting the latitudes and longitudes and everything else from external Json file. I'm parsing it correctly because markers are showing on the map. However, when I'm trying to add an info window for each one of them it only...

googleMapAPI.class.php

I'm a web developer,i have a project to solve error in gmap.my client implemented googleMapAPI.class.php to show markers on gmap,but the script not showing all 36 markers,not only that but every page reload it's displaying markers randomly,and less than actual numbers of markers like 15,18 and some times 26,but can't show 36 .Can anybod...

What is the best way to make autocomplete field using jquery (With mySql or XML ?)

My autocomplete field: http://www.faressoft.org/autocomplete/ What is the best way to make autocomplete field using jquery (With mySql or XML ?) and what is the reason ? How to minimize consumption of server resources ? What is the best way if i have a big database or a small batadase ? mySql or XML ...

Use JavaScript to highlight the sorted column of a dynamically sorted table.

I am using the JS from this link for sorting my tables but this JS is not highlighting the selected column. I'm not very much into JavaScript that's why i want help to do that. What i need is that on clicking the heading of the column that has to be sorted the whole column should get highlighted with the sorted data. Please help me to ...

PHP recursive function to delete all child nodes causes stackoverflow

My MySQL looks like this: (the name of the table is category) 'id', 'content', 'parent' where: id = the id of the category content = some-text-we-dont-care-about parent = the id of the parent category this is what I'm trying right now: function remrecurs($id) { $qlist=mysql_query("SELECT * FROM category WHERE parent='$id'"); ...

What is this time format?

I am being returned this time format from an API: 1287498792000 Can anyone advise what format that is and how I would parse it in PHP? ...

Applying css to a text while showing in tinymce editor

I have a xml file with content <ul> <li><info>Some text here</info></li> </ul> I have parsed the xml file and show this in a page.info is a css class.In the page the text showing with css.When i am editing the content in tinymce editor how i can apply the css in the editor.In the editor the text is showing like <div mce_name="info">...

how to bult N Type category tree with php?

we have this table "Categoris" ------------------------------------ | ID |parent.id | Category Name | | 1 | 0 | php | | 2 | 1 | Jquery | | 3 | 2 | Java script | | 4 | 2 | HTML | | 5 | 4 | CSS | | 6 | 1 | word Press | | 7 | ...

What is the better site localization method?

I recently joined a team that was formerly a one man show to maintain and develop a company's PHP-mysql website. The current localization method is, for each section of the site, there exists a file ending in _en.php and _fr.php that contains long lists of same named variables with text in the appropriate language. At the top of each c...

how to get the value of array?

Hi, I want to get the value of productId and addressTypeID in this array: Array ( [0] => Array ( [entityId] => 7100122 [orderId] => 110631 [createDate] => 2010-10-19T05:40:00 [lastUpdateDate] => 2010-10-19T05:40:00 [deleted] => [products] => Array ( [Produ...

mysql_connect not working

Hi mysql_connect is not working but mysql_iconnect is working. Please help. Thanks ...

PHP loop through array and split into seperate arrays.

Hi I have this PHP array of Amazon Sub Categories what I am trying to do is loop through the array and split into 3 seperate ones, Heres the Array, and needs to be split into 3 arrays $request, and all the children under it $subCats and final variable $Ancestors. The $subCats will contain all the [Children][BrowseNode]. Its driving m...

How to Mix multiple RSS feed with PHP

I want to mix RSS feed with PHP Eg: Oursignal.com ...