20092 total geeks with 3178 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
Domuk
No, not an issue with the PHP - I was responding to "AJAX not being cross site is annoying"
MaxMouse
Really? i thought that would only be important if the user had some kind of control over where the XML came from, if you hard code it (As in a PHP file) wouldn't that eliminate XSS attacks?
Domuk
Yes, but very, very necessary. AJAX requests run in the context of the browser, there'd be no security if it was cross-domain .
MaxMouse
AJAX not being cross site is annoying, all other scripts can be used in that way, having to resort to PHP to patch it is a shame.
SAJChurchey
thx MaxMouse

Donate
Donate and help us fund new challenges
Donate!
Due Date: Nov 30
November Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
MySpace makes peace
with Indies
Nvidia previews
next-gen Fermi GPUs
Potty-mouths
charged for Comcast
hijack
Microsoft
Silverlight - now
with hidden Windows
bias
Apple cult leader
emails outside
world
Sony demos monster
3D TV
Wrecking CRU:
hackers cause
massive climate
data breach
Skinny Acer
notebook delivers
six-day battery
life
VTOL gyro-copter
flying car mates
with killer robot
Oracle begs EC for
more time
Slashdot
Climatic Research
Unit Hacked, Files
Leaked
Aging Nuclear
Stockpile Good For
Decades To Come
Netbooks Have
Higher Failure Rate
Than Laptops
Xbox Live Class
Action Being
Investigated
Patent Issued For
Podcasting
Linus Torvalds For
Nobel Peace Prize?
Response To
California"s
Large-Screen TV
Regulation
Zero-Day
Vulnerabilities In
Firefox Extensions
Second
Life
To Remove
Free Content From
Web Search
Fedora 12 Package
Installation Policy
Tightened
Articles in topic

PHP

PHP: Cross site AJAX
by: MaxMouse - 2009-10-29 10:18:42
While developing across several domains I found AJAX lacking, in that I could only request an XML document from the same domain the script was currently executing from. Since I required some data to be shared across several domains I ended up with duplicate XML documents, updating them meant updating the master local XML document then uploading it to all of the different servers one after another. The following is a demonstration on cross site AJAX using a PHP proxy, pAJAX anyone?
2358 bytes more - viewed 415 times - comments - zero rated
PHP: Replace PHP variables with custom error page (Apache)
by: MaxMouse - 2009-08-21 11:20:34
Recently i was trying to improve search engine spidering on a website, and read several articles regarding spiders, do they like something.php?somevar=foo&anotherVar=bar do they follow them using the entire querystring or not? well the jury is still out, there is evidence google (for example) does at least make a passing effort to spider them. But this wasn't good enough for me, the following article explains how to use custom 404 error pages to serve pages that do not exist.
4577 bytes more - viewed 684 times - comments - zero rated
PHP: Getting a System IP Address
by: irah - 2009-05-13 05:28:55
This article is for PHP programmers.
812 bytes more - viewed 1461 times - comments - rated
PHP: How to make a custom error handler
by: auzzie - 2009-02-22 13:31:11
Anyone that uses PHP enough has at least on one occasion been tired of having to deal with PHP's built in errors and having to write a lot of code as a work around to instigate their own error message.
3056 bytes more - viewed 1325 times - comments - rated
PHP: Creating a PHP based IRC Bot
by: auzzie - 2008-12-26 15:30:39
How to create a simple IRC bot within the PHP scripting language.
13606 bytes more - viewed 2624 times - comments - rated
PHP: Simple Site Maintenance Module in PHP
by: GOATRIDER - 2006-07-12 09:45:44
Sometimes, site administrators may need to bring their sites down to the public for routine maintenance, but still be able to access them to make sure changes are taking place. This small bit of code works wonders in that respect.
1168 bytes more - viewed 2848 times - comments - rated
PHP: Object passing (with and without serialization) in php
by: sfabriz - 2006-01-10 15:34:32
This article will show you how to handle in a proper way a very common situation: a user logs in your site and you want to keep trace of his details while he browses around your site using just one session var.
11013 bytes more - viewed 14196 times - comments - rated
PHP: Dynamic file download
by: sfabriz - 2006-01-09 00:44:55
This article will show you how to let your users download a file with some content inside taken from a dynamic resource (e.g. a database).
4281 bytes more - viewed 11398 times - comments - rated
PHP: Proxy Detection with PHP
by: noimnot - 2005-12-18 02:40:59
This guide shows you how to detect proxies using various methods; it also provides crucial information on improving your online security.
5930 bytes more - viewed 38554 times - comments - rated
PHP: Random Sentence Script
by: noimnot - 2005-11-12 18:00:56
I wrote this script yesterday evening after I found OxymoronList.com (http://www.oxymoronlist.com/). I wanted to import the oxymorons and display a random oxymoron once a day on some sites of mine; so i wrote a script that would allow one to import sentences and also query random entries from it.
2134 bytes more - viewed 10962 times - comments - zero rated
PHP: Sending special characters to MSSQL
by: sliptop - 2005-10-05 19:26:49
Are you getting tired with struggling to send a single quote to the database from a large amount of posted variables? This small code snippet loops through all _POST vars and then strips the php added slashes, and adds an escape char to the _POST var.
791 bytes more - viewed 9067 times - comments - zero rated
PHP: dynamic errorhandling with apache/PHP
by: nihil - 2005-06-28 15:59:25
Create your own HTTP Error Messages, using PHP
this script also provides a workaround for the apache error 301 problem
3830 bytes more - viewed 4376 times - comments - zero rated
PHP: Using LDAP in PHP (linux)
by: TroPe - 2005-03-10 17:51:16
Lightweight Directory Access Protocol (LDAP) provides an easy and efficient way for databases to handle common queries. In this article I will attempt to explain how to use the LDAP server in PHP. I'll describe how to use the LDAP server on the Linux platform and how to run an LDAP server and use its services from a PHP application.
32634 bytes more - viewed 33076 times - comments - rated
PHP: An unusual counter...
by: sfabriz - 2005-02-09 18:24:53
Ever wanted to get that "You are visitor n° 7777777" written in an cool original way? Here's the article for you. From Italy a brand new old-fashioned counter written like Ancient Romans used to write numbers.
2939 bytes more - viewed 10437 times - comments - rated
PHP: The changing avatar
by: sfabriz - 2005-02-09 01:34:58
This article is about how we can have a dynamic avatar using PHP and Apache's .htaccess
2145 bytes more - viewed 12694 times - comments - rated
PHP: MySQL Fundamentals in PHP
by: TroPe - 2004-12-26 14:39:42
In this article you will learn all of the basic skills of working with a MySQL database within PHP. We'll learn to create a database, add tables, view records, update records, and more. Working with MySql was suprisingly easy - I think you will come to that conclusion, too.

This should serve as a solid intro if you're just starting out with MySql. This article will be ideal for those who are ready to start learning via code examples.
35000 bytes more - viewed 7977 times - comments - rated
PHP: Encryption Techniques in PHP
by: TroPe - 2004-11-07 17:19:02
This article will explain how to use one-way encryption, symmetric encryption, and asymmetric encryption in PHP.
6899 bytes more - viewed 24406 times - comments - rated
PHP: PHP Web Services using SOAP
by: TroPe - 2004-11-06 17:35:33
This tutorial will explain how to send and receive SOAP messages using NuSOAP (an open source set of classes) by building a web service from scratch. This tutorial should benefit both the beginner and intermediate PHP programmer interested in developing / consuming web services in PHP.

One example we'll look at is how you, as a Soprano mobster, can use a web service to quickly identify the life status of your enemy crime bosses so you don't expend useless hours planning their demise.
20474 bytes more - viewed 21139 times - comments - rated
PHP: Dynamic Colors and Alpha Channels With PHP and the GD Library
by: pyroinfernia - 2004-01-04 23:40:47
This script uses a colorlist of all of the css2 "named" colors to dynamically generate all/user-selected colors with all/user-selected values of alpha transparency. You would only have to use the name of the color as a variable, with the number of the desired alpha transparency, instead of having to define, by hand, each color and each permutation of alpha transparency for each color to use in your image.
7000 bytes more - viewed 9522 times - comments - zero rated
PHP: Preventing Browsers and Proxies from Caching
by: dimport - 2003-06-30 19:59:30
If you produce dynamic webpages in PHP, it is often important not to allow the client to cache the pages, because they change all the time anyway. The users wouldn't like to press "Refresh" every time something changes. On www.php.net I've found something very useful...
991 bytes more - viewed 6718 times - comments - zero rated
PHP: A Basic MySQL-Class in PHP
by: dimport - 2003-06-21 07:19:46
In order to simplify the use of the PHP built-in MySQL functions, I wrote a basic class providing easy-to-use database functions. (Still, there is much space for improvisations.)
3183 bytes more - viewed 7151 times - comments - rated
PHP: Security Flaw in PHP
by: dimport - 2003-06-21 07:19:46
A severe bug, rated as "critical", has been found in all versions of PHP, including 3.x and 4.x.
762 bytes more - viewed 3529 times - comments - zero rated
PHP: PHP-Nuke Coding I - Modules
by: dimport - 2003-06-21 07:19:46
For those who don't know what PHP-Nuke is and what it does, don't bother to read any further. (Just one sentence: This page has been created with PHP-Nuke.)

For those who do have a clue, I got a question: Ever thought about coding your own enhancements for PHP-Nuke? If you answered this question with yes, read on :)
4631 bytes more - viewed 6604 times - comments - rated
PHP: PHP-Nuke Coding II - Blocks
by: dimport - 2003-06-21 07:19:46
Here's part II of my PHP-Nuke Coding series. This time, I'll cover blocks. If you don't know what blocks are: you can see some left and right of this article ;)
1937 bytes more - viewed 6691 times - comments - rated
PHP: Learning PHP: Storing Basic Information
by: dimport - 2003-06-21 07:19:46
Heres a great introduction to the PHP Web development language, which should get you firing on all cylinders in no time!
12276 bytes more - viewed 8080 times - comments - rated
PHP: PHP Form Field Data Validation Example/Tutorial
by: dimport - 2003-06-21 07:19:46
This is a simple script to illustrate the of a function, field_validator(), which I modified from an original piece of code submitted on the devshed forums.
2181 bytes more - viewed 15988 times - comments - zero rated
PHP: PHP Authentication using sessions and MySQL
by: dimport - 2003-06-21 07:19:46
I've just tidied up a set of scripts I've used as a basis for a few multi-user PHP sites and they're available if anyone wants to look at them.
1077 bytes more - viewed 9874 times - comments - rated
PHP: Handling forms and writing to files in PHP
by: dimport - 2003-06-21 07:19:46
OK here is a quick primer to those getting started with php, besically a guide to writing a simple form, that writes and reads variables to a flat file (ie. not a database).
4619 bytes more - viewed 5855 times - comments - zero rated
PHP: PHP slash stripper made easy
by: dimport - 2003-06-21 07:19:46
just a little thing i picked up about PHP the other day...a slash striper...i noticed my signature ended up having a slash in in where there shouldn't be one...
260 bytes more - viewed 4140 times - comments - zero rated
PHP: Using cookies in php.
by: dimport - 2003-06-21 07:19:46
Hello and welcome to my little tutorial about cookies, they are small and good, and IE collect a fuckload of them if you don't set your settings correctly. :P
2563 bytes more - viewed 8420 times - comments - rated
PHP: file handles with PHP
by: dimport - 2003-06-21 07:19:46
You must admit that reading/writing files is a big part of any programming language you learn, almost everything you code will have to save something(spec cgi) until next time. Therefore it's extra important to understand it, I recomment you to click the link at the end of each section or drop me a "private message"(Don't exept a polite response but you still can :).
3001 bytes more - viewed 7103 times - comments - rated
PHP: Sending email from PHP
by: dimport - 2003-06-21 07:19:46
It's easy to get php to mail you when someone hits *that* page that only the few should have access to.
The script below emails them and you, you'll need to do your own form though.
589 bytes more - viewed 5760 times - comments - rated
PHP: Connecting and Retrieving Data Using PHP/MySQL
by: dimport - 2003-06-21 07:19:46
PHP and SQL have become hugely popular of late, this is due to the boring and old nature of static sites, and the need for more dynamic content, which can be easily managed. This tutorial will introduce you to retrieving information from a MySQL table using the PHP scripting language.
5196 bytes more - viewed 13121 times - comments - rated
PHP: Follow-up to Connecting and Retrieving Data Using PHP and MySQL
by: dimport - 2003-06-21 07:19:46
First of all, I just want to make it really clear that I'm not trying to blast SlipTop's tutorial in any way. He did a pretty good job providing some info on the basics of using PHP and MySQL together. I just felt that if someone was going to take this and use it as a basis for learning about the two, some clarifications should be made. I know these are things that I've found useful in my foray with PHP/MySQL and would've been very helpful to have learned from the onset.
3975 bytes more - viewed 6371 times - comments - rated
PHP: Mod_php from within php
by: dimport - 2003-06-21 07:19:46
Mod php for php http servers yeah i know too many "p"s
2848 bytes more - viewed 5773 times - comments - zero rated
PHP: Dealing with cookies in PHP - Introduction
by: dimport - 2003-06-21 07:19:46
Ever wondered how to store user preferences of your site on the user's pc so he sees the site how he customized it before? Read further to get to know an easy way of dealing with cookies in PHP.
2529 bytes more - viewed 3311 times - comments - rated
PHP: Connecting to a server using PHP sockets
by: dimport - 2003-06-21 07:19:46
Ever got to the stage in PHP scripting where you wanted to connect to a server and issue a few commands directly at socket level? Well nows the time to learn...
2446 bytes more - viewed 5851 times - comments - rated
PHP: Creating servers with sockets in PHP
by: dimport - 2003-06-21 07:19:46
Didn't think it was possible to create servers using PHP? Well it is...
4853 bytes more - viewed 6785 times - comments - zero rated
PHP: Advanced: Sessions
by: dimport - 2003-06-21 07:19:46
In this small tutorial i'll cover three different types of assigning a user a session id while he surfs around your website. These solutions are different of the two PHP built in (trans-sid and cookies).
4852 bytes more - viewed 7805 times - comments - zero rated

Features

The Forums
Re: Maximizing
a Cone

(UnTaran/Geek Tips)
In the .bin
(UnTaran/Geek Tips)
Re: Triangle
Geometry

(CodeX/Geek Tips)
Re: Please help
with challenge
1!!!

(maxmouse/Geek Tips)
Re: Error in
PHP statement

(Domuk/Technical Questions)

Recent Blogs
Blog entry for
Mon 9th Nov 4am
feck you
all!!!!!!!!
0 comments
echmil's blog
Sat 7th Nov 11pm
IIS 6 SelfSSL
and Windows 7
0 comments
bb's blog
Tue 29th Sep 12pm
My PHP Projects
PSP

Current Poll
Given the
opportunity to
work for any game
developer, which
would you choose?
Share you're
reasoning plus
any other
developers, this
is only a tiny
list off the top
of my head so
share away!

Lionhead Studios
Konami
Pandemic Studios
Activision
Blizzard Entertainment
Capcom
Bethesda Softworks
Other (Please Comment)



View Results
(16 Comments)

Site Comments
Good tutorial.
I really loved
it

(Anonymous / Creating Custom Events in C#)
Hi
Tim, there
is one mistake
in your c...

(jirka77 / ROL/ROR in C)
i tried to use
the above code
and im getting...

(Anonymous / Sending Email in VB.Net)
upload it
again!!

(Anonymous / Tic-Tac-Toe: an unbeatable foe)
:) WINK WINK
(Anonymous / Introduction to Visual Basic Socket Programming)
your code
doesn't work
for any othe
bmp f...

(Anonymous / A 24-bit v.3 BMP Primer)
Thanks for
sharing.
Jonny cleaner
revie...

(Anonymous / A simple IRC BOT written in Python)
Ok, i writing a
similar program
but i need t...

(Anonymous / Simple C++ program to find all numbers that are divisible by a number)
Thanx a lot. A
very good
explanation.
Wik...

(Anonymous / Solving sudoku with C#)
need to install
john for my
homework, i
j...

(Anonymous / John the Ripper Tutorial)


     
Your Ad Here
 
Copyright Open Source Institute, 2006