I have used MacDBG for debugging PHP scripts with XDebug and have been very happy with it. However, I have been forced to use Windows and haven't been able to find a comparable debugging client. Are there any suggestions?
...
i have divided various components of the page in different php file. In the navigation php file i have the objects i want to use in the javascript.
where should i put the javascript <script ...> so that it loads fine? right now i am putting it in a completely seperate file header.php? but i dont think the javascript is picking objects fr...
The idea is to create a DOM-like tree. But there are some restrictions, that only certain types can actually contain the other.
I want to use an interface|abstract class|superclass to implement some well known js-functions as appendChild, replaceChild etc.
I'm using the classes page, block and item, where pages can contain blocks and b...
I've been reading about XML, XSL, XPath, etc. I want to start this small script in PHP using XML as the database to create a simple CRUD app. I will be using SimpleXML but after reading some answers over stackoverflow it seems many people suggest DOMDocument (is there anything that benefits using DOMDocument more than SimpleXML?)
Anywa...
My normal development platform for PHP is Linux. I use a Red hat server for my website, my company uses red hat and Fedora for production, and I have Ubuntu at home. I couldn't be happier. Unfortunately, I'm now required to spend a good deal of time working in PHP in Windows using WAMP.
I say this is unfortunate because I am continua...
I am trying to set a variable based on some maths logic (to wrap specific html around elements).
I worked half the problem, to hit 0, 3, 6, 9, 12
if(($i % 3) == 0) { // blah }
Now I need to hit the following numbers, 2, 5, 8, 11, 14, etc
What possible maths operation could I do to hit this sequence?
...
I'm building a Kohaha application to manage sip lines in asterisk.
I'm wanting to use ORM but I'm wondering how do relate certain tables that are already well established.
e.g. the table sip_lines looks like this.
+--------------------+------------------+------+-----+-------------------+-----------------------------+
| Field ...
how to select two record from two different table with one query in mysql??
for a search query im using
$search = $_GET['gd']
$arama_sonuc = mysql_query("select * from mp3 where baslik like '%$search%'");
well its ok. it shows me results from mp3 table. but with same query i need to search something on HABERLER table too.. how can i ...
I have the following two errors when using XMLReader.
1) Warning: XMLReader::read() [xmlreader.read]: MyXML.xml:43102: parser error : xmlParseEntityRef: no name
2) Warning: XMLReader::read() [xmlreader.read]: ^ in MyXMLReader.php on line 56
Does anyone know what those refer to?
My PHP Code (The XML file is about 100MB so I can't inc...
So I'm trying to learn how to pass arrays through a function, so that I can get around PHP's inability to return multiple values. Haven't been able to get anything to work so far, but here is my best try. Can anybody point out where I'm going wrong?
function foo($array)
{
$array[3]=$array[0]+$array[1]+$array[2];
return $array;
}...
I am trying to do a string replace for entire file in PHP. My file is over 100MB so I have to go line by line and can not use file_get_contents(). Is there a good solution to this?
...
I am using Zend Form and Dojo. I have a whole bunch of ids that are identical. If you look at the following code you can see my current look :
<dt id="addElement-label"> </dt><dd id="addElement-element"> <button name="createEventForm[categoryDetail][addElement]" id="createEventForm-categoryDetail-addElement" type="button">addElem...
What I'm looking for is a way to build PDF and Word documents that include form data, then convert that to a format that can be managed from a web interface (so a user can come in, fill out a form, and submit it online).
It doesn't need to remain in PDF or Word format (and preferably there will be some conversion), but ultimately, utili...
In my PHP error handler I want to do something like:
if (ini_get('display_errors') IS ON)) {
// show debug info
} else {
// show just "oops!"
}
I've look through the docs and stuff, but I can't really find out what the possible values for display_errors are (such as "on", 0, "Yes") and what it does for what value.
What should I put ...
I'm trying to create a directory in Joomla, which means, the user will have a form to add an entry (with custom fields) and the entry will show up in a page listing all added entries.
For now, I'm going with SOBI which is a Joomla component handling all this.
Question:
I was wondering if there are any good alternatives, what I'm lookin...
I'm migrating my library's website from webcal to google calendar. The site is written in PHP and HTML4.01 (moving from transitional towards strict). Is there a programatic way that I can generate links to calender days/entries? With webcal a link to the day view was:
www.mylibrary.com/calendar/day.php?YYYYMMDD
And so it was easy to p...
I just started using Kohana a couple days ago, and I have a few questions that I cant seem to find an answer to anywhere.
Using ORM, how can you package information before you send it off? If I have a user model, and each user has a username, email, date of birth, etc... how can I package information (like add the users age as a propert...
I want to create a site like .co.cc but you.mydomain.net. I can't seem to make it work. I would ideally like to make a CNAME (and an MX record) when a user submits a form with the desired CNAME (I will tell them how to do that) and the sub domain they want.
Thanks in advance for any help
...
I often see something similar to this below in PHP scripts using MySQL
query("SET NAMES utf8");
I have never had to do this for any project yet so I have a couple basic questions about it.
Is this something that is done with PDO only?
If it is not a PDO specific thing, then what is the purpose of doing it? I realize it is sett...
Will it downgrade performance significantly (or exhaust the server with http requests), or maybe ill advised, to do something like this
echo "<span>enter_username_message</span>";
and centralize this constant along with all output messages in one file, so that those could be changed without getting into the code:
define('enter_userna...