As part of my attempt to create an ASP.net that has the same look and feel as an existing php application from another developer. (more about it can you read here: http://stackoverflow.com/questions/2544389/how-to-share-sessions-between-php-and-asp-net-application)
I'm in the middle of the process of sharing userlogin state between my AS...
I'm trying to create a hook in one Wordpress plugin that could be used by other plugins. First off, is this even possible? I'm also sending some additional args so this may be 2 questions in one since I've been having trouble finding definitive information on how to do this.
Here is what I've tried so far:
In the plugin that is creatin...
Greetings all,
I'm trying to write a script that loads an existing spreadsheet containing a number of array formulas, add data to a worksheet and save it. When opening the file after the script runs, the spreadsheet's formulas are no longer array formulas.
Below is the stripped down version of what I'm attempting:
$excelFile = new PH...
Is it possible to overload the ==/!= operators in php, similar to the way it's done in .NET?
...
I'm trying to write an input filter that turns everything that starts with http and ends in .mp3 into an audio element, so:
http://google.com/file.mp3 -> <audio src='http://google.com/file.mp3' />
The regexp is no problem for me, just not sure how to construct the module.
A simple example that would allow me to add many additional rul...
I am having a problem trying to pull a path name from a DB in MySQL and then searching the path using Simple HTML DOM. The issue is that there are 2000+ entries and I know that is what is causing the connection issues.
Error Message: A connection attempt failed because the connected party did not properly respond after a period of time...
Hi all,
I am trying to find a truly simple, minimalistic, basic and secure bug tracking system that uses PHP and has minimum (none is best) other dependencies (if there are any that use no database, that's even better, otherwise, MySQL is fine).
I know this has been asked before many many times, but so far all of the bug tracking syste...
I'm looking for a way to fetch posts in wordpress that are slated for future publication based on a custom taxonomy query. Finding future posts is
otherwise, simple
query_posts('post_status=future');
But adding a custom taxonomy doesn't work as expected
query_posts('musicians=paul-mccartney&post_status=future');
I ended up using ...
I have various emails being sent out via PHP mail. The problem is, for example when I receive the email, it is displayed in the body properly without any surrounding html. For some reason, other people that I am testing it out with are getting it with the html showing up.
Here is an example of one of the emails being sent:
$Em...
Hey Guys,
I have this problem. I want to detect if there is not a session variable and create one, but if one already exists and is empty I want to leave it alone.
Say I have this to create my session variable if none is detected:
if (!$_SESSION['second_prefix']){$_SESSION['second_prefix'] = "";}
How should I change this to not perf...
I'm am getting a named pipes error when I try to connect to ms sql server 2008 using a php script running an sqlsrv_connect command. In the ms sql configuration stuff tcp/ip, shared memory, and named pipes are all enabled. Everything is stored on the same server, the database, and the php script so I'm just using a "(local)" for the serv...
I have an XML Like below
<Row><Cell ss:StyleID="s245"><Data ss:Type="String">ABSOLUTE</Data></Cell>
<Cell ><Data ss:Type="String">Yellow</Data></Cell>
<Cell ><Data ss:Type="String">Exist</Data></Cell>
<Cell ><Data ss:Type="Number">30</Data></Cell>
<Cell ss:StyleID="s258"/>
</Row>
<Row><Cell ss:StyleID="s229"><Data ss:Type="String">PAR...
I'm developing a basic application with Cakephp. It´s a FAQs page with login for an administrator that can edit the FAQs. The problem is that I want to show the FAQs in the main page as well as a form that allows admins to login. I've seen examples but I don't know how to follow correctly the MVC. How should the Faq, User and (possibly) ...
Hi all,
I'm currently coding a product which will have only one database but will host many clients by using a global identifier of a customer_id.
This is all very good.
However, let's say we have a table called Ticket. Idea has a primary key. When a user adds a ticket, the ticket will correspond to the customer via a foreign key etc....
My script has as input the latitude and longitude values as GPS coordinates.
How can I get the current local time?
Are out there solutions that do not use databases or web services?
PHP has a method to retrieve location based on a timezone, I am wondering if the reverse exists or not
...
I'm writing a wordpress plugin, and using this script to resize images: Timthumb
This script uses absolute paths, but I can't get it to work for me; I've triple-checked all my paths but still nothing.
Here is my code:
$plugin_dir_name = "my-plugin";
$pathTimThumb = WP_PLUGIN_URL . '/' . $plugin_dir_name . '/timthumb.php';
$pathToUplo...
TL;DR - Any webapp devs out there able to squeeze performance out of using gmail as SMTP server without a 3-10 minute delay to delivery?
I'm looking for some feedback from developers who are using gmail as a secure SMTP server for use with Webapps.
Within the past 2 weeks, my company has switched to gmail to host email for our domain...
There's a few questions like this on Stack Overflow but because i can't find any quite similar enough for me to follow.
I'm looking to select rows from db which are within x miles of a target.
example table columns:
| city_name(varchar) | lat(decimal) | lon(decimal) |
query effect i'm looking for (either using php or mysql)
$target...
Hi Guys,
Php has a Zend Engine.. The zend engine provides fopen.. Php also provides fopen...
But when we call fopen, php's fopen is called.. I have three questions here
What is the purpose of the /php--Nn/ext folder .
Do the functions in ext folder need to be recompiled everytime they are changed?
Do the functions in the ext folder ...
so i am using PHPExcel (http://phpexcel.codeplex.com/) to import a excel sheet. everything works fine on my development system, BUT it doesn't quite work on the live system.
hence i debugged and looked what could be wrong. i got to a point where i found that a method obviously returned NULL, where it should have returned an object. i lo...