I'm using Vista and need to debug PHP, XDebug crashes in Vista, I tried several suggestions but nothing works.
Are there there any other alternative to XDebug that works on Vista and with Eclipse PDT. Easy to install is a plus :-)
Edit: also I have Ubuntu in other PC, so any debugger for Ubuntu will work too. In the package list is a X...
I'm playing around with file info in php and i'm wondering if its possible to do the following:
once a file is changed get the contents of the file,
then put the contents of the file into another file.
kinda like a "backup system" so once you make a change to the file a duplicate one is created, each change to the original file overwri...
I consider myself as an entrepreneur with basic programming skills. My main experience is with PHP, but mostly as a code breaker- meaning being able to figure out the basics and manipulate the code to my needs. Recently took up studying RoR and it seems easy to understand.
I will be putting together some resources to build a niche socia...
How can I transfer an array from an IFrame running a php script, to the parent PHP of the IFrame?
I have an Array of strings in PHP that need to be transferred to the main window so that when the iframe changes pages, the array is still stored.
I could use a cookie for this, though I'm not sure that would be the best idea.
Thanks.
...
I am working on a simple AJAX page. when the page loads, it should take the result from the PHP page and display it in the text box. If the result is "1" (which it should be), then it should pop up an alert saying "Ready."
Main page's code (t1_wait.php):
<html><head><title>Waiting...</title></head><body>
<script type="text/javascript"...
Just learning PHP and I'm having some trouble understanding mysql_query. My understanding is that mysql_query is supposed to return FALSE if the record is not found. However, it seems that it always returns true because "FOUND!" is always the result:
$q = "SELECT * FROM users WHERE username = 'doesnotexist'";
$r = mysql_query($q);
if ...
Hi, I need some help with creating a regex for my php script. Basically, I have an associative array containing my data, and I want to use preg_replace to replace some place-holders with real data. The input would be something like this:
<td>{{address}}</td><td>{{fixDate}}</td><td>{{measureDate}}</td><td>{{builder}}</td>
I don't wan...
Hi,
I am trying to build the login registration page for my website, I am facing problems with he Auth Component,
function beforeFilter() {
$this->Auth->loginAction = array('controller'=>'users','action'=>'login');
$this->Auth->loginRedirect = array('controller'=>'users','action'=>'landing');
$this->Auth->logoutRedirect = array('cont...
I'm planning to use PHP for a simple requirement. I need to download a XML content from a URL, for which I need to send HTTP GET request to that URL.
How do I do it in PHP?
...
Recently i worked in project. there i need to a resize a picture and i use the following class.
class SimpleImage
{
var $image;
var $image_type;
function load($filename)
{
$image_info = getimagesize($filename);
$this->image_type = $image_info[2];
if($this->image_type == IMAGETYPE_JPEG)
{
...
I have this table on MySQL. I want to query the port number for user_ids 1 and 2.
umeta_id user_id meta_key meta_value
------------------------------------------
1 1 nickname admin
8 1 userDir D
9 1 port 8080
10 1 paymentopt bankin
13 2 po...
Hi,
I am looking to implement a 1 on 1 user to user web chat application for a new website in the works. Something similar to Omegle is the aim for the final product. Does anyone know of ready made solutions that are capable of this?
Due to my experience, PHP is the language of choice. Omegle was written in Python using the twisted lib...
Hi, I have a created a login system in php with logout functions etc. But I need the session to be destroyed on window close. This needs to be "instant" or as fast as possible to change the users status to offline. I dont really want to set a time on the session as this is annoying for the user having to login all the time.
Any suggesti...
So I'm looking for ideas on how to best replicate the functionality seen on digg. Essentially, you submit a URL of your page of interest, digg then crawl's the DOM to find all of the IMG tags (likely only selecting a few that are above a certain height/width) and then creates a thumbnail from them and asks you which you would like to rep...
I'm trying to find a pythonic way to do this PHP code:
chunk_split(base64_encode($picture));
http://us2.php.net/chunk_split
chunk_split split the string into smaller chunks of 76 character long by adding a "\r\n" (RFC 2045).
thank you
...
Well this is going to sound like a lame question, I know. This is probably one of the most obvious things to do, but I've been trying to come up with a good way of sorting entries in database.
Image table looking like this:
entry_id | entry_data
-------------------------
1 | data1
2 | data2
... | ...
n ...
I am building a menu that I want to display in a certain way. However, it is to be populated from a database so it cannot be hard-coded.
Essentially I want the 'li' tags to appear in set places when they are created and was hoping that I could set their class using php count() and already having the css set up for them.
Basically, the ...
Possible Duplicates:
What PHP framework would you choose for a new application and why?
What is your favorite PHP framework?
A friend and I were pondering the idea of learning to use a framework for a coming project. We were looking at Zend, Cake PHP and Pear in particular I was wondering if anyone could outline the pros and c...
hello, i am looking for a php function, that creates a short hash out of a string or a file similar to those url-shortening websites like tinyurl.com
the hash should not be longer than 8 characters
thanks!
...
Hi guys,
I'm having a little trouble working out how to display a running total of sales that have gone through my website. I have no problem working out how to do this with a single output from one table, but unfortunately for my website the results of total sales are spread across 2 tables in the database.
I normally get the total s...