The users will only use IE, and within IE it can pass their credentials without being prompted to, if they are logged onto the domain controller.
What I want to know is, how do I go about grabbing their username?
I thought this would do the trick: $_SERVER['auth_user'];but no luck.
Just like this http://stackoverflow.com/questions/168...
in PHP, Is there a way to detect if a string is English or non-English string. suppose the string is in utf-8 format?
...
I have a social network type app I have been working on for at least 2 years now, I need it to scale well so I have put a lot of effort into perfecting the code of this app. I use sessions very often to cache database results for a user when a user logs into the site I cache there userID number, username, urer status/role, photo URL, on...
I'm using FreeBSD + Apache. How do I disable Zend Framework from running on a system? I prefer not to delete the entire software if I don't have to.
Secondarily, how do I find out the version of Zend Framework I am using?
I am refering to Zend Framework, the CMS.
What would be my DocmentRoot directory? It seems to me that the Document...
Hi I am trying to build php youtube api without a Zend function
this is what I have till now:
function upload() {
$files = $_FILES;
$name = $files['file']['name'];
$type = $files['file']['type'];
$size = $files['file']['size'];
$tmp_nm = $files['file']['tmp_name'];
$data = array('name' => 'Foo', 'file' => '@'.$...
I am planning to use PHP's autoload function to dynamicly load only class files that are needed. Now this could create a huge mess if every single function has a seperate file, So I am hoping and asking is there a way to have related classes remain in 1 class file and still be auto-loaded
function __autoload($class_name){
include('...
I've noticed that my pageview counts are being messed up by the pipe-lining feature in Firefox. People who visit using Firefox with pipelining enabled count two (or more) times for each visit.
What is the best way to detect or block these duplicate requests? I need to know how to block it on my server, not just how to disable pipeli...
Ok, check out this voodoo:
This code:
$xml = new SimpleXMLElement($xml);
$var = $xml->QBXMLMsgsRs->ClassQueryRs;
$vars = print_r($var,true);
Returns:
SimpleXMLElement Object
(
[@attributes] => Array
(
[requestID] => Q2xhc3NRdWVyeXw1
[statusCode] => 0
[statusSeverity] => Info
...
Hi,
I'm having trouble using curl to retrieve headers for a minority of sites.
Some examples are digg.com and microsoft.com.
function get_headers_curl($url, $port)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, ...
Hey im working on my first php site, and was hoping to get some thoughts from you guys.
1- I'm using a txt file database, cuz its a simple set of scripts. I know that's not recommended, but i wanted to work with it some, before getting into mysql. Thoughts on this in general? Pros, cons? Vulnerable?
2- Related to the previous question ...
Hello,
I have had a difficult time paginating the code below. I think it has to do with passing the GET variable $find on to the next page.
Anyway, how would I paginate the code below, so that the table below shows only 100 rows per page?
Thanks in advance,
John
<?php
ob_start();
session_start();
$find = strip_tags($_GET['find']);
...
Can anyone point me a good(with examples) changelog for php 5.3?
I'm hearing lot's of ppl doing code migration to it and I'm wondering what is so new about it.
...
The PHP documentation says "You can't use references in session variables as there is no feasible way to restore a reference to another variable."
Does this mean I can't have things like:
session_start();
$user =new User;
$user->name='blah';
$_SESSION['user']=$user;
I have tried to store a simple string and a User object in session, ...
Hello
I have enabled the memcache extension for my PHP Apache localserver server (XAMPP)
but I don't know how to use it to speed up my PHP scripts
Is writing the following code in the top of every page I want to speed up is enough? or I should do something else?
/* procedural API */
$memcache_obj = memcache_connect('127....
In 2009-07-07 was released the first stable of memcached, the php library based on libmemcached.
Now you have two options (in php) memcache or memcached.
memcache is the usual one, but memcached promise many improvements over the other one: one of my favorites are fact of use libketama for keys which allow sharing keys between language...
I am stumped, I am tossing out my code and I need help with a cross browser ajax submit.
Can anyone PLEASE give me a simple working ajax submit script for updating mysql? The one I have is all bad.
Works in FF and Safarai (iphone), but in IE7, it has caching problem and in IE8 it doesn't even submit.
...
I have a rather simple CakePHP app that uses the Auth component to restrict access to the admin funcitons. That all works fine and good but I use the Pages Controller to display the home page and Admin main page.
How can I set up auth to control access to pages like '/' for home and '/admin'?
...
I have a php form. After this form is submitted, if all data is valid, then it executes a python script which takes 5-10 seconds. For this wait period I would like to have a progress bar (.gif) displaying in the middle of the screen. If I could also 'fade away' the background so that the progress bar was like a top layer and the backgrou...
It seems that PHP has two memcached libraries named memcache and memcached. What is the difference and how do you know which one to use? Is one outdated? It seems that memcached offers more methods so I would assume that means it has had the most development - but it also seems to require external C/C++ libraries so I'm not sure if I can...
I've noticed there are many PHP forum packages out there - http://en.wikipedia.org/wiki/Comparison%5Fof%5FInternet%5Fforum%5Fsoftware%5F%28PHP) . I specifically am looking for a forum package that scales well - from what I hear both Vbulletin and Simple Machines, two of the most popular forum packages, require substantially more horsepow...