I’m trying to figure out how I could detect whether people logging into my site are behind a proxy or not. I’ve read that you can detect a person’s real IP address through embeddable objects (Flash and Java). However, I haven’t been able to actually find any examples or source for this. I’m using PHP and I’ve read that looking
SimpleXML: Selecting Elements Which Have A Certain Attribute Value
In an XML document, I have elements which share the same name, but the value of an attribute defines what type of data it is, and I want to select all of those elements which have a certain value from …
Performance considerations of JSON vs. XML
I am using a webservice which provides a large result set either in XML or JSON format. Which format will be faster or better (perfomance based)? Also which language should I use to parse the XML/JSON?…
Get entire URL, including query string and anchor
Is there a way to get the entire URL used to request the current page, including the anchor (the text after the # – I may be using the wrong word), in included pages? i.e. page foo.php is included in …
How can I truncate a string to the first 20 words in PHP?
How can I truncate a string after 20 words in PHP?
PHP: How do you determine every Nth iteration of a loop?
I wanted to echo an image every after 3 post via XML here is my code :
Why is the usage of $this in PHP necessary when referencing methods or variables in the same class?
I was explaining to a Java developer why his method call wasn’t working. He just needed to add $this->method_name(); He then asked me, “Why do I need to add $this to the method when it’s declared in the same class?” I didn’t really know how to answer. Maybe it’s because PHP has a global namespace and it you need to
is it possible to make “beep” sound in php like in gmail
for an IM script i am making, i would like the computer to beep like in gmail everytime there is a new message. is there a script in php or html to make the computer beep? Thanks! Answer All you need to do is load a small flash movie that makes the sound, you can easily toggle it in your
Can PHP decompress a file compressed with the .NET GZipStream class?
I have a C# application that communicates with a PHP-based SOAP web service for updates and licensing. I am now working on a feedback system for users to submit errors and tracelogs automatically through the software. Based on a previous question I posted, I felt that a web service would be the best way to do it (most likely to
How can I allow a download to pause/resume?
Normally, when I want to allow a user to download a file without revealing the exact location, I just use something like this to let them download the file: But if they are using a modern browser or other download client, and they pause the download and try to resume it, the script (assuming they are still authenticated or whatever)