get

Apache mod_rewrite and PHP GET Arrays

I want to have a url like http://localhost/folder1/folder2/folder3/file Then i want mod_rewrite to convert it to $_GET['d'] in the url it would look like d[]=folder1&d[]=folder2&d[]=folder3 Is this possible? Thank You. ...

iPhone get image width and size

hi all, i am new to iPhone. i want to get the height of a image. so i can set the frame of UIImageview accordingly. Please suggest how can i get the original size(width and height) of image. ...

Are these JQuery calls the same?

Hi guys, Could someone tell me if this: $.ajax({ url: 'test.html', success: function(data) { alert("Data Loaded: " + data); } }); is the same as this: $.ajax({ url: 'test.html', success: function(data) { alert("Data Loaded: " + $(data).html()); } ...

Massive API/Framework mashup issue (oAuth, Facebook, Twitter, Code Igniter)

Hi all, I'm having (many, but for now,) one problem with a project I'm working on. It is a PHP project run on Code Igniter It is a Facebook app that wants to use oAuth Twitter authorization CodeIgniter by default clears the $_GET array because it uses the URI for controlling MVC stuff. You can turn this off to access the GET array, ...

How to pass an array?

Hello! How could I pass an array with PHP by GET method? Thanks ...

Calling Javascript in a page after it's been loaded by jQuery GET

Imagine a normal page calling javscript in head. The trouble is some of the content isnt loaded untill i click on a link. Subsequently when this link loads the content it wont work. This is because i guess the javascript has already been run and therefor doesnt attach itself to those elements called later on. There is only standard h...

Jquery Ajax or Get doesn't work on SOME IE

<script type="text/javascript"> $(document).ready(function(){ function listadepoimentos(page){ // $.get("ajaxes.php", {act:'listadepoimentos', page:page}, function a(b){$('#holder').html(b)}, "text"); $.ajax({ type: 'GET', url: 'ajaxes.php', data: {act:'listadepoimentos', page:page}, ...

Improve HTTP GET PHP scripts

This code is getting the headers and content from $url, and prints it to the browser. It is really slow, and it's not because the server. How can I improve this? $headers = get_headers($url); foreach ($headers as $value) header($value); $fh = fopen($url, "r"); fpassthru($fh); Thanks ...

Is there an easy way to get characters from the keyboard without hitting enter in Java?

I'd like to know if there is an easy way to get character input from a JTextField in Java as they happen, not after an enter keystroke. In my case I want the characters (text) to be read in, and when the enter key is hit, do something with the characters already collected. ...

Get Text UIWebView PHP script

Basically my app has a UIwebView which loads a php script with input of user data. The script then uses printf(some info). This all works and it prints it right the UIWebView. Basically what I want to do is get that text (its all thats on the page) and save it as a string. Heres what I have tried so far. NSString *str = [webView stringB...

In JScript, is it possible to implement getters and setters that look like object properties from the outside?

While trying to port and generally playing around with some non-browser code, I came across getters and setters that looked like normal object properties. Something like this: js> var o = { a: 4, get b(){ return this.a + 3; }, set b(val){ this.a = val - 3; } }; js> o.a 4 js> o.b 7 js> o.b=10 10 js> o....

Not using $_GET parameters

In working with CodeIgniter, it appears $_GET is disabled by default. I'm wondering why this is. A lot of times, I want to build very long search queries. So for example, I have a form that allows you to search the database by N different fields. In code igniter, the url to display my search result would be: http://mysite.com/field...

jquery - check if string begins with something?

I know that I can do like ^= to see if an id starts with something, and I tried using that for this, but it didn't work... Basically, I'm retrieving the url and I want to set a class for an element for pathnames that start in a certain way... So, var pathname = window.location.pathname; //gives me /sub/1/train/yonks/459087 I want...

Can't use Get in CodeIgniter

So I'm using codeigniter and I've had very letter experience with it so far but here's my issue. I have an if statement I've set up that says if (@$_GET['f'] == 'callback') then do something, if not, do something else. So basically my URL ends up looking like this: http://localhost/finalproject/myspacedev/index?f=start and all I get ...

PHP GET question - calling from a POST call

I have a quick question i hope you guys can answer, i've got a search system that uses POST to do searches, now i want to track queries using Google Analytics but it requires using GET url parameters to pull parameters out the URL, what i don't want to do is rewrite the entire search system to use GET instead of POST. Is there any way ar...

Accessing an asp.net web service with classic asp

My company is considering working with another company on a particular module. Information would be sent back and forth between us through my web service. Thing is, my web service uses ASP.NET, and they use classic ASP. Everything I've found online says (it's a pain, but) they can communicate, but I'm not clear on some details. Speci...

PHP losing data for two variables

I have two scripts that I'm working on. The first receives $agentID via GET (as well as some other data via other GET variables), then looks up $firstName and $lastName in a database by $agentID. Once done, it displays $firstName, $lastName and $agentID on the screen, as text in a form (not in a form input). After the form is submitte...

PHP - Dealing with GET and POST arrays

In my webapp I have a page called display.php. The script in this page behaves in different ways depending on POST and GET array content/existence, let's say: If I call this page and GET array isset, the script'll load a record using $_GET['id'], in another case, if no GET isset but isset a ceratin POST key the script'll load a random re...

Multiple callback on $.get

here is the code : <script> $(document).ready(function(){ $.get("realisations.shtml",function(data){$('#realisations').empty().append(data)}); }); </script> I need to execute $(".toexpand").hide(); after beeing sure the data is loaded into the div this try dont work : <script> $(document).ready(function(){ $.g...

Escaping user data, without magic quotes

Hey, I'm taking a look at how to properly escape data that comes from the outside world before it gets used either for application control, storage, logic.. that kind of thing. Obviously, with the magic quotes directive being deprecated shortly in php 5.3.0+, and removed in php6, this becomes more pressing, for anyone looking to upgrad...