Tags » Adam Carter

inout parameters in PHP

I’m used to Objective-C and Swift’s ability to pass a reference to an object so I can assign it in a function, specifically errors.

I’m trying to do the same in PHP but when I print my… 86 more words

Recent Questions - Stack Overflow

PHP HTTP headers values as array

I know the getallheaders() function gives me an array of http headers. But it gives a value such as

 => oauth_consumer_key="publica5d53e674542272aefc2ea8ebf99bf9d771ed2b089bdfd1fbb74b5de69", oauth_signature="c7f63e8c01131d4384cdfe2cee5db7ce160aa27b", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1418220427", oauth_nonce="5488538b485ed", oauth_version="1.0"
… 37 more words
Recent Questions - Stack Overflow

Sending query string data with apache rewrite rule

This is my current rewrite:

<IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule api/rest/v1.0/(.*)$ api/rest/v1.0/index.php?request=$1 

</IfModule>

but if I send this: http://localhost/api/rest/v1.0/users/list?user_id=123abc&api_key=12… 81 more words

Recent Questions - Stack Overflow

mod_rewrite not working - results in 404 error and no logs

I’m running localhost XAMPP on my Mac and trying to setup the Apache server with mod_rewrite, here’s my code in .htaccess (which is in htdocs) 100 more words

Recent Questions - Stack Overflow

Behind The Ballot: Do Attack Ads Actually Work?

MINNEAPOLIS (WCCO) — Maybe we say this every election season, but the political ads seem to be more frequent, and a little more mean-spirited this time around. 298 more words

News