Hi,
Does reflection breaks the idea of private methods, because private methods can be access outside of the class? (Maybe I dont understand the meaning of reflection or miss something else, please write)
http://en.wikipedia.org/wiki/Reflection_%28computer_science%29
Edit:
If relection breaks the idea of private methods - does we use p...
Complete Flash / AS Noob here. Friend wanted a change in Email address and I'm assisting. I notice at the bottom it posts to a formmail.php file but I was wondering if there was an easier way or perhaps someone could help me understand what exactly it POSTS and how AS handles POST methods so I can rewrite a script. As formmail.php is som...
Hi
I've been trying to upload a file (login.zip) using the ASIHTTPRequest libraries from the IPhone onto the inbuilt Apache Server in Mac OS X Snow Leopard. My code is:
NSString *urlAddress = [[[NSString alloc] initWithString:self.uploadField.text]autorelease];
NSURL *url = [NSURL URLWithString:urlAddress];
ASIFormDataRequest *req...
I'm upgrading my local version of PHP to 5.3.2, on Windows. I'm running Apache 2.2 right now.
I've downloaded the zipped VC6 version of PHP from here: http://windows.php.net/download/
To my dismay, there's no php5apache2_2.dll file anywhere in the ZIP, and unfortunately Google is no help. I don't understand how anybody manages to get...
Hello,
I have attempted to extract an attribute from the paypal soap wsdl file using SimpleXml and DOM in php5 but they all skip over the root tag where the namespace declarations are.
It is not clear to me yet how to get a node referencing the root tag so that I can retrieve the value of ns:version using the current attributes functi...
This is more of a maths/general programming question, but I am programming with PHP is that makes a difference.
I think the easiest way to explain is with an example.
If the range is between 1 and 10.
I want to generate a number that is between 1 an 10 but is more likely lower than high.
The only way I can think is generate an array ...
I have 50+ textareas that I am using tinyMCE with. Instead of loading each one I am just initialising them, then activing them later on request
Initialisation
tinyMCE.init({
mode : "none",
theme : "advanced",
theme_advanced_buttons1 : "",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced...
I'm using Zend_Form from Zend Framework 1.10.6 to render a html form. In this form 'z', there's a subform with a field 'a'. The subform is added to the main form twice, once with the name 'x' and once as 'y'.
Below is the html rendered by the Zend_Form-object.
<form id="z" enctype="application/x-www-form-urlencoded" method="post" actio...
Hello,
I'm building a proxy and am trying to deal with a page that uses javascript. The page has a button like this:
<input type="submit" ...cut this out... onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(...cut this out...)) />
When I click this button from my proxy the URL is rewritten to look like th...
Hey Guys,
I've got the following login script..
<?php
$name = $_POST["name"];
$password = $_POST["password"];
$query = "SELECT * FROM users WHERE username = '$name'
AND password = '$password'";
$q=mysql_query($query) or die(mysql_error());
$result = mysql_query($query);
if (mysql_fetch_row($result)) {
/* access granted */
...
I have data that is coming in from a rss feed. I want to be safe and use htmlentities but then again if I use it if there is html code in there the page is full of code and content. I don't mind the formatting the rss offers and would be glad to use it as long as I can display it safely. I'm after the content of the feed but also want it...
scope issue in PHP classes:
Why does this work?
class index extends Application
{
function ShowPage()
{
$smarty = new Smarty(); // construct class
$smarty->assign('name', 'Ned'); // then call a method of class
$smarty->display('index.tpl');
}
}
$index_inst...
Hi all,
Can you please help me understand something in this function?
From the documentation, it says if I use function oci_bind_by_name and don't define the type, it will use the default SQLT_CHR. My question is how Oracle handles this variable. Imagine I do this for a select in a table which have an index in a field of type NUMBER. W...
I have an array that i want to invert how do i do this?
...
I have written the following piece of code
if( (!isset($_SESSION['home'])) || (!isset($_SESSION['away'])) )
I assume this should check if each of these variables exist.
I only show whats in the if statement if either of those variables dont exist.
But for some reason it is still showing the stuff inside the braces even though the va...
Hi. I have a tree-like object structure that consists of two types of objects:
object of class Category
object of class CategoryLink
The structure is the following:
The whole story begins with an array of Categories that have no parent
Each Category has a few unimportant properties and a few important:
$parent - containing an id of ...
Hi Symfony devs,
Can you give me some informations on how to create a new Symfony2 project please ?
I started to get the symfony/symfony-sandbox from github as a tar-ball.
Then I removed its old src/vendor content.
I get latest vendor libs with git submodule. ( fabpot/Symfony, doctrine, migrations, ...).
The problem is the sandbox ...
Hi, i have been struggling for a while now trying to finish this, i am new to a lot of this and although i have had some tips i think i am getting myself more lost. So i have stripped the code to a point where it almost works.
DEMO IS HERE: http://designsbythom.com/meterread/test.html
I have a form a customer fills out to submit printe...
I'm having a problem with my server at work, it's not letting me access any files via FTP that were uploaded or created by PHP, like log files and user uploads. I CAN access them via HTTP.
Server - Apache/1.3.41 (Unix)
This is a big problem for me, and I feel like it must be some server configuration because this doesn't happen elsewhe...
hi there,
I have a php script that runs some checks, if the checks fail it includes another file so that it can do its checks, if something in the included file fails then i need to exit out of the included script so that the including script can continue doing its stuff.
is there any way to kill the currently executing script withou...