Great site! I have a question I haven't seen answered.
I am very new to this, I didn't know what JSON was yesterday, so I apologize if this is a stupid question. A client has requested an JSON/XML type scheme to store data because they want a flat file to edit/update without having to deal with queries, and they want it flexible for fu...
Hi, I'm trying to figure out the most efficient way to implement RoR-style partials/collections for a PHP template class that I'm writing. For those who aren't familiar with rails, I want to iterate over a template fragment (say a table row or list item) located in a separate file. I want to do this without resorting to eval or placing a...
Hello,
What I need to do is searching from companies and tags table and listing companies.
My table structure is as follows;
tags (tag_ID, tag)
tag_relation (tag_ID, company_ID)
companies (company_ID, company_name, company_description)
The query should be able to search both company info (name, description) and tags. If tag searched,...
Is it possible to 'translate' headers from this firefox extension into server side script?
edit:
I'm trying to SEND headers, not retrieve them. I performed some actions in browser and i want them to be automatically repeated (with few changes) by server-side script.
...
I can guess that this might sound obvious for some people out there, but i would like to know wether a Framework wich has no complex folder-structure can be used within CakePHP.
...
I have a large implementation of Zend_Acl and the deny function is not working as expected. It is not inheriting properly and I have unresolved conflicts with groups.
Before I get knee deep in code. Are there any well know issues with Zend_Acl or advanced tips anyone wants to share.
I'm having to explicitly deny access to all children ...
Hello,
I wanted to know if somebody could explain in somewhat simple terms how I could get
started with comet. I am on a shared host environment.
What exactly are my possibillity's?
From what I have read here sofar, is that php is not the best option., because it is
run as a one process per request instead off thread.
On another, the...
I'm looking for a function that can accurately represent the distance between two colours as a number or something.
For example I am looking to have an array of HEX values or RGB arrays and I want to find the most similar colour in the array for a given colour
eg. I pass a function a RGB value and the 'closest' colour in the array is r...
I need a multi-page drupal form that requests an external xml api and displays the data on the second page of the multi-page form.
I'm new to drupal and I've been reading advices on here and on drupal.org. I think I can either use the computed field on cck or I write an module to do this. I think I will do both, first using the computed...
I'm just wondering how to best handle transactions across multiple service layers. The service layers use an ORM to store and retrieve from the database. Should the transactions be known and handled within the individual service layers? Or should they be handled by another layer?
For example: I have two service layers for users and clie...
Hi
Wonder if anyone can help me out with a little cron issue i am experience
The problem is that the load can spike up to 5, and the CPU usage can jump to 40%, on a dual core 'Xeon L5410 @ 2.33GHz' with 356Mb RAM, and I'm not sure where I should be tweaking the code and which way to prevent that. code sample below
//Note $productFi...
I'm developing a zend framework application that includes a simple email function. The development version is running on my computer, which is running Ubuntu. The production version is going to run on a production server.
When trying to send a test email to myself, I get an exception with the message: "Unable to send mail". I don't know...
I was wondering if it is possible to open an xml file as a plain text file so I can read in each line and manipulate the text?
...
lets say i want to go to
http://example.com/something/a/few/directories/deep
is there a way I can process this in PHP without having to make those directories? I just want to get everything after the domain name as a variable and work from there.
...
I'm looking for tips and ideas on how to best incorporate authentication with PHP using Cookies.
Should each php script check for the cookie value to determine if the user is still logged in? Should there be one script that does this check and Include that script from each of the other scripts? Can the cookie value be seen by php fr...
Is it possible to Google App Engine or Amazon EC2 to create a chatting tool that is (obviously) real-time? The motivation is avoiding setting up servers, and dealing with spikes in demand.
Are there any open-source tools for this?
With Amazon EC2 or others, is it possible to set up something that has push-notifications enabled (COMET...
Is there a way to redirect all traffic to my website to a specific page? My free host does support PHP. Not sure if that is what would be appropriate for this or not. Thank you.
...
I'm working on a PHP project running on Windows and it would be so very handy to be able to use pecl_http rather than working with cURL and re-inventing the wheel in order to do all the cool stuff the pecl extenwion does like parsing headers and so forth.
Everywhere I read (including the PHP site) is that the Windows binary for pecl_htt...
Suppose I have a GUI-only application that runs on Windows and I'd like to create a web interface for it using PHP. Is it even possible? I know I can use functions like system() or exec() to launch programs, but can I have more control over a running GUI app? Primarily, I would like to be able to send it keystrokes, so I can use it to pr...
I know there are a plethora of $_SERVER variables headers available for IP address retrieval. I was wondering if there is a general consensus as to how to most accurately retrieve a user's real IP address (well knowing no method is perfect) using said variables?
I spent some time trying to find an in depth solution and came up with the...