Re: [PHP] Pass a relative path [with slashes] into a 'clean' url

2006-12-05 Thread Aaron Koning
: $relative_path=../image.png $type=jpeg $color=42 $cache=0 many thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- +- | Aaron Koning | Information Technologist | Prince

Re: [PHP] Splitting a string

2006-11-14 Thread Aaron Koning
://www.php.net/unsub.php -- + | Aaron Koning | Information Technologist | Prince George, BC, Canada. + | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +

Re: [PHP] Finding out the upload date of the file

2006-06-23 Thread Aaron Koning
function? Regards, Ko Ko Reality starts with Dream - How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. -- + | Aaron Koning | Information Technologist | Prince George, BC, Canada

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-27 Thread Aaron Koning
-- + | Aaron Koning | Information Technologist | Prince George, BC, Canada. + | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +

Re: [PHP] how 2 open File Browser window in PHP

2006-01-17 Thread Aaron Koning
Please attempt to search www.php.net first for this information. A search for 'file uploads' reveals what you want: http://ca.php.net/features.file-upload Aaron On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote: hi, i dont know exact PHP code for how 2 open file browser window to

Re: [PHP] Cookie problem

2006-01-14 Thread Aaron Koning
Try simplifying the problem to determine the error point. For example don't involve $_POST just try setting a cookie with hard coded variables. If that works then add in the $_POST and test for BOTH $_POST['prefs'] and $_POST['filter']. Example of simplification: ?php // Send cookie

Re: [PHP] private, public, protected in 4.3.11

2006-01-12 Thread Aaron Koning
exception, final, php_user_filter, interface, implements, extends, public, private, protected, abstract, clone, try, catch, throw where not introduced until PHP 5 (http://ca3.php.net/reserved). Therefore, var is the only way to define member variables prior to PHP 5. Aaron On 1/11/06, Peter

Re: [PHP] question about compositing objects

2006-01-12 Thread Aaron Koning
$map is not a member variable of the Loc class in your code... Instead do this: class Loc { // Defines a member variable var $map; // Constructor function Loc() { $this-map = new Map(); // Create map object and save to Loc object $this-map-setKey(); } } $loc = new Loc();

Re: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread Aaron Koning
Why not send us the Call and the Function for arguments sake (pun intended). Aaron On 1/6/06, enediel gonzalez [EMAIL PROTECTED] wrote: Hello I've a function with 6 arguments that works properly. Trying to add a 7th argument an being sure that calling the function I pass that one I

Re: [PHP] Set variable outside of scope (redo)

2006-01-05 Thread Aaron Koning
Generally, scope is fairly loose in PHP. If $row is set by mysql_fetch_array(...) it should carry throughout your script as it is, unless modified. Try commenting out non-relavant pieces of the code and var_dump(...)ing the $row variable at the start and throughout the script. Aaron On 1/5/06,

Re: [PHP] One big file or many includes?

2005-12-16 Thread Aaron Koning
I don't know about whats best for the compiler (rather interpreter), but if it is a really big site with a lot of access, transaction and management functionality I recommend you start breaking the code into classes and separating each class into a file and documenting... A LOT! It will be clearer

Re: [PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Aaron Koning
I wasn't aware you could use = instead of echo (? =$_SERVER['PHP_SELF'] ?). Try making an even simpler HTML/PHP example and see if the problem exists there. Then you can incrementally build your HTML/PHP back up to the point where it is breaking. Example: ?php print_r($_POST); ? html head /head

Re: [PHP] encrypt and dcrypt

2005-12-15 Thread Aaron Koning
Ganu, Are you simply looking to use the md5 string for authentication? If so you don't need to retrieve the decrypted version, simply encrypt what the user submits and compare the two md5 strings. Aaron On 12/15/05, Chris Shiflett [EMAIL PROTECTED] wrote: ganu wrote: I want a function like

Re: [PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Aaron Koning
Aaron Koning schrieb: I wasn't aware you could use = instead of echo (? =$_SERVER['PHP_SELF'] ?). Try making an even simpler HTML/PHP example and see if the problem exists there. Then you can incrementally build your HTML/PHP back up to the point where it is breaking. Example

Re: [PHP] Random Images with no duplicates?

2005-12-15 Thread Aaron Koning
This should work, although if there are only 9 lines in the file, it will run infintely (or until the page times out)... so put a check in for that. $imagesNeeded = 10; $imageArr = array(); // Create array with $imagesNeeded number of elements. for($i=0;$i$imagesNeeded;$i++) { // choose image

Re: [PHP] simple-ish question but something i never knew

2005-12-10 Thread Aaron Koning
PM, Aaron Koning wrote: Its been my experience that meta tags work better. I guess what you are saying is that this: meta http-equiv=refresh content=0;url=https://www.theNewUrl/forward.html; Is better than this: header(Refresh: 0; URL=https://www.theNewUrl/forward.html;); -- PHP

Re: [PHP] simple-ish question but something i never knew

2005-12-09 Thread Aaron Koning
I have found that using the header function doesn't actually redirect the page, it pulls the content into the page that the function is called from (which works good for somethings, but can get confusing with post variables and such). Its been my experience that meta tags work better. Aaron On